Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr MEV_MEV.Test.TestPatientController1.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.TestPatientController1,fileNamePrefix="MEV_MEV_Test_TestPatientController1",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(MEV.Test.TestPatientController1,fileNamePrefix="MEV_MEV_Test_TestPatientController1",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.001031/0.001031, 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.001024/0.001024, allocations: 200.4 kB / 16.26 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.343/1.343, allocations: 205.1 MB / 222.1 MB, free: 4.695 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/MEV 1.1.1/package.mo): time 0.009365/0.009365, allocations: 1.924 MB / 271.4 MB, free: 3.508 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.001414/0.001414, allocations: 83.77 kB / 329.4 MB, free: 33.04 MB / 254.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0827/0.08412, allocations: 47.13 MB / 376.6 MB, free: 1.875 MB / 270.1 MB Notification: Performance of NFInst.instantiate(MEV.Test.TestPatientController1): time 0.002603/0.08677, allocations: 1.58 MB / 378.2 MB, free: 280 kB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.001143/0.08792, allocations: 0.7422 MB / 378.9 MB, free: 15.52 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 6.154e-05/0.088, allocations: 0 / 378.9 MB, free: 15.52 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001401/0.08815, allocations: 55.86 kB / 379 MB, free: 15.47 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 9.985e-05/0.08827, allocations: 55.84 kB / 379 MB, free: 15.41 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005742/0.08885, allocations: 155.7 kB / 379.2 MB, free: 15.26 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002057/0.08906, allocations: 159.7 kB / 379.3 MB, free: 15.11 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001091/0.08918, allocations: 15.98 kB / 379.3 MB, free: 15.09 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001081/0.08929, allocations: 79.73 kB / 379.4 MB, free: 15.01 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001568/0.08946, allocations: 107.7 kB / 379.5 MB, free: 14.91 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 2.623e-05/0.08949, allocations: 12 kB / 379.5 MB, free: 14.89 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002037/0.0897, allocations: 147.9 kB / 379.7 MB, free: 14.75 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 6.837e-05/0.08978, allocations: 31.91 kB / 379.7 MB, free: 14.72 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 8.911e-05/0.08987, allocations: 71.58 kB / 379.8 MB, free: 14.65 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000295/0.09017, allocations: 223.7 kB / 380 MB, free: 14.43 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.068e-06/0.09019, allocations: 3.938 kB / 380 MB, free: 14.43 MB / 286.1 MB Notification: Performance of FrontEnd: time 1.562e-06/0.0902, allocations: 4 kB / 380 MB, free: 14.42 MB / 286.1 MB Notification: Performance of Transformations before backend: time 8.395e-06/0.09021, allocations: 4 kB / 380 MB, free: 14.42 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.0008024/0.09102, allocations: 0.5177 MB / 380.5 MB, free: 13.84 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.859e-05/0.09106, allocations: 11.89 kB / 380.5 MB, free: 13.83 MB / 286.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.281e-05/0.09111, allocations: 46.67 kB / 380.6 MB, free: 13.77 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.45e-05/0.09117, allocations: 20.75 kB / 380.6 MB, free: 13.75 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002363/0.09142, allocations: 212.7 kB / 380.8 MB, free: 13.51 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.773e-05/0.09148, allocations: 34.27 kB / 380.8 MB, free: 13.47 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.405e-05/0.09152, allocations: 16.38 kB / 380.9 MB, free: 13.45 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000267/0.09179, allocations: 137.5 kB / 381 MB, free: 13.31 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.845e-06/0.09181, allocations: 0 / 381 MB, free: 13.31 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.906e-05/0.09184, allocations: 4 kB / 381 MB, free: 13.31 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.769e-06/0.09185, allocations: 3.938 kB / 381 MB, free: 13.3 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001905/0.09204, allocations: 91.94 kB / 381.1 MB, free: 13.21 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000508/0.09256, allocations: 364.6 kB / 381.4 MB, free: 12.81 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002575/0.09283, allocations: 142.5 kB / 381.6 MB, free: 12.66 MB / 286.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001416/0.09298, allocations: 96.83 kB / 381.7 MB, free: 12.56 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.009e-05/0.093, allocations: 0 / 381.7 MB, free: 12.56 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003672/0.09337, allocations: 238.7 kB / 381.9 MB, free: 12.3 MB / 286.1 MB Notification: Performance of pre-optimization done (n=23): time 1.473e-06/0.09338, allocations: 0 / 381.9 MB, free: 12.3 MB / 286.1 MB Notification: Performance of matching and sorting (n=23): time 0.000725/0.09411, allocations: 458.8 kB / 382.4 MB, free: 11.84 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.063e-05/0.09419, allocations: 118.8 kB / 382.5 MB, free: 11.7 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00016/0.09436, allocations: 183.3 kB / 382.7 MB, free: 11.51 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 2.559e-05/0.09439, allocations: 29.7 kB / 382.7 MB, free: 11.48 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.042e-05/0.09447, allocations: 112.6 kB / 382.8 MB, free: 11.36 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.425e-05/0.09453, allocations: 59.19 kB / 382.9 MB, free: 11.3 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.296e-05/0.09461, allocations: 45.7 kB / 382.9 MB, free: 11.25 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 0.0001123/0.09473, allocations: 330.8 kB / 383.2 MB, free: 10.92 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001594/0.09489, allocations: 84.19 kB / 383.3 MB, free: 10.84 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001388/0.09504, allocations: 92.36 kB / 383.4 MB, free: 10.75 MB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000331/0.09538, allocations: 293.7 kB / 383.7 MB, free: 10.44 MB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.295e-06/0.09539, allocations: 0 / 383.7 MB, free: 10.44 MB / 286.1 MB Notification: Performance of matching and sorting (n=28) (initialization): time 0.00048/0.09588, allocations: 380.9 kB / 384.1 MB, free: 10.05 MB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.917e-05/0.09595, allocations: 70.36 kB / 384.1 MB, free: 9.969 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.053e-06/0.09596, allocations: 4 kB / 384.1 MB, free: 9.965 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.3e-05/0.09598, allocations: 0 / 384.1 MB, free: 9.965 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001076/0.09609, allocations: 19.98 kB / 384.1 MB, free: 9.945 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.11e-06/0.0961, allocations: 0 / 384.1 MB, free: 9.945 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001168/0.09622, allocations: 15.98 kB / 384.2 MB, free: 9.93 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.144e-05/0.09625, allocations: 8 kB / 384.2 MB, free: 9.922 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.0001733/0.09643, allocations: 226.8 kB / 384.4 MB, free: 9.676 MB / 286.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.438e-05/0.09647, allocations: 23.72 kB / 384.4 MB, free: 9.652 MB / 286.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.609e-05/0.09652, allocations: 17.86 kB / 384.4 MB, free: 9.637 MB / 286.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.456e-06/0.09652, allocations: 4 kB / 384.4 MB, free: 9.633 MB / 286.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.847e-06/0.09653, allocations: 3.938 kB / 384.4 MB, free: 9.629 MB / 286.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.256e-06/0.09654, allocations: 0 / 384.4 MB, free: 9.629 MB / 286.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002086/0.09675, allocations: 253.4 kB / 384.7 MB, free: 9.332 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.252e-06/0.09676, allocations: 0 / 384.7 MB, free: 9.332 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.066e-05/0.09682, allocations: 8 kB / 384.7 MB, free: 9.324 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.944e-06/0.09683, allocations: 4 kB / 384.7 MB, free: 9.32 MB / 286.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.619e-05/0.09686, allocations: 15.98 kB / 384.7 MB, free: 9.305 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.382e-06/0.09687, allocations: 0 / 384.7 MB, free: 9.305 MB / 286.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.404e-06/0.09687, allocations: 3.938 kB / 384.7 MB, free: 9.301 MB / 286.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005839/0.09746, allocations: 456.4 kB / 385.2 MB, free: 8.824 MB / 286.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.799e-05/0.09753, allocations: 92.86 kB / 385.3 MB, free: 8.715 MB / 286.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.361e-05/0.09758, allocations: 19.92 kB / 385.3 MB, free: 8.695 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001043/0.09769, allocations: 15.98 kB / 385.3 MB, free: 8.68 MB / 286.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.411e-05/0.09777, allocations: 15.98 kB / 385.3 MB, free: 8.664 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.967e-05/0.0978, allocations: 12 kB / 385.3 MB, free: 8.652 MB / 286.1 MB Notification: Performance of sorting global known variables: time 0.0001067/0.09791, allocations: 135.2 kB / 385.4 MB, free: 8.52 MB / 286.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.09792, allocations: 0 / 385.4 MB, free: 8.52 MB / 286.1 MB Notification: Performance of remove unused functions: time 0.000301/0.09823, allocations: 83.92 kB / 385.5 MB, free: 8.438 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.001/0.09923, allocations: 1.034 MB / 386.6 MB, free: 7.363 MB / 286.1 MB Notification: Performance of simCode: created initialization part: time 0.0005315/0.09978, allocations: 402.5 kB / 387 MB, free: 6.945 MB / 286.1 MB Notification: Performance of simCode: created event and clocks part: time 1.974e-06/0.09979, allocations: 0 / 387 MB, free: 6.945 MB / 286.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002873/0.1001, allocations: 287.1 kB / 387.2 MB, free: 6.641 MB / 286.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002324/0.1003, allocations: 19.98 kB / 387.3 MB, free: 6.621 MB / 286.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002754/0.1031, allocations: 2.446 MB / 389.7 MB, free: 4.086 MB / 286.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002856/0.1034, allocations: 0.716 MB / 390.4 MB, free: 3.344 MB / 286.1 MB Notification: Performance of simCode: alias equations: time 4.887e-05/0.1034, allocations: 8.547 kB / 390.4 MB, free: 3.336 MB / 286.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.648e-05/0.1035, allocations: 47.36 kB / 390.5 MB, free: 3.289 MB / 286.1 MB Notification: Performance of SimCode: time 2.6e-07/0.1035, allocations: 0 / 390.5 MB, free: 3.289 MB / 286.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01515/0.1187, allocations: 4.2 MB / 394.7 MB, free: 15.06 MB / 302.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002146/0.1189, allocations: 168.5 kB / 394.8 MB, free: 14.8 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.815/1.934, allocations: 0 / 394.8 MB, free: 14.8 MB / 302.1 MB (rm -f MEV_MEV.Test.TestPatientController1.pipe ; mkfifo MEV_MEV.Test.TestPatientController1.pipe ; head -c 1048576 < MEV_MEV.Test.TestPatientController1.pipe >> ../files/MEV_MEV.Test.TestPatientController1.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_MEV_MEV_Test_TestPatientController1_fmu --startTime=0 --stopTime=100 --timeout=50 --tolerance=1e-06 MEV_MEV_Test_TestPatientController1.fmu > MEV_MEV.Test.TestPatientController1.pipe 2>&1)