Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr MEV_MEV.Controls.PatientController.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.Controls.PatientController,tolerance=1e-06,outputFormat="empty",numberOfIntervals=1000,variableFilter="",fileNamePrefix="MEV_MEV.Controls.PatientController") translateModel(MEV.Controls.PatientController,tolerance=1e-06,outputFormat="empty",numberOfIntervals=1000,variableFilter="",fileNamePrefix="MEV_MEV.Controls.PatientController") [: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.002056/0.002056, allocations: 183.1 kB / 7.454 MB, free: 2.516 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/MEV 1.1.1/package.mo): time 0.006863/0.006863, allocations: 1.917 MB / 9.789 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.02/1.02, allocations: 205.2 MB / 215.9 MB, free: 12.06 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.0008112/0.0008112, allocations: 87.7 kB / 264.4 MB, free: 11.03 MB / 218.8 MB Notification: Performance of FrontEnd - loaded program: time 5.069e-06/5.099e-06, allocations: 0 / 318.5 MB, free: 4.836 MB / 266.8 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.187/0.187, allocations: 48.06 MB / 366.6 MB, free: 45.96 MB / 298.8 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.07473/0.2618, allocations: 73.85 MB / 440.4 MB, free: 9.32 MB / 330.8 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000166/0.262, allocations: 51.98 kB / 440.5 MB, free: 9.27 MB / 330.8 MB Notification: Performance of FrontEnd: time 0.00118/0.2632, allocations: 249.2 kB / 440.7 MB, free: 9.043 MB / 330.8 MB Notification: Performance of Transformations before backend: time 5.35e-06/0.2632, allocations: 0 / 440.7 MB, free: 9.043 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: 4 * Number of variables: 4 Notification: Performance of Generate backend data structure: time 0.0003762/0.2636, allocations: 341.1 kB / 441.1 MB, free: 8.672 MB / 330.8 MB Notification: Performance of prepare preOptimizeDAE: time 3.412e-05/0.2636, allocations: 9.344 kB / 441.1 MB, free: 8.664 MB / 330.8 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.772e-05/0.2637, allocations: 7.906 kB / 441.1 MB, free: 8.656 MB / 330.8 MB Notification: Performance of preOpt evaluateParameters (simulation): time 8.956e-05/0.2637, allocations: 166.8 kB / 441.2 MB, free: 8.457 MB / 330.8 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.955e-05/0.2638, allocations: 4 kB / 441.3 MB, free: 8.453 MB / 330.8 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.647e-05/0.2638, allocations: 0 / 441.3 MB, free: 8.453 MB / 330.8 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 5.971e-05/0.2639, allocations: 15.94 kB / 441.3 MB, free: 8.438 MB / 330.8 MB Notification: Performance of preOpt clockPartitioning (simulation): time 6.653e-05/0.2639, allocations: 37.67 kB / 441.3 MB, free: 8.395 MB / 330.8 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.562e-06/0.2639, allocations: 4 kB / 441.3 MB, free: 8.391 MB / 330.8 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.055e-05/0.264, allocations: 4 kB / 441.3 MB, free: 8.387 MB / 330.8 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.483e-06/0.264, allocations: 7.906 kB / 441.3 MB, free: 8.379 MB / 330.8 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001304/0.2641, allocations: 134.2 kB / 441.5 MB, free: 8.211 MB / 330.8 MB Notification: Performance of preOpt comSubExp (simulation): time 5.919e-05/0.2642, allocations: 30.36 kB / 441.5 MB, free: 8.176 MB / 330.8 MB Notification: Performance of preOpt resolveLoops (simulation): time 2.527e-05/0.2642, allocations: 16.36 kB / 441.5 MB, free: 8.16 MB / 330.8 MB Notification: Performance of preOpt evalFunc (simulation): time 8.797e-06/0.2642, allocations: 0 / 441.5 MB, free: 8.16 MB / 330.8 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001097/0.2643, allocations: 67.38 kB / 441.6 MB, free: 8.082 MB / 330.8 MB Notification: Performance of pre-optimization done (n=7): time 1.142e-06/0.2644, allocations: 0 / 441.6 MB, free: 8.082 MB / 330.8 MB Notification: Performance of matching and sorting (n=7): time 0.0001388/0.2645, allocations: 61.06 kB / 441.6 MB, free: 8.02 MB / 330.8 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.787e-05/0.2645, allocations: 51.41 kB / 441.7 MB, free: 7.957 MB / 330.8 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.301e-05/0.2646, allocations: 89 kB / 441.8 MB, free: 7.863 MB / 330.8 MB Notification: Performance of collectPreVariables (initialization): time 2.128e-05/0.2646, allocations: 25.7 kB / 441.8 MB, free: 7.832 MB / 330.8 MB Notification: Performance of collectInitialEqns (initialization): time 4.138e-05/0.2647, allocations: 92.7 kB / 441.9 MB, free: 7.738 MB / 330.8 MB Notification: Performance of collectInitialBindings (initialization): time 1.249e-05/0.2647, allocations: 11.8 kB / 441.9 MB, free: 7.727 MB / 330.8 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.887e-06/0.2647, allocations: 0 / 441.9 MB, free: 7.727 MB / 330.8 MB Notification: Performance of setup shared object (initialization): time 9.35e-05/0.2648, allocations: 319.5 kB / 442.2 MB, free: 7.406 MB / 330.8 MB Notification: Performance of preBalanceInitialSystem (initialization): time 2.813e-05/0.2648, allocations: 14.5 kB / 442.2 MB, free: 7.395 MB / 330.8 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.907e-05/0.2649, allocations: 36.61 kB / 442.2 MB, free: 7.352 MB / 330.8 MB Notification: Performance of analyzeInitialSystem (initialization): time 3.071e-05/0.2649, allocations: 23.59 kB / 442.3 MB, free: 7.332 MB / 330.8 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.402e-06/0.2649, allocations: 128 / 442.3 MB, free: 7.332 MB / 330.8 MB Notification: Performance of matching and sorting (n=10) (initialization): time 0.000109/0.265, allocations: 77.59 kB / 442.3 MB, free: 7.25 MB / 330.8 MB Notification: Performance of prepare postOptimizeDAE: time 1.069e-05/0.2651, allocations: 7.938 kB / 442.4 MB, free: 7.242 MB / 330.8 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.907e-06/0.2651, allocations: 0 / 442.4 MB, free: 7.242 MB / 330.8 MB Notification: Performance of postOpt tearingSystem (initialization): time 9.307e-06/0.2651, allocations: 0 / 442.4 MB, free: 7.242 MB / 330.8 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.959e-05/0.2651, allocations: 11.98 kB / 442.4 MB, free: 7.23 MB / 330.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.967e-06/0.2652, allocations: 0 / 442.4 MB, free: 7.23 MB / 330.8 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.564e-05/0.2652, allocations: 19.91 kB / 442.4 MB, free: 7.211 MB / 330.8 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.161e-05/0.2653, allocations: 4 kB / 442.4 MB, free: 7.207 MB / 330.8 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 3 * Number of states: 0 () * Number of discrete variables: 9 ($whenCondition2,$whenCondition3,$whenCondition1,$PRE.t_on,t_on,$PRE.t_off,t_off,$PRE.active,active) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (9): * Single equations (assignments): 8 * Array equations: 0 * Algorithm blocks: 0 * 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 6.952e-05/0.2653, allocations: 109 kB / 442.5 MB, free: 7.094 MB / 330.8 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.267e-05/0.2653, allocations: 7.906 kB / 442.5 MB, free: 7.086 MB / 330.8 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.914e-05/0.2654, allocations: 4.062 kB / 442.5 MB, free: 7.086 MB / 330.8 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.272e-06/0.2654, allocations: 0 / 442.5 MB, free: 7.086 MB / 330.8 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.526e-06/0.2654, allocations: 0 / 442.5 MB, free: 7.086 MB / 330.8 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.745e-06/0.2654, allocations: 0 / 442.5 MB, free: 7.086 MB / 330.8 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 8.873e-05/0.2655, allocations: 134.2 kB / 442.6 MB, free: 6.918 MB / 330.8 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.415e-06/0.2655, allocations: 0 / 442.6 MB, free: 6.918 MB / 330.8 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.38e-05/0.2655, allocations: 27.33 kB / 442.7 MB, free: 6.895 MB / 330.8 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.693e-06/0.2656, allocations: 0 / 442.7 MB, free: 6.895 MB / 330.8 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.578e-06/0.2656, allocations: 3.906 kB / 442.7 MB, free: 6.891 MB / 330.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.002e-06/0.2656, allocations: 0 / 442.7 MB, free: 6.891 MB / 330.8 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.393e-06/0.2656, allocations: 0 / 442.7 MB, free: 6.891 MB / 330.8 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 9.305e-05/0.2657, allocations: 85.02 kB / 442.8 MB, free: 6.789 MB / 330.8 MB Notification: Performance of postOpt removeConstants (simulation): time 2.734e-05/0.2657, allocations: 85.09 kB / 442.8 MB, free: 6.688 MB / 330.8 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.457e-05/0.2657, allocations: 4 kB / 442.8 MB, free: 6.684 MB / 330.8 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.744e-05/0.2658, allocations: 4 kB / 442.8 MB, free: 6.68 MB / 330.8 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.392e-05/0.2658, allocations: 15.97 kB / 442.9 MB, free: 6.664 MB / 330.8 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.378e-05/0.2659, allocations: 4 kB / 442.9 MB, free: 6.66 MB / 330.8 MB Notification: Performance of sort global known variables: time 2.398e-05/0.2659, allocations: 75.28 kB / 442.9 MB, free: 6.586 MB / 330.8 MB Notification: Performance of remove unused functions: time 0.0001728/0.2661, allocations: 8 kB / 442.9 MB, free: 6.578 MB / 330.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: 6 ($whenCondition2,$whenCondition3,$whenCondition1,t_on,t_off,active) * Number of discrete states: 2 (active,t_on) * Top-level inputs: 0 Notification: Strong component statistics for simulation (7): * Single equations (assignments): 4 * Array equations: 0 * Algorithm blocks: 0 * 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 8.15e-05/0.2662, allocations: 99.28 kB / 443 MB, free: 6.473 MB / 330.8 MB Notification: Performance of simCode: created initialization part: time 0.000401/0.2666, allocations: 0.718 MB / 443.8 MB, free: 5.73 MB / 330.8 MB Notification: Performance of simCode: created event and clocks part: time 1.663e-06/0.2666, allocations: 0 / 443.8 MB, free: 5.73 MB / 330.8 MB Notification: Performance of simCode: created simulation system equations: time 4.213e-05/0.2666, allocations: 19.98 kB / 443.8 MB, free: 5.711 MB / 330.8 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 8.408e-05/0.2667, allocations: 4 kB / 443.8 MB, free: 5.707 MB / 330.8 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002075/0.2669, allocations: 78.34 kB / 443.9 MB, free: 5.609 MB / 330.8 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002328/0.2672, allocations: 0.6919 MB / 444.6 MB, free: 4.891 MB / 330.8 MB Notification: Performance of SimCode: time 2.81e-07/0.2672, allocations: 0 / 444.6 MB, free: 4.891 MB / 330.8 MB Notification: Performance of Templates: time 0.002057/0.2692, allocations: 0.6365 MB / 445.2 MB, free: 4.254 MB / 330.8 MB make -j1 -f MEV_MEV.Controls.PatientController.makefile (rm -f MEV_MEV.Controls.PatientController.pipe ; mkfifo MEV_MEV.Controls.PatientController.pipe ; head -c 1048576 < MEV_MEV.Controls.PatientController.pipe >> ../files/MEV_MEV.Controls.PatientController.sim & ./MEV_MEV.Controls.PatientController -abortSlowSimulation -alarm=480 -lv LOG_STATS > MEV_MEV.Controls.PatientController.pipe 2>&1)