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.0007958/0.0007958, allocations: 98.27 kB / 15.36 MB, free: 0.7344 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.004959/0.00496, allocations: 172.2 kB / 16.27 MB, free: 6.66 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.333/1.333, allocations: 205.4 MB / 222.4 MB, free: 5.559 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/MEV 1.1.1/package.mo): time 0.007468/0.007468, allocations: 1.92 MB / 272.7 MB, free: 3.289 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.0004733/0.0004733, allocations: 12.22 kB / 331.6 MB, free: 32.9 MB / 254.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0628/0.06329, allocations: 48.09 MB / 379.7 MB, free: 0.75 MB / 270.1 MB Notification: Performance of NFInst.instantiate(MEV.Test.TestPatientController2): time 0.001353/0.06467, allocations: 1.249 MB / 380.9 MB, free: 15.48 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.001009/0.06569, allocations: 0.7658 MB / 381.7 MB, free: 14.71 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 4.612e-05/0.06575, allocations: 0 / 381.7 MB, free: 14.71 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001078/0.06587, allocations: 67.83 kB / 381.8 MB, free: 14.64 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 9.486e-05/0.06597, allocations: 63.78 kB / 381.8 MB, free: 14.58 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004118/0.06639, allocations: 131.8 kB / 382 MB, free: 14.45 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001479/0.06655, allocations: 143.7 kB / 382.1 MB, free: 14.31 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 7.817e-05/0.06663, allocations: 15.97 kB / 382.1 MB, free: 14.3 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 9.247e-05/0.06673, allocations: 67.77 kB / 382.2 MB, free: 14.23 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001456/0.06689, allocations: 111.7 kB / 382.3 MB, free: 14.12 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 1.993e-05/0.06691, allocations: 4 kB / 382.3 MB, free: 14.12 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001829/0.06711, allocations: 155.9 kB / 382.5 MB, free: 13.96 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 5.402e-05/0.06717, allocations: 27.91 kB / 382.5 MB, free: 13.94 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 8.794e-05/0.06726, allocations: 93.3 kB / 382.6 MB, free: 13.84 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002403/0.06751, allocations: 223.6 kB / 382.8 MB, free: 13.62 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.4e-06/0.06753, allocations: 7.938 kB / 382.8 MB, free: 13.61 MB / 286.1 MB Notification: Performance of FrontEnd: time 3.136e-06/0.06753, allocations: 0 / 382.8 MB, free: 13.61 MB / 286.1 MB Notification: Performance of Transformations before backend: time 4.148e-06/0.06754, allocations: 3.938 kB / 382.8 MB, free: 13.61 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.000644/0.06819, allocations: 0.5022 MB / 383.3 MB, free: 13.05 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.37e-05/0.06823, allocations: 12.03 kB / 383.3 MB, free: 13.04 MB / 286.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.205e-05/0.06828, allocations: 42.73 kB / 383.4 MB, free: 12.98 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.781e-05/0.06833, allocations: 20.66 kB / 383.4 MB, free: 12.96 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001905/0.06853, allocations: 212 kB / 383.6 MB, free: 12.72 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.628e-05/0.06858, allocations: 38.2 kB / 383.6 MB, free: 12.68 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.283e-05/0.06861, allocations: 12.36 kB / 383.6 MB, free: 12.66 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002406/0.06886, allocations: 141.5 kB / 383.8 MB, free: 12.52 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.613e-06/0.06888, allocations: 0 / 383.8 MB, free: 12.52 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.671e-05/0.0689, allocations: 8 kB / 383.8 MB, free: 12.51 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.827e-06/0.06891, allocations: 0 / 383.8 MB, free: 12.51 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000186/0.0691, allocations: 99.94 kB / 383.9 MB, free: 12.41 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004475/0.06956, allocations: 376.5 kB / 384.2 MB, free: 12 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002391/0.06981, allocations: 146.5 kB / 384.4 MB, free: 11.84 MB / 286.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001485/0.06996, allocations: 104.8 kB / 384.5 MB, free: 11.74 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 9.698e-06/0.06998, allocations: 0 / 384.5 MB, free: 11.74 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003124/0.0703, allocations: 249.2 kB / 384.7 MB, free: 11.47 MB / 286.1 MB Notification: Performance of pre-optimization done (n=23): time 1.413e-06/0.07031, allocations: 0 / 384.7 MB, free: 11.47 MB / 286.1 MB Notification: Performance of matching and sorting (n=23): time 0.0006709/0.07099, allocations: 480.5 kB / 385.2 MB, free: 10.98 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.191e-05/0.07106, allocations: 114.8 kB / 385.3 MB, free: 10.85 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001548/0.07122, allocations: 206.6 kB / 385.5 MB, free: 10.63 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 2.372e-05/0.07125, allocations: 29.7 kB / 385.5 MB, free: 10.6 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.332e-05/0.07131, allocations: 108.6 kB / 385.7 MB, free: 10.49 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.549e-05/0.07136, allocations: 51.27 kB / 385.7 MB, free: 10.44 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.717e-05/0.07142, allocations: 29.7 kB / 385.7 MB, free: 10.4 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 9.848e-05/0.07152, allocations: 334.8 kB / 386.1 MB, free: 10.07 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001469/0.07167, allocations: 92.19 kB / 386.1 MB, free: 9.977 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001438/0.07183, allocations: 96.42 kB / 386.2 MB, free: 9.883 MB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003143/0.07215, allocations: 304.7 kB / 386.5 MB, free: 9.559 MB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.783e-06/0.07216, allocations: 0 / 386.5 MB, free: 9.559 MB / 286.1 MB Notification: Performance of matching and sorting (n=28) (initialization): time 0.000471/0.07264, allocations: 398.3 kB / 386.9 MB, free: 9.152 MB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.508e-05/0.07269, allocations: 70.2 kB / 387 MB, free: 9.074 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.867e-06/0.0727, allocations: 0 / 387 MB, free: 9.074 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 8.616e-06/0.07272, allocations: 8 kB / 387 MB, free: 9.066 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.648e-05/0.07282, allocations: 19.92 kB / 387 MB, free: 9.047 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.025e-06/0.07283, allocations: 11.94 kB / 387 MB, free: 9.035 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000122/0.07296, allocations: 27.83 kB / 387.1 MB, free: 9.008 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.514e-05/0.07299, allocations: 7.938 kB / 387.1 MB, free: 9 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.0001572/0.07315, allocations: 218.9 kB / 387.3 MB, free: 8.762 MB / 286.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.014e-05/0.07319, allocations: 23.81 kB / 387.3 MB, free: 8.738 MB / 286.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.304e-05/0.07323, allocations: 25.86 kB / 387.3 MB, free: 8.715 MB / 286.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.933e-06/0.07323, allocations: 0 / 387.3 MB, free: 8.715 MB / 286.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.537e-06/0.07324, allocations: 0 / 387.3 MB, free: 8.715 MB / 286.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.574e-06/0.07325, allocations: 0 / 387.3 MB, free: 8.715 MB / 286.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001834/0.07343, allocations: 253.4 kB / 387.6 MB, free: 8.418 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.102e-06/0.07344, allocations: 0 / 387.6 MB, free: 8.418 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.296e-05/0.0735, allocations: 15.94 kB / 387.6 MB, free: 8.402 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.663e-06/0.07351, allocations: 0 / 387.6 MB, free: 8.402 MB / 286.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.097e-05/0.07353, allocations: 15.97 kB / 387.6 MB, free: 8.387 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.302e-06/0.07354, allocations: 4 kB / 387.6 MB, free: 8.383 MB / 286.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.304e-06/0.07355, allocations: 3.984 kB / 387.6 MB, free: 8.379 MB / 286.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005588/0.07411, allocations: 468.5 kB / 388.1 MB, free: 7.891 MB / 286.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.862e-05/0.07417, allocations: 96.77 kB / 388.2 MB, free: 7.777 MB / 286.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.713e-05/0.07421, allocations: 12 kB / 388.2 MB, free: 7.766 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001034/0.07432, allocations: 15.98 kB / 388.2 MB, free: 7.75 MB / 286.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.419e-05/0.07439, allocations: 19.97 kB / 388.2 MB, free: 7.73 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.475e-05/0.07442, allocations: 12 kB / 388.2 MB, free: 7.719 MB / 286.1 MB Notification: Performance of sorting global known variables: time 0.0001045/0.07453, allocations: 144.3 kB / 388.4 MB, free: 7.578 MB / 286.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.07453, allocations: 0 / 388.4 MB, free: 7.578 MB / 286.1 MB Notification: Performance of remove unused functions: time 0.0002651/0.0748, allocations: 83.92 kB / 388.5 MB, free: 7.496 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.0009194/0.07573, allocations: 1.056 MB / 389.5 MB, free: 6.398 MB / 286.1 MB Notification: Performance of simCode: created initialization part: time 0.0004881/0.07623, allocations: 414.4 kB / 389.9 MB, free: 5.969 MB / 286.1 MB Notification: Performance of simCode: created event and clocks part: time 1.703e-06/0.07624, allocations: 0 / 389.9 MB, free: 5.969 MB / 286.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002709/0.07652, allocations: 295 kB / 390.2 MB, free: 5.656 MB / 286.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002028/0.07673, allocations: 20.19 kB / 390.2 MB, free: 5.637 MB / 286.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002566/0.0793, allocations: 2.542 MB / 392.8 MB, free: 3.008 MB / 286.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002542/0.07957, allocations: 0.728 MB / 393.5 MB, free: 2.254 MB / 286.1 MB Notification: Performance of simCode: alias equations: time 4.372e-05/0.07962, allocations: 8.547 kB / 393.5 MB, free: 2.246 MB / 286.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.627e-05/0.07969, allocations: 39.42 kB / 393.5 MB, free: 2.207 MB / 286.1 MB Notification: Performance of SimCode: time 1.673e-06/0.0797, allocations: 0 / 393.5 MB, free: 2.207 MB / 286.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3112/0.3909, allocations: 4.084 MB / 397.6 MB, free: 14.11 MB / 302.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002135/0.3912, allocations: 175.7 kB / 397.8 MB, free: 13.84 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.068/2.459, allocations: 0 / 397.8 MB, free: 13.84 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)