Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr MEV_MEV.Test.TestBellJarLinearControl.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 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/MEV 1.1.1/package.mo", uses=false) Using package MEV with version 1.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/MEV 1.1.1/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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(MEV.Test.TestBellJarLinearControl,fileNamePrefix="MEV_MEV_Test_TestBellJarLinearControl",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(MEV.Test.TestBellJarLinearControl,fileNamePrefix="MEV_MEV_Test_TestBellJarLinearControl",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.00169/0.00169, allocations: 108 kB / 15.6 MB, free: 132 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.002194/0.002194, allocations: 195.2 kB / 16.53 MB, free: 6.391 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.534/1.534, allocations: 205.1 MB / 222.4 MB, free: 4.586 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/MEV 1.1.1/package.mo): time 0.009984/0.009984, allocations: 1.932 MB / 271.7 MB, free: 3.352 MB / 222.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001447/0.001447, allocations: 67.91 kB / 329.9 MB, free: 32.72 MB / 254.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08434/0.0858, allocations: 47.13 MB / 377.1 MB, free: 1.531 MB / 270.1 MB Notification: Performance of NFInst.instantiate(MEV.Test.TestBellJarLinearControl): time 0.004997/0.09084, allocations: 3.672 MB / 380.7 MB, free: 13.83 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.00154/0.09241, allocations: 0.9046 MB / 381.7 MB, free: 12.92 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001827/0.0926, allocations: 8 kB / 381.7 MB, free: 12.91 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001954/0.09281, allocations: 67.3 kB / 381.7 MB, free: 12.85 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002744/0.0931, allocations: 150.7 kB / 381.9 MB, free: 12.7 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003336/0.09344, allocations: 123.8 kB / 382 MB, free: 12.58 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005031/0.09396, allocations: 0.5524 MB / 382.5 MB, free: 12.02 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002704/0.09424, allocations: 173.8 kB / 382.7 MB, free: 11.85 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002072/0.09445, allocations: 195.2 kB / 382.9 MB, free: 11.66 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002469/0.09471, allocations: 219 kB / 383.1 MB, free: 11.44 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 6.345e-05/0.09478, allocations: 48 kB / 383.2 MB, free: 11.39 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001558/0.09495, allocations: 63.92 kB / 383.2 MB, free: 11.33 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 8.26e-05/0.09505, allocations: 91.69 kB / 383.3 MB, free: 11.24 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002155/0.09527, allocations: 238.8 kB / 383.6 MB, free: 11.01 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004727/0.09575, allocations: 0.4945 MB / 384 MB, free: 10.51 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.346e-06/0.09576, allocations: 7.984 kB / 384.1 MB, free: 10.5 MB / 286.1 MB Notification: Performance of FrontEnd: time 2.985e-06/0.09577, allocations: 0 / 384.1 MB, free: 10.5 MB / 286.1 MB Notification: Performance of Transformations before backend: time 8.326e-06/0.09579, allocations: 3.938 kB / 384.1 MB, free: 10.5 MB / 286.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 89 * Number of variables: 89 Notification: Performance of Generate backend data structure: time 0.001287/0.09708, allocations: 0.7708 MB / 384.8 MB, free: 9.676 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.178e-05/0.09713, allocations: 11.89 kB / 384.8 MB, free: 9.664 MB / 286.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.051e-05/0.09721, allocations: 74.72 kB / 384.9 MB, free: 9.582 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.598e-05/0.0973, allocations: 48.38 kB / 385 MB, free: 9.535 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003824/0.09769, allocations: 331.2 kB / 385.3 MB, free: 9.172 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.056e-05/0.09773, allocations: 29.38 kB / 385.3 MB, free: 9.145 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.378e-05/0.0978, allocations: 43.94 kB / 385.4 MB, free: 9.102 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006136/0.09842, allocations: 326.5 kB / 385.7 MB, free: 8.777 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.888e-05/0.09845, allocations: 0 / 385.7 MB, free: 8.777 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.489e-05/0.09849, allocations: 12 kB / 385.7 MB, free: 8.766 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.446e-05/0.09851, allocations: 8 kB / 385.7 MB, free: 8.758 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005667/0.09908, allocations: 271.8 kB / 386 MB, free: 8.488 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001798/0.1009, allocations: 1.124 MB / 387.1 MB, free: 7.305 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005623/0.1015, allocations: 275.3 kB / 387.4 MB, free: 7.027 MB / 286.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002402/0.1017, allocations: 113.3 kB / 387.5 MB, free: 6.914 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.682e-05/0.1018, allocations: 12.22 kB / 387.5 MB, free: 6.902 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004257/0.1022, allocations: 171.7 kB / 387.6 MB, free: 6.723 MB / 286.1 MB Notification: Performance of pre-optimization done (n=29): time 2.294e-06/0.1022, allocations: 0 / 387.6 MB, free: 6.723 MB / 286.1 MB Notification: Performance of matching and sorting (n=34): time 0.002428/0.1046, allocations: 1.216 MB / 388.9 MB, free: 5.418 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.93e-05/0.1047, allocations: 55.41 kB / 388.9 MB, free: 5.352 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003468/0.1051, allocations: 345.6 kB / 389.2 MB, free: 5.008 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 3.482e-05/0.1051, allocations: 37.7 kB / 389.3 MB, free: 4.965 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001593/0.1053, allocations: 212.4 kB / 389.5 MB, free: 4.754 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.885e-05/0.1054, allocations: 114.3 kB / 389.6 MB, free: 4.641 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001185/0.1055, allocations: 77.97 kB / 389.7 MB, free: 4.555 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 0.0001704/0.1057, allocations: 346.8 kB / 390 MB, free: 4.207 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002714/0.106, allocations: 110.4 kB / 390.1 MB, free: 4.098 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002905/0.1063, allocations: 162.4 kB / 390.3 MB, free: 3.926 MB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005976/0.1069, allocations: 289 kB / 390.6 MB, free: 3.625 MB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.974e-06/0.1069, allocations: 7.938 kB / 390.6 MB, free: 3.617 MB / 286.1 MB Notification: Performance of matching and sorting (n=47) (initialization): time 0.0007787/0.1077, allocations: 398.7 kB / 391 MB, free: 3.215 MB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.191e-05/0.1077, allocations: 33.64 kB / 391 MB, free: 3.176 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.293e-06/0.1077, allocations: 0 / 391 MB, free: 3.176 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.101e-05/0.1078, allocations: 4 kB / 391 MB, free: 3.172 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004141/0.1082, allocations: 83.89 kB / 391.1 MB, free: 3.09 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.438e-05/0.1082, allocations: 7.938 kB / 391.1 MB, free: 3.082 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002494/0.1085, allocations: 24.08 kB / 391.1 MB, free: 3.059 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.924e-05/0.1085, allocations: 8 kB / 391.1 MB, free: 3.051 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0003757/0.1089, allocations: 228.9 kB / 391.3 MB, free: 2.824 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0002732/0.1092, allocations: 154.7 kB / 391.5 MB, free: 2.66 MB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.0004935/0.1097, allocations: 285.3 kB / 391.8 MB, free: 2.363 MB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 1.492e-06/0.1097, allocations: 0 / 391.8 MB, free: 2.363 MB / 286.1 MB Notification: Performance of matching and sorting (n=47) (initialization_lambda0): time 0.0006692/0.1104, allocations: 386.7 kB / 392.2 MB, free: 1.973 MB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.787e-05/0.1104, allocations: 33.7 kB / 392.2 MB, free: 1.934 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.344e-06/0.1104, allocations: 4.094 kB / 392.2 MB, free: 1.93 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 6.653e-06/0.1104, allocations: 4 kB / 392.2 MB, free: 1.926 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003343/0.1108, allocations: 87.83 kB / 392.3 MB, free: 1.84 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.156e-06/0.1108, allocations: 0 / 392.3 MB, free: 1.84 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002153/0.111, allocations: 19.92 kB / 392.3 MB, free: 1.82 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.422e-05/0.1111, allocations: 19.98 kB / 392.3 MB, free: 1.801 MB / 286.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 (opening.count,$PRE.opening.count,opening.T_start,$PRE.opening.T_start,$whenCondition1) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (46): * Single equations (assignments): 45 * 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.0001283/0.1112, allocations: 197.1 kB / 392.5 MB, free: 1.602 MB / 286.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.418e-05/0.1112, allocations: 39.53 kB / 392.6 MB, free: 1.562 MB / 286.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006561/0.1119, allocations: 325.3 kB / 392.9 MB, free: 1.238 MB / 286.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.587e-05/0.1119, allocations: 4 kB / 392.9 MB, free: 1.234 MB / 286.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.164e-06/0.1119, allocations: 3.938 kB / 392.9 MB, free: 1.23 MB / 286.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.332e-06/0.112, allocations: 7.984 kB / 392.9 MB, free: 1.223 MB / 286.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00127/0.1132, allocations: 0.8722 MB / 393.8 MB, free: 288 kB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.138e-06/0.1133, allocations: 4 kB / 393.8 MB, free: 284 kB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003645/0.1136, allocations: 83.88 kB / 393.8 MB, free: 200 kB / 286.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.55e-06/0.1136, allocations: 4 kB / 393.8 MB, free: 196 kB / 286.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.244e-05/0.1137, allocations: 8 kB / 393.9 MB, free: 188 kB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.008e-06/0.1137, allocations: 4 kB / 393.9 MB, free: 184 kB / 286.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.176e-06/0.1137, allocations: 4.125 kB / 393.9 MB, free: 180 kB / 286.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009311/0.1146, allocations: 0.5653 MB / 394.4 MB, free: 15.58 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001376/0.1148, allocations: 144.6 kB / 394.6 MB, free: 15.42 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.69e-05/0.1148, allocations: 8 kB / 394.6 MB, free: 15.41 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002492/0.1151, allocations: 23.97 kB / 394.6 MB, free: 15.39 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.801e-05/0.1152, allocations: 23.97 kB / 394.6 MB, free: 15.36 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.171e-05/0.1152, allocations: 12.09 kB / 394.6 MB, free: 15.35 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0002387/0.1155, allocations: 251.1 kB / 394.9 MB, free: 15.11 MB / 302.1 MB Notification: Performance of sort global known variables: time 2.01e-07/0.1155, allocations: 0 / 394.9 MB, free: 15.11 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0004967/0.116, allocations: 155.9 kB / 395 MB, free: 14.96 MB / 302.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * Number of states: 4 (controller.firstOrder.y,bellJar.cylinder.M,bellJar.damper.s_rel,bellJar.damper.v_rel) * Number of discrete variables: 3 ($whenCondition1,opening.T_start,opening.count) * Number of discrete states: 1 (opening.count) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (35): * Single equations (assignments): 33 * 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.001235/0.1172, allocations: 1.106 MB / 396.1 MB, free: 13.81 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.001025/0.1183, allocations: 0.5619 MB / 396.7 MB, free: 13.22 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 3.126e-06/0.1183, allocations: 0 / 396.7 MB, free: 13.22 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002895/0.1186, allocations: 152.7 kB / 396.8 MB, free: 13.07 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005587/0.1191, allocations: 63.06 kB / 396.9 MB, free: 13.02 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005237/0.1244, allocations: 3.794 MB / 400.7 MB, free: 9.102 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003956/0.1248, allocations: 0.8118 MB / 401.5 MB, free: 8.266 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0002277/0.1251, allocations: 46.94 kB / 401.6 MB, free: 8.219 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001838/0.1252, allocations: 127.4 kB / 401.7 MB, free: 8.094 MB / 302.1 MB Notification: Performance of SimCode: time 5.41e-07/0.1252, allocations: 0 / 401.7 MB, free: 8.094 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02813/0.1534, allocations: 7.778 MB / 409.5 MB, free: 256 kB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.789/7.942, allocations: 19.7 kB / 409.5 MB, free: 236 kB / 302.1 MB (rm -f MEV_MEV.Test.TestBellJarLinearControl.pipe ; mkfifo MEV_MEV.Test.TestBellJarLinearControl.pipe ; head -c 1048576 < MEV_MEV.Test.TestBellJarLinearControl.pipe >> ../files/MEV_MEV.Test.TestBellJarLinearControl.sim & python3 -m fmpy simulate --output-file MEV_MEV.Test.TestBellJarLinearControl_res.csv --start-time 0 --stop-time 100 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.2 MEV_MEV_Test_TestBellJarLinearControl.fmu > MEV_MEV.Test.TestBellJarLinearControl.pipe 2>&1)