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.001326/0.001326, allocations: 111.3 kB / 15.23 MB, free: 0.6406 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.00124/0.00124, allocations: 197.8 kB / 16.14 MB, free: 6.695 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.426/1.426, allocations: 205.1 MB / 222 MB, free: 4.766 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/MEV 1.1.1/package.mo): time 0.008248/0.008249, allocations: 1.928 MB / 271.3 MB, free: 3.551 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.001347/0.001347, allocations: 71.91 kB / 329.3 MB, free: 33.15 MB / 254.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0754/0.07676, allocations: 47.13 MB / 376.4 MB, free: 1.973 MB / 270.1 MB Notification: Performance of NFInst.instantiate(MEV.Test.TestPatientController1): time 0.002771/0.07957, allocations: 1.58 MB / 378 MB, free: 380 kB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.001301/0.08089, allocations: 0.7851 MB / 378.8 MB, free: 15.58 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.337e-05/0.08098, allocations: 3.938 kB / 378.8 MB, free: 15.57 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001541/0.08114, allocations: 55.91 kB / 378.8 MB, free: 15.52 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001977/0.08136, allocations: 59.8 kB / 378.9 MB, free: 15.46 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004938/0.08186, allocations: 127.8 kB / 379 MB, free: 15.34 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001633/0.08203, allocations: 143.6 kB / 379.1 MB, free: 15.2 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001061/0.08215, allocations: 12 kB / 379.2 MB, free: 15.18 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001038/0.08226, allocations: 71.8 kB / 379.2 MB, free: 15.11 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001607/0.08243, allocations: 99.7 kB / 379.3 MB, free: 15.02 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 2.662e-05/0.08246, allocations: 4 kB / 379.3 MB, free: 15.01 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002007/0.08267, allocations: 151.8 kB / 379.5 MB, free: 14.86 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 6.997e-05/0.08275, allocations: 27.91 kB / 379.5 MB, free: 14.84 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001008/0.08285, allocations: 71.58 kB / 379.6 MB, free: 14.77 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002778/0.08314, allocations: 219.7 kB / 379.8 MB, free: 14.55 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.078e-06/0.08315, allocations: 0 / 379.8 MB, free: 14.55 MB / 286.1 MB Notification: Performance of FrontEnd: time 1.062e-06/0.08316, allocations: 0 / 379.8 MB, free: 14.55 MB / 286.1 MB Notification: Performance of Transformations before backend: time 4.438e-06/0.08317, allocations: 4 kB / 379.8 MB, free: 14.55 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.0008688/0.08404, allocations: 0.5178 MB / 380.3 MB, free: 13.97 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.582e-05/0.0841, allocations: 12.03 kB / 380.3 MB, free: 13.96 MB / 286.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.372e-05/0.08416, allocations: 42.73 kB / 380.4 MB, free: 13.91 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.859e-05/0.08423, allocations: 16.75 kB / 380.4 MB, free: 13.89 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002623/0.0845, allocations: 216.7 kB / 380.6 MB, free: 13.64 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.645e-05/0.08457, allocations: 42.27 kB / 380.6 MB, free: 13.59 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.215e-05/0.0846, allocations: 4.375 kB / 380.6 MB, free: 13.59 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002884/0.08489, allocations: 141.5 kB / 380.8 MB, free: 13.45 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.037e-06/0.08491, allocations: 0 / 380.8 MB, free: 13.45 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.664e-05/0.08493, allocations: 0 / 380.8 MB, free: 13.45 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.925e-06/0.08495, allocations: 4 kB / 380.8 MB, free: 13.44 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000202/0.08515, allocations: 95.86 kB / 380.9 MB, free: 13.35 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005578/0.08572, allocations: 364.6 kB / 381.2 MB, free: 12.94 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002711/0.08601, allocations: 146.5 kB / 381.4 MB, free: 12.79 MB / 286.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00015/0.08617, allocations: 92.83 kB / 381.5 MB, free: 12.7 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.894e-05/0.08619, allocations: 8.031 kB / 381.5 MB, free: 12.69 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004056/0.0866, allocations: 238.7 kB / 381.7 MB, free: 12.43 MB / 286.1 MB Notification: Performance of pre-optimization done (n=23): time 1.562e-06/0.08662, allocations: 0 / 381.7 MB, free: 12.43 MB / 286.1 MB Notification: Performance of matching and sorting (n=23): time 0.000762/0.08738, allocations: 455 kB / 382.1 MB, free: 11.97 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.479e-05/0.08747, allocations: 118.7 kB / 382.3 MB, free: 11.83 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001525/0.08763, allocations: 183.3 kB / 382.4 MB, free: 11.64 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 3.035e-05/0.08767, allocations: 33.7 kB / 382.5 MB, free: 11.6 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.797e-05/0.08774, allocations: 108.6 kB / 382.6 MB, free: 11.49 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.61e-05/0.0878, allocations: 67.12 kB / 382.6 MB, free: 11.43 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.154e-05/0.08788, allocations: 41.7 kB / 382.7 MB, free: 11.38 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 0.0001323/0.08802, allocations: 334.8 kB / 383 MB, free: 11.04 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001499/0.08817, allocations: 80.19 kB / 383.1 MB, free: 10.96 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001394/0.08832, allocations: 92.42 kB / 383.2 MB, free: 10.88 MB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003255/0.08866, allocations: 289.7 kB / 383.5 MB, free: 10.57 MB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.274e-06/0.08867, allocations: 4 kB / 383.5 MB, free: 10.56 MB / 286.1 MB Notification: Performance of matching and sorting (n=28) (initialization): time 0.0004834/0.08916, allocations: 376.9 kB / 383.8 MB, free: 10.18 MB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.42e-05/0.08922, allocations: 74.36 kB / 383.9 MB, free: 10.09 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.488e-06/0.08923, allocations: 3.938 kB / 383.9 MB, free: 10.09 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.405e-05/0.08925, allocations: 0 / 383.9 MB, free: 10.09 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001078/0.08937, allocations: 23.98 kB / 383.9 MB, free: 10.07 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.53e-06/0.08938, allocations: 0 / 383.9 MB, free: 10.07 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001164/0.0895, allocations: 11.98 kB / 383.9 MB, free: 10.05 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.585e-05/0.08953, allocations: 8 kB / 384 MB, free: 10.05 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.0001661/0.08971, allocations: 222.8 kB / 384.2 MB, free: 9.805 MB / 286.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.703e-05/0.08975, allocations: 23.72 kB / 384.2 MB, free: 9.781 MB / 286.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.709e-05/0.0898, allocations: 21.86 kB / 384.2 MB, free: 9.762 MB / 286.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.264e-06/0.0898, allocations: 0 / 384.2 MB, free: 9.762 MB / 286.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.28e-06/0.08981, allocations: 0 / 384.2 MB, free: 9.762 MB / 286.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.556e-06/0.08982, allocations: 0 / 384.2 MB, free: 9.762 MB / 286.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002039/0.09003, allocations: 253.4 kB / 384.5 MB, free: 9.465 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.045e-06/0.09004, allocations: 4 kB / 384.5 MB, free: 9.461 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.3e-05/0.0901, allocations: 8 kB / 384.5 MB, free: 9.453 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.923e-06/0.09011, allocations: 4 kB / 384.5 MB, free: 9.449 MB / 286.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.396e-05/0.09014, allocations: 11.98 kB / 384.5 MB, free: 9.438 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.543e-06/0.09015, allocations: 0 / 384.5 MB, free: 9.438 MB / 286.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.52e-07/0.09015, allocations: 0 / 384.5 MB, free: 9.438 MB / 286.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006253/0.09078, allocations: 460.4 kB / 384.9 MB, free: 8.957 MB / 286.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.407e-05/0.09085, allocations: 92.86 kB / 385 MB, free: 8.848 MB / 286.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.599e-05/0.0909, allocations: 15.98 kB / 385 MB, free: 8.832 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001052/0.09102, allocations: 19.92 kB / 385.1 MB, free: 8.812 MB / 286.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.6e-05/0.09109, allocations: 11.98 kB / 385.1 MB, free: 8.801 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.218e-05/0.09113, allocations: 15.98 kB / 385.1 MB, free: 8.785 MB / 286.1 MB Notification: Performance of sorting global known variables: time 0.0001035/0.09124, allocations: 131.2 kB / 385.2 MB, free: 8.656 MB / 286.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.09125, allocations: 0 / 385.2 MB, free: 8.656 MB / 286.1 MB Notification: Performance of remove unused functions: time 0.0002987/0.09155, allocations: 87.92 kB / 385.3 MB, free: 8.57 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.001016/0.09257, allocations: 1.041 MB / 386.3 MB, free: 7.488 MB / 286.1 MB Notification: Performance of simCode: created initialization part: time 0.0005237/0.09311, allocations: 394.6 kB / 386.7 MB, free: 7.078 MB / 286.1 MB Notification: Performance of simCode: created event and clocks part: time 2.745e-06/0.09312, allocations: 0 / 386.7 MB, free: 7.078 MB / 286.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000285/0.09341, allocations: 282.7 kB / 387 MB, free: 6.777 MB / 286.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002522/0.09367, allocations: 23.98 kB / 387 MB, free: 6.754 MB / 286.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002663/0.09635, allocations: 2.442 MB / 389.5 MB, free: 4.223 MB / 286.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002741/0.09663, allocations: 0.7235 MB / 390.2 MB, free: 3.473 MB / 286.1 MB Notification: Performance of simCode: alias equations: time 4.782e-05/0.09669, allocations: 12.55 kB / 390.2 MB, free: 3.461 MB / 286.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.289e-05/0.09676, allocations: 35.42 kB / 390.2 MB, free: 3.426 MB / 286.1 MB Notification: Performance of SimCode: time 2.81e-07/0.09676, allocations: 4 kB / 390.3 MB, free: 3.422 MB / 286.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.06947/0.1662, allocations: 4.038 MB / 394.3 MB, free: 15.34 MB / 302.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001882/0.1665, allocations: 168.3 kB / 394.5 MB, free: 15.08 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.63/1.797, allocations: 3.938 kB / 394.5 MB, free: 15.07 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)