Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr IDEAS_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/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/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_IDEAS.Fluid.Actuators.Valves.Examples.TwoWayValveTRV") translateModel(IDEAS.Fluid.Actuators.Valves.Examples.TwoWayValveTRV,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="IDEAS_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.003554/0.003555, allocations: 179.3 kB / 7.453 MB, free: 2.508 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0/package.mo): time 0.6528/0.6528, allocations: 130.6 MB / 138.5 MB, free: 2.188 MB / 106.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.488/1.488, allocations: 221.3 MB / 391.4 MB, free: 13.05 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.001077/0.001077, allocations: 101.6 kB / 473.4 MB, free: 14.36 MB / 394.7 MB Notification: Performance of FrontEnd - loaded program: time 8.827e-06/8.867e-06, allocations: 3.688 kB / 0.5479 GB, free: 89.06 MB / 442.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1433/0.1434, allocations: 81.59 MB / 0.6276 GB, free: 18.21 MB / 442.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.928/1.071, allocations: 355.6 MB / 0.9749 GB, free: 251.6 MB / 0.6667 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002732/1.072, allocations: 96.94 kB / 0.975 GB, free: 251.6 MB / 0.6667 GB Notification: Performance of FrontEnd: time 0.8309/1.903, allocations: 294.1 MB / 1.262 GB, free: 165.8 MB / 0.6667 GB Notification: Performance of Transformations before backend: time 8.007e-05/1.903, allocations: 29.69 kB / 1.262 GB, free: 165.8 MB / 0.6667 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.001813/1.905, allocations: 0.9009 MB / 1.263 GB, free: 165.3 MB / 0.6667 GB Notification: Performance of prepare preOptimizeDAE: time 3.807e-05/1.905, allocations: 7.281 kB / 1.263 GB, free: 165.3 MB / 0.6667 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002407/1.905, allocations: 80.12 kB / 1.263 GB, free: 165.3 MB / 0.6667 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001095/1.906, allocations: 0.5795 MB / 1.264 GB, free: 165.1 MB / 0.6667 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.727e-05/1.906, allocations: 7.781 kB / 1.264 GB, free: 165.1 MB / 0.6667 GB Notification: Performance of preOpt expandDerOperator (simulation): time 7.625e-05/1.906, allocations: 25.41 kB / 1.264 GB, free: 165.1 MB / 0.6667 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0003745/1.906, allocations: 199.7 kB / 1.264 GB, free: 165.1 MB / 0.6667 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004029/1.907, allocations: 245.1 kB / 1.264 GB, free: 165 MB / 0.6667 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.29e-05/1.907, allocations: 3.828 kB / 1.264 GB, free: 165 MB / 0.6667 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.664e-05/1.907, allocations: 0 / 1.264 GB, free: 165 MB / 0.6667 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.062e-05/1.907, allocations: 14.81 kB / 1.264 GB, free: 165 MB / 0.6667 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001929/1.909, allocations: 1.488 MB / 1.266 GB, free: 164.3 MB / 0.6667 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002983/1.909, allocations: 206.7 kB / 1.266 GB, free: 164.3 MB / 0.6667 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001189/1.909, allocations: 78.48 kB / 1.266 GB, free: 164.3 MB / 0.6667 GB Notification: Performance of preOpt evalFunc (simulation): time 0.000313/1.91, allocations: 428.6 kB / 1.266 GB, free: 163.8 MB / 0.6667 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.979e-05/1.91, allocations: 38.33 kB / 1.266 GB, free: 163.8 MB / 0.6667 GB Notification: Performance of pre-optimization done (n=20): time 1.683e-06/1.91, allocations: 0 / 1.266 GB, free: 163.8 MB / 0.6667 GB Notification: Performance of matching and sorting (n=20): time 0.0007844/1.91, allocations: 283.5 kB / 1.267 GB, free: 163.7 MB / 0.6667 GB Notification: Performance of inlineWhenForInitialization (initialization): time 1.912e-05/1.911, allocations: 51.41 kB / 1.267 GB, free: 163.6 MB / 0.6667 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005309/1.911, allocations: 0.4915 MB / 1.267 GB, free: 163.5 MB / 0.6667 GB Notification: Performance of collectPreVariables (initialization): time 3.672e-05/1.911, allocations: 32.52 kB / 1.267 GB, free: 163.5 MB / 0.6667 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001152/1.911, allocations: 217 kB / 1.267 GB, free: 163.4 MB / 0.6667 GB Notification: Performance of collectInitialBindings (initialization): time 4.84e-05/1.911, allocations: 70.3 kB / 1.267 GB, free: 163.3 MB / 0.6667 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.876e-05/1.911, allocations: 0 / 1.267 GB, free: 163.3 MB / 0.6667 GB Notification: Performance of setup shared object (initialization): time 0.0001001/1.911, allocations: 369.7 kB / 1.268 GB, free: 163 MB / 0.6667 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001823/1.912, allocations: 110.6 kB / 1.268 GB, free: 163 MB / 0.6667 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002305/1.912, allocations: 203.1 kB / 1.268 GB, free: 162.9 MB / 0.6667 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000514/1.912, allocations: 191.9 kB / 1.268 GB, free: 162.9 MB / 0.6667 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.686e-06/1.912, allocations: 0 / 1.268 GB, free: 162.9 MB / 0.6667 GB Notification: Performance of matching and sorting (n=52) (initialization): time 0.0008719/1.913, allocations: 445.9 kB / 1.269 GB, free: 162.9 MB / 0.6667 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001251/1.913, allocations: 454.8 kB / 1.269 GB, free: 162.4 MB / 0.6667 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.065e-06/1.913, allocations: 6.625 kB / 1.269 GB, free: 162.4 MB / 0.6667 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.74e-05/1.913, allocations: 0 / 1.269 GB, free: 162.4 MB / 0.6667 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008369/1.914, allocations: 136.9 kB / 1.269 GB, free: 162.4 MB / 0.6667 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0006039/1.915, allocations: 1.212 MB / 1.271 GB, free: 161.2 MB / 0.6667 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005963/1.916, allocations: 58.02 kB / 1.271 GB, free: 161.2 MB / 0.6667 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.975e-05/1.916, allocations: 22.56 kB / 1.271 GB, free: 161.2 MB / 0.6667 GB Notification: Performance of prepare postOptimizeDAE: time 8.526e-06/1.916, allocations: 6.531 kB / 1.271 GB, free: 161.2 MB / 0.6667 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0007509/1.916, allocations: 344.3 kB / 1.271 GB, free: 161.2 MB / 0.6667 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.192e-06/1.916, allocations: 3.5 kB / 1.271 GB, free: 161.2 MB / 0.6667 GB Notification: Performance of postOpt tearingSystem (initialization): time 8.325e-06/1.916, allocations: 10.5 kB / 1.271 GB, free: 161.2 MB / 0.6667 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000512/1.917, allocations: 126.8 kB / 1.271 GB, free: 161.2 MB / 0.6667 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.081e-06/1.917, allocations: 3.719 kB / 1.271 GB, free: 161.2 MB / 0.6667 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004891/1.917, allocations: 46.22 kB / 1.271 GB, free: 161.2 MB / 0.6667 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.725e-05/1.917, allocations: 20.33 kB / 1.271 GB, free: 161.2 MB / 0.6667 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 0.0001301/1.918, allocations: 114.7 kB / 1.271 GB, free: 161.1 MB / 0.6667 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.906e-05/1.918, allocations: 56.62 kB / 1.271 GB, free: 161.1 MB / 0.6667 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0008179/1.919, allocations: 336 kB / 1.272 GB, free: 161 MB / 0.6667 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.839e-06/1.919, allocations: 7.406 kB / 1.272 GB, free: 161 MB / 0.6667 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.989e-06/1.919, allocations: 0 / 1.272 GB, free: 161 MB / 0.6667 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.092e-06/1.919, allocations: 7.406 kB / 1.272 GB, free: 161 MB / 0.6667 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0014/1.92, allocations: 0.8779 MB / 1.272 GB, free: 160.7 MB / 0.6667 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.1e-06/1.92, allocations: 3.094 kB / 1.272 GB, free: 160.7 MB / 0.6667 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000316/1.92, allocations: 60.25 kB / 1.273 GB, free: 160.7 MB / 0.6667 GB Notification: Performance of postOpt tearingSystem (simulation): time 7.444e-06/1.92, allocations: 7.031 kB / 1.273 GB, free: 160.7 MB / 0.6667 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.736e-05/1.92, allocations: 3.188 kB / 1.273 GB, free: 160.7 MB / 0.6667 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.000455/1.921, allocations: 1.191 MB / 1.274 GB, free: 159.5 MB / 0.6667 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.988e-06/1.921, allocations: 3.906 kB / 1.274 GB, free: 159.5 MB / 0.6667 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.000823/1.922, allocations: 0.573 MB / 1.274 GB, free: 159.3 MB / 0.6667 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002308/1.922, allocations: 170.2 kB / 1.274 GB, free: 159.1 MB / 0.6667 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001044/1.922, allocations: 7.766 kB / 1.274 GB, free: 159.1 MB / 0.6667 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003811/1.922, allocations: 32.28 kB / 1.274 GB, free: 159.1 MB / 0.6667 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.977e-05/1.922, allocations: 17.75 kB / 1.274 GB, free: 159.1 MB / 0.6667 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.002e-05/1.923, allocations: 8.938 kB / 1.274 GB, free: 159.1 MB / 0.6667 GB Notification: Performance of sort global known variables: time 0.0004194/1.923, allocations: 374.3 kB / 1.275 GB, free: 159 MB / 0.6667 GB Notification: Performance of remove unused functions: time 0.001186/1.924, allocations: 326 kB / 1.275 GB, free: 159 MB / 0.6667 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.0008336/1.925, allocations: 377.8 kB / 1.276 GB, free: 158.9 MB / 0.6667 GB Notification: Performance of simCode: created initialization part: time 0.001276/1.926, allocations: 491 kB / 1.276 GB, free: 158.9 MB / 0.6667 GB Notification: Performance of simCode: created event and clocks part: time 3.276e-06/1.926, allocations: 3.219 kB / 1.276 GB, free: 158.9 MB / 0.6667 GB Notification: Performance of simCode: created simulation system equations: time 0.0002882/1.927, allocations: 119.2 kB / 1.276 GB, free: 158.9 MB / 0.6667 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001358/1.928, allocations: 241.1 kB / 1.276 GB, free: 158.9 MB / 0.6667 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001749/1.93, allocations: 0.7456 MB / 1.277 GB, free: 158.6 MB / 0.6667 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004919/1.93, allocations: 0.9548 MB / 1.278 GB, free: 157.9 MB / 0.6667 GB Notification: Performance of SimCode: time 3.4e-07/1.93, allocations: 0 / 1.278 GB, free: 157.9 MB / 0.6667 GB Notification: Performance of Templates: time 0.02035/1.951, allocations: 12.12 MB / 1.29 GB, free: 157.7 MB / 0.6667 GB make -j1 -f IDEAS_IDEAS.Fluid.Actuators.Valves.Examples.TwoWayValveTRV.makefile (rm -f IDEAS_IDEAS.Fluid.Actuators.Valves.Examples.TwoWayValveTRV.pipe ; mkfifo IDEAS_IDEAS.Fluid.Actuators.Valves.Examples.TwoWayValveTRV.pipe ; head -c 1048576 < IDEAS_IDEAS.Fluid.Actuators.Valves.Examples.TwoWayValveTRV.pipe >> ../files/IDEAS_IDEAS.Fluid.Actuators.Valves.Examples.TwoWayValveTRV.sim & ./IDEAS_IDEAS.Fluid.Actuators.Valves.Examples.TwoWayValveTRV -abortSlowSimulation -alarm=480 -lv LOG_STATS > IDEAS_IDEAS.Fluid.Actuators.Valves.Examples.TwoWayValveTRV.pipe 2>&1)