Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr HanserModelica_HanserModelica.Electrical.Tables.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/HanserModelica 2.0.0-master/package.mo", uses=false) Using package HanserModelica with version 2.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/HanserModelica 2.0.0-master/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(HanserModelica.Electrical.Tables,fileNamePrefix="HanserModelica_HanserModelica_Electrical_Tables",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(HanserModelica.Electrical.Tables,fileNamePrefix="HanserModelica_HanserModelica_Electrical_Tables",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.007578/0.007578, allocations: 99.45 kB / 15.73 MB, free: 6.059 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.347/1.347, allocations: 222.9 MB / 239.4 MB, free: 4.527 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001726/0.001726, allocations: 184.5 kB / 289.7 MB, free: 2.254 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HanserModelica 2.0.0-master/package.mo): time 0.03452/0.03452, allocations: 8.801 MB / 348.7 MB, free: 4.605 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001506/0.001506, allocations: 71.88 kB / 463.4 MB, free: 13.71 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09855/0.1001, allocations: 51.56 MB / 0.5029 GB, free: 10.11 MB / 350.1 MB Notification: Performance of NFInst.instantiate(HanserModelica.Electrical.Tables): time 0.003363/0.1035, allocations: 2.161 MB / 0.505 GB, free: 7.941 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001517/0.105, allocations: 0.9586 MB / 0.5059 GB, free: 6.977 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001315/0.1052, allocations: 0 / 0.5059 GB, free: 6.977 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003348/0.1055, allocations: 103.5 kB / 0.506 GB, free: 6.875 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000307/0.1058, allocations: 111.4 kB / 0.5061 GB, free: 6.766 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003593/0.1062, allocations: 135.2 kB / 0.5063 GB, free: 6.637 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.000336/0.1066, allocations: 219.2 kB / 0.5065 GB, free: 6.422 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001514/0.1067, allocations: 41.67 kB / 0.5065 GB, free: 6.383 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002202/0.1069, allocations: 95.67 kB / 0.5066 GB, free: 6.289 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001772/0.1071, allocations: 103.6 kB / 0.5067 GB, free: 6.188 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 3.564e-05/0.1072, allocations: 20 kB / 0.5067 GB, free: 6.168 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001195/0.1073, allocations: 51.98 kB / 0.5068 GB, free: 6.117 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 7.797e-05/0.1074, allocations: 47.77 kB / 0.5068 GB, free: 6.07 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 9.585e-05/0.1075, allocations: 91.47 kB / 0.5069 GB, free: 5.98 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003445/0.1078, allocations: 223 kB / 0.5071 GB, free: 5.762 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.821e-06/0.1079, allocations: 4 kB / 0.5071 GB, free: 5.758 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.523e-06/0.1079, allocations: 0 / 0.5071 GB, free: 5.758 MB / 350.1 MB Notification: Performance of Transformations before backend: time 9.588e-06/0.1079, allocations: 0 / 0.5071 GB, free: 5.758 MB / 350.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 28 * Number of variables: 28 Notification: Performance of Generate backend data structure: time 0.0007669/0.1087, allocations: 0.5062 MB / 0.5076 GB, free: 5.199 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.648e-05/0.1087, allocations: 8.031 kB / 0.5076 GB, free: 5.191 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.601e-05/0.1088, allocations: 46.73 kB / 0.5077 GB, free: 5.137 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.884e-05/0.1088, allocations: 28.73 kB / 0.5077 GB, free: 5.109 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003368/0.1092, allocations: 241.2 kB / 0.5079 GB, free: 4.832 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.132e-05/0.1092, allocations: 8.609 kB / 0.5079 GB, free: 4.824 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.774e-05/0.1092, allocations: 19.88 kB / 0.508 GB, free: 4.805 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002621/0.1095, allocations: 123.4 kB / 0.5081 GB, free: 4.68 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.167e-06/0.1095, allocations: 0 / 0.5081 GB, free: 4.68 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.813e-05/0.1096, allocations: 12 kB / 0.5081 GB, free: 4.668 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.661e-06/0.1096, allocations: 0 / 0.5081 GB, free: 4.668 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001625/0.1097, allocations: 72.67 kB / 0.5082 GB, free: 4.598 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000806/0.1105, allocations: 0.5342 MB / 0.5087 GB, free: 4 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003541/0.1109, allocations: 122.6 kB / 0.5088 GB, free: 3.871 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 8.021e-05/0.111, allocations: 32.84 kB / 0.5088 GB, free: 3.836 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.953e-05/0.111, allocations: 0 / 0.5088 GB, free: 3.836 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001975/0.1112, allocations: 108.9 kB / 0.5089 GB, free: 3.711 MB / 350.1 MB Notification: Performance of pre-optimization done (n=10): time 1.122e-06/0.1112, allocations: 4 kB / 0.5089 GB, free: 3.707 MB / 350.1 MB Notification: Performance of matching and sorting (n=10): time 0.0003593/0.1116, allocations: 145.5 kB / 0.5091 GB, free: 3.559 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.465e-05/0.1117, allocations: 77.11 kB / 0.5092 GB, free: 3.465 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002526/0.1119, allocations: 256.2 kB / 0.5094 GB, free: 3.203 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.199e-05/0.112, allocations: 33.7 kB / 0.5094 GB, free: 3.164 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001088/0.1121, allocations: 139.9 kB / 0.5096 GB, free: 3.023 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.415e-05/0.1121, allocations: 35.73 kB / 0.5096 GB, free: 2.988 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.497e-05/0.1122, allocations: 29.7 kB / 0.5096 GB, free: 2.953 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001919/0.1124, allocations: 334.8 kB / 0.5099 GB, free: 2.617 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.573e-05/0.1125, allocations: 27.98 kB / 0.51 GB, free: 2.59 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001011/0.1126, allocations: 64.22 kB / 0.51 GB, free: 2.512 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001692/0.1128, allocations: 95.39 kB / 0.5101 GB, free: 2.406 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.695e-06/0.1128, allocations: 0 / 0.5101 GB, free: 2.406 MB / 350.1 MB Notification: Performance of matching and sorting (n=15) (initialization): time 0.0002802/0.1131, allocations: 141.3 kB / 0.5103 GB, free: 2.262 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.414e-05/0.1131, allocations: 13.55 kB / 0.5103 GB, free: 2.25 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.162e-06/0.1131, allocations: 0 / 0.5103 GB, free: 2.25 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.937e-05/0.1131, allocations: 0 / 0.5103 GB, free: 2.25 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001134/0.1133, allocations: 24 kB / 0.5103 GB, free: 2.227 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.093e-05/0.1133, allocations: 3.984 kB / 0.5103 GB, free: 2.223 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001047/0.1134, allocations: 20.05 kB / 0.5103 GB, free: 2.203 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.548e-05/0.1134, allocations: 8 kB / 0.5103 GB, free: 2.195 MB / 350.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 4 * Number of states: 0 () * Number of discrete variables: 5 ($PRE.table.nextTimeEvent,$whenCondition1,table.nextTimeEventScaled,$PRE.table.nextTimeEventScaled,table.nextTimeEvent) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (15): * Single equations (assignments): 15 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001581/0.1136, allocations: 141.6 kB / 0.5105 GB, free: 2.047 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.607e-05/0.1136, allocations: 19.91 kB / 0.5105 GB, free: 2.027 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.053e-05/0.1137, allocations: 21.39 kB / 0.5105 GB, free: 1.996 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.189e-06/0.1137, allocations: 4 kB / 0.5105 GB, free: 1.992 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.951e-06/0.1137, allocations: 0 / 0.5105 GB, free: 1.992 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.065e-06/0.1137, allocations: 3.984 kB / 0.5105 GB, free: 1.988 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002662/0.114, allocations: 249.4 kB / 0.5107 GB, free: 1.695 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.104e-06/0.114, allocations: 4 kB / 0.5107 GB, free: 1.691 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.637e-05/0.1141, allocations: 12 kB / 0.5108 GB, free: 1.68 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.336e-06/0.1141, allocations: 0 / 0.5108 GB, free: 1.68 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.719e-05/0.1142, allocations: 8 kB / 0.5108 GB, free: 1.672 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.703e-06/0.1142, allocations: 384 / 0.5108 GB, free: 1.672 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.548e-06/0.1142, allocations: 3.984 kB / 0.5108 GB, free: 1.668 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003972/0.1146, allocations: 188.8 kB / 0.511 GB, free: 1.465 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.031e-05/0.1147, allocations: 97.05 kB / 0.511 GB, free: 1.352 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.355e-05/0.1147, allocations: 4 kB / 0.511 GB, free: 1.348 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.136e-05/0.1148, allocations: 11.98 kB / 0.5111 GB, free: 1.336 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.882e-05/0.1148, allocations: 4 kB / 0.5111 GB, free: 1.332 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.852e-05/0.1149, allocations: 3.984 kB / 0.5111 GB, free: 1.328 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.000201/0.1151, allocations: 197.6 kB / 0.5113 GB, free: 1.137 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.1151, allocations: 0 / 0.5113 GB, free: 1.137 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0002783/0.1154, allocations: 43.89 kB / 0.5113 GB, free: 1.094 MB / 350.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 1 (inductor.i) * Number of discrete variables: 3 ($whenCondition1,table.nextTimeEvent,table.nextTimeEventScaled) * Number of discrete states: 2 (table.nextTimeEventScaled,table.nextTimeEvent) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (10): * Single equations (assignments): 8 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 2 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.001694/0.1171, allocations: 1.023 MB / 0.5123 GB, free: 208 kB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0002247/0.1173, allocations: 71.91 kB / 0.5124 GB, free: 136 kB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.053e-06/0.1173, allocations: 4 kB / 0.5124 GB, free: 132 kB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 8.454e-05/0.1174, allocations: 40.11 kB / 0.5124 GB, free: 92 kB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003103/0.1177, allocations: 44.33 kB / 0.5124 GB, free: 48 kB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002399/0.1201, allocations: 2.064 MB / 0.5145 GB, free: 13.88 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003974/0.1205, allocations: 0.7319 MB / 0.5152 GB, free: 13.12 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 8.335e-05/0.1206, allocations: 17.55 kB / 0.5152 GB, free: 13.11 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001054/0.1207, allocations: 59.41 kB / 0.5153 GB, free: 13.05 MB / 366.1 MB Notification: Performance of SimCode: time 3.1e-07/0.1207, allocations: 0 / 0.5153 GB, free: 13.05 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02353/0.1443, allocations: 4.403 MB / 0.5196 GB, free: 8.742 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.005/8.15, allocations: 12.64 kB / 0.5196 GB, free: 8.73 MB / 366.1 MB (rm -f HanserModelica_HanserModelica.Electrical.Tables.pipe ; mkfifo HanserModelica_HanserModelica.Electrical.Tables.pipe ; head -c 1048576 < HanserModelica_HanserModelica.Electrical.Tables.pipe >> ../files/HanserModelica_HanserModelica.Electrical.Tables.sim & python3 -m fmpy simulate --output-file HanserModelica_HanserModelica.Electrical.Tables_res.csv --start-time 0 --stop-time 4 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.001 HanserModelica_HanserModelica_Electrical_Tables.fmu > HanserModelica_HanserModelica.Electrical.Tables.pipe 2>&1)