Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr HanserModelica_HanserModelica.Electrical.TablesFromFile.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.TablesFromFile,fileNamePrefix="HanserModelica_HanserModelica_Electrical_TablesFromFile",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(HanserModelica.Electrical.TablesFromFile,fileNamePrefix="HanserModelica_HanserModelica_Electrical_TablesFromFile",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.004905/0.004905, allocations: 97.64 kB / 15.73 MB, free: 5.988 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.483/1.483, allocations: 222.9 MB / 239.4 MB, free: 4.551 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.001519/0.001519, allocations: 184.5 kB / 289.7 MB, free: 2.27 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HanserModelica 2.0.0-master/package.mo): time 0.03771/0.03771, allocations: 8.789 MB / 348.7 MB, free: 4.625 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002337/0.002337, allocations: 79.88 kB / 463.4 MB, free: 13.61 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1214/0.1237, allocations: 51.56 MB / 0.5029 GB, free: 10.01 MB / 350.1 MB Notification: Performance of NFInst.instantiate(HanserModelica.Electrical.TablesFromFile): time 0.004043/0.1278, allocations: 2.167 MB / 0.505 GB, free: 7.828 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.002444/0.1303, allocations: 1.549 MB / 0.5065 GB, free: 6.27 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001237/0.1305, allocations: 7.938 kB / 0.5066 GB, free: 6.262 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004196/0.1309, allocations: 103.6 kB / 0.5067 GB, free: 6.16 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003222/0.1312, allocations: 111.4 kB / 0.5068 GB, free: 6.051 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004637/0.1317, allocations: 143.3 kB / 0.5069 GB, free: 5.914 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003015/0.132, allocations: 223.1 kB / 0.5071 GB, free: 5.695 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001484/0.1322, allocations: 45.66 kB / 0.5071 GB, free: 5.652 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001377/0.1323, allocations: 95.62 kB / 0.5072 GB, free: 5.559 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003758/0.1327, allocations: 115.6 kB / 0.5074 GB, free: 5.445 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 3.562e-05/0.1328, allocations: 16 kB / 0.5074 GB, free: 5.43 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001533/0.1329, allocations: 63.98 kB / 0.5074 GB, free: 5.367 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 8.243e-05/0.133, allocations: 51.77 kB / 0.5075 GB, free: 5.316 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001138/0.1331, allocations: 87.53 kB / 0.5076 GB, free: 5.23 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003804/0.1335, allocations: 250.9 kB / 0.5078 GB, free: 4.984 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.368e-06/0.1335, allocations: 0 / 0.5078 GB, free: 4.984 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.884e-06/0.1335, allocations: 0 / 0.5078 GB, free: 4.984 MB / 350.1 MB Notification: Performance of Transformations before backend: time 5.831e-06/0.1336, allocations: 0 / 0.5078 GB, free: 4.984 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.0008219/0.1344, allocations: 0.5178 MB / 0.5083 GB, free: 4.414 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.94e-05/0.1344, allocations: 12.03 kB / 0.5083 GB, free: 4.402 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.442e-05/0.1345, allocations: 42.75 kB / 0.5084 GB, free: 4.352 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.294e-05/0.1345, allocations: 24.73 kB / 0.5084 GB, free: 4.328 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004021/0.135, allocations: 249.2 kB / 0.5086 GB, free: 4.043 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.846e-05/0.135, allocations: 8.609 kB / 0.5086 GB, free: 4.035 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.606e-05/0.135, allocations: 15.94 kB / 0.5086 GB, free: 4.02 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000298/0.1353, allocations: 149.4 kB / 0.5088 GB, free: 3.863 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.129e-05/0.1354, allocations: 0 / 0.5088 GB, free: 3.863 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.013e-05/0.1354, allocations: 4 kB / 0.5088 GB, free: 3.859 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.65e-06/0.1354, allocations: 3.938 kB / 0.5088 GB, free: 3.855 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001769/0.1356, allocations: 78.3 kB / 0.5089 GB, free: 3.781 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008821/0.1365, allocations: 0.5534 MB / 0.5094 GB, free: 3.164 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003921/0.1369, allocations: 106.7 kB / 0.5095 GB, free: 3.051 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 8.711e-05/0.137, allocations: 32.84 kB / 0.5095 GB, free: 3.016 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.416e-05/0.137, allocations: 4 kB / 0.5095 GB, free: 3.012 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002065/0.1372, allocations: 105 kB / 0.5096 GB, free: 2.891 MB / 350.1 MB Notification: Performance of pre-optimization done (n=10): time 1.433e-06/0.1372, allocations: 3.938 kB / 0.5096 GB, free: 2.887 MB / 350.1 MB Notification: Performance of matching and sorting (n=10): time 0.0003873/0.1376, allocations: 141.5 kB / 0.5098 GB, free: 2.742 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.573e-05/0.1377, allocations: 106.8 kB / 0.5099 GB, free: 2.613 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003007/0.138, allocations: 277 kB / 0.5101 GB, free: 2.336 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.065e-05/0.138, allocations: 25.7 kB / 0.5102 GB, free: 2.305 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001095/0.1382, allocations: 144 kB / 0.5103 GB, free: 2.16 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.476e-05/0.1382, allocations: 35.73 kB / 0.5103 GB, free: 2.125 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.493e-05/0.1383, allocations: 33.67 kB / 0.5104 GB, free: 2.086 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.000159/0.1384, allocations: 334.8 kB / 0.5107 GB, free: 1.75 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.597e-05/0.1385, allocations: 27.98 kB / 0.5107 GB, free: 1.723 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001155/0.1386, allocations: 71.33 kB / 0.5108 GB, free: 1.637 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001885/0.1388, allocations: 87.45 kB / 0.5109 GB, free: 1.539 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.954e-06/0.1389, allocations: 3.938 kB / 0.5109 GB, free: 1.535 MB / 350.1 MB Notification: Performance of matching and sorting (n=15) (initialization): time 0.0002903/0.1391, allocations: 137.5 kB / 0.511 GB, free: 1.395 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.083e-05/0.1392, allocations: 8 kB / 0.511 GB, free: 1.387 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.03e-06/0.1392, allocations: 0 / 0.511 GB, free: 1.387 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.497e-05/0.1392, allocations: 4.094 kB / 0.511 GB, free: 1.383 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001172/0.1393, allocations: 23.98 kB / 0.511 GB, free: 1.359 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.108e-05/0.1394, allocations: 11.92 kB / 0.5111 GB, free: 1.348 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.915e-05/0.1395, allocations: 19.88 kB / 0.5111 GB, free: 1.328 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.244e-05/0.1395, allocations: 8 kB / 0.5111 GB, free: 1.32 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.0001428/0.1396, allocations: 141.7 kB / 0.5112 GB, free: 1.172 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.447e-05/0.1397, allocations: 23.84 kB / 0.5112 GB, free: 1.148 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.621e-05/0.1397, allocations: 21.72 kB / 0.5113 GB, free: 1.121 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.993e-06/0.1397, allocations: 4 kB / 0.5113 GB, free: 1.117 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.17e-06/0.1398, allocations: 0 / 0.5113 GB, free: 1.117 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.751e-06/0.1398, allocations: 3.984 kB / 0.5113 GB, free: 1.113 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002417/0.14, allocations: 241.5 kB / 0.5115 GB, free: 0.8281 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.103e-06/0.14, allocations: 0 / 0.5115 GB, free: 0.8281 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.071e-05/0.1401, allocations: 16 kB / 0.5115 GB, free: 0.8125 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.713e-06/0.1401, allocations: 3.938 kB / 0.5115 GB, free: 0.8086 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.522e-05/0.1401, allocations: 7.984 kB / 0.5115 GB, free: 0.8008 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.252e-06/0.1401, allocations: 0 / 0.5115 GB, free: 0.8008 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.82e-07/0.1401, allocations: 384 / 0.5115 GB, free: 0.8008 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000366/0.1405, allocations: 196.8 kB / 0.5117 GB, free: 0.5898 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.478e-05/0.1406, allocations: 92.98 kB / 0.5118 GB, free: 492 kB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.133e-05/0.1406, allocations: 3.984 kB / 0.5118 GB, free: 488 kB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.211e-05/0.1407, allocations: 8 kB / 0.5118 GB, free: 480 kB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.063e-05/0.1408, allocations: 11.92 kB / 0.5118 GB, free: 468 kB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.544e-05/0.1408, allocations: 4 kB / 0.5118 GB, free: 464 kB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0002172/0.141, allocations: 200.5 kB / 0.512 GB, free: 260 kB / 350.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.141, allocations: 4 kB / 0.512 GB, free: 256 kB / 350.1 MB Notification: Performance of remove unused functions: time 0.0002745/0.1413, allocations: 51.88 kB / 0.5121 GB, free: 204 kB / 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.002258/0.1436, allocations: 1.063 MB / 0.5131 GB, free: 15.29 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0002486/0.1438, allocations: 79.91 kB / 0.5132 GB, free: 15.21 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 5.561e-06/0.1439, allocations: 3.938 kB / 0.5132 GB, free: 15.2 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 9.082e-05/0.1439, allocations: 39.86 kB / 0.5132 GB, free: 15.16 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003142/0.1443, allocations: 47.22 kB / 0.5133 GB, free: 15.12 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00275/0.147, allocations: 2.074 MB / 0.5153 GB, free: 12.94 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000402/0.1475, allocations: 0.7358 MB / 0.516 GB, free: 12.18 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 8.776e-05/0.1475, allocations: 25.52 kB / 0.516 GB, free: 12.15 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001048/0.1477, allocations: 63.41 kB / 0.5161 GB, free: 12.09 MB / 366.1 MB Notification: Performance of SimCode: time 5.61e-07/0.1477, allocations: 0 / 0.5161 GB, free: 12.09 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03083/0.1785, allocations: 4.792 MB / 0.5208 GB, free: 7.352 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.294/8.472, allocations: 7.766 kB / 0.5208 GB, free: 7.344 MB / 366.1 MB (rm -f HanserModelica_HanserModelica.Electrical.TablesFromFile.pipe ; mkfifo HanserModelica_HanserModelica.Electrical.TablesFromFile.pipe ; head -c 1048576 < HanserModelica_HanserModelica.Electrical.TablesFromFile.pipe >> ../files/HanserModelica_HanserModelica.Electrical.TablesFromFile.sim & python3 -m fmpy simulate --output-file HanserModelica_HanserModelica.Electrical.TablesFromFile_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_TablesFromFile.fmu > HanserModelica_HanserModelica.Electrical.TablesFromFile.pipe 2>&1)