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/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/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: translateModel(MEV.Test.TestPatientController2,tolerance=1e-06,outputFormat="empty",numberOfIntervals=1000,variableFilter="",fileNamePrefix="MEV_MEV.Test.TestPatientController2") translateModel(MEV.Test.TestPatientController2,tolerance=1e-06,outputFormat="empty",numberOfIntervals=1000,variableFilter="",fileNamePrefix="MEV_MEV.Test.TestPatientController2") [: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.002262/0.002262, allocations: 185.2 kB / 7.459 MB, free: 2.5 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/MEV 1.1.1/package.mo): time 0.008297/0.008297, allocations: 1.93 MB / 9.795 MB, free: 452 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.025/1.025, allocations: 205.2 MB / 215.9 MB, free: 12.05 MB / 186.8 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0008263/0.0008262, allocations: 91.47 kB / 264.4 MB, free: 11.02 MB / 218.8 MB Notification: Performance of FrontEnd - loaded program: time 6.822e-06/6.842e-06, allocations: 4 kB / 318.5 MB, free: 4.836 MB / 266.8 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1885/0.1885, allocations: 48.07 MB / 366.6 MB, free: 45.99 MB / 298.8 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.07853/0.2671, allocations: 75.45 MB / 442 MB, free: 7.738 MB / 330.8 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001813/0.2673, allocations: 63.97 kB / 442.1 MB, free: 7.676 MB / 330.8 MB Notification: Performance of FrontEnd: time 0.01517/0.2825, allocations: 5.305 MB / 447.4 MB, free: 2.402 MB / 330.8 MB Notification: Performance of Transformations before backend: time 1.904e-05/0.2826, allocations: 8 kB / 447.4 MB, free: 2.395 MB / 330.8 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.0006563/0.2832, allocations: 0.4973 MB / 447.9 MB, free: 1.84 MB / 330.8 MB Notification: Performance of prepare preOptimizeDAE: time 3.779e-05/0.2833, allocations: 12.03 kB / 447.9 MB, free: 1.828 MB / 330.8 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.089e-05/0.2834, allocations: 19.81 kB / 448 MB, free: 1.809 MB / 330.8 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000365/0.2837, allocations: 239 kB / 448.2 MB, free: 1.535 MB / 330.8 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.998e-05/0.2838, allocations: 4 kB / 448.2 MB, free: 1.531 MB / 330.8 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.609e-05/0.2838, allocations: 4 kB / 448.2 MB, free: 1.527 MB / 330.8 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0001831/0.284, allocations: 97.92 kB / 448.3 MB, free: 1.434 MB / 330.8 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000215/0.2842, allocations: 145.6 kB / 448.4 MB, free: 1.285 MB / 330.8 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.328e-06/0.2842, allocations: 0 / 448.4 MB, free: 1.285 MB / 330.8 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.264e-05/0.2843, allocations: 4 kB / 448.4 MB, free: 1.281 MB / 330.8 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.919e-06/0.2843, allocations: 0 / 448.4 MB, free: 1.281 MB / 330.8 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005722/0.2848, allocations: 382.1 kB / 448.8 MB, free: 0.8711 MB / 330.8 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001987/0.2851, allocations: 134.6 kB / 448.9 MB, free: 0.7305 MB / 330.8 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001361/0.2852, allocations: 108.8 kB / 449 MB, free: 0.6211 MB / 330.8 MB Notification: Performance of preOpt evalFunc (simulation): time 1.134e-05/0.2852, allocations: 0 / 449 MB, free: 0.6211 MB / 330.8 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002422/0.2855, allocations: 221.2 kB / 449.3 MB, free: 392 kB / 330.8 MB Notification: Performance of pre-optimization done (n=23): time 1.613e-06/0.2855, allocations: 0 / 449.3 MB, free: 392 kB / 330.8 MB Notification: Performance of matching and sorting (n=23): time 0.0004681/0.286, allocations: 269.3 kB / 449.5 MB, free: 116 kB / 330.8 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.432e-05/0.2861, allocations: 110.8 kB / 449.6 MB, free: 15.98 MB / 346.8 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001507/0.2862, allocations: 174.7 kB / 449.8 MB, free: 15.8 MB / 346.8 MB Notification: Performance of collectPreVariables (initialization): time 3.219e-05/0.2863, allocations: 29.7 kB / 449.8 MB, free: 15.77 MB / 346.8 MB Notification: Performance of collectInitialEqns (initialization): time 4.227e-05/0.2863, allocations: 92.56 kB / 449.9 MB, free: 15.67 MB / 346.8 MB Notification: Performance of collectInitialBindings (initialization): time 5.89e-05/0.2864, allocations: 67.12 kB / 450 MB, free: 15.61 MB / 346.8 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.509e-05/0.2864, allocations: 4 kB / 450 MB, free: 15.6 MB / 346.8 MB Notification: Performance of setup shared object (initialization): time 0.000102/0.2865, allocations: 330.8 kB / 450.3 MB, free: 15.27 MB / 346.8 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001417/0.2866, allocations: 92.2 kB / 450.4 MB, free: 15.18 MB / 346.8 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000126/0.2868, allocations: 92.44 kB / 450.5 MB, free: 15.09 MB / 346.8 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001788/0.287, allocations: 98.59 kB / 450.6 MB, free: 14.99 MB / 346.8 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.316e-06/0.287, allocations: 3.906 kB / 450.6 MB, free: 14.99 MB / 346.8 MB Notification: Performance of matching and sorting (n=28) (initialization): time 0.0003973/0.2874, allocations: 275.6 kB / 450.9 MB, free: 14.71 MB / 346.8 MB Notification: Performance of prepare postOptimizeDAE: time 1.269e-05/0.2874, allocations: 4 kB / 450.9 MB, free: 14.71 MB / 346.8 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.913e-06/0.2874, allocations: 8 kB / 450.9 MB, free: 14.7 MB / 346.8 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.075e-05/0.2874, allocations: 3.938 kB / 450.9 MB, free: 14.7 MB / 346.8 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.61e-05/0.2875, allocations: 19.98 kB / 450.9 MB, free: 14.68 MB / 346.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.178e-06/0.2875, allocations: 0 / 450.9 MB, free: 14.68 MB / 346.8 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001335/0.2877, allocations: 19.89 kB / 450.9 MB, free: 14.66 MB / 346.8 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.426e-05/0.2877, allocations: 8 kB / 450.9 MB, free: 14.65 MB / 346.8 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.0001264/0.2879, allocations: 182.1 kB / 451.1 MB, free: 14.46 MB / 346.8 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.616e-05/0.2879, allocations: 23.72 kB / 451.1 MB, free: 14.43 MB / 346.8 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.051e-05/0.2879, allocations: 21.73 kB / 451.1 MB, free: 14.41 MB / 346.8 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.827e-06/0.288, allocations: 7.938 kB / 451.2 MB, free: 14.41 MB / 346.8 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.079e-06/0.288, allocations: 0 / 451.2 MB, free: 14.41 MB / 346.8 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.157e-06/0.288, allocations: 0 / 451.2 MB, free: 14.41 MB / 346.8 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001931/0.2882, allocations: 235.7 kB / 451.4 MB, free: 14.14 MB / 346.8 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.563e-06/0.2882, allocations: 0 / 451.4 MB, free: 14.14 MB / 346.8 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.953e-05/0.2883, allocations: 12 kB / 451.4 MB, free: 14.13 MB / 346.8 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.545e-06/0.2883, allocations: 0 / 451.4 MB, free: 14.13 MB / 346.8 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.086e-05/0.2883, allocations: 15.98 kB / 451.4 MB, free: 14.11 MB / 346.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.415e-06/0.2883, allocations: 0 / 451.4 MB, free: 14.11 MB / 346.8 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.896e-06/0.2883, allocations: 0 / 451.4 MB, free: 14.11 MB / 346.8 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0004504/0.2888, allocations: 315.4 kB / 451.7 MB, free: 13.79 MB / 346.8 MB Notification: Performance of postOpt removeConstants (simulation): time 4.415e-05/0.2888, allocations: 96.86 kB / 451.8 MB, free: 13.68 MB / 346.8 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.146e-05/0.2889, allocations: 4 kB / 451.8 MB, free: 13.67 MB / 346.8 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001258/0.289, allocations: 23.89 kB / 451.8 MB, free: 13.65 MB / 346.8 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.726e-05/0.2891, allocations: 15.97 kB / 451.9 MB, free: 13.63 MB / 346.8 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.363e-05/0.2891, allocations: 16 kB / 451.9 MB, free: 13.62 MB / 346.8 MB Notification: Performance of sort global known variables: time 9.365e-05/0.2892, allocations: 147.4 kB / 452 MB, free: 13.47 MB / 346.8 MB Notification: Performance of remove unused functions: time 0.0003163/0.2896, allocations: 79.92 kB / 452.1 MB, free: 13.39 MB / 346.8 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.0002753/0.2898, allocations: 163.1 kB / 452.3 MB, free: 13.22 MB / 346.8 MB Notification: Performance of simCode: created initialization part: time 0.0006931/0.2905, allocations: 0.9462 MB / 453.2 MB, free: 12.24 MB / 346.8 MB Notification: Performance of simCode: created event and clocks part: time 4.719e-06/0.2906, allocations: 0 / 453.2 MB, free: 12.24 MB / 346.8 MB Notification: Performance of simCode: created simulation system equations: time 0.0002081/0.2908, allocations: 224.5 kB / 453.4 MB, free: 12.01 MB / 346.8 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001736/0.291, allocations: 12.09 kB / 453.4 MB, free: 12 MB / 346.8 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004774/0.2915, allocations: 267 kB / 453.7 MB, free: 11.71 MB / 346.8 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000295/0.2918, allocations: 0.7429 MB / 454.4 MB, free: 10.94 MB / 346.8 MB Notification: Performance of SimCode: time 2.41e-07/0.2918, allocations: 0 / 454.4 MB, free: 10.94 MB / 346.8 MB Notification: Performance of Templates: time 0.005253/0.297, allocations: 2.498 MB / 456.9 MB, free: 8.461 MB / 346.8 MB make -j1 -f MEV_MEV.Test.TestPatientController2.makefile (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 & ./MEV_MEV.Test.TestPatientController2 -abortSlowSimulation -alarm=480 -lv LOG_STATS > MEV_MEV.Test.TestPatientController2.pipe 2>&1)