Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr MEV_MEV.Test.TestPatientController2.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.TestPatientController2,fileNamePrefix="MEV_MEV_Test_TestPatientController2",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(MEV.Test.TestPatientController2,fileNamePrefix="MEV_MEV_Test_TestPatientController2",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.001226/0.001226, allocations: 103.4 kB / 15.33 MB, free: 0.5078 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.001234/0.001234, allocations: 191.8 kB / 16.25 MB, free: 6.621 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.299/1.299, allocations: 205.1 MB / 222.1 MB, free: 4.637 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/MEV 1.1.1/package.mo): time 0.009597/0.009596, allocations: 1.931 MB / 271.4 MB, free: 3.371 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.001385/0.001385, allocations: 67.91 kB / 329.4 MB, free: 33.04 MB / 254.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08143/0.08283, allocations: 47.14 MB / 376.6 MB, free: 1.855 MB / 270.1 MB Notification: Performance of NFInst.instantiate(MEV.Test.TestPatientController2): time 0.002971/0.08585, allocations: 1.576 MB / 378.2 MB, free: 264 kB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.00117/0.08704, allocations: 0.7383 MB / 378.9 MB, free: 15.51 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 6.135e-05/0.08712, allocations: 0 / 378.9 MB, free: 15.51 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001521/0.08729, allocations: 67.84 kB / 379 MB, free: 15.45 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000112/0.08741, allocations: 67.77 kB / 379 MB, free: 15.38 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005125/0.08793, allocations: 155.7 kB / 379.2 MB, free: 15.23 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002174/0.08816, allocations: 159.7 kB / 379.3 MB, free: 15.07 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001008/0.08826, allocations: 15.98 kB / 379.4 MB, free: 15.05 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000152/0.08842, allocations: 83.73 kB / 379.4 MB, free: 14.97 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001704/0.0886, allocations: 115.7 kB / 379.6 MB, free: 14.86 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 2.857e-05/0.08863, allocations: 12 kB / 379.6 MB, free: 14.85 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002371/0.08888, allocations: 155.8 kB / 379.7 MB, free: 14.7 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 7.397e-05/0.08896, allocations: 35.89 kB / 379.7 MB, free: 14.66 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 9.144e-05/0.08906, allocations: 71.53 kB / 379.8 MB, free: 14.59 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002886/0.08935, allocations: 235.6 kB / 380 MB, free: 14.36 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.089e-06/0.08937, allocations: 0 / 380 MB, free: 14.36 MB / 286.1 MB Notification: Performance of FrontEnd: time 1.422e-06/0.08937, allocations: 0 / 380 MB, free: 14.36 MB / 286.1 MB Notification: Performance of Transformations before backend: time 9.958e-06/0.08939, allocations: 0 / 380 MB, free: 14.36 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: 20 * Number of variables: 20 Notification: Performance of Generate backend data structure: time 0.0007713/0.09016, allocations: 0.5294 MB / 380.6 MB, free: 13.77 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.599e-05/0.09021, allocations: 11.89 kB / 380.6 MB, free: 13.76 MB / 286.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.203e-05/0.09025, allocations: 42.73 kB / 380.6 MB, free: 13.71 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.909e-05/0.09031, allocations: 16.75 kB / 380.6 MB, free: 13.69 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002227/0.09054, allocations: 220 kB / 380.9 MB, free: 13.44 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.386e-05/0.0906, allocations: 38.25 kB / 380.9 MB, free: 13.39 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.171e-05/0.09063, allocations: 8.375 kB / 380.9 MB, free: 13.39 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002641/0.0909, allocations: 143.4 kB / 381 MB, free: 13.24 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.895e-06/0.09091, allocations: 0 / 381 MB, free: 13.24 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.683e-05/0.09094, allocations: 4 kB / 381.1 MB, free: 13.24 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.979e-06/0.09095, allocations: 0 / 381.1 MB, free: 13.24 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001865/0.09114, allocations: 99.88 kB / 381.2 MB, free: 13.14 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005172/0.09166, allocations: 376.5 kB / 381.5 MB, free: 12.72 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002542/0.09193, allocations: 142.6 kB / 381.7 MB, free: 12.57 MB / 286.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001498/0.09209, allocations: 105 kB / 381.8 MB, free: 12.47 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 9.067e-06/0.09211, allocations: 0 / 381.8 MB, free: 12.47 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003561/0.09247, allocations: 234.6 kB / 382 MB, free: 12.21 MB / 286.1 MB Notification: Performance of pre-optimization done (n=23): time 1.533e-06/0.09248, allocations: 0 / 382 MB, free: 12.21 MB / 286.1 MB Notification: Performance of matching and sorting (n=23): time 0.0007172/0.0932, allocations: 478.8 kB / 382.5 MB, free: 11.73 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.348e-05/0.09328, allocations: 118.8 kB / 382.6 MB, free: 11.59 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001597/0.09345, allocations: 198.7 kB / 382.8 MB, free: 11.39 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 2.578e-05/0.09348, allocations: 33.7 kB / 382.8 MB, free: 11.35 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.716e-05/0.09355, allocations: 112.5 kB / 382.9 MB, free: 11.23 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.069e-05/0.09361, allocations: 51.34 kB / 383 MB, free: 11.18 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.851e-05/0.09368, allocations: 45.7 kB / 383 MB, free: 11.13 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 0.0001216/0.09381, allocations: 338.8 kB / 383.3 MB, free: 10.79 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001449/0.09396, allocations: 92.12 kB / 383.4 MB, free: 10.7 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001333/0.0941, allocations: 88.44 kB / 383.5 MB, free: 10.62 MB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003233/0.09444, allocations: 296.8 kB / 383.8 MB, free: 10.3 MB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.567e-06/0.09445, allocations: 4 kB / 383.8 MB, free: 10.3 MB / 286.1 MB Notification: Performance of matching and sorting (n=28) (initialization): time 0.0004861/0.09494, allocations: 398.3 kB / 384.2 MB, free: 9.891 MB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.828e-05/0.09501, allocations: 74.36 kB / 384.3 MB, free: 9.809 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.258e-06/0.09502, allocations: 0 / 384.3 MB, free: 9.809 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.256e-05/0.09504, allocations: 0 / 384.3 MB, free: 9.809 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001074/0.09515, allocations: 19.92 kB / 384.3 MB, free: 9.789 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.794e-06/0.09517, allocations: 7.938 kB / 384.3 MB, free: 9.781 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001381/0.09531, allocations: 23.83 kB / 384.3 MB, free: 9.758 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.104e-05/0.09534, allocations: 8 kB / 384.3 MB, free: 9.75 MB / 286.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 23 (dutyCycle.nextEventScaled,dutyCycle.nextEvent,$PRE.dutyCycle.nextEvent,dutyCycle.last,dutyCycle.b,dutyCycle.a,RR.nextEventScaled,RR.nextEvent,$PRE.RR.nextEvent,RR.last,RR.b,RR.a,patientController.active,$PRE.patientController.active,patientController.t_off,$PRE.patientController.t_off,patientController.t_on,$PRE.patientController.t_on,$whenCondition5,$whenCondition4,$whenCondition2,$whenCondition1,$whenCondition3) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (18): * Single equations (assignments): 16 * Array equations: 0 * Algorithm blocks: 2 * 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.000171/0.09552, allocations: 222.9 kB / 384.5 MB, free: 9.508 MB / 286.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.486e-05/0.09556, allocations: 23.8 kB / 384.6 MB, free: 9.484 MB / 286.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.609e-05/0.0956, allocations: 17.88 kB / 384.6 MB, free: 9.469 MB / 286.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.537e-06/0.09561, allocations: 4 kB / 384.6 MB, free: 9.465 MB / 286.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.298e-06/0.09562, allocations: 0 / 384.6 MB, free: 9.465 MB / 286.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.815e-06/0.09562, allocations: 0 / 384.6 MB, free: 9.465 MB / 286.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002116/0.09584, allocations: 257.4 kB / 384.8 MB, free: 9.164 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.473e-06/0.09585, allocations: 3.938 kB / 384.8 MB, free: 9.16 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.686e-05/0.09591, allocations: 15.98 kB / 384.9 MB, free: 9.145 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.663e-06/0.09592, allocations: 0 / 384.9 MB, free: 9.145 MB / 286.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.241e-05/0.09595, allocations: 12 kB / 384.9 MB, free: 9.133 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.462e-06/0.09596, allocations: 0 / 384.9 MB, free: 9.133 MB / 286.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.81e-07/0.09596, allocations: 4 kB / 384.9 MB, free: 9.129 MB / 286.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005914/0.09656, allocations: 464.4 kB / 385.3 MB, free: 8.645 MB / 286.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.479e-05/0.09662, allocations: 96.86 kB / 385.4 MB, free: 8.531 MB / 286.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.199e-05/0.09666, allocations: 8 kB / 385.4 MB, free: 8.523 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001035/0.09677, allocations: 11.98 kB / 385.4 MB, free: 8.512 MB / 286.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.418e-05/0.09685, allocations: 27.97 kB / 385.5 MB, free: 8.484 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.59e-05/0.09689, allocations: 11.94 kB / 385.5 MB, free: 8.473 MB / 286.1 MB Notification: Performance of sorting global known variables: time 9.921e-05/0.09699, allocations: 148.2 kB / 385.6 MB, free: 8.328 MB / 286.1 MB Notification: Performance of sort global known variables: time 1.81e-07/0.097, allocations: 0 / 385.6 MB, free: 8.328 MB / 286.1 MB Notification: Performance of remove unused functions: time 0.0002969/0.0973, allocations: 83.92 kB / 385.7 MB, free: 8.246 MB / 286.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 18 ($whenCondition3,$whenCondition1,$whenCondition2,$whenCondition4,$whenCondition5,patientController.t_on,patientController.t_off,patientController.active,RR.a,RR.b,RR.last,RR.nextEvent,RR.nextEventScaled,dutyCycle.a,dutyCycle.b,dutyCycle.last,dutyCycle.nextEvent,dutyCycle.nextEventScaled) * Number of discrete states: 14 (dutyCycle.nextEvent,dutyCycle.last,dutyCycle.nextEventScaled,dutyCycle.b,dutyCycle.a,$whenCondition4,RR.nextEvent,RR.last,RR.nextEventScaled,RR.b,RR.a,$whenCondition5,patientController.active,patientController.t_on) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (13): * Single equations (assignments): 8 * Array equations: 0 * Algorithm blocks: 2 * Record equations: 0 * When equations: 3 * 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.0009465/0.09825, allocations: 1.037 MB / 386.7 MB, free: 7.168 MB / 286.1 MB Notification: Performance of simCode: created initialization part: time 0.0005191/0.09879, allocations: 414.5 kB / 387.1 MB, free: 6.738 MB / 286.1 MB Notification: Performance of simCode: created event and clocks part: time 1.803e-06/0.0988, allocations: 0 / 387.1 MB, free: 6.738 MB / 286.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002768/0.09908, allocations: 290.7 kB / 387.4 MB, free: 6.43 MB / 286.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002291/0.09932, allocations: 20 kB / 387.5 MB, free: 6.41 MB / 286.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002674/0.102, allocations: 2.525 MB / 390 MB, free: 3.793 MB / 286.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000278/0.1023, allocations: 0.7278 MB / 390.7 MB, free: 3.039 MB / 286.1 MB Notification: Performance of simCode: alias equations: time 4.42e-05/0.1023, allocations: 8.547 kB / 390.7 MB, free: 3.031 MB / 286.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.92e-05/0.1024, allocations: 51.36 kB / 390.8 MB, free: 2.98 MB / 286.1 MB Notification: Performance of SimCode: time 2.41e-07/0.1024, allocations: 0 / 390.8 MB, free: 2.98 MB / 286.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01379/0.1162, allocations: 4.306 MB / 395.1 MB, free: 14.65 MB / 302.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001684/0.1164, allocations: 176.4 kB / 395.2 MB, free: 14.38 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.762/1.879, allocations: 4.062 kB / 395.2 MB, free: 14.38 MB / 302.1 MB (rm -f MEV_MEV.Test.TestPatientController2.pipe ; mkfifo MEV_MEV.Test.TestPatientController2.pipe ; head -c 1048576 < MEV_MEV.Test.TestPatientController2.pipe >> ../files/MEV_MEV.Test.TestPatientController2.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_MEV_MEV_Test_TestPatientController2_fmu --startTime=0 --stopTime=100 --timeout=50 --tolerance=1e-06 MEV_MEV_Test_TestPatientController2.fmu > MEV_MEV.Test.TestPatientController2.pipe 2>&1)