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/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/MEV 1.1.1-master/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/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/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 MEV with version 1.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/MEV 1.1.1-master/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+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/Complex 3.2.3+maint.om/package.mo): time 0.0009806/0.0009806, allocations: 174.6 kB / 12.73 MB, free: 2.59 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/MEV 1.1.1-master/package.mo): time 0.007322/0.007322, allocations: 1.917 MB / 15.18 MB, free: 128 kB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.395/1.395, allocations: 205.2 MB / 221.4 MB, free: 7.332 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0009144/0.0009143, allocations: 89.2 kB / 270.1 MB, free: 7.129 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 2.91e-05/2.924e-05, allocations: 4 kB / 326.1 MB, free: 14.97 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2594/0.2594, allocations: 48.06 MB / 374.2 MB, free: 44.3 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.09047/0.3499, allocations: 76.17 MB / 450.4 MB, free: 2.691 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002216/0.3502, allocations: 63.97 kB / 450.4 MB, free: 2.629 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01636/0.3666, allocations: 5.651 MB / 456.1 MB, free: 12.99 MB / 346.7 MB Notification: Performance of FrontEnd: time 1.453e-06/0.3666, allocations: 0 / 456.1 MB, free: 12.99 MB / 346.7 MB Notification: Performance of Transformations before backend: time 6.813e-06/0.3666, allocations: 0 / 456.1 MB, free: 12.99 MB / 346.7 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.0007061/0.3674, allocations: 0.5215 MB / 456.6 MB, free: 12.41 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.772e-05/0.3674, allocations: 8.031 kB / 456.6 MB, free: 12.4 MB / 346.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.756e-05/0.3675, allocations: 46.48 kB / 456.6 MB, free: 12.35 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.245e-05/0.3675, allocations: 19.81 kB / 456.7 MB, free: 12.33 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003307/0.3679, allocations: 214.8 kB / 456.9 MB, free: 12.08 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.865e-05/0.368, allocations: 41.64 kB / 456.9 MB, free: 12.03 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.336e-05/0.368, allocations: 12 kB / 456.9 MB, free: 12.02 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002663/0.3683, allocations: 153.5 kB / 457.1 MB, free: 11.86 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.366e-06/0.3683, allocations: 4 kB / 457.1 MB, free: 11.86 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.834e-05/0.3683, allocations: 0 / 457.1 MB, free: 11.86 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.372e-06/0.3683, allocations: 3.984 kB / 457.1 MB, free: 11.86 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001751/0.3685, allocations: 99.97 kB / 457.2 MB, free: 11.76 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006267/0.3691, allocations: 396.6 kB / 457.6 MB, free: 11.32 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002468/0.3694, allocations: 150.5 kB / 457.7 MB, free: 11.16 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001519/0.3696, allocations: 112.8 kB / 457.8 MB, free: 11.05 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.068e-05/0.3696, allocations: 0 / 457.8 MB, free: 11.05 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003144/0.3699, allocations: 246.6 kB / 458.1 MB, free: 10.79 MB / 346.7 MB Notification: Performance of pre-optimization done (n=23): time 1.362e-06/0.3699, allocations: 0 / 458.1 MB, free: 10.79 MB / 346.7 MB Notification: Performance of matching and sorting (n=23): time 0.0006552/0.3706, allocations: 432.7 kB / 458.5 MB, free: 10.34 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.545e-05/0.3707, allocations: 122.8 kB / 458.6 MB, free: 10.2 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001631/0.3708, allocations: 181.8 kB / 458.8 MB, free: 10.01 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 2.626e-05/0.3709, allocations: 25.7 kB / 458.8 MB, free: 9.98 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 7.183e-05/0.371, allocations: 112.6 kB / 458.9 MB, free: 9.867 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 5.763e-05/0.371, allocations: 59.19 kB / 459 MB, free: 9.809 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.664e-05/0.371, allocations: 8 kB / 459 MB, free: 9.801 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0001277/0.3712, allocations: 330.8 kB / 459.3 MB, free: 9.469 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001478/0.3713, allocations: 96.2 kB / 459.4 MB, free: 9.371 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001396/0.3715, allocations: 107 kB / 459.5 MB, free: 9.27 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001714/0.3717, allocations: 153.4 kB / 459.7 MB, free: 9.109 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.574e-06/0.3717, allocations: 0 / 459.7 MB, free: 9.109 MB / 346.7 MB Notification: Performance of matching and sorting (n=28) (initialization): time 0.0005463/0.3722, allocations: 427 kB / 460.1 MB, free: 8.676 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 5.438e-05/0.3723, allocations: 67.39 kB / 460.1 MB, free: 8.598 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.005e-06/0.3723, allocations: 0 / 460.1 MB, free: 8.598 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.961e-05/0.3723, allocations: 0 / 460.1 MB, free: 8.598 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000116/0.3724, allocations: 19.98 kB / 460.2 MB, free: 8.578 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.286e-06/0.3725, allocations: 1.016 kB / 460.2 MB, free: 8.578 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000132/0.3726, allocations: 31.84 kB / 460.2 MB, free: 8.547 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.199e-05/0.3727, allocations: 12 kB / 460.2 MB, free: 8.535 MB / 346.7 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 ($whenCondition3,$whenCondition1,$whenCondition2,$whenCondition4,$whenCondition5,$PRE.patientController.t_on,patientController.t_on,$PRE.patientController.t_off,patientController.t_off,$PRE.patientController.active,patientController.active,RR.a,RR.b,RR.last,$PRE.RR.nextEvent,RR.nextEvent,RR.nextEventScaled,dutyCycle.a,dutyCycle.b,dutyCycle.last,$PRE.dutyCycle.nextEvent,dutyCycle.nextEvent,dutyCycle.nextEventScaled) * Number of discrete 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001417/0.3728, allocations: 192 kB / 460.4 MB, free: 8.332 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.472e-05/0.3728, allocations: 19.81 kB / 460.4 MB, free: 8.312 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.839e-05/0.3729, allocations: 25.64 kB / 460.4 MB, free: 8.293 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.098e-06/0.3729, allocations: 0 / 460.4 MB, free: 8.293 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.701e-06/0.3729, allocations: 3.938 kB / 460.4 MB, free: 8.289 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.787e-06/0.3729, allocations: 0 / 460.4 MB, free: 8.289 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002241/0.3732, allocations: 269.3 kB / 460.7 MB, free: 7.977 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.352e-06/0.3732, allocations: 0 / 460.7 MB, free: 7.977 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001022/0.3733, allocations: 15.98 kB / 460.7 MB, free: 7.961 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.966e-06/0.3733, allocations: 0 / 460.7 MB, free: 7.961 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.885e-05/0.3733, allocations: 8 kB / 460.7 MB, free: 7.953 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.016e-06/0.3733, allocations: 4 kB / 460.7 MB, free: 7.949 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.51e-07/0.3733, allocations: 0 / 460.7 MB, free: 7.949 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006787/0.374, allocations: 0.4973 MB / 461.2 MB, free: 7.422 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.924e-05/0.3741, allocations: 88.92 kB / 461.3 MB, free: 7.316 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.63e-05/0.3741, allocations: 12 kB / 461.3 MB, free: 7.305 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001223/0.3743, allocations: 12.83 kB / 461.3 MB, free: 7.293 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.185e-05/0.3743, allocations: 19.97 kB / 461.4 MB, free: 7.273 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.896e-05/0.3744, allocations: 23.98 kB / 461.4 MB, free: 7.25 MB / 346.7 MB Notification: Performance of sorting global known variables: time 0.0001103/0.3745, allocations: 144.3 kB / 461.5 MB, free: 7.109 MB / 346.7 MB Notification: Performance of sort global known variables: time 3.6e-07/0.3745, allocations: 4 kB / 461.5 MB, free: 7.105 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.0003673/0.3749, allocations: 95.77 kB / 461.6 MB, free: 7.012 MB / 346.7 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) * 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0009752/0.3759, allocations: 1.045 MB / 462.7 MB, free: 5.926 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.0004459/0.3763, allocations: 386.8 kB / 463 MB, free: 5.523 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 2.374e-06/0.3763, allocations: 0.9375 kB / 463 MB, free: 5.523 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002477/0.3766, allocations: 276.2 kB / 463.3 MB, free: 5.23 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001894/0.3768, allocations: 22.25 kB / 463.3 MB, free: 5.207 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007064/0.3775, allocations: 368.8 kB / 463.7 MB, free: 4.809 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002781/0.3778, allocations: 0.7358 MB / 464.4 MB, free: 4.047 MB / 346.7 MB Notification: Performance of simCode: alias equations: time 4.854e-05/0.3779, allocations: 8.562 kB / 464.4 MB, free: 4.039 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.853e-05/0.3779, allocations: 46.69 kB / 464.5 MB, free: 3.996 MB / 346.7 MB Notification: Performance of SimCode: time 2.5e-07/0.3779, allocations: 0 / 464.5 MB, free: 3.996 MB / 346.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01571/0.3937, allocations: 4.099 MB / 468.6 MB, free: 15.96 MB / 362.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001499/0.3939, allocations: 119.7 kB / 468.7 MB, free: 15.77 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.712/2.105, allocations: 4 kB / 468.7 MB, free: 15.76 MB / 362.7 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/linux/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)