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.001337/0.001337, 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.001448/0.001448, allocations: 197 kB / 16.14 MB, free: 6.688 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.41/1.41, allocations: 205.1 MB / 222 MB, free: 4.738 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/MEV 1.1.1/package.mo): time 0.00808/0.00808, allocations: 1.939 MB / 271.3 MB, free: 3.559 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.001435/0.001435, allocations: 63.89 kB / 329.3 MB, free: 33.17 MB / 254.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07305/0.0745, allocations: 47.14 MB / 376.4 MB, free: 1.984 MB / 270.1 MB Notification: Performance of NFInst.instantiate(MEV.Test.TestPatientController2): time 0.002759/0.0773, allocations: 1.592 MB / 378 MB, free: 380 kB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.001174/0.07849, allocations: 0.7773 MB / 378.8 MB, free: 15.59 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 5.908e-05/0.07856, allocations: 7.938 kB / 378.8 MB, free: 15.58 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000136/0.07871, allocations: 63.84 kB / 378.8 MB, free: 15.52 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001034/0.07883, allocations: 63.83 kB / 378.9 MB, free: 15.45 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004913/0.07933, allocations: 127.8 kB / 379 MB, free: 15.33 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001738/0.07951, allocations: 147.6 kB / 379.2 MB, free: 15.18 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001001/0.07962, allocations: 19.98 kB / 379.2 MB, free: 15.16 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001033/0.07973, allocations: 67.81 kB / 379.3 MB, free: 15.1 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001641/0.0799, allocations: 111.7 kB / 379.4 MB, free: 14.99 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 2.634e-05/0.07993, allocations: 4 kB / 379.4 MB, free: 14.98 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002081/0.08015, allocations: 155.8 kB / 379.5 MB, free: 14.83 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 6.485e-05/0.08022, allocations: 27.91 kB / 379.5 MB, free: 14.8 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 8.356e-05/0.08031, allocations: 63.61 kB / 379.6 MB, free: 14.74 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002932/0.08061, allocations: 227.6 kB / 379.8 MB, free: 14.52 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.588e-06/0.08062, allocations: 4 kB / 379.8 MB, free: 14.52 MB / 286.1 MB Notification: Performance of FrontEnd: time 7.91e-07/0.08063, allocations: 4 kB / 379.8 MB, free: 14.51 MB / 286.1 MB Notification: Performance of Transformations before backend: time 4.659e-06/0.08064, allocations: 0 / 379.8 MB, free: 14.51 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.0007313/0.08138, allocations: 0.5255 MB / 380.4 MB, free: 13.93 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.731e-05/0.08142, allocations: 12.03 kB / 380.4 MB, free: 13.91 MB / 286.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.136e-05/0.08147, allocations: 38.75 kB / 380.4 MB, free: 13.87 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.933e-05/0.08153, allocations: 20.75 kB / 380.4 MB, free: 13.85 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000219/0.08175, allocations: 224 kB / 380.7 MB, free: 13.59 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.877e-05/0.08181, allocations: 30.27 kB / 380.7 MB, free: 13.55 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.181e-05/0.08184, allocations: 12.38 kB / 380.7 MB, free: 13.54 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002601/0.0821, allocations: 141.5 kB / 380.8 MB, free: 13.4 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.263e-06/0.08212, allocations: 0 / 380.8 MB, free: 13.4 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.532e-05/0.08214, allocations: 0 / 380.8 MB, free: 13.4 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.108e-06/0.08215, allocations: 4 kB / 380.8 MB, free: 13.39 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001809/0.08234, allocations: 95.88 kB / 380.9 MB, free: 13.3 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004675/0.08282, allocations: 380.5 kB / 381.3 MB, free: 12.88 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002599/0.08309, allocations: 138.6 kB / 381.4 MB, free: 12.73 MB / 286.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001458/0.08325, allocations: 105 kB / 381.5 MB, free: 12.63 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.265e-05/0.08327, allocations: 8 kB / 381.5 MB, free: 12.62 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003629/0.08364, allocations: 238.6 kB / 381.8 MB, free: 12.36 MB / 286.1 MB Notification: Performance of pre-optimization done (n=23): time 3.858e-06/0.08366, allocations: 3.984 kB / 381.8 MB, free: 12.36 MB / 286.1 MB Notification: Performance of matching and sorting (n=23): time 0.0006988/0.08436, allocations: 475 kB / 382.2 MB, free: 11.88 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.552e-05/0.08443, allocations: 114.8 kB / 382.4 MB, free: 11.74 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000165/0.0846, allocations: 206.6 kB / 382.6 MB, free: 11.53 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 2.394e-05/0.08463, allocations: 33.7 kB / 382.6 MB, free: 11.49 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.28e-05/0.0847, allocations: 112.5 kB / 382.7 MB, free: 11.38 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.935e-05/0.08475, allocations: 51.36 kB / 382.8 MB, free: 11.33 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.801e-05/0.08483, allocations: 45.64 kB / 382.8 MB, free: 11.28 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 0.0001042/0.08494, allocations: 334.8 kB / 383.1 MB, free: 10.94 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001457/0.08509, allocations: 84.19 kB / 383.2 MB, free: 10.86 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00014/0.08524, allocations: 92.42 kB / 383.3 MB, free: 10.77 MB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003171/0.08556, allocations: 300.8 kB / 383.6 MB, free: 10.45 MB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.904e-06/0.08557, allocations: 0 / 383.6 MB, free: 10.45 MB / 286.1 MB Notification: Performance of matching and sorting (n=28) (initialization): time 0.0004813/0.08606, allocations: 398.3 kB / 384 MB, free: 10.04 MB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.679e-05/0.08612, allocations: 68 kB / 384 MB, free: 9.965 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.068e-06/0.08613, allocations: 0 / 384 MB, free: 9.965 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 9.618e-06/0.08614, allocations: 4 kB / 384 MB, free: 9.961 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001031/0.08625, allocations: 16 kB / 384.1 MB, free: 9.945 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.829e-06/0.08626, allocations: 0 / 384.1 MB, free: 9.945 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001312/0.0864, allocations: 31.83 kB / 384.1 MB, free: 9.914 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.935e-05/0.08643, allocations: 8 kB / 384.1 MB, free: 9.906 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.0001592/0.08659, allocations: 226.8 kB / 384.3 MB, free: 9.66 MB / 286.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.402e-05/0.08664, allocations: 19.81 kB / 384.3 MB, free: 9.641 MB / 286.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.691e-05/0.08668, allocations: 25.86 kB / 384.4 MB, free: 9.617 MB / 286.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.874e-06/0.08669, allocations: 0 / 384.4 MB, free: 9.617 MB / 286.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.44e-06/0.0867, allocations: 4 kB / 384.4 MB, free: 9.613 MB / 286.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.635e-06/0.0867, allocations: 0 / 384.4 MB, free: 9.613 MB / 286.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001893/0.0869, allocations: 257.4 kB / 384.6 MB, free: 9.312 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.062e-06/0.08691, allocations: 0 / 384.6 MB, free: 9.312 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.388e-05/0.08697, allocations: 8 kB / 384.6 MB, free: 9.305 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.663e-06/0.08698, allocations: 4 kB / 384.6 MB, free: 9.301 MB / 286.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.098e-05/0.087, allocations: 7.984 kB / 384.6 MB, free: 9.293 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.603e-06/0.08701, allocations: 0 / 384.6 MB, free: 9.293 MB / 286.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.022e-06/0.08701, allocations: 0 / 384.6 MB, free: 9.293 MB / 286.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005749/0.08759, allocations: 472.5 kB / 385.1 MB, free: 8.801 MB / 286.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.962e-05/0.08765, allocations: 104.7 kB / 385.2 MB, free: 8.68 MB / 286.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.245e-05/0.08769, allocations: 12 kB / 385.2 MB, free: 8.668 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001114/0.08781, allocations: 11.98 kB / 385.2 MB, free: 8.656 MB / 286.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.008e-05/0.08788, allocations: 15.98 kB / 385.2 MB, free: 8.641 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.687e-05/0.08791, allocations: 15.98 kB / 385.3 MB, free: 8.625 MB / 286.1 MB Notification: Performance of sorting global known variables: time 9.478e-05/0.08801, allocations: 144.3 kB / 385.4 MB, free: 8.484 MB / 286.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.08802, allocations: 0 / 385.4 MB, free: 8.484 MB / 286.1 MB Notification: Performance of remove unused functions: time 0.0002841/0.08831, allocations: 79.92 kB / 385.5 MB, free: 8.406 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.0009169/0.08923, allocations: 1.045 MB / 386.5 MB, free: 7.32 MB / 286.1 MB Notification: Performance of simCode: created initialization part: time 0.0004833/0.08973, allocations: 405.7 kB / 386.9 MB, free: 6.902 MB / 286.1 MB Notification: Performance of simCode: created event and clocks part: time 1.844e-06/0.08974, allocations: 0 / 386.9 MB, free: 6.902 MB / 286.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002668/0.09001, allocations: 298.7 kB / 387.2 MB, free: 6.586 MB / 286.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002019/0.09022, allocations: 23.92 kB / 387.2 MB, free: 6.562 MB / 286.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002643/0.09288, allocations: 2.534 MB / 389.8 MB, free: 3.938 MB / 286.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002746/0.09317, allocations: 0.7241 MB / 390.5 MB, free: 3.188 MB / 286.1 MB Notification: Performance of simCode: alias equations: time 4.891e-05/0.09323, allocations: 8.562 kB / 390.5 MB, free: 3.18 MB / 286.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.973e-05/0.09329, allocations: 43.42 kB / 390.5 MB, free: 3.137 MB / 286.1 MB Notification: Performance of SimCode: time 4.61e-07/0.0933, allocations: 0 / 390.5 MB, free: 3.137 MB / 286.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.09018/0.1835, allocations: 4.147 MB / 394.7 MB, free: 14.95 MB / 302.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0003626/0.1839, allocations: 176.4 kB / 394.9 MB, free: 14.68 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.673/1.857, allocations: 0 / 394.9 MB, free: 14.68 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)