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.0014/0.0014, allocations: 174.8 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.01233/0.01233, 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.436/1.436, allocations: 205.2 MB / 221.4 MB, free: 7.352 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.0008608/0.0008606, allocations: 89.48 kB / 270.1 MB, free: 7.141 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 3.57e-05/3.573e-05, allocations: 3.984 kB / 326.1 MB, free: 14.98 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2541/0.2541, allocations: 48.06 MB / 374.2 MB, free: 44.3 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.0864/0.3406, allocations: 76.15 MB / 450.3 MB, free: 2.711 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.00018/0.3408, allocations: 63.56 kB / 450.4 MB, free: 2.652 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01459/0.3554, allocations: 4.934 MB / 455.3 MB, free: 13.73 MB / 346.7 MB Notification: Performance of FrontEnd: time 1.202e-06/0.3554, allocations: 0 / 455.3 MB, free: 13.73 MB / 346.7 MB Notification: Performance of Transformations before backend: time 6.231e-06/0.3555, allocations: 0 / 455.3 MB, free: 13.73 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.000605/0.3561, allocations: 0.4954 MB / 455.8 MB, free: 13.18 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.703e-05/0.3561, allocations: 8.031 kB / 455.8 MB, free: 13.18 MB / 346.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.937e-05/0.3562, allocations: 46.55 kB / 455.9 MB, free: 13.12 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.372e-05/0.3562, allocations: 19.81 kB / 455.9 MB, free: 13.1 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002787/0.3565, allocations: 232.3 kB / 456.1 MB, free: 12.83 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.408e-05/0.3566, allocations: 29.7 kB / 456.1 MB, free: 12.8 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.03e-05/0.3566, allocations: 15.95 kB / 456.2 MB, free: 12.78 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002485/0.3569, allocations: 139.2 kB / 456.3 MB, free: 12.64 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.977e-06/0.3569, allocations: 0 / 456.3 MB, free: 12.64 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.977e-05/0.3569, allocations: 7.938 kB / 456.3 MB, free: 12.63 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.887e-06/0.3569, allocations: 0 / 456.3 MB, free: 12.63 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001602/0.3571, allocations: 105.2 kB / 456.4 MB, free: 12.53 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000568/0.3577, allocations: 388.8 kB / 456.8 MB, free: 12.1 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000225/0.3579, allocations: 138.5 kB / 456.9 MB, free: 11.96 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001435/0.3581, allocations: 108.8 kB / 457 MB, free: 11.85 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.455e-05/0.3581, allocations: 4 kB / 457 MB, free: 11.84 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002935/0.3584, allocations: 234.8 kB / 457.3 MB, free: 11.59 MB / 346.7 MB Notification: Performance of pre-optimization done (n=23): time 1.593e-06/0.3584, allocations: 4 kB / 457.3 MB, free: 11.59 MB / 346.7 MB Notification: Performance of matching and sorting (n=23): time 0.0005991/0.359, allocations: 408.2 kB / 457.7 MB, free: 11.17 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.283e-05/0.3591, allocations: 114.8 kB / 457.8 MB, free: 11.04 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001346/0.3592, allocations: 166.5 kB / 457.9 MB, free: 10.86 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 2.686e-05/0.3593, allocations: 33.7 kB / 458 MB, free: 10.82 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 6.063e-05/0.3593, allocations: 112.5 kB / 458.1 MB, free: 10.71 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 5.092e-05/0.3594, allocations: 57.97 kB / 458.1 MB, free: 10.66 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.547e-05/0.3594, allocations: 8 kB / 458.1 MB, free: 10.65 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0001021/0.3595, allocations: 326.8 kB / 458.5 MB, free: 10.32 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001392/0.3597, allocations: 96.2 kB / 458.6 MB, free: 10.23 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001245/0.3598, allocations: 88.44 kB / 458.6 MB, free: 10.14 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001584/0.36, allocations: 145.5 kB / 458.8 MB, free: 9.988 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.863e-06/0.36, allocations: 0 / 458.8 MB, free: 9.988 MB / 346.7 MB Notification: Performance of matching and sorting (n=28) (initialization): time 0.0005035/0.3605, allocations: 401.6 kB / 459.2 MB, free: 9.578 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 5.069e-05/0.3605, allocations: 71.38 kB / 459.3 MB, free: 9.496 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.881e-06/0.3606, allocations: 0 / 459.3 MB, free: 9.496 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.141e-05/0.3606, allocations: 4 kB / 459.3 MB, free: 9.492 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001201/0.3607, allocations: 19.94 kB / 459.3 MB, free: 9.473 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.626e-06/0.3607, allocations: 4 kB / 459.3 MB, free: 9.469 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001352/0.3609, allocations: 23.83 kB / 459.3 MB, free: 9.445 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.555e-05/0.3609, allocations: 15.98 kB / 459.3 MB, free: 9.43 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.0001276/0.361, allocations: 191.5 kB / 459.5 MB, free: 9.227 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.412e-05/0.3611, allocations: 19.81 kB / 459.5 MB, free: 9.207 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.031e-05/0.3611, allocations: 25.58 kB / 459.5 MB, free: 9.184 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.615e-06/0.3611, allocations: 0 / 459.5 MB, free: 9.184 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.949e-06/0.3611, allocations: 0 / 459.5 MB, free: 9.184 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.286e-06/0.3611, allocations: 0 / 459.5 MB, free: 9.184 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002025/0.3614, allocations: 261.4 kB / 459.8 MB, free: 8.879 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.273e-06/0.3614, allocations: 0 / 459.8 MB, free: 8.879 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.524e-05/0.3614, allocations: 12 kB / 459.8 MB, free: 8.867 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.435e-06/0.3614, allocations: 7.938 kB / 459.8 MB, free: 8.859 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.346e-05/0.3615, allocations: 15.98 kB / 459.8 MB, free: 8.844 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.144e-06/0.3615, allocations: 0 / 459.8 MB, free: 8.844 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.974e-06/0.3615, allocations: 1.25 kB / 459.8 MB, free: 8.844 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006093/0.3621, allocations: 473 kB / 460.3 MB, free: 8.352 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.721e-05/0.3622, allocations: 97.89 kB / 460.4 MB, free: 8.238 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.545e-05/0.3622, allocations: 11.98 kB / 460.4 MB, free: 8.227 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001172/0.3624, allocations: 23.94 kB / 460.4 MB, free: 8.203 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.774e-05/0.3624, allocations: 19.97 kB / 460.5 MB, free: 8.184 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.119e-05/0.3625, allocations: 11.98 kB / 460.5 MB, free: 8.172 MB / 346.7 MB Notification: Performance of sorting global known variables: time 9.875e-05/0.3626, allocations: 135.2 kB / 460.6 MB, free: 8.039 MB / 346.7 MB Notification: Performance of sort global known variables: time 1.3e-07/0.3626, allocations: 4 kB / 460.6 MB, free: 8.035 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.0003382/0.3629, allocations: 83.94 kB / 460.7 MB, free: 7.953 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.0008796/0.3638, allocations: 1.042 MB / 461.7 MB, free: 6.871 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.0004079/0.3642, allocations: 374.8 kB / 462.1 MB, free: 6.48 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 1.963e-06/0.3642, allocations: 2.25 kB / 462.1 MB, free: 6.48 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002351/0.3645, allocations: 280.1 kB / 462.4 MB, free: 6.184 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001701/0.3647, allocations: 12 kB / 462.4 MB, free: 6.172 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006157/0.3653, allocations: 344.2 kB / 462.7 MB, free: 5.805 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002779/0.3656, allocations: 0.7358 MB / 463.4 MB, free: 5.043 MB / 346.7 MB Notification: Performance of simCode: alias equations: time 4.675e-05/0.3656, allocations: 8.547 kB / 463.5 MB, free: 5.035 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.939e-05/0.3657, allocations: 43.42 kB / 463.5 MB, free: 4.992 MB / 346.7 MB Notification: Performance of SimCode: time 4.51e-07/0.3657, allocations: 0 / 463.5 MB, free: 4.992 MB / 346.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01503/0.3807, allocations: 3.99 MB / 467.5 MB, free: 1.078 MB / 346.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.000155/0.3809, allocations: 130.3 kB / 467.6 MB, free: 0.8711 MB / 346.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.689/2.07, allocations: 0 / 467.6 MB, free: 0.8711 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)