Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr IDEAS_dev_IDEAS.Fluid.Actuators.Valves.Examples.TwoWayValveTRV.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.TwoWayValveTRV,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="IDEAS_dev_IDEAS.Fluid.Actuators.Valves.Examples.TwoWayValveTRV") translateModel(IDEAS.Fluid.Actuators.Valves.Examples.TwoWayValveTRV,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="IDEAS_dev_IDEAS.Fluid.Actuators.Valves.Examples.TwoWayValveTRV") [: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.001785/0.001785, allocations: 172.5 kB / 7.457 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.591/0.591, allocations: 133.5 MB / 141.4 MB, free: 15.71 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.101/1.101, allocations: 221.3 MB / 395 MB, free: 10.19 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.0008388/0.0008387, allocations: 86.98 kB / 477.8 MB, free: 10.82 MB / 394.7 MB Notification: Performance of FrontEnd - loaded program: time 5.64e-06/5.73e-06, allocations: 0 / 0.5528 GB, free: 89.11 MB / 442.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1035/0.1035, allocations: 82.3 MB / 0.6332 GB, free: 14.13 MB / 442.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.6706/0.7741, allocations: 355.9 MB / 0.9808 GB, free: 253.9 MB / 0.6823 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001667/0.7743, allocations: 94.12 kB / 0.9809 GB, free: 253.9 MB / 0.6823 GB Notification: Performance of FrontEnd: time 0.6515/1.426, allocations: 294.1 MB / 1.268 GB, free: 174.9 MB / 0.6823 GB Notification: Performance of Transformations before backend: time 4.398e-05/1.426, allocations: 23.44 kB / 1.268 GB, free: 174.9 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: 78 * Number of variables: 78 Notification: Performance of Generate backend data structure: time 0.001038/1.427, allocations: 0.8982 MB / 1.269 GB, free: 174.5 MB / 0.6823 GB Notification: Performance of prepare preOptimizeDAE: time 2.756e-05/1.427, allocations: 10.81 kB / 1.269 GB, free: 174.5 MB / 0.6823 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001037/1.427, allocations: 76.47 kB / 1.269 GB, free: 174.5 MB / 0.6823 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007402/1.428, allocations: 0.5809 MB / 1.27 GB, free: 174.2 MB / 0.6823 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.578e-06/1.428, allocations: 11.34 kB / 1.27 GB, free: 174.2 MB / 0.6823 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.519e-05/1.428, allocations: 26.66 kB / 1.27 GB, free: 174.2 MB / 0.6823 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0003007/1.428, allocations: 201.8 kB / 1.27 GB, free: 174.2 MB / 0.6823 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003321/1.429, allocations: 240.1 kB / 1.27 GB, free: 174.2 MB / 0.6823 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.186e-05/1.429, allocations: 0 / 1.27 GB, free: 174.2 MB / 0.6823 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.278e-05/1.429, allocations: 3.469 kB / 1.27 GB, free: 174.2 MB / 0.6823 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.781e-05/1.429, allocations: 12.31 kB / 1.27 GB, free: 174.2 MB / 0.6823 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001381/1.43, allocations: 1.495 MB / 1.272 GB, free: 173.5 MB / 0.6823 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002526/1.43, allocations: 205.6 kB / 1.272 GB, free: 173.5 MB / 0.6823 GB Notification: Performance of preOpt resolveLoops (simulation): time 9.896e-05/1.43, allocations: 81.88 kB / 1.272 GB, free: 173.5 MB / 0.6823 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0002249/1.431, allocations: 420.8 kB / 1.272 GB, free: 173 MB / 0.6823 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.487e-05/1.431, allocations: 41.44 kB / 1.272 GB, free: 172.9 MB / 0.6823 GB Notification: Performance of pre-optimization done (n=20): time 1.242e-06/1.431, allocations: 3.938 kB / 1.272 GB, free: 172.9 MB / 0.6823 GB Notification: Performance of matching and sorting (n=20): time 0.0006177/1.431, allocations: 283.3 kB / 1.273 GB, free: 172.9 MB / 0.6823 GB Notification: Performance of inlineWhenForInitialization (initialization): time 1.131e-05/1.431, allocations: 51.41 kB / 1.273 GB, free: 172.8 MB / 0.6823 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004123/1.432, allocations: 0.4928 MB / 1.273 GB, free: 172.7 MB / 0.6823 GB Notification: Performance of collectPreVariables (initialization): time 2.525e-05/1.432, allocations: 25.7 kB / 1.273 GB, free: 172.7 MB / 0.6823 GB Notification: Performance of collectInitialEqns (initialization): time 8.346e-05/1.432, allocations: 220.8 kB / 1.273 GB, free: 172.5 MB / 0.6823 GB Notification: Performance of collectInitialBindings (initialization): time 3.795e-05/1.432, allocations: 70.45 kB / 1.273 GB, free: 172.5 MB / 0.6823 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.705e-05/1.432, allocations: 0 / 1.273 GB, free: 172.5 MB / 0.6823 GB Notification: Performance of setup shared object (initialization): time 5.918e-05/1.432, allocations: 377.6 kB / 1.274 GB, free: 172.2 MB / 0.6823 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001552/1.432, allocations: 106.7 kB / 1.274 GB, free: 172.2 MB / 0.6823 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001945/1.432, allocations: 203 kB / 1.274 GB, free: 172.1 MB / 0.6823 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004394/1.433, allocations: 197.5 kB / 1.274 GB, free: 172.1 MB / 0.6823 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.064e-06/1.433, allocations: 0 / 1.274 GB, free: 172.1 MB / 0.6823 GB Notification: Performance of matching and sorting (n=52) (initialization): time 0.0007354/1.434, allocations: 439.3 kB / 1.275 GB, free: 172 MB / 0.6823 GB Notification: Performance of prepare postOptimizeDAE: time 5.585e-05/1.434, allocations: 450.8 kB / 1.275 GB, free: 171.6 MB / 0.6823 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.799e-06/1.434, allocations: 3.656 kB / 1.275 GB, free: 171.6 MB / 0.6823 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.237e-05/1.434, allocations: 6.844 kB / 1.275 GB, free: 171.6 MB / 0.6823 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000768/1.434, allocations: 139.8 kB / 1.275 GB, free: 171.6 MB / 0.6823 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0004434/1.435, allocations: 1.216 MB / 1.276 GB, free: 170.4 MB / 0.6823 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004458/1.435, allocations: 51.17 kB / 1.276 GB, free: 170.4 MB / 0.6823 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.662e-05/1.435, allocations: 22.12 kB / 1.276 GB, free: 170.4 MB / 0.6823 GB Notification: Performance of prepare postOptimizeDAE: time 4.559e-06/1.435, allocations: 3.844 kB / 1.276 GB, free: 170.4 MB / 0.6823 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.000658/1.436, allocations: 356.8 kB / 1.277 GB, free: 170.4 MB / 0.6823 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.244e-06/1.436, allocations: 0 / 1.277 GB, free: 170.4 MB / 0.6823 GB Notification: Performance of postOpt tearingSystem (initialization): time 4.529e-06/1.436, allocations: 6.875 kB / 1.277 GB, free: 170.4 MB / 0.6823 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004893/1.437, allocations: 119.6 kB / 1.277 GB, free: 170.4 MB / 0.6823 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.845e-06/1.437, allocations: 7.656 kB / 1.277 GB, free: 170.4 MB / 0.6823 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003925/1.437, allocations: 45.25 kB / 1.277 GB, free: 170.4 MB / 0.6823 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.256e-05/1.437, allocations: 18.14 kB / 1.277 GB, free: 170.4 MB / 0.6823 GB Notification: Model statistics after passing the back-end for initialization: * 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 initialization (52): * Single equations (assignments): 50 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 2 * 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: 2 {1,1} * Without analytic Jacobian: 0 Notification: Performance of prepare postOptimizeDAE: time 7.378e-05/1.437, allocations: 120.6 kB / 1.277 GB, free: 170.3 MB / 0.6823 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.565e-05/1.437, allocations: 56.78 kB / 1.277 GB, free: 170.2 MB / 0.6823 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007026/1.438, allocations: 344.2 kB / 1.277 GB, free: 170.2 MB / 0.6823 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.159e-06/1.438, allocations: 0 / 1.277 GB, free: 170.2 MB / 0.6823 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.055e-06/1.438, allocations: 3 kB / 1.278 GB, free: 170.2 MB / 0.6823 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.769e-06/1.438, allocations: 10.81 kB / 1.278 GB, free: 170.2 MB / 0.6823 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00103/1.439, allocations: 0.8645 MB / 1.278 GB, free: 169.9 MB / 0.6823 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.124e-06/1.439, allocations: 0 / 1.278 GB, free: 169.9 MB / 0.6823 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002853/1.439, allocations: 64.5 kB / 1.278 GB, free: 169.9 MB / 0.6823 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.637e-06/1.439, allocations: 3.5 kB / 1.278 GB, free: 169.9 MB / 0.6823 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.908e-05/1.439, allocations: 6.484 kB / 1.278 GB, free: 169.9 MB / 0.6823 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0003192/1.44, allocations: 1.192 MB / 1.28 GB, free: 168.7 MB / 0.6823 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.936e-06/1.44, allocations: 6.438 kB / 1.28 GB, free: 168.7 MB / 0.6823 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0006604/1.44, allocations: 0.5593 MB / 1.28 GB, free: 168.4 MB / 0.6823 GB Notification: Performance of postOpt removeConstants (simulation): time 0.000144/1.44, allocations: 174.3 kB / 1.28 GB, free: 168.3 MB / 0.6823 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.795e-05/1.441, allocations: 7.359 kB / 1.28 GB, free: 168.3 MB / 0.6823 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003333/1.441, allocations: 39.45 kB / 1.28 GB, free: 168.3 MB / 0.6823 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.422e-05/1.441, allocations: 15.05 kB / 1.28 GB, free: 168.3 MB / 0.6823 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.614e-05/1.441, allocations: 10.41 kB / 1.28 GB, free: 168.3 MB / 0.6823 GB Notification: Performance of sort global known variables: time 0.0002971/1.441, allocations: 375.3 kB / 1.281 GB, free: 168.2 MB / 0.6823 GB Notification: Performance of remove unused functions: time 0.0007114/1.442, allocations: 320.4 kB / 1.281 GB, free: 168.2 MB / 0.6823 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * Number of states: 2 (valDyn.val.filter.s[1],valDyn.val.filter.s[2]) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (22): * Single equations (assignments): 18 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 2 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 2 * 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: 2 {1,1} * Without analytic Jacobian: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0004867/1.442, allocations: 378.5 kB / 1.281 GB, free: 168.1 MB / 0.6823 GB Notification: Performance of simCode: created initialization part: time 0.0009545/1.443, allocations: 489.3 kB / 1.282 GB, free: 168.1 MB / 0.6823 GB Notification: Performance of simCode: created event and clocks part: time 2.976e-06/1.443, allocations: 3.594 kB / 1.282 GB, free: 168.1 MB / 0.6823 GB Notification: Performance of simCode: created simulation system equations: time 0.0002412/1.444, allocations: 129.1 kB / 1.282 GB, free: 168.1 MB / 0.6823 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001034/1.445, allocations: 253.1 kB / 1.282 GB, free: 168.1 MB / 0.6823 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001201/1.446, allocations: 0.7446 MB / 1.283 GB, free: 167.8 MB / 0.6823 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003225/1.446, allocations: 0.9647 MB / 1.284 GB, free: 167.1 MB / 0.6823 GB Notification: Performance of SimCode: time 2.81e-07/1.446, allocations: 0 / 1.284 GB, free: 167.1 MB / 0.6823 GB Notification: Performance of Templates: time 0.01518/1.461, allocations: 12.1 MB / 1.296 GB, free: 166.9 MB / 0.6823 GB make -j1 -f IDEAS_dev_IDEAS.Fluid.Actuators.Valves.Examples.TwoWayValveTRV.makefile (rm -f IDEAS_dev_IDEAS.Fluid.Actuators.Valves.Examples.TwoWayValveTRV.pipe ; mkfifo IDEAS_dev_IDEAS.Fluid.Actuators.Valves.Examples.TwoWayValveTRV.pipe ; head -c 1048576 < IDEAS_dev_IDEAS.Fluid.Actuators.Valves.Examples.TwoWayValveTRV.pipe >> ../files/IDEAS_dev_IDEAS.Fluid.Actuators.Valves.Examples.TwoWayValveTRV.sim & ./IDEAS_dev_IDEAS.Fluid.Actuators.Valves.Examples.TwoWayValveTRV -abortSlowSimulation -alarm=480 -lv LOG_STATS > IDEAS_dev_IDEAS.Fluid.Actuators.Valves.Examples.TwoWayValveTRV.pipe 2>&1)