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"}) [: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.002082/0.002082, allocations: 177.8 kB / 7.455 MB, free: 2.508 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/MEV 1.1.1-master/package.mo): time 0.006886/0.006886, allocations: 1.921 MB / 9.789 MB, free: 460 kB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 0.996/0.996, allocations: 205.2 MB / 215.9 MB, free: 11.12 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.0007876/0.0007875, allocations: 83.38 kB / 264.4 MB, free: 10.81 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.08627/0.08708, allocations: 54.22 MB / 318.6 MB, free: 4.527 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1719/0.259, allocations: 48.06 MB / 366.7 MB, free: 45.68 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.07319/0.3323, allocations: 75.43 MB / 442.1 MB, free: 7.609 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001564/0.3324, allocations: 67.38 kB / 442.2 MB, free: 7.547 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.01554/0.348, allocations: 5.821 MB / 448 MB, free: 1.703 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.402e-05/0.3481, allocations: 12 kB / 448 MB, free: 1.691 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.527e-05/0.3481, allocations: 15.81 kB / 448 MB, free: 1.676 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003352/0.3485, allocations: 247 kB / 448.3 MB, free: 1.395 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.668e-05/0.3485, allocations: 4 kB / 448.3 MB, free: 1.391 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.768e-05/0.3485, allocations: 11.98 kB / 448.3 MB, free: 1.379 MB / 330.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0001678/0.3487, allocations: 87.97 kB / 448.4 MB, free: 1.293 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002004/0.3489, allocations: 143.5 kB / 448.5 MB, free: 1.148 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.014e-06/0.3489, allocations: 0 / 448.5 MB, free: 1.148 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.691e-05/0.3489, allocations: 0 / 448.5 MB, free: 1.148 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.391e-06/0.3489, allocations: 4 kB / 448.5 MB, free: 1.145 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005472/0.3495, allocations: 382.1 kB / 448.9 MB, free: 0.7344 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001954/0.3497, allocations: 134.5 kB / 449 MB, free: 0.5938 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001344/0.3498, allocations: 108.8 kB / 449.1 MB, free: 496 kB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.248e-05/0.3499, allocations: 0 / 449.1 MB, free: 496 kB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002482/0.3501, allocations: 233.1 kB / 449.4 MB, free: 240 kB / 330.7 MB Notification: Performance of pre-optimization done (n=23): time 1.312e-06/0.3501, allocations: 0 / 449.4 MB, free: 240 kB / 330.7 MB Notification: Performance of matching and sorting (n=23): time 0.0004874/0.3506, allocations: 262.9 kB / 449.6 MB, free: 15.97 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.155e-05/0.3507, allocations: 110.8 kB / 449.7 MB, free: 15.84 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001385/0.3508, allocations: 171.6 kB / 449.9 MB, free: 15.66 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 2.678e-05/0.3509, allocations: 29.7 kB / 449.9 MB, free: 15.62 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 3.6e-05/0.3509, allocations: 96.56 kB / 450 MB, free: 15.53 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 6.345e-05/0.351, allocations: 59.14 kB / 450.1 MB, free: 15.47 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.337e-05/0.351, allocations: 4 kB / 450.1 MB, free: 15.46 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.000101/0.3511, allocations: 338.8 kB / 450.4 MB, free: 15.12 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001271/0.3512, allocations: 88.2 kB / 450.5 MB, free: 15.04 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001271/0.3514, allocations: 95.72 kB / 450.6 MB, free: 14.95 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001683/0.3515, allocations: 97.09 kB / 450.7 MB, free: 14.85 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.066e-06/0.3516, allocations: 6.344 kB / 450.7 MB, free: 14.85 MB / 346.7 MB Notification: Performance of matching and sorting (n=28) (initialization): time 0.0003848/0.3519, allocations: 275.6 kB / 451 MB, free: 14.57 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 9.448e-06/0.352, allocations: 4 kB / 451 MB, free: 14.57 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.434e-06/0.352, allocations: 3.984 kB / 451 MB, free: 14.57 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 9.147e-06/0.352, allocations: 4 kB / 451 MB, free: 14.56 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.357e-05/0.3521, allocations: 19.94 kB / 451 MB, free: 14.54 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.25e-06/0.3521, allocations: 4 kB / 451 MB, free: 14.54 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001366/0.3522, allocations: 15.89 kB / 451 MB, free: 14.52 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.744e-05/0.3523, allocations: 12 kB / 451 MB, free: 14.51 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.0001274/0.3524, allocations: 182.1 kB / 451.2 MB, free: 14.32 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.522e-05/0.3525, allocations: 23.72 kB / 451.2 MB, free: 14.29 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.004e-05/0.3525, allocations: 21.75 kB / 451.2 MB, free: 14.27 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.914e-06/0.3525, allocations: 0 / 451.2 MB, free: 14.27 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.446e-06/0.3525, allocations: 0 / 451.2 MB, free: 14.27 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.114e-06/0.3525, allocations: 7.984 kB / 451.3 MB, free: 14.27 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001846/0.3527, allocations: 229.8 kB / 451.5 MB, free: 14.01 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.896e-06/0.3527, allocations: 4 kB / 451.5 MB, free: 14 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.921e-05/0.3528, allocations: 15.98 kB / 451.5 MB, free: 13.99 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.013e-06/0.3528, allocations: 4 kB / 451.5 MB, free: 13.98 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.443e-05/0.3529, allocations: 8 kB / 451.5 MB, free: 13.98 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.112e-06/0.3529, allocations: 0 / 451.5 MB, free: 13.98 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.603e-06/0.3529, allocations: 0 / 451.5 MB, free: 13.98 MB / 346.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0004166/0.3533, allocations: 314.5 kB / 451.8 MB, free: 13.65 MB / 346.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.0004825/0.3538, allocations: 0.6853 MB / 452.5 MB, free: 12.94 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.545e-05/0.3538, allocations: 96.86 kB / 452.6 MB, free: 12.83 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.906e-05/0.3539, allocations: 8 kB / 452.6 MB, free: 12.82 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001267/0.354, allocations: 12.64 kB / 452.6 MB, free: 12.81 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.318e-05/0.3541, allocations: 19.97 kB / 452.6 MB, free: 12.79 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.041e-05/0.3541, allocations: 16 kB / 452.7 MB, free: 12.77 MB / 346.7 MB Notification: Performance of sort global known variables: time 8.874e-05/0.3542, allocations: 139.5 kB / 452.8 MB, free: 12.64 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.0008269/0.3551, allocations: 91.83 kB / 452.9 MB, free: 12.55 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.0002252/0.3553, allocations: 155.2 kB / 453 MB, free: 12.38 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.0005937/0.3559, allocations: 0.9427 MB / 454 MB, free: 11.41 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 2.936e-06/0.3559, allocations: 0 / 454 MB, free: 11.41 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.00019/0.3561, allocations: 215.3 kB / 454.2 MB, free: 11.18 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001875/0.3563, allocations: 26.11 kB / 454.2 MB, free: 11.16 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004556/0.3568, allocations: 266.9 kB / 454.5 MB, free: 10.88 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002682/0.357, allocations: 0.7467 MB / 455.2 MB, free: 10.1 MB / 346.7 MB Notification: Performance of SimCode: time 2.1e-07/0.3571, allocations: 0 / 455.2 MB, free: 10.1 MB / 346.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)