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-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.Controls.PatientController,fileNamePrefix="MEV_MEV_Controls_PatientController",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(MEV.Controls.PatientController,fileNamePrefix="MEV_MEV_Controls_PatientController",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.001001/0.001001, allocations: 183.4 kB / 7.462 MB, free: 488 kB / 6.207 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/MEV 1.1.1-master/package.mo): time 0.009209/0.009209, allocations: 1.911 MB / 9.783 MB, free: 1.008 MB / 6.207 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.023/1.023, allocations: 205.2 MB / 215.9 MB, free: 15.39 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0008114/0.0008116, allocations: 100.5 kB / 264.4 MB, free: 14.7 MB / 222.1 MB Notification: Performance of FrontEnd - loaded program: time 0.09224/0.09308, allocations: 54.2 MB / 318.6 MB, free: 8.457 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07691/0.17, allocations: 48.09 MB / 366.7 MB, free: 8.242 MB / 318.1 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.184/0.3541, allocations: 73.84 MB / 440.5 MB, free: 3.367 MB / 318.1 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001575/0.3543, allocations: 55.97 kB / 440.6 MB, free: 3.312 MB / 318.1 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.001567/0.3559, allocations: 0.5775 MB / 441.2 MB, free: 2.715 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.748e-05/0.3559, allocations: 12 kB / 441.2 MB, free: 2.703 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.903e-05/0.356, allocations: 0 / 441.2 MB, free: 2.703 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 6.551e-05/0.356, allocations: 166.2 kB / 441.4 MB, free: 2.504 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.354e-05/0.3561, allocations: 7.094 kB / 441.4 MB, free: 2.5 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.61e-05/0.3561, allocations: 0 / 441.4 MB, free: 2.5 MB / 318.1 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 6.787e-05/0.3562, allocations: 15.92 kB / 441.4 MB, free: 2.484 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 6.238e-05/0.3562, allocations: 37.69 kB / 441.4 MB, free: 2.441 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.031e-06/0.3562, allocations: 0 / 441.4 MB, free: 2.441 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.997e-06/0.3563, allocations: 4 kB / 441.4 MB, free: 2.438 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.508e-06/0.3563, allocations: 3.906 kB / 441.4 MB, free: 2.434 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001045/0.3564, allocations: 140.2 kB / 441.6 MB, free: 2.262 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 5.468e-05/0.3564, allocations: 26.58 kB / 441.6 MB, free: 2.227 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 2.212e-05/0.3565, allocations: 8.859 kB / 441.6 MB, free: 2.215 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.018e-05/0.3565, allocations: 2.375 kB / 441.6 MB, free: 2.215 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.245e-05/0.3566, allocations: 71.38 kB / 441.7 MB, free: 2.133 MB / 318.1 MB Notification: Performance of pre-optimization done (n=7): time 1.954e-06/0.3566, allocations: 2.906 kB / 441.7 MB, free: 2.133 MB / 318.1 MB Notification: Performance of matching and sorting (n=7): time 0.0001304/0.3567, allocations: 53.69 kB / 441.7 MB, free: 2.074 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.139e-05/0.3567, allocations: 53.19 kB / 441.8 MB, free: 2.012 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 3.986e-05/0.3568, allocations: 93 kB / 441.9 MB, free: 1.914 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 1.14e-05/0.3568, allocations: 25.7 kB / 441.9 MB, free: 1.883 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 2.745e-05/0.3568, allocations: 88.98 kB / 442 MB, free: 1.793 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.178e-05/0.3568, allocations: 19.78 kB / 442 MB, free: 1.773 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.728e-06/0.3569, allocations: 5.031 kB / 442 MB, free: 1.77 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 3.8e-05/0.3569, allocations: 314.8 kB / 442.3 MB, free: 1.453 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 2.552e-05/0.3569, allocations: 14.64 kB / 442.3 MB, free: 1.441 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 3.425e-05/0.357, allocations: 36.25 kB / 442.4 MB, free: 1.398 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 2.697e-05/0.357, allocations: 15.03 kB / 442.4 MB, free: 1.387 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.753e-06/0.357, allocations: 0 / 442.4 MB, free: 1.387 MB / 318.1 MB Notification: Performance of matching and sorting (n=10) (initialization): time 9.983e-05/0.3571, allocations: 74.84 kB / 442.4 MB, free: 1.309 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.002e-05/0.3571, allocations: 4 kB / 442.4 MB, free: 1.305 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.638e-06/0.3571, allocations: 3.938 kB / 442.5 MB, free: 1.301 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.003e-05/0.3572, allocations: 0 / 442.5 MB, free: 1.301 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.074e-05/0.3572, allocations: 14.92 kB / 442.5 MB, free: 1.289 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.777e-06/0.3572, allocations: 0 / 442.5 MB, free: 1.289 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.385e-05/0.3573, allocations: 19.83 kB / 442.5 MB, free: 1.27 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.164e-05/0.3573, allocations: 4 kB / 442.5 MB, free: 1.266 MB / 318.1 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 4.48e-05/0.3574, allocations: 104.4 kB / 442.6 MB, free: 1.16 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.152e-05/0.3574, allocations: 7.906 kB / 442.6 MB, free: 1.152 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.435e-05/0.3574, allocations: 8.062 kB / 442.6 MB, free: 1.148 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.503e-06/0.3574, allocations: 3.594 kB / 442.6 MB, free: 1.148 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.266e-06/0.3574, allocations: 0 / 442.6 MB, free: 1.148 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.586e-06/0.3575, allocations: 0 / 442.6 MB, free: 1.148 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 5.633e-05/0.3575, allocations: 134.2 kB / 442.7 MB, free: 0.9805 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.482e-06/0.3575, allocations: 7.984 kB / 442.7 MB, free: 0.9727 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.004e-05/0.3576, allocations: 7.938 kB / 442.8 MB, free: 0.9648 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.615e-06/0.3576, allocations: 0.8438 kB / 442.8 MB, free: 0.9648 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.867e-06/0.3576, allocations: 3.906 kB / 442.8 MB, free: 0.9609 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.162e-06/0.3576, allocations: 2.562 kB / 442.8 MB, free: 0.9609 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.715e-06/0.3576, allocations: 0 / 442.8 MB, free: 0.9609 MB / 318.1 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 9.21e-05/0.3577, allocations: 98.69 kB / 442.9 MB, free: 0.8516 MB / 318.1 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.000181/0.3579, allocations: 495.7 kB / 443.3 MB, free: 356 kB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 1.675e-05/0.3579, allocations: 81.11 kB / 443.4 MB, free: 256 kB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.732e-05/0.3579, allocations: 3.984 kB / 443.4 MB, free: 252 kB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.918e-05/0.358, allocations: 5.969 kB / 443.4 MB, free: 248 kB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.309e-05/0.3581, allocations: 9.984 kB / 443.4 MB, free: 240 kB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.334e-06/0.3581, allocations: 8 kB / 443.5 MB, free: 232 kB / 318.1 MB Notification: Performance of sort global known variables: time 1.621e-05/0.3581, allocations: 87.36 kB / 443.5 MB, free: 148 kB / 318.1 MB Notification: Performance of remove unused functions: time 0.0007254/0.3588, allocations: 11.91 kB / 443.5 MB, free: 136 kB / 318.1 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 6.929e-05/0.3589, allocations: 91.25 kB / 443.6 MB, free: 36 kB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.000412/0.3593, allocations: 0.7168 MB / 444.4 MB, free: 15.29 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 1.553e-06/0.3593, allocations: 0 / 444.4 MB, free: 15.29 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 4.115e-05/0.3594, allocations: 20.22 kB / 444.4 MB, free: 15.27 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 9.864e-05/0.3595, allocations: 17.78 kB / 444.4 MB, free: 15.26 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002323/0.3597, allocations: 78.2 kB / 444.5 MB, free: 15.16 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002383/0.36, allocations: 0.6968 MB / 445.2 MB, free: 14.44 MB / 334.1 MB Notification: Performance of SimCode: time 2.4e-07/0.36, allocations: 0 / 445.2 MB, free: 14.44 MB / 334.1 MB (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 & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_MEV_MEV_Controls_PatientController_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 MEV_MEV_Controls_PatientController.fmu > MEV_MEV.Controls.PatientController.pipe 2>&1)