Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.Tables.CombiTimeTable.Test14.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/Complex 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/ModelicaTest 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaTest with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 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 Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 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(ModelicaTest.Tables.CombiTimeTable.Test14,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_Tables_CombiTimeTable_Test14",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Tables.CombiTimeTable.Test14,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_Tables_CombiTimeTable_Test14",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.001358/0.001358, allocations: 112.8 kB / 17.78 MB, free: 5.277 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001045/0.001045, allocations: 180.9 kB / 18.71 MB, free: 4.363 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.434/1.434, allocations: 222.9 MB / 242.4 MB, free: 15.12 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.2884/0.2884, allocations: 44.18 MB / 336.7 MB, free: 2.68 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002108/0.002109, allocations: 67.89 kB / 470.1 MB, free: 13.6 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4592/0.4614, allocations: 60.83 MB / 0.5185 GB, free: 3.285 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Tables.CombiTimeTable.Test14): time 0.003412/0.4648, allocations: 2 MB / 0.5204 GB, free: 1.887 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.00149/0.4663, allocations: 0.9692 MB / 0.5214 GB, free: 1.215 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001023/0.4664, allocations: 5.188 kB / 0.5214 GB, free: 1.211 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003081/0.4668, allocations: 48.22 kB / 0.5214 GB, free: 1.184 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003032/0.4671, allocations: 71.73 kB / 0.5215 GB, free: 1.141 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004345/0.4675, allocations: 146.3 kB / 0.5217 GB, free: 1.062 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003257/0.4679, allocations: 199.8 kB / 0.5218 GB, free: 0.9727 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001373/0.468, allocations: 26.23 kB / 0.5219 GB, free: 0.9648 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001845/0.4682, allocations: 83.58 kB / 0.5219 GB, free: 0.9258 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001596/0.4684, allocations: 77.22 kB / 0.522 GB, free: 0.8867 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 4.373e-05/0.4684, allocations: 12.28 kB / 0.522 GB, free: 0.8867 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001665/0.4686, allocations: 53.78 kB / 0.5221 GB, free: 0.8711 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 9.771e-05/0.4687, allocations: 39.75 kB / 0.5221 GB, free: 0.8477 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001032/0.4688, allocations: 66.84 kB / 0.5222 GB, free: 0.8047 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003672/0.4692, allocations: 199.8 kB / 0.5224 GB, free: 0.7188 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.426e-06/0.4692, allocations: 1.312 kB / 0.5224 GB, free: 0.7188 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.383e-06/0.4692, allocations: 0 / 0.5224 GB, free: 0.7188 MB / 382.1 MB Notification: Performance of Transformations before backend: time 5.891e-06/0.4692, allocations: 0 / 0.5224 GB, free: 0.7188 MB / 382.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 17 * Number of variables: 17 Notification: Performance of Generate backend data structure: time 0.0008197/0.47, allocations: 0.5591 MB / 0.5229 GB, free: 208 kB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.775e-05/0.4701, allocations: 14.22 kB / 0.5229 GB, free: 204 kB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.991e-05/0.4701, allocations: 39.73 kB / 0.523 GB, free: 160 kB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.716e-05/0.4702, allocations: 21.41 kB / 0.523 GB, free: 148 kB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000382/0.4706, allocations: 247.2 kB / 0.5232 GB, free: 15.91 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.511e-05/0.4706, allocations: 5.203 kB / 0.5232 GB, free: 15.91 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.412e-05/0.4706, allocations: 13.28 kB / 0.5233 GB, free: 15.9 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004269/0.4711, allocations: 157.8 kB / 0.5234 GB, free: 15.81 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.104e-05/0.4711, allocations: 5.688 kB / 0.5234 GB, free: 15.8 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.507e-05/0.4711, allocations: 1.281 kB / 0.5234 GB, free: 15.8 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.729e-06/0.4711, allocations: 1.125 kB / 0.5234 GB, free: 15.8 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004514/0.4716, allocations: 117.4 kB / 0.5235 GB, free: 15.78 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006209/0.4722, allocations: 0.5429 MB / 0.5241 GB, free: 15.29 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000635/0.4729, allocations: 163.5 kB / 0.5242 GB, free: 15.23 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002552/0.4731, allocations: 74.27 kB / 0.5243 GB, free: 15.2 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.224e-05/0.4732, allocations: 2.594 kB / 0.5243 GB, free: 15.2 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003923/0.4736, allocations: 137 kB / 0.5244 GB, free: 15.13 MB / 398.1 MB Notification: Performance of pre-optimization done (n=12): time 1.724e-06/0.4736, allocations: 0 / 0.5244 GB, free: 15.13 MB / 398.1 MB Notification: Performance of matching and sorting (n=12): time 0.0008809/0.4745, allocations: 262.9 kB / 0.5247 GB, free: 15.04 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.808e-05/0.4745, allocations: 58.58 kB / 0.5247 GB, free: 14.98 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002367/0.4748, allocations: 228.1 kB / 0.5249 GB, free: 14.83 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 2.823e-05/0.4748, allocations: 31.75 kB / 0.525 GB, free: 14.8 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001165/0.4749, allocations: 126.9 kB / 0.5251 GB, free: 14.68 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.822e-05/0.475, allocations: 30.7 kB / 0.5251 GB, free: 14.66 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.13e-05/0.4751, allocations: 37.45 kB / 0.5252 GB, free: 14.63 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001357/0.4752, allocations: 330.6 kB / 0.5255 GB, free: 14.31 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002557/0.4755, allocations: 69.22 kB / 0.5255 GB, free: 14.29 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002792/0.4757, allocations: 102.8 kB / 0.5256 GB, free: 14.24 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005138/0.4763, allocations: 198.5 kB / 0.5258 GB, free: 14.12 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.244e-06/0.4763, allocations: 0 / 0.5258 GB, free: 14.12 MB / 398.1 MB Notification: Performance of matching and sorting (n=19) (initialization): time 0.0006642/0.477, allocations: 259.9 kB / 0.5261 GB, free: 14 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.995e-05/0.477, allocations: 33.61 kB / 0.5261 GB, free: 13.97 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.881e-06/0.477, allocations: 1.375 kB / 0.5261 GB, free: 13.97 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.823e-05/0.477, allocations: 7.344 kB / 0.5261 GB, free: 13.96 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000204/0.4772, allocations: 41.02 kB / 0.5261 GB, free: 13.96 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.839e-06/0.4773, allocations: 5.875 kB / 0.5262 GB, free: 13.95 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001853/0.4775, allocations: 32.58 kB / 0.5262 GB, free: 13.94 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.458e-05/0.4775, allocations: 6.016 kB / 0.5262 GB, free: 13.94 MB / 398.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 5 * Number of states: 0 () * Number of discrete variables: 11 ($PRE.t_new.nextTimeEvent,$whenCondition2,t_new.nextTimeEventScaled,$PRE.t_new.nextTimeEventScaled,t_new.nextTimeEvent,trapezoid1.count,$PRE.trapezoid1.count,trapezoid1.T_start,$PRE.trapezoid1.T_start,$whenCondition1,err1.local_reset) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (18): * Single equations (assignments): 17 * Array equations: 0 * Algorithm blocks: 1 * 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.0001331/0.4776, allocations: 136.4 kB / 0.5263 GB, free: 13.81 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.78e-05/0.4777, allocations: 16.91 kB / 0.5263 GB, free: 13.8 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.065e-05/0.4777, allocations: 21.81 kB / 0.5264 GB, free: 13.79 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.961e-06/0.4778, allocations: 5.312 kB / 0.5264 GB, free: 13.79 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.642e-06/0.4778, allocations: 4 kB / 0.5264 GB, free: 13.78 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.58e-06/0.4778, allocations: 0.6094 kB / 0.5264 GB, free: 13.78 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002837/0.4781, allocations: 235.6 kB / 0.5266 GB, free: 13.56 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.944e-06/0.4781, allocations: 3.938 kB / 0.5266 GB, free: 13.56 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001634/0.4782, allocations: 22.81 kB / 0.5266 GB, free: 13.56 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.645e-06/0.4783, allocations: 4.875 kB / 0.5266 GB, free: 13.55 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.142e-05/0.4783, allocations: 3.469 kB / 0.5266 GB, free: 13.55 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.868e-06/0.4783, allocations: 3.938 kB / 0.5266 GB, free: 13.55 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.535e-06/0.4783, allocations: 1.969 kB / 0.5266 GB, free: 13.55 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001084/0.4794, allocations: 303.8 kB / 0.5269 GB, free: 13.42 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.925e-05/0.4795, allocations: 98.78 kB / 0.527 GB, free: 13.31 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.909e-05/0.4795, allocations: 2.922 kB / 0.527 GB, free: 13.31 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001887/0.4797, allocations: 30.94 kB / 0.527 GB, free: 13.3 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001004/0.4799, allocations: 20.83 kB / 0.5271 GB, free: 13.29 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.75e-05/0.4799, allocations: 8.281 kB / 0.5271 GB, free: 13.29 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0002145/0.4801, allocations: 164.1 kB / 0.5272 GB, free: 13.19 MB / 398.1 MB Notification: Performance of sort global known variables: time 3.31e-07/0.4801, allocations: 0 / 0.5272 GB, free: 13.19 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0003091/0.4804, allocations: 34.31 kB / 0.5273 GB, free: 13.18 MB / 398.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 1 (err1.y) * Number of discrete variables: 6 ($whenCondition2,$whenCondition1,trapezoid1.T_start,trapezoid1.count,t_new.nextTimeEvent,t_new.nextTimeEventScaled) * Number of discrete states: 3 (trapezoid1.count,t_new.nextTimeEventScaled,t_new.nextTimeEvent) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (12): * Single equations (assignments): 8 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 4 * 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.00253/0.483, allocations: 1.145 MB / 0.5284 GB, free: 12.38 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.000674/0.4837, allocations: 221 kB / 0.5286 GB, free: 12.24 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 4.298e-06/0.4837, allocations: 1.375 kB / 0.5286 GB, free: 12.24 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002585/0.4839, allocations: 71.94 kB / 0.5287 GB, free: 12.21 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003611/0.4843, allocations: 59.89 kB / 0.5287 GB, free: 12.18 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003619/0.4879, allocations: 2.16 MB / 0.5308 GB, free: 10.46 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002936/0.4883, allocations: 0.7206 MB / 0.5315 GB, free: 9.746 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.0001197/0.4884, allocations: 25.69 kB / 0.5316 GB, free: 9.73 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.996e-05/0.4885, allocations: 51.08 kB / 0.5316 GB, free: 9.691 MB / 398.1 MB Notification: Performance of SimCode: time 6.02e-07/0.4885, allocations: 0 / 0.5316 GB, free: 9.691 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02588/0.5144, allocations: 4.963 MB / 0.5365 GB, free: 7.098 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.63/8.144, allocations: 8.203 kB / 0.5365 GB, free: 7.094 MB / 398.1 MB (rm -f ModelicaTest_4.0.0_ModelicaTest.Tables.CombiTimeTable.Test14.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.Tables.CombiTimeTable.Test14.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.Tables.CombiTimeTable.Test14.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.Tables.CombiTimeTable.Test14.sim & python3 -m fmpy simulate --output-file ModelicaTest_4.0.0_ModelicaTest.Tables.CombiTimeTable.Test14_res.csv --start-time 0 --stop-time 2 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0008 ModelicaTest_4_0_0_ModelicaTest_Tables_CombiTimeTable_Test14.fmu > ModelicaTest_4.0.0_ModelicaTest.Tables.CombiTimeTable.Test14.pipe 2>&1)