Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr IDEAS_dev_IDEAS.Fluid.Actuators.Valves.Simplified.Examples.ThreeWayValveSwitch.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.Simplified.Examples.ThreeWayValveSwitch,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="IDEAS_dev_IDEAS.Fluid.Actuators.Valves.Simplified.Examples.ThreeWayValveSwitch") translateModel(IDEAS.Fluid.Actuators.Valves.Simplified.Examples.ThreeWayValveSwitch,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="IDEAS_dev_IDEAS.Fluid.Actuators.Valves.Simplified.Examples.ThreeWayValveSwitch") [: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.001714/0.001714, allocations: 181.7 kB / 7.457 MB, free: 2.246 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0-master/package.mo): time 0.584/0.584, 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.08/1.08, allocations: 221.3 MB / 395 MB, free: 10.2 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.0008355/0.0008356, allocations: 106.1 kB / 477.8 MB, free: 10.82 MB / 394.7 MB Notification: Performance of FrontEnd - loaded program: time 6.021e-06/6.112e-06, allocations: 2.469 kB / 0.5529 GB, free: 89.29 MB / 442.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09815/0.09816, allocations: 82.3 MB / 0.6332 GB, free: 14.12 MB / 442.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.6441/0.7423, allocations: 363.2 MB / 0.9879 GB, free: 260.1 MB / 0.6823 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002262/0.7426, allocations: 102.7 kB / 0.988 GB, free: 260.1 MB / 0.6823 GB Notification: Performance of FrontEnd: time 1.246/1.989, allocations: 0.5282 GB / 1.516 GB, free: 93.3 MB / 0.6823 GB Notification: Performance of Transformations before backend: time 0.000146/1.989, allocations: 45.95 kB / 1.516 GB, free: 93.3 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: 253 * Number of variables: 253 Notification: Performance of Generate backend data structure: time 0.002642/1.992, allocations: 1.791 MB / 1.518 GB, free: 92.78 MB / 0.6823 GB Notification: Performance of prepare preOptimizeDAE: time 2.691e-05/1.992, allocations: 10.78 kB / 1.518 GB, free: 92.78 MB / 0.6823 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001425/1.993, allocations: 386.2 kB / 1.518 GB, free: 92.69 MB / 0.6823 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003442/1.997, allocations: 2.029 MB / 1.52 GB, free: 92.36 MB / 0.6823 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.085e-05/1.997, allocations: 32.22 kB / 1.52 GB, free: 92.36 MB / 0.6823 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001176/1.997, allocations: 67.27 kB / 1.52 GB, free: 92.36 MB / 0.6823 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001093/1.998, allocations: 0.7598 MB / 1.521 GB, free: 92.36 MB / 0.6823 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001221/1.999, allocations: 0.9664 MB / 1.522 GB, free: 92.19 MB / 0.6823 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.526e-05/1.999, allocations: 2.281 kB / 1.522 GB, free: 92.19 MB / 0.6823 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.677e-05/1.999, allocations: 3.938 kB / 1.522 GB, free: 92.19 MB / 0.6823 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.571e-05/1.999, allocations: 21.09 kB / 1.522 GB, free: 92.19 MB / 0.6823 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0045/2.004, allocations: 4.654 MB / 1.527 GB, free: 90.33 MB / 0.6823 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0004356/2.004, allocations: 409.1 kB / 1.527 GB, free: 90.32 MB / 0.6823 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002769/2.004, allocations: 268.4 kB / 1.527 GB, free: 90.3 MB / 0.6823 GB Notification: Performance of preOpt evalFunc (simulation): time 0.002833/2.007, allocations: 2.879 MB / 1.53 GB, free: 88.31 MB / 0.6823 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003229/2.008, allocations: 282.4 kB / 1.53 GB, free: 88.26 MB / 0.6823 GB Notification: Performance of pre-optimization done (n=55): time 1.944e-06/2.008, allocations: 0 / 1.53 GB, free: 88.26 MB / 0.6823 GB Notification: Performance of matching and sorting (n=55): time 0.001826/2.009, allocations: 0.7681 MB / 1.531 GB, free: 88.14 MB / 0.6823 GB Notification: Performance of inlineWhenForInitialization (initialization): time 1.775e-05/2.009, allocations: 58.81 kB / 1.531 GB, free: 88.08 MB / 0.6823 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009252/2.01, allocations: 1 MB / 1.532 GB, free: 87.92 MB / 0.6823 GB Notification: Performance of collectPreVariables (initialization): time 5.259e-05/2.01, allocations: 28.66 kB / 1.532 GB, free: 87.89 MB / 0.6823 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002284/2.011, allocations: 0.5209 MB / 1.533 GB, free: 87.65 MB / 0.6823 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001194/2.011, allocations: 184.1 kB / 1.533 GB, free: 87.56 MB / 0.6823 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.302e-05/2.011, allocations: 3.875 kB / 1.533 GB, free: 87.56 MB / 0.6823 GB Notification: Performance of setup shared object (initialization): time 5.135e-05/2.011, allocations: 341.6 kB / 1.533 GB, free: 87.25 MB / 0.6823 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002943/2.011, allocations: 229.5 kB / 1.534 GB, free: 87.25 MB / 0.6823 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003839/2.012, allocations: 0.609 MB / 1.534 GB, free: 86.8 MB / 0.6823 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001461/2.013, allocations: 0.523 MB / 1.535 GB, free: 86.79 MB / 0.6823 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.989e-06/2.013, allocations: 3.562 kB / 1.535 GB, free: 86.79 MB / 0.6823 GB Notification: Performance of matching and sorting (n=118) (initialization): time 0.002242/2.015, allocations: 1.127 MB / 1.536 GB, free: 86.68 MB / 0.6823 GB Notification: Performance of prepare postOptimizeDAE: time 0.0004781/2.016, allocations: 4.323 MB / 1.54 GB, free: 82.24 MB / 0.6823 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.143e-05/2.016, allocations: 9.688 kB / 1.54 GB, free: 82.24 MB / 0.6823 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001591/2.016, allocations: 56.41 kB / 1.54 GB, free: 82.23 MB / 0.6823 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006171/2.017, allocations: 206 kB / 1.54 GB, free: 82.23 MB / 0.6823 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0002771/2.017, allocations: 0.599 MB / 1.541 GB, free: 81.71 MB / 0.6823 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008231/2.018, allocations: 138.9 kB / 1.541 GB, free: 81.68 MB / 0.6823 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.561e-05/2.018, allocations: 60.45 kB / 1.541 GB, free: 81.68 MB / 0.6823 GB Notification: Performance of prepare postOptimizeDAE: time 4.458e-06/2.018, allocations: 5.594 kB / 1.541 GB, free: 81.68 MB / 0.6823 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.002054/2.02, allocations: 0.9545 MB / 1.542 GB, free: 81.66 MB / 0.6823 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.906e-06/2.02, allocations: 11.66 kB / 1.542 GB, free: 81.66 MB / 0.6823 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001004/2.02, allocations: 56.61 kB / 1.542 GB, free: 81.65 MB / 0.6823 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006005/2.021, allocations: 214.1 kB / 1.542 GB, free: 81.65 MB / 0.6823 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0002405/2.021, allocations: 0.5931 MB / 1.543 GB, free: 81.13 MB / 0.6823 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007209/2.022, allocations: 113.1 kB / 1.543 GB, free: 81.11 MB / 0.6823 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.984e-05/2.022, allocations: 59.08 kB / 1.543 GB, free: 81.11 MB / 0.6823 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 49 * Number of states: 0 () * Number of discrete variables: 6 ($whenCondition1,$PRE.pulse.T_start,pulse.T_start,$PRE.pulse.count,pulse.count,realToBoolean.y) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (113): * Single equations (assignments): 110 * Array equations: 1 * Algorithm blocks: 1 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {1 3} Notification: Performance of prepare postOptimizeDAE: time 0.0001241/2.022, allocations: 153.5 kB / 1.543 GB, free: 81 MB / 0.6823 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001161/2.022, allocations: 131.8 kB / 1.543 GB, free: 80.93 MB / 0.6823 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002214/2.024, allocations: 1.275 MB / 1.544 GB, free: 80.85 MB / 0.6823 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.212e-05/2.024, allocations: 6.969 kB / 1.544 GB, free: 80.85 MB / 0.6823 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.068e-06/2.024, allocations: 0 / 1.544 GB, free: 80.85 MB / 0.6823 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.001414/2.026, allocations: 0.9271 MB / 1.545 GB, free: 80.57 MB / 0.6823 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002758/2.028, allocations: 2.064 MB / 1.547 GB, free: 80.23 MB / 0.6823 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.286e-06/2.028, allocations: 0 / 1.547 GB, free: 80.23 MB / 0.6823 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004639/2.029, allocations: 114.6 kB / 1.547 GB, free: 80.23 MB / 0.6823 GB Notification: Performance of postOpt tearingSystem (simulation): time 9.714e-05/2.029, allocations: 44.86 kB / 1.548 GB, free: 80.22 MB / 0.6823 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.993e-05/2.029, allocations: 15.14 kB / 1.548 GB, free: 80.22 MB / 0.6823 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0002302/2.029, allocations: 0.5791 MB / 1.548 GB, free: 79.7 MB / 0.6823 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.124e-06/2.029, allocations: 5.531 kB / 1.548 GB, free: 79.7 MB / 0.6823 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.001948/2.031, allocations: 1.487 MB / 1.55 GB, free: 79.34 MB / 0.6823 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0003224/2.032, allocations: 310.3 kB / 1.55 GB, free: 79.18 MB / 0.6823 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001661/2.032, allocations: 6.703 kB / 1.55 GB, free: 79.18 MB / 0.6823 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006039/2.032, allocations: 58.62 kB / 1.55 GB, free: 79.17 MB / 0.6823 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.781e-05/2.032, allocations: 53.14 kB / 1.55 GB, free: 79.17 MB / 0.6823 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.329e-05/2.032, allocations: 33.44 kB / 1.55 GB, free: 79.17 MB / 0.6823 GB Notification: Performance of sort global known variables: time 0.0006758/2.033, allocations: 0.7372 MB / 1.551 GB, free: 79.06 MB / 0.6823 GB Notification: Performance of remove unused functions: time 0.001686/2.035, allocations: 0.8574 MB / 1.552 GB, free: 78.93 MB / 0.6823 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * Number of states: 4 (threeWayValveSwitch.vol.dynBal.U,T_mix.T,T_leg0.T,T_leg1.T) * Number of discrete variables: 4 ($whenCondition1,pulse.T_start,pulse.count,realToBoolean.y) * Number of discrete states: 1 (pulse.count) * Top-level inputs: 0 Notification: Strong component statistics for simulation (70): * Single equations (assignments): 55 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 12 * When equations: 2 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {1 3} Notification: Performance of Backend phase and start with SimCode phase: time 0.001225/2.036, allocations: 1.085 MB / 1.553 GB, free: 78.67 MB / 0.6823 GB Notification: Performance of simCode: created initialization part: time 0.001336/2.037, allocations: 1.217 MB / 1.554 GB, free: 78.59 MB / 0.6823 GB Notification: Performance of simCode: created event and clocks part: time 2.605e-06/2.037, allocations: 6.812 kB / 1.554 GB, free: 78.59 MB / 0.6823 GB Notification: Performance of simCode: created simulation system equations: time 0.0004176/2.038, allocations: 371 kB / 1.554 GB, free: 78.59 MB / 0.6823 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002044/2.04, allocations: 0.5823 MB / 1.555 GB, free: 78.58 MB / 0.6823 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002725/2.043, allocations: 2.034 MB / 1.557 GB, free: 78.05 MB / 0.6823 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000783/2.043, allocations: 1.445 MB / 1.558 GB, free: 77.32 MB / 0.6823 GB Notification: Performance of SimCode: time 2.7e-07/2.043, allocations: 3.062 kB / 1.558 GB, free: 77.32 MB / 0.6823 GB Notification: Performance of Templates: time 0.03989/2.083, allocations: 33.58 MB / 1.591 GB, free: 76.38 MB / 0.6823 GB make -j1 -f IDEAS_dev_IDEAS.Fluid.Actuators.Valves.Simplified.Examples.ThreeWayValveSwitch.makefile (rm -f IDEAS_dev_IDEAS.Fluid.Actuators.Valves.Simplified.Examples.ThreeWayValveSwitch.pipe ; mkfifo IDEAS_dev_IDEAS.Fluid.Actuators.Valves.Simplified.Examples.ThreeWayValveSwitch.pipe ; head -c 1048576 < IDEAS_dev_IDEAS.Fluid.Actuators.Valves.Simplified.Examples.ThreeWayValveSwitch.pipe >> ../files/IDEAS_dev_IDEAS.Fluid.Actuators.Valves.Simplified.Examples.ThreeWayValveSwitch.sim & ./IDEAS_dev_IDEAS.Fluid.Actuators.Valves.Simplified.Examples.ThreeWayValveSwitch -abortSlowSimulation -alarm=480 -lv LOG_STATS > IDEAS_dev_IDEAS.Fluid.Actuators.Valves.Simplified.Examples.ThreeWayValveSwitch.pipe 2>&1)