Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr IDEAS_dev_IDEAS.Fluid.Actuators.Valves.Examples.TwoWayValvesMotor.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0-master/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package IDEAS with version 3.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0-master/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Running command: translateModel(IDEAS.Fluid.Actuators.Valves.Examples.TwoWayValvesMotor,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="IDEAS_dev_IDEAS.Fluid.Actuators.Valves.Examples.TwoWayValvesMotor") translateModel(IDEAS.Fluid.Actuators.Valves.Examples.TwoWayValvesMotor,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="IDEAS_dev_IDEAS.Fluid.Actuators.Valves.Examples.TwoWayValvesMotor") [: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 4.0.0+maint.om/package.mo): time 0.002503/0.002503, allocations: 179.4 kB / 7.457 MB, free: 2.512 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0-master/package.mo): time 0.5852/0.5852, allocations: 133.5 MB / 141.4 MB, free: 15.68 MB / 122.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.074/1.074, allocations: 221.3 MB / 395 MB, free: 10.21 MB / 314.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008397/0.0008396, allocations: 79.5 kB / 477.8 MB, free: 10.79 MB / 394.7 MB Notification: Performance of FrontEnd - loaded program: time 5.921e-06/6.011e-06, allocations: 0 / 0.5529 GB, free: 89.24 MB / 442.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0984/0.09842, allocations: 82.3 MB / 0.6332 GB, free: 14.09 MB / 442.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.6535/0.7519, allocations: 362.1 MB / 0.9868 GB, free: 262.9 MB / 0.6823 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002216/0.7522, allocations: 93.05 kB / 0.9869 GB, free: 262.9 MB / 0.6823 GB Notification: Performance of FrontEnd: time 0.6749/1.427, allocations: 306.4 MB / 1.286 GB, free: 170.6 MB / 0.6823 GB Notification: Performance of Transformations before backend: time 5.32e-05/1.427, allocations: 23.34 kB / 1.286 GB, free: 170.6 MB / 0.6823 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 140 * Number of variables: 140 Notification: Performance of Generate backend data structure: time 0.001538/1.429, allocations: 1.253 MB / 1.287 GB, free: 170 MB / 0.6823 GB Notification: Performance of prepare preOptimizeDAE: time 2.849e-05/1.429, allocations: 11 kB / 1.287 GB, free: 170 MB / 0.6823 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001537/1.429, allocations: 121.4 kB / 1.288 GB, free: 170 MB / 0.6823 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001005/1.43, allocations: 0.6765 MB / 1.288 GB, free: 169.7 MB / 0.6823 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.721e-05/1.43, allocations: 19.31 kB / 1.288 GB, free: 169.7 MB / 0.6823 GB Notification: Performance of preOpt expandDerOperator (simulation): time 7.543e-05/1.43, allocations: 45.03 kB / 1.288 GB, free: 169.7 MB / 0.6823 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0005472/1.431, allocations: 394.6 kB / 1.289 GB, free: 169.7 MB / 0.6823 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006559/1.431, allocations: 0.5787 MB / 1.289 GB, free: 169.6 MB / 0.6823 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.621e-05/1.431, allocations: 0 / 1.289 GB, free: 169.6 MB / 0.6823 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.475e-05/1.431, allocations: 7.359 kB / 1.289 GB, free: 169.6 MB / 0.6823 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.02e-05/1.431, allocations: 11.47 kB / 1.289 GB, free: 169.6 MB / 0.6823 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002268/1.434, allocations: 2.466 MB / 1.292 GB, free: 168.3 MB / 0.6823 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0004071/1.434, allocations: 333.9 kB / 1.292 GB, free: 168.3 MB / 0.6823 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002038/1.434, allocations: 186.6 kB / 1.292 GB, free: 168.3 MB / 0.6823 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001867/1.434, allocations: 342.8 kB / 1.292 GB, free: 167.9 MB / 0.6823 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002864/1.435, allocations: 321.5 kB / 1.293 GB, free: 167.8 MB / 0.6823 GB Notification: Performance of pre-optimization done (n=37): time 1.713e-06/1.435, allocations: 0 / 1.293 GB, free: 167.8 MB / 0.6823 GB Notification: Performance of matching and sorting (n=37): time 0.001089/1.436, allocations: 0.5534 MB / 1.293 GB, free: 167.7 MB / 0.6823 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.317e-05/1.436, allocations: 242.1 kB / 1.294 GB, free: 167.4 MB / 0.6823 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000491/1.436, allocations: 0.5978 MB / 1.294 GB, free: 167.3 MB / 0.6823 GB Notification: Performance of collectPreVariables (initialization): time 4.336e-05/1.436, allocations: 29.58 kB / 1.294 GB, free: 167.3 MB / 0.6823 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001243/1.437, allocations: 309.6 kB / 1.294 GB, free: 167.1 MB / 0.6823 GB Notification: Performance of collectInitialBindings (initialization): time 6.541e-05/1.437, allocations: 116.1 kB / 1.295 GB, free: 167 MB / 0.6823 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.882e-05/1.437, allocations: 3.812 kB / 1.295 GB, free: 167 MB / 0.6823 GB Notification: Performance of setup shared object (initialization): time 4.038e-05/1.437, allocations: 330.3 kB / 1.295 GB, free: 166.7 MB / 0.6823 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002384/1.437, allocations: 189.3 kB / 1.295 GB, free: 166.7 MB / 0.6823 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003007/1.437, allocations: 384.3 kB / 1.295 GB, free: 166.5 MB / 0.6823 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007415/1.438, allocations: 325.4 kB / 1.296 GB, free: 166.5 MB / 0.6823 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.455e-06/1.438, allocations: 3.438 kB / 1.296 GB, free: 166.5 MB / 0.6823 GB Notification: Performance of matching and sorting (n=70) (initialization): time 0.001197/1.439, allocations: 0.7006 MB / 1.296 GB, free: 166.4 MB / 0.6823 GB Notification: Performance of prepare postOptimizeDAE: time 0.000146/1.439, allocations: 1.058 MB / 1.297 GB, free: 165.3 MB / 0.6823 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.661e-06/1.439, allocations: 0 / 1.297 GB, free: 165.3 MB / 0.6823 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.561e-05/1.439, allocations: 7.062 kB / 1.297 GB, free: 165.3 MB / 0.6823 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008782/1.44, allocations: 161.2 kB / 1.298 GB, free: 165.3 MB / 0.6823 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0006274/1.441, allocations: 1.809 MB / 1.299 GB, free: 163.6 MB / 0.6823 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006447/1.442, allocations: 118.9 kB / 1.3 GB, free: 163.5 MB / 0.6823 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.828e-05/1.442, allocations: 32.27 kB / 1.3 GB, free: 163.5 MB / 0.6823 GB Notification: Performance of prepare postOptimizeDAE: time 4.709e-06/1.442, allocations: 7.031 kB / 1.3 GB, free: 163.5 MB / 0.6823 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001029/1.443, allocations: 0.5646 MB / 1.3 GB, free: 163.5 MB / 0.6823 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.915e-06/1.443, allocations: 3.844 kB / 1.3 GB, free: 163.5 MB / 0.6823 GB Notification: Performance of postOpt tearingSystem (initialization): time 5.471e-06/1.443, allocations: 11 kB / 1.3 GB, free: 163.5 MB / 0.6823 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004774/1.443, allocations: 127.4 kB / 1.3 GB, free: 163.5 MB / 0.6823 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.628e-06/1.443, allocations: 11.25 kB / 1.3 GB, free: 163.5 MB / 0.6823 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005752/1.444, allocations: 98.08 kB / 1.3 GB, free: 163.5 MB / 0.6823 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.441e-05/1.444, allocations: 35.62 kB / 1.3 GB, free: 163.5 MB / 0.6823 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 12 * Number of states: 0 () * Number of discrete variables: 12 ($whenCondition1,ySet.a,ySet.b,ySet.last,$PRE.ySet.nextEvent,ySet.nextEvent,ySet.nextEventScaled,$PRE.mot.uppHys.y,mot.uppHys.y,$PRE.mot.lowHys.y,mot.lowHys.y,mot.int.local_reset) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (65): * Single equations (assignments): 61 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 3 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 0 * Non-linear Jacobian: 3 {1,1,1} * Without analytic Jacobian: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001191/1.444, allocations: 152.6 kB / 1.301 GB, free: 163.4 MB / 0.6823 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.946e-05/1.444, allocations: 86.22 kB / 1.301 GB, free: 163.3 MB / 0.6823 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001284/1.445, allocations: 0.6638 MB / 1.301 GB, free: 163.3 MB / 0.6823 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.552e-06/1.445, allocations: 7.094 kB / 1.301 GB, free: 163.3 MB / 0.6823 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.469e-06/1.445, allocations: 11.28 kB / 1.301 GB, free: 163.3 MB / 0.6823 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.781e-06/1.445, allocations: 0 / 1.301 GB, free: 163.3 MB / 0.6823 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001776/1.447, allocations: 1.461 MB / 1.303 GB, free: 162.8 MB / 0.6823 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.298e-06/1.447, allocations: 3.906 kB / 1.303 GB, free: 162.8 MB / 0.6823 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003951/1.448, allocations: 97.58 kB / 1.303 GB, free: 162.8 MB / 0.6823 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.027e-06/1.448, allocations: 3.875 kB / 1.303 GB, free: 162.8 MB / 0.6823 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.245e-05/1.448, allocations: 14 kB / 1.303 GB, free: 162.8 MB / 0.6823 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.000418/1.448, allocations: 1.783 MB / 1.305 GB, free: 161 MB / 0.6823 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.344e-06/1.448, allocations: 0 / 1.305 GB, free: 161 MB / 0.6823 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.001308/1.449, allocations: 1.159 MB / 1.306 GB, free: 160.6 MB / 0.6823 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002724/1.45, allocations: 234.8 kB / 1.306 GB, free: 160.5 MB / 0.6823 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000116/1.45, allocations: 5.875 kB / 1.306 GB, free: 160.5 MB / 0.6823 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005705/1.45, allocations: 73.39 kB / 1.306 GB, free: 160.5 MB / 0.6823 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.268e-05/1.451, allocations: 43.67 kB / 1.306 GB, free: 160.5 MB / 0.6823 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.478e-05/1.451, allocations: 25.69 kB / 1.306 GB, free: 160.5 MB / 0.6823 GB Notification: Performance of sort global known variables: time 0.0003522/1.451, allocations: 457.5 kB / 1.306 GB, free: 160.4 MB / 0.6823 GB Notification: Performance of remove unused functions: time 0.0009938/1.452, allocations: 0.4907 MB / 1.307 GB, free: 160.3 MB / 0.6823 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * Number of states: 1 (mot.int.y) * Number of discrete variables: 8 ($whenCondition1,ySet.a,ySet.b,ySet.last,ySet.nextEvent,ySet.nextEventScaled,mot.uppHys.y,mot.lowHys.y) * Number of discrete states: 8 (ySet.nextEvent,ySet.last,ySet.nextEventScaled,ySet.b,ySet.a,$whenCondition1,mot.lowHys.y,mot.uppHys.y) * Top-level inputs: 0 Notification: Strong component statistics for simulation (38): * Single equations (assignments): 32 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 2 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 3 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 0 * Non-linear Jacobian: 3 {1,1,1} * Without analytic Jacobian: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0006404/1.453, allocations: 479.5 kB / 1.307 GB, free: 160.1 MB / 0.6823 GB Notification: Performance of simCode: created initialization part: time 0.001402/1.454, allocations: 0.839 MB / 1.308 GB, free: 160.1 MB / 0.6823 GB Notification: Performance of simCode: created event and clocks part: time 2.344e-06/1.454, allocations: 0 / 1.308 GB, free: 160.1 MB / 0.6823 GB Notification: Performance of simCode: created simulation system equations: time 0.0004383/1.454, allocations: 304.9 kB / 1.309 GB, free: 160 MB / 0.6823 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00135/1.456, allocations: 300.9 kB / 1.309 GB, free: 160 MB / 0.6823 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001618/1.457, allocations: 1.069 MB / 1.31 GB, free: 159.7 MB / 0.6823 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004471/1.458, allocations: 1.096 MB / 1.311 GB, free: 159 MB / 0.6823 GB Notification: Performance of SimCode: time 3.2e-07/1.458, allocations: 3.406 kB / 1.311 GB, free: 159 MB / 0.6823 GB Notification: Performance of Templates: time 0.02049/1.478, allocations: 17.32 MB / 1.328 GB, free: 158.7 MB / 0.6823 GB make -j1 -f IDEAS_dev_IDEAS.Fluid.Actuators.Valves.Examples.TwoWayValvesMotor.makefile (rm -f IDEAS_dev_IDEAS.Fluid.Actuators.Valves.Examples.TwoWayValvesMotor.pipe ; mkfifo IDEAS_dev_IDEAS.Fluid.Actuators.Valves.Examples.TwoWayValvesMotor.pipe ; head -c 1048576 < IDEAS_dev_IDEAS.Fluid.Actuators.Valves.Examples.TwoWayValvesMotor.pipe >> ../files/IDEAS_dev_IDEAS.Fluid.Actuators.Valves.Examples.TwoWayValvesMotor.sim & ./IDEAS_dev_IDEAS.Fluid.Actuators.Valves.Examples.TwoWayValvesMotor -abortSlowSimulation -alarm=480 -lv LOG_STATS > IDEAS_dev_IDEAS.Fluid.Actuators.Valves.Examples.TwoWayValvesMotor.pipe 2>&1)