Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr IDEAS_dev_IDEAS.Fluid.Actuators.Valves.Examples.TwoWayValves.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.TwoWayValves,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="IDEAS_dev_IDEAS.Fluid.Actuators.Valves.Examples.TwoWayValves") translateModel(IDEAS.Fluid.Actuators.Valves.Examples.TwoWayValves,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="IDEAS_dev_IDEAS.Fluid.Actuators.Valves.Examples.TwoWayValves") [: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.001777/0.001777, allocations: 177.2 kB / 7.461 MB, free: 2.488 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0-master/package.mo): time 0.5862/0.5862, allocations: 133.5 MB / 141.4 MB, free: 15.67 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.088/1.088, allocations: 221.3 MB / 395 MB, free: 10.13 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.0008471/0.0008471, allocations: 104.7 kB / 477.8 MB, free: 10.79 MB / 394.7 MB Notification: Performance of FrontEnd - loaded program: time 5.6e-06/5.701e-06, allocations: 0 / 0.5529 GB, free: 89.32 MB / 442.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1011/0.1011, allocations: 82.3 MB / 0.6332 GB, free: 14.09 MB / 442.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.6489/0.75, allocations: 360.7 MB / 0.9855 GB, free: 264 MB / 0.6823 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002243/0.7502, allocations: 93.39 kB / 0.9856 GB, free: 264 MB / 0.6823 GB Notification: Performance of FrontEnd: time 0.9055/1.656, allocations: 435.6 MB / 1.411 GB, free: 108 MB / 0.6823 GB Notification: Performance of Transformations before backend: time 7.614e-05/1.656, allocations: 42.98 kB / 1.411 GB, free: 108 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: 145 * Number of variables: 145 Notification: Performance of Generate backend data structure: time 0.001926/1.658, allocations: 1.308 MB / 1.412 GB, free: 106.6 MB / 0.6823 GB Notification: Performance of prepare preOptimizeDAE: time 2.853e-05/1.658, allocations: 8.031 kB / 1.412 GB, free: 106.6 MB / 0.6823 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003225/1.658, allocations: 146.5 kB / 1.412 GB, free: 106.5 MB / 0.6823 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001404/1.66, allocations: 0.8623 MB / 1.413 GB, free: 105.6 MB / 0.6823 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.829e-05/1.66, allocations: 20 kB / 1.413 GB, free: 105.6 MB / 0.6823 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001753/1.66, allocations: 80 kB / 1.413 GB, free: 105.5 MB / 0.6823 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0005689/1.66, allocations: 394.5 kB / 1.414 GB, free: 105.1 MB / 0.6823 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006149/1.661, allocations: 0.5277 MB / 1.414 GB, free: 104.6 MB / 0.6823 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.543e-05/1.661, allocations: 0 / 1.414 GB, free: 104.6 MB / 0.6823 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.741e-05/1.661, allocations: 0 / 1.414 GB, free: 104.6 MB / 0.6823 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.085e-05/1.661, allocations: 19.94 kB / 1.414 GB, free: 104.5 MB / 0.6823 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002927/1.664, allocations: 2.942 MB / 1.417 GB, free: 101.5 MB / 0.6823 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003946/1.664, allocations: 307.4 kB / 1.417 GB, free: 101.2 MB / 0.6823 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001645/1.665, allocations: 129.4 kB / 1.418 GB, free: 101.1 MB / 0.6823 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001932/1.665, allocations: 352 kB / 1.418 GB, free: 100.6 MB / 0.6823 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.596e-05/1.665, allocations: 42.75 kB / 1.418 GB, free: 100.6 MB / 0.6823 GB Notification: Performance of pre-optimization done (n=33): time 1.353e-06/1.665, allocations: 3.938 kB / 1.418 GB, free: 100.6 MB / 0.6823 GB Notification: Performance of matching and sorting (n=33): time 0.001118/1.666, allocations: 494.8 kB / 1.418 GB, free: 100.1 MB / 0.6823 GB Notification: Performance of inlineWhenForInitialization (initialization): time 1.227e-05/1.666, allocations: 55.41 kB / 1.419 GB, free: 100 MB / 0.6823 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005342/1.666, allocations: 0.6401 MB / 1.419 GB, free: 99.37 MB / 0.6823 GB Notification: Performance of collectPreVariables (initialization): time 0.0001171/1.667, allocations: 33.7 kB / 1.419 GB, free: 99.33 MB / 0.6823 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002147/1.667, allocations: 416.6 kB / 1.42 GB, free: 98.91 MB / 0.6823 GB Notification: Performance of collectInitialBindings (initialization): time 4.995e-05/1.667, allocations: 114.4 kB / 1.42 GB, free: 98.8 MB / 0.6823 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.455e-05/1.667, allocations: 0 / 1.42 GB, free: 98.8 MB / 0.6823 GB Notification: Performance of setup shared object (initialization): time 3.804e-05/1.667, allocations: 333.9 kB / 1.42 GB, free: 98.46 MB / 0.6823 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002183/1.667, allocations: 153.3 kB / 1.42 GB, free: 98.32 MB / 0.6823 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009044/1.668, allocations: 1.415 MB / 1.422 GB, free: 96.52 MB / 0.6823 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000743/1.669, allocations: 392 kB / 1.422 GB, free: 96.13 MB / 0.6823 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.066e-06/1.669, allocations: 7.938 kB / 1.422 GB, free: 96.12 MB / 0.6823 GB Notification: Performance of matching and sorting (n=71) (initialization): time 0.001227/1.67, allocations: 0.6594 MB / 1.423 GB, free: 95.46 MB / 0.6823 GB Notification: Performance of prepare postOptimizeDAE: time 9.799e-05/1.67, allocations: 0.8096 MB / 1.423 GB, free: 94.59 MB / 0.6823 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.58e-06/1.67, allocations: 3.984 kB / 1.423 GB, free: 94.59 MB / 0.6823 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.44e-05/1.67, allocations: 7.422 kB / 1.423 GB, free: 94.59 MB / 0.6823 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001221/1.671, allocations: 195.7 kB / 1.424 GB, free: 94.39 MB / 0.6823 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001009/1.672, allocations: 3.004 MB / 1.426 GB, free: 91.27 MB / 0.6823 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002738/1.675, allocations: 0.7655 MB / 1.427 GB, free: 90.5 MB / 0.6823 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.571e-05/1.675, allocations: 27.98 kB / 1.427 GB, free: 90.48 MB / 0.6823 GB Notification: Performance of prepare postOptimizeDAE: time 4.859e-06/1.675, allocations: 4 kB / 1.427 GB, free: 90.47 MB / 0.6823 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0009742/1.676, allocations: 0.4907 MB / 1.428 GB, free: 89.98 MB / 0.6823 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.898e-06/1.676, allocations: 7.25 kB / 1.428 GB, free: 89.98 MB / 0.6823 GB Notification: Performance of postOpt tearingSystem (initialization): time 5.491e-06/1.676, allocations: 7.906 kB / 1.428 GB, free: 89.97 MB / 0.6823 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006182/1.677, allocations: 164 kB / 1.428 GB, free: 89.81 MB / 0.6823 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.457e-06/1.677, allocations: 4 kB / 1.428 GB, free: 89.8 MB / 0.6823 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0026/1.68, allocations: 0.7538 MB / 1.429 GB, free: 89.05 MB / 0.6823 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.533e-05/1.68, allocations: 20 kB / 1.429 GB, free: 89.03 MB / 0.6823 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 9 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (71): * Single equations (assignments): 66 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 5 * 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: 5 {1,1,1,1,1} * Without analytic Jacobian: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001704/1.68, allocations: 137.8 kB / 1.429 GB, free: 88.89 MB / 0.6823 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.096e-05/1.68, allocations: 90.88 kB / 1.429 GB, free: 88.8 MB / 0.6823 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001196/1.681, allocations: 0.5678 MB / 1.429 GB, free: 88.23 MB / 0.6823 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.743e-06/1.681, allocations: 4 kB / 1.429 GB, free: 88.22 MB / 0.6823 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.857e-06/1.681, allocations: 3.938 kB / 1.429 GB, free: 88.22 MB / 0.6823 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.6e-06/1.681, allocations: 7.984 kB / 1.429 GB, free: 88.21 MB / 0.6823 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001686/1.683, allocations: 1.236 MB / 1.431 GB, free: 86.93 MB / 0.6823 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.416e-06/1.683, allocations: 0 / 1.431 GB, free: 86.93 MB / 0.6823 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005022/1.683, allocations: 131.2 kB / 1.431 GB, free: 86.8 MB / 0.6823 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.548e-06/1.683, allocations: 4 kB / 1.431 GB, free: 86.8 MB / 0.6823 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.38e-05/1.683, allocations: 7.984 kB / 1.431 GB, free: 86.79 MB / 0.6823 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0006911/1.684, allocations: 2.961 MB / 1.434 GB, free: 83.71 MB / 0.6823 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.184e-06/1.684, allocations: 0 / 1.434 GB, free: 83.71 MB / 0.6823 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.000914/1.685, allocations: 0.6626 MB / 1.434 GB, free: 83 MB / 0.6823 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001958/1.685, allocations: 215.7 kB / 1.435 GB, free: 82.77 MB / 0.6823 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001055/1.685, allocations: 7.984 kB / 1.435 GB, free: 82.76 MB / 0.6823 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000522/1.686, allocations: 63.84 kB / 1.435 GB, free: 82.7 MB / 0.6823 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.773e-05/1.686, allocations: 27.95 kB / 1.435 GB, free: 82.67 MB / 0.6823 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.539e-05/1.686, allocations: 12 kB / 1.435 GB, free: 82.66 MB / 0.6823 GB Notification: Performance of sort global known variables: time 0.0003909/1.686, allocations: 488.6 kB / 1.435 GB, free: 82.17 MB / 0.6823 GB Notification: Performance of remove unused functions: time 0.001195/1.688, allocations: 0.5851 MB / 1.436 GB, free: 81.59 MB / 0.6823 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (39): * Single equations (assignments): 32 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 2 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 5 * 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: 5 {1,1,1,1,1} * Without analytic Jacobian: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0006909/1.688, allocations: 0.5224 MB / 1.436 GB, free: 81.12 MB / 0.6823 GB Notification: Performance of simCode: created initialization part: time 0.001806/1.69, allocations: 0.7712 MB / 1.437 GB, free: 80.35 MB / 0.6823 GB Notification: Performance of simCode: created event and clocks part: time 2.024e-06/1.69, allocations: 0 / 1.437 GB, free: 80.35 MB / 0.6823 GB Notification: Performance of simCode: created simulation system equations: time 0.0004399/1.69, allocations: 223.8 kB / 1.437 GB, free: 80.13 MB / 0.6823 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00167/1.692, allocations: 385.4 kB / 1.438 GB, free: 79.77 MB / 0.6823 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001584/1.694, allocations: 1.063 MB / 1.439 GB, free: 78.67 MB / 0.6823 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004536/1.694, allocations: 1.128 MB / 1.44 GB, free: 77.52 MB / 0.6823 GB Notification: Performance of SimCode: time 7.32e-07/1.694, allocations: 0 / 1.44 GB, free: 77.52 MB / 0.6823 GB Notification: Performance of Templates: time 0.02848/1.723, allocations: 26.61 MB / 1.466 GB, free: 51.45 MB / 0.6823 GB make -j1 -f IDEAS_dev_IDEAS.Fluid.Actuators.Valves.Examples.TwoWayValves.makefile (rm -f IDEAS_dev_IDEAS.Fluid.Actuators.Valves.Examples.TwoWayValves.pipe ; mkfifo IDEAS_dev_IDEAS.Fluid.Actuators.Valves.Examples.TwoWayValves.pipe ; head -c 1048576 < IDEAS_dev_IDEAS.Fluid.Actuators.Valves.Examples.TwoWayValves.pipe >> ../files/IDEAS_dev_IDEAS.Fluid.Actuators.Valves.Examples.TwoWayValves.sim & ./IDEAS_dev_IDEAS.Fluid.Actuators.Valves.Examples.TwoWayValves -abortSlowSimulation -alarm=480 -lv LOG_STATS > IDEAS_dev_IDEAS.Fluid.Actuators.Valves.Examples.TwoWayValves.pipe 2>&1)