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"}) [:1:1-1:32:writable] Error: Class GC_set_max_heap_size not found in scope (looking for a function or record). Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.002066/0.002066, allocations: 185.1 kB / 7.459 MB, free: 2.516 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/MEV 1.1.1-master/package.mo): time 0.0069/0.006901, allocations: 1.922 MB / 9.788 MB, free: 456 kB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.009/1.009, allocations: 205.2 MB / 215.9 MB, free: 12.07 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.0008437/0.0008437, allocations: 85.95 kB / 264.4 MB, free: 11.47 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.08793/0.08881, allocations: 54.21 MB / 318.6 MB, free: 5.188 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1717/0.2606, allocations: 48.07 MB / 366.7 MB, free: 45.66 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.07377/0.3344, allocations: 75.42 MB / 442.1 MB, free: 7.695 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001654/0.3346, allocations: 63.97 kB / 442.2 MB, free: 7.633 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.0145/0.3491, allocations: 5.089 MB / 447.3 MB, free: 2.52 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.404e-05/0.3491, allocations: 12 kB / 447.3 MB, free: 2.508 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.85e-05/0.3492, allocations: 15.81 kB / 447.3 MB, free: 2.492 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003616/0.3496, allocations: 235.6 kB / 447.5 MB, free: 2.219 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.147e-05/0.3496, allocations: 4 kB / 447.5 MB, free: 2.215 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.673e-05/0.3496, allocations: 4 kB / 447.5 MB, free: 2.211 MB / 330.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.000203/0.3499, allocations: 101.4 kB / 447.6 MB, free: 2.109 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000218/0.3501, allocations: 137.5 kB / 447.8 MB, free: 1.969 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.048e-05/0.3501, allocations: 0 / 447.8 MB, free: 1.969 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.027e-05/0.3501, allocations: 4 kB / 447.8 MB, free: 1.965 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.153e-06/0.3501, allocations: 3.906 kB / 447.8 MB, free: 1.961 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005917/0.3507, allocations: 362.1 kB / 448.1 MB, free: 1.57 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001881/0.3509, allocations: 126.5 kB / 448.2 MB, free: 1.438 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001243/0.3511, allocations: 104.8 kB / 448.4 MB, free: 1.332 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.259e-05/0.3511, allocations: 4 kB / 448.4 MB, free: 1.328 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000235/0.3513, allocations: 221.2 kB / 448.6 MB, free: 1.09 MB / 330.7 MB Notification: Performance of pre-optimization done (n=23): time 2.364e-06/0.3513, allocations: 0 / 448.6 MB, free: 1.09 MB / 330.7 MB Notification: Performance of matching and sorting (n=23): time 0.0004455/0.3518, allocations: 245.3 kB / 448.8 MB, free: 0.8438 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.441e-05/0.3519, allocations: 110.8 kB / 448.9 MB, free: 0.7109 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001245/0.352, allocations: 162.4 kB / 449.1 MB, free: 0.543 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 2.859e-05/0.352, allocations: 33.7 kB / 449.1 MB, free: 0.5039 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 3.841e-05/0.3521, allocations: 96.42 kB / 449.2 MB, free: 416 kB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 5.003e-05/0.3521, allocations: 52.58 kB / 449.3 MB, free: 364 kB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.217e-05/0.3522, allocations: 3.938 kB / 449.3 MB, free: 360 kB / 330.7 MB Notification: Performance of setup shared object (initialization): time 0.0001032/0.3523, allocations: 330.8 kB / 449.6 MB, free: 20 kB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001545/0.3524, allocations: 84.2 kB / 449.7 MB, free: 15.94 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001185/0.3525, allocations: 88.44 kB / 449.8 MB, free: 15.85 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001587/0.3527, allocations: 96.72 kB / 449.8 MB, free: 15.76 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.703e-06/0.3527, allocations: 0 / 449.8 MB, free: 15.76 MB / 346.7 MB Notification: Performance of matching and sorting (n=28) (initialization): time 0.0003673/0.3531, allocations: 263.4 kB / 450.1 MB, free: 15.5 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.204e-05/0.3531, allocations: 4 kB / 450.1 MB, free: 15.49 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.428e-06/0.3531, allocations: 0 / 450.1 MB, free: 15.49 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 9.979e-06/0.3531, allocations: 0 / 450.1 MB, free: 15.49 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.323e-05/0.3532, allocations: 23.92 kB / 450.1 MB, free: 15.47 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.747e-06/0.3533, allocations: 6.062 kB / 450.1 MB, free: 15.46 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001276/0.3534, allocations: 23.83 kB / 450.2 MB, free: 15.44 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.365e-05/0.3534, allocations: 12 kB / 450.2 MB, free: 15.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 (17): * Single equations (assignments): 14 * Array equations: 0 * Algorithm blocks: 2 * Record equations: 0 * When equations: 0 * If-equations: 1 * 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.0001176/0.3535, allocations: 178.1 kB / 450.3 MB, free: 15.24 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.305e-05/0.3536, allocations: 23.72 kB / 450.4 MB, free: 15.21 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.902e-05/0.3536, allocations: 17.73 kB / 450.4 MB, free: 15.2 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.364e-06/0.3536, allocations: 4 kB / 450.4 MB, free: 15.2 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.729e-06/0.3537, allocations: 0 / 450.4 MB, free: 15.2 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.646e-06/0.3537, allocations: 0 / 450.4 MB, free: 15.2 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001734/0.3538, allocations: 222 kB / 450.6 MB, free: 14.94 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.102e-06/0.3538, allocations: 4 kB / 450.6 MB, free: 14.94 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.804e-05/0.3539, allocations: 15.98 kB / 450.6 MB, free: 14.92 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.406e-06/0.3539, allocations: 0 / 450.6 MB, free: 14.92 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.38e-05/0.354, allocations: 11.94 kB / 450.6 MB, free: 14.91 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.272e-06/0.354, allocations: 4 kB / 450.6 MB, free: 14.91 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.743e-06/0.354, allocations: 0 / 450.6 MB, free: 14.91 MB / 346.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0004034/0.3544, allocations: 299.4 kB / 450.9 MB, free: 14.6 MB / 346.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.0004735/0.3549, allocations: 0.6651 MB / 451.6 MB, free: 13.91 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.181e-05/0.3549, allocations: 92.86 kB / 451.7 MB, free: 13.8 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.349e-05/0.355, allocations: 11.91 kB / 451.7 MB, free: 13.79 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001241/0.3551, allocations: 15.98 kB / 451.7 MB, free: 13.77 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.166e-05/0.3552, allocations: 27.97 kB / 451.7 MB, free: 13.75 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.259e-05/0.3552, allocations: 12.55 kB / 451.8 MB, free: 13.73 MB / 346.7 MB Notification: Performance of sort global known variables: time 7.871e-05/0.3553, allocations: 143.1 kB / 451.9 MB, free: 13.59 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.0008307/0.3561, allocations: 79.92 kB / 452 MB, free: 13.52 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.0002151/0.3564, allocations: 151.2 kB / 452.1 MB, free: 13.36 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.0005627/0.3569, allocations: 0.9472 MB / 453.1 MB, free: 12.38 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 1.422e-06/0.3569, allocations: 0.6562 kB / 453.1 MB, free: 12.38 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002106/0.3572, allocations: 215.3 kB / 453.3 MB, free: 12.16 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001595/0.3573, allocations: 9.219 kB / 453.3 MB, free: 12.15 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004487/0.3578, allocations: 255 kB / 453.5 MB, free: 11.88 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002568/0.358, allocations: 0.7429 MB / 454.3 MB, free: 11.11 MB / 346.7 MB Notification: Performance of SimCode: time 2.9e-07/0.3581, allocations: 3.938 kB / 454.3 MB, free: 11.11 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)