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/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.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/Complex 3.2.3+maint.om/package.mo): time 0.008726/0.008726, allocations: 172 kB / 15.11 MB, free: 5.98 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/MEV 1.1.1-master/package.mo): time 0.0129/0.0129, allocations: 1.935 MB / 17.79 MB, free: 4.168 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.696/1.696, allocations: 205.4 MB / 224.4 MB, free: 11.91 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.0009391/0.0009393, allocations: 98.19 kB / 273.3 MB, free: 10.93 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003099/0.00031, allocations: 12.22 kB / 331.9 MB, free: 10.79 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1002/0.1006, allocations: 48.09 MB / 380 MB, free: 10.62 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3115/0.4121, allocations: 76.25 MB / 456.3 MB, free: 11.22 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000236/0.4124, allocations: 63.97 kB / 456.3 MB, free: 11.16 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01474/0.4272, allocations: 4.94 MB / 461.3 MB, free: 6.23 MB / 330.7 MB Notification: Performance of FrontEnd: time 1.674e-06/0.4272, allocations: 0 / 461.3 MB, free: 6.23 MB / 330.7 MB Notification: Performance of Transformations before backend: time 9.338e-06/0.4272, allocations: 0 / 461.3 MB, free: 6.23 MB / 330.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.0008222/0.4281, allocations: 0.53 MB / 461.8 MB, free: 5.641 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.135e-05/0.4281, allocations: 8.031 kB / 461.8 MB, free: 5.633 MB / 330.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.79e-05/0.4282, allocations: 42.55 kB / 461.9 MB, free: 5.582 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.982e-05/0.4283, allocations: 19.81 kB / 461.9 MB, free: 5.562 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003353/0.4286, allocations: 219.5 kB / 462.1 MB, free: 5.305 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.699e-05/0.4287, allocations: 33.7 kB / 462.1 MB, free: 5.266 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.018e-05/0.4287, allocations: 15.95 kB / 462.1 MB, free: 5.25 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003107/0.429, allocations: 158.2 kB / 462.3 MB, free: 5.09 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.806e-06/0.4291, allocations: 0 / 462.3 MB, free: 5.09 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.827e-05/0.4291, allocations: 0 / 462.3 MB, free: 5.09 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.045e-06/0.4291, allocations: 4 kB / 462.3 MB, free: 5.086 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002182/0.4293, allocations: 99.94 kB / 462.4 MB, free: 4.988 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006983/0.43, allocations: 396.7 kB / 462.8 MB, free: 4.551 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002853/0.4303, allocations: 154.6 kB / 462.9 MB, free: 4.391 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.414e-05/0.4303, allocations: 3.984 kB / 462.9 MB, free: 4.387 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003685/0.4307, allocations: 250.7 kB / 463.2 MB, free: 4.117 MB / 330.7 MB Notification: Performance of pre-optimization done (n=23): time 1.673e-06/0.4307, allocations: 0 / 463.2 MB, free: 4.117 MB / 330.7 MB Notification: Performance of matching and sorting (n=23): time 0.0009919/0.4317, allocations: 0.6606 MB / 463.8 MB, free: 3.402 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.45e-05/0.4318, allocations: 114.8 kB / 464 MB, free: 3.266 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000166/0.432, allocations: 170.5 kB / 464.1 MB, free: 3.09 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 3.571e-05/0.4321, allocations: 33.7 kB / 464.1 MB, free: 3.051 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 7.847e-05/0.4321, allocations: 116.4 kB / 464.3 MB, free: 2.934 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 6.175e-05/0.4322, allocations: 55.28 kB / 464.3 MB, free: 2.879 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.466e-05/0.4322, allocations: 4 kB / 464.3 MB, free: 2.875 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 0.0001672/0.4324, allocations: 330.8 kB / 464.6 MB, free: 2.543 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001754/0.4326, allocations: 96.17 kB / 464.7 MB, free: 2.449 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00017/0.4328, allocations: 104.4 kB / 464.8 MB, free: 2.348 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000208/0.433, allocations: 161.3 kB / 465 MB, free: 2.18 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.134e-06/0.433, allocations: 3.938 kB / 465 MB, free: 2.176 MB / 330.7 MB Notification: Performance of matching and sorting (n=28) (initialization): time 0.0006692/0.4337, allocations: 421.6 kB / 465.4 MB, free: 1.746 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 6.011e-05/0.4338, allocations: 63.39 kB / 465.5 MB, free: 1.672 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.39e-06/0.4338, allocations: 0 / 465.5 MB, free: 1.672 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.223e-05/0.4338, allocations: 0 / 465.5 MB, free: 1.672 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001205/0.4339, allocations: 23.98 kB / 465.5 MB, free: 1.648 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.126e-06/0.4339, allocations: 1.094 kB / 465.5 MB, free: 1.648 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001393/0.4341, allocations: 23.92 kB / 465.5 MB, free: 1.625 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.459e-05/0.4341, allocations: 16 kB / 465.5 MB, free: 1.609 MB / 330.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 () * 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0002153/0.4343, allocations: 210.9 kB / 465.7 MB, free: 1.383 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.486e-05/0.4344, allocations: 19.81 kB / 465.8 MB, free: 1.363 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.376e-05/0.4344, allocations: 25.86 kB / 465.8 MB, free: 1.344 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.816e-06/0.4345, allocations: 4 kB / 465.8 MB, free: 1.34 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.079e-06/0.4345, allocations: 0 / 465.8 MB, free: 1.34 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.686e-06/0.4345, allocations: 0 / 465.8 MB, free: 1.34 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002602/0.4347, allocations: 257.4 kB / 466 MB, free: 1.039 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.382e-06/0.4347, allocations: 4 kB / 466 MB, free: 1.035 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.338e-05/0.4348, allocations: 8 kB / 466.1 MB, free: 1.027 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.134e-06/0.4348, allocations: 0 / 466.1 MB, free: 1.027 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.179e-05/0.4349, allocations: 15.98 kB / 466.1 MB, free: 1.012 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.553e-06/0.4349, allocations: 0 / 466.1 MB, free: 1.012 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.845e-06/0.4349, allocations: 4 kB / 466.1 MB, free: 1.008 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007241/0.4356, allocations: 0.4964 MB / 466.6 MB, free: 492 kB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 6.278e-05/0.4357, allocations: 96.86 kB / 466.7 MB, free: 376 kB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.766e-05/0.4357, allocations: 11.98 kB / 466.7 MB, free: 364 kB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001186/0.4359, allocations: 19.98 kB / 466.7 MB, free: 344 kB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.722e-05/0.4359, allocations: 15.98 kB / 466.7 MB, free: 328 kB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.161e-05/0.436, allocations: 15.98 kB / 466.7 MB, free: 312 kB / 330.7 MB Notification: Performance of sorting global known variables: time 0.0001125/0.4361, allocations: 139.2 kB / 466.9 MB, free: 172 kB / 330.7 MB Notification: Performance of sort global known variables: time 1.2e-07/0.4361, allocations: 0 / 466.9 MB, free: 172 kB / 330.7 MB Notification: Performance of remove unused functions: time 0.0003795/0.4365, allocations: 87.94 kB / 467 MB, free: 84 kB / 330.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) * 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 (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.001318/0.4378, allocations: 1.045 MB / 468 MB, free: 14.99 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.0005733/0.4384, allocations: 398.5 kB / 468.4 MB, free: 14.58 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 2.936e-06/0.4384, allocations: 0 / 468.4 MB, free: 14.58 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.000303/0.4387, allocations: 286.7 kB / 468.7 MB, free: 14.27 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001955/0.4389, allocations: 19.94 kB / 468.7 MB, free: 14.25 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00185/0.4408, allocations: 1.21 MB / 469.9 MB, free: 12.99 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00039/0.4412, allocations: 0.7397 MB / 470.6 MB, free: 12.23 MB / 346.7 MB Notification: Performance of simCode: alias equations: time 6.003e-05/0.4413, allocations: 12.44 kB / 470.6 MB, free: 12.21 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.747e-05/0.4414, allocations: 39.42 kB / 470.7 MB, free: 12.18 MB / 346.7 MB Notification: Performance of SimCode: time 5.51e-07/0.4414, allocations: 0 / 470.7 MB, free: 12.18 MB / 346.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01533/0.4567, allocations: 3.948 MB / 474.6 MB, free: 8.242 MB / 346.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002443/0.457, allocations: 157.1 kB / 474.8 MB, free: 7.988 MB / 346.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.782/2.239, allocations: 0 / 474.8 MB, free: 7.988 MB / 346.7 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/linux/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)