Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr IDEAS_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/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.Simplified.Examples.ThreeWayValveSwitch,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="IDEAS_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_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.002799/0.002799, allocations: 177.1 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.6535/0.6535, allocations: 130.6 MB / 138.5 MB, free: 2.207 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.529/1.529, allocations: 221.3 MB / 391.4 MB, free: 13.12 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.0009773/0.0009776, allocations: 86.22 kB / 473.4 MB, free: 14.44 MB / 394.7 MB Notification: Performance of FrontEnd - loaded program: time 7.784e-06/7.804e-06, allocations: 0 / 0.5479 GB, free: 89.06 MB / 442.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1673/0.1674, allocations: 81.58 MB / 0.6276 GB, free: 18.25 MB / 442.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 1.092/1.259, allocations: 362.9 MB / 0.982 GB, free: 248 MB / 0.6667 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003127/1.259, allocations: 104.3 kB / 0.9821 GB, free: 248 MB / 0.6667 GB Notification: Performance of FrontEnd: time 1.773/3.032, allocations: 0.5282 GB / 1.51 GB, free: 89.48 MB / 0.6667 GB Notification: Performance of Transformations before backend: time 0.0002792/3.032, allocations: 50.17 kB / 1.51 GB, free: 89.48 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: 253 * Number of variables: 253 Notification: Performance of Generate backend data structure: time 0.005043/3.037, allocations: 1.787 MB / 1.512 GB, free: 88.8 MB / 0.6667 GB Notification: Performance of prepare preOptimizeDAE: time 4.261e-05/3.038, allocations: 13.19 kB / 1.512 GB, free: 88.8 MB / 0.6667 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002335/3.04, allocations: 384 kB / 1.513 GB, free: 88.71 MB / 0.6667 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005726/3.046, allocations: 2.028 MB / 1.515 GB, free: 88.38 MB / 0.6667 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.996e-05/3.046, allocations: 35.91 kB / 1.515 GB, free: 88.38 MB / 0.6667 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001486/3.046, allocations: 63.19 kB / 1.515 GB, free: 88.38 MB / 0.6667 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001385/3.047, allocations: 0.7625 MB / 1.515 GB, free: 88.38 MB / 0.6667 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001431/3.049, allocations: 0.9616 MB / 1.516 GB, free: 88.22 MB / 0.6667 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.084e-05/3.049, allocations: 2.344 kB / 1.516 GB, free: 88.22 MB / 0.6667 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.308e-05/3.049, allocations: 2.156 kB / 1.516 GB, free: 88.22 MB / 0.6667 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.246e-05/3.049, allocations: 24.44 kB / 1.516 GB, free: 88.22 MB / 0.6667 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006208/3.055, allocations: 4.661 MB / 1.521 GB, free: 86.36 MB / 0.6667 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0005227/3.056, allocations: 405.5 kB / 1.521 GB, free: 86.34 MB / 0.6667 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003307/3.056, allocations: 264.8 kB / 1.522 GB, free: 86.33 MB / 0.6667 GB Notification: Performance of preOpt evalFunc (simulation): time 0.003512/3.059, allocations: 2.886 MB / 1.524 GB, free: 84.34 MB / 0.6667 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003925/3.06, allocations: 290.6 kB / 1.525 GB, free: 84.29 MB / 0.6667 GB Notification: Performance of pre-optimization done (n=55): time 2.886e-06/3.06, allocations: 0 / 1.525 GB, free: 84.29 MB / 0.6667 GB Notification: Performance of matching and sorting (n=55): time 0.002174/3.062, allocations: 0.762 MB / 1.525 GB, free: 84.16 MB / 0.6667 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.848e-05/3.062, allocations: 62.58 kB / 1.525 GB, free: 84.1 MB / 0.6667 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001213/3.063, allocations: 0.9922 MB / 1.526 GB, free: 83.95 MB / 0.6667 GB Notification: Performance of collectPreVariables (initialization): time 5.215e-05/3.063, allocations: 29.3 kB / 1.526 GB, free: 83.91 MB / 0.6667 GB Notification: Performance of collectInitialEqns (initialization): time 0.000391/3.064, allocations: 0.5245 MB / 1.527 GB, free: 83.63 MB / 0.6667 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001593/3.064, allocations: 186.3 kB / 1.527 GB, free: 83.52 MB / 0.6667 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.532e-05/3.064, allocations: 0 / 1.527 GB, free: 83.52 MB / 0.6667 GB Notification: Performance of setup shared object (initialization): time 7.609e-05/3.064, allocations: 341.8 kB / 1.527 GB, free: 83.21 MB / 0.6667 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003314/3.064, allocations: 234.5 kB / 1.528 GB, free: 83.21 MB / 0.6667 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004963/3.065, allocations: 0.6022 MB / 1.528 GB, free: 82.76 MB / 0.6667 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001649/3.067, allocations: 0.5363 MB / 1.529 GB, free: 82.75 MB / 0.6667 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.971e-06/3.067, allocations: 3.75 kB / 1.529 GB, free: 82.75 MB / 0.6667 GB Notification: Performance of matching and sorting (n=118) (initialization): time 0.002507/3.069, allocations: 1.116 MB / 1.53 GB, free: 82.62 MB / 0.6667 GB Notification: Performance of prepare postOptimizeDAE: time 0.0007558/3.07, allocations: 4.32 MB / 1.534 GB, free: 78.19 MB / 0.6667 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.671e-05/3.07, allocations: 14.56 kB / 1.534 GB, free: 78.19 MB / 0.6667 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002086/3.07, allocations: 51.2 kB / 1.534 GB, free: 78.18 MB / 0.6667 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000676/3.071, allocations: 216.1 kB / 1.534 GB, free: 78.18 MB / 0.6667 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00036/3.071, allocations: 0.5982 MB / 1.535 GB, free: 77.66 MB / 0.6667 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001164/3.072, allocations: 146.1 kB / 1.535 GB, free: 77.61 MB / 0.6667 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.789e-05/3.072, allocations: 56.16 kB / 1.535 GB, free: 77.61 MB / 0.6667 GB Notification: Performance of prepare postOptimizeDAE: time 9.518e-06/3.072, allocations: 3.469 kB / 1.535 GB, free: 77.61 MB / 0.6667 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.002296/3.075, allocations: 0.9539 MB / 1.536 GB, free: 77.58 MB / 0.6667 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.05e-05/3.075, allocations: 7.812 kB / 1.536 GB, free: 77.58 MB / 0.6667 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001159/3.075, allocations: 57.2 kB / 1.536 GB, free: 77.57 MB / 0.6667 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006681/3.076, allocations: 214.4 kB / 1.536 GB, free: 77.57 MB / 0.6667 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0003067/3.076, allocations: 0.5981 MB / 1.537 GB, free: 77.05 MB / 0.6667 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009698/3.077, allocations: 107.8 kB / 1.537 GB, free: 77.02 MB / 0.6667 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.069e-05/3.077, allocations: 59.89 kB / 1.537 GB, free: 77.02 MB / 0.6667 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.0002295/3.077, allocations: 141.4 kB / 1.537 GB, free: 76.9 MB / 0.6667 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001815/3.077, allocations: 133.6 kB / 1.537 GB, free: 76.83 MB / 0.6667 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002688/3.08, allocations: 1.272 MB / 1.539 GB, free: 76.75 MB / 0.6667 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.581e-05/3.08, allocations: 18.81 kB / 1.539 GB, free: 76.75 MB / 0.6667 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.943e-06/3.08, allocations: 3.031 kB / 1.539 GB, free: 76.75 MB / 0.6667 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.00154/3.082, allocations: 0.9239 MB / 1.539 GB, free: 76.47 MB / 0.6667 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003635/3.085, allocations: 2.062 MB / 1.541 GB, free: 76.12 MB / 0.6667 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.92e-06/3.085, allocations: 2.734 kB / 1.541 GB, free: 76.12 MB / 0.6667 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005075/3.086, allocations: 120.2 kB / 1.542 GB, free: 76.12 MB / 0.6667 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001313/3.086, allocations: 37.91 kB / 1.542 GB, free: 76.12 MB / 0.6667 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.481e-05/3.086, allocations: 16.33 kB / 1.542 GB, free: 76.12 MB / 0.6667 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0003081/3.086, allocations: 0.5815 MB / 1.542 GB, free: 75.6 MB / 0.6667 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.206e-06/3.086, allocations: 0 / 1.542 GB, free: 75.6 MB / 0.6667 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.002301/3.089, allocations: 1.481 MB / 1.544 GB, free: 75.24 MB / 0.6667 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0005219/3.089, allocations: 308.5 kB / 1.544 GB, free: 75.07 MB / 0.6667 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001785/3.089, allocations: 3.406 kB / 1.544 GB, free: 75.07 MB / 0.6667 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006717/3.09, allocations: 60.23 kB / 1.544 GB, free: 75.06 MB / 0.6667 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001123/3.09, allocations: 57.52 kB / 1.544 GB, free: 75.06 MB / 0.6667 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.327e-05/3.09, allocations: 32.05 kB / 1.544 GB, free: 75.06 MB / 0.6667 GB Notification: Performance of sort global known variables: time 0.0009432/3.091, allocations: 0.7393 MB / 1.545 GB, free: 74.95 MB / 0.6667 GB Notification: Performance of remove unused functions: time 0.00253/3.094, allocations: 0.8527 MB / 1.546 GB, free: 74.8 MB / 0.6667 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.001794/3.096, allocations: 1.091 MB / 1.547 GB, free: 74.55 MB / 0.6667 GB Notification: Performance of simCode: created initialization part: time 0.001969/3.098, allocations: 1.225 MB / 1.548 GB, free: 74.46 MB / 0.6667 GB Notification: Performance of simCode: created event and clocks part: time 4.158e-06/3.098, allocations: 0 / 1.548 GB, free: 74.46 MB / 0.6667 GB Notification: Performance of simCode: created simulation system equations: time 0.0004912/3.098, allocations: 370.9 kB / 1.548 GB, free: 74.46 MB / 0.6667 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002557/3.101, allocations: 0.5785 MB / 1.549 GB, free: 74.46 MB / 0.6667 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003763/3.104, allocations: 2.035 MB / 1.551 GB, free: 73.92 MB / 0.6667 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0009891/3.105, allocations: 1.441 MB / 1.552 GB, free: 73.2 MB / 0.6667 GB Notification: Performance of SimCode: time 1.523e-06/3.105, allocations: 0 / 1.552 GB, free: 73.2 MB / 0.6667 GB Notification: Performance of Templates: time 0.05341/3.159, allocations: 33.58 MB / 1.585 GB, free: 71.73 MB / 0.6667 GB make -j1 -f IDEAS_IDEAS.Fluid.Actuators.Valves.Simplified.Examples.ThreeWayValveSwitch.makefile (rm -f IDEAS_IDEAS.Fluid.Actuators.Valves.Simplified.Examples.ThreeWayValveSwitch.pipe ; mkfifo IDEAS_IDEAS.Fluid.Actuators.Valves.Simplified.Examples.ThreeWayValveSwitch.pipe ; head -c 1048576 < IDEAS_IDEAS.Fluid.Actuators.Valves.Simplified.Examples.ThreeWayValveSwitch.pipe >> ../files/IDEAS_IDEAS.Fluid.Actuators.Valves.Simplified.Examples.ThreeWayValveSwitch.sim & ./IDEAS_IDEAS.Fluid.Actuators.Valves.Simplified.Examples.ThreeWayValveSwitch -abortSlowSimulation -alarm=480 -lv LOG_STATS > IDEAS_IDEAS.Fluid.Actuators.Valves.Simplified.Examples.ThreeWayValveSwitch.pipe 2>&1)