Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr IDEAS_dev_IDEAS.Fluid.Actuators.Valves.Simplified.Examples.Thermostatic3WayValve.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.Thermostatic3WayValve,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="IDEAS_dev_IDEAS.Fluid.Actuators.Valves.Simplified.Examples.Thermostatic3WayValve") translateModel(IDEAS.Fluid.Actuators.Valves.Simplified.Examples.Thermostatic3WayValve,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="IDEAS_dev_IDEAS.Fluid.Actuators.Valves.Simplified.Examples.Thermostatic3WayValve") [: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.001774/0.001774, allocations: 185.3 kB / 7.463 MB, free: 2.5 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0-master/package.mo): time 0.5834/0.5834, allocations: 133.5 MB / 141.4 MB, free: 15.64 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.103/1.103, allocations: 221.3 MB / 395 MB, free: 10.17 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.0007824/0.0007823, allocations: 94.97 kB / 477.8 MB, free: 10.84 MB / 394.7 MB Notification: Performance of FrontEnd - loaded program: time 5.991e-06/6.021e-06, allocations: 2.969 kB / 0.5529 GB, free: 89.19 MB / 442.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09834/0.09836, allocations: 82.31 MB / 0.6332 GB, free: 14.09 MB / 442.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.6698/0.7682, allocations: 364.5 MB / 0.9892 GB, free: 260.1 MB / 0.6823 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002455/0.7685, allocations: 104.8 kB / 0.9893 GB, free: 260.1 MB / 0.6823 GB Notification: Performance of FrontEnd: time 1.02/1.788, allocations: 0.5019 GB / 1.491 GB, free: 20.71 MB / 0.6823 GB Notification: Performance of Transformations before backend: time 0.0001187/1.788, allocations: 47.91 kB / 1.491 GB, free: 20.67 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: 230 * Number of variables: 230 Notification: Performance of Generate backend data structure: time 0.002147/1.791, allocations: 1.65 MB / 1.493 GB, free: 18.98 MB / 0.6823 GB Notification: Performance of prepare preOptimizeDAE: time 2.807e-05/1.791, allocations: 11.97 kB / 1.493 GB, free: 18.97 MB / 0.6823 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00878/1.799, allocations: 1.715 MB / 1.495 GB, free: 17.25 MB / 0.6823 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003443/1.803, allocations: 1.978 MB / 1.496 GB, free: 15.26 MB / 0.6823 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.287e-05/1.803, allocations: 35.98 kB / 1.497 GB, free: 15.22 MB / 0.6823 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001249/1.803, allocations: 59.91 kB / 1.497 GB, free: 15.16 MB / 0.6823 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001319/1.804, allocations: 0.8631 MB / 1.497 GB, free: 14.3 MB / 0.6823 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001354/1.806, allocations: 1.022 MB / 1.498 GB, free: 13.23 MB / 0.6823 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.409e-05/1.806, allocations: 0 / 1.498 GB, free: 13.23 MB / 0.6823 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.888e-05/1.806, allocations: 0 / 1.498 GB, free: 13.23 MB / 0.6823 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.48e-05/1.806, allocations: 24 kB / 1.498 GB, free: 13.21 MB / 0.6823 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01162/1.818, allocations: 6.394 MB / 1.505 GB, free: 6.574 MB / 0.6823 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0005224/1.818, allocations: 418.6 kB / 1.505 GB, free: 6.16 MB / 0.6823 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003824/1.818, allocations: 310.1 kB / 1.505 GB, free: 5.855 MB / 0.6823 GB Notification: Performance of preOpt evalFunc (simulation): time 0.00299/1.821, allocations: 3.531 MB / 1.509 GB, free: 1.883 MB / 0.6823 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.312e-05/1.821, allocations: 38.56 kB / 1.509 GB, free: 1.836 MB / 0.6823 GB Notification: Performance of pre-optimization done (n=43): time 1.403e-06/1.821, allocations: 0 / 1.509 GB, free: 1.836 MB / 0.6823 GB Notification: Performance of matching and sorting (n=43): time 0.001905/1.823, allocations: 0.7426 MB / 1.51 GB, free: 1.082 MB / 0.6823 GB Notification: Performance of inlineWhenForInitialization (initialization): time 1.434e-05/1.823, allocations: 55.41 kB / 1.51 GB, free: 1.016 MB / 0.6823 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008716/1.824, allocations: 0.9445 MB / 1.511 GB, free: 60 kB / 0.6823 GB Notification: Performance of collectPreVariables (initialization): time 5.583e-05/1.824, allocations: 25.7 kB / 1.511 GB, free: 28 kB / 0.6823 GB Notification: Performance of collectInitialEqns (initialization): time 0.1771/2.001, allocations: 0.4976 MB / 1.511 GB, free: 151.1 MB / 0.6823 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001833/2.002, allocations: 150.8 kB / 1.511 GB, free: 151 MB / 0.6823 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.077e-05/2.002, allocations: 0 / 1.511 GB, free: 151 MB / 0.6823 GB Notification: Performance of setup shared object (initialization): time 5.092e-05/2.002, allocations: 337.4 kB / 1.512 GB, free: 150.7 MB / 0.6823 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004281/2.002, allocations: 274.9 kB / 1.512 GB, free: 150.7 MB / 0.6823 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004963/2.003, allocations: 0.6504 MB / 1.512 GB, free: 150.2 MB / 0.6823 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001468/2.004, allocations: 473.6 kB / 1.513 GB, free: 150.2 MB / 0.6823 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.16e-06/2.004, allocations: 0 / 1.513 GB, free: 150.2 MB / 0.6823 GB Notification: Performance of matching and sorting (n=103) (initialization): time 0.002411/2.007, allocations: 1.081 MB / 1.514 GB, free: 150.1 MB / 0.6823 GB Notification: Performance of prepare postOptimizeDAE: time 0.0005528/2.007, allocations: 4.48 MB / 1.518 GB, free: 145.5 MB / 0.6823 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.214e-05/2.007, allocations: 7.688 kB / 1.518 GB, free: 145.5 MB / 0.6823 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001812/2.007, allocations: 52.5 kB / 1.518 GB, free: 145.5 MB / 0.6823 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002039/2.009, allocations: 454.5 kB / 1.519 GB, free: 145.5 MB / 0.6823 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0002948/2.01, allocations: 0.6015 MB / 1.519 GB, free: 145 MB / 0.6823 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00232/2.012, allocations: 380.3 kB / 1.52 GB, free: 145 MB / 0.6823 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.395e-05/2.012, allocations: 60.11 kB / 1.52 GB, free: 145 MB / 0.6823 GB Notification: Performance of prepare postOptimizeDAE: time 5.71e-06/2.012, allocations: 3.938 kB / 1.52 GB, free: 145 MB / 0.6823 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.00208/2.014, allocations: 0.923 MB / 1.521 GB, free: 144.9 MB / 0.6823 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.398e-06/2.014, allocations: 17.06 kB / 1.521 GB, free: 144.9 MB / 0.6823 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.000105/2.014, allocations: 53.53 kB / 1.521 GB, free: 144.9 MB / 0.6823 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001988/2.016, allocations: 456.1 kB / 1.521 GB, free: 144.9 MB / 0.6823 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0002434/2.017, allocations: 0.5976 MB / 1.522 GB, free: 144.4 MB / 0.6823 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002041/2.019, allocations: 353 kB / 1.522 GB, free: 144.4 MB / 0.6823 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.734e-05/2.019, allocations: 58.03 kB / 1.522 GB, free: 144.4 MB / 0.6823 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 51 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (99): * Single equations (assignments): 97 * Array equations: 1 * Algorithm blocks: 0 * 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.0001637/2.019, allocations: 138.8 kB / 1.522 GB, free: 144.3 MB / 0.6823 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001429/2.019, allocations: 125.7 kB / 1.522 GB, free: 144.2 MB / 0.6823 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002322/2.021, allocations: 1.147 MB / 1.524 GB, free: 144.1 MB / 0.6823 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.1e-05/2.021, allocations: 10.7 kB / 1.524 GB, free: 144.1 MB / 0.6823 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.568e-06/2.021, allocations: 0 / 1.524 GB, free: 144.1 MB / 0.6823 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.001375/2.023, allocations: 0.8707 MB / 1.524 GB, free: 143.9 MB / 0.6823 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002989/2.026, allocations: 2.168 MB / 1.527 GB, free: 143.4 MB / 0.6823 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.537e-06/2.026, allocations: 3.516 kB / 1.527 GB, free: 143.4 MB / 0.6823 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001854/2.028, allocations: 361.6 kB / 1.527 GB, free: 143.4 MB / 0.6823 GB Notification: Performance of postOpt tearingSystem (simulation): time 9.949e-05/2.028, allocations: 40.41 kB / 1.527 GB, free: 143.4 MB / 0.6823 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.73e-05/2.028, allocations: 17.98 kB / 1.527 GB, free: 143.4 MB / 0.6823 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.000233/2.028, allocations: 0.5781 MB / 1.528 GB, free: 142.9 MB / 0.6823 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.845e-06/2.028, allocations: 3.906 kB / 1.528 GB, free: 142.9 MB / 0.6823 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.002028/2.03, allocations: 1.424 MB / 1.529 GB, free: 142.5 MB / 0.6823 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0003422/2.031, allocations: 312.7 kB / 1.529 GB, free: 142.4 MB / 0.6823 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001835/2.031, allocations: 6.688 kB / 1.529 GB, free: 142.4 MB / 0.6823 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001937/2.033, allocations: 310.6 kB / 1.53 GB, free: 142.4 MB / 0.6823 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.057e-05/2.033, allocations: 30.73 kB / 1.53 GB, free: 142.4 MB / 0.6823 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.843e-05/2.033, allocations: 27.62 kB / 1.53 GB, free: 142.4 MB / 0.6823 GB Notification: Performance of sort global known variables: time 0.0006708/2.033, allocations: 0.7026 MB / 1.53 GB, free: 142.2 MB / 0.6823 GB Notification: Performance of remove unused functions: time 0.001798/2.035, allocations: 0.832 MB / 1.531 GB, free: 142.2 MB / 0.6823 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * Number of states: 3 (thermostatic3WayValve.k_state,thermostatic3WayValve.vol.dynBal.U,T_out.T) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (54): * Single equations (assignments): 45 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 8 * 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 Backend phase and start with SimCode phase: time 0.00121/2.037, allocations: 1.019 MB / 1.532 GB, free: 142 MB / 0.6823 GB Notification: Performance of simCode: created initialization part: time 0.001636/2.038, allocations: 1.232 MB / 1.533 GB, free: 142 MB / 0.6823 GB Notification: Performance of simCode: created event and clocks part: time 2.705e-06/2.038, allocations: 2.594 kB / 1.533 GB, free: 142 MB / 0.6823 GB Notification: Performance of simCode: created simulation system equations: time 0.0004807/2.039, allocations: 367.4 kB / 1.534 GB, free: 142 MB / 0.6823 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0019/2.041, allocations: 0.5387 MB / 1.534 GB, free: 142 MB / 0.6823 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002638/2.043, allocations: 1.803 MB / 1.536 GB, free: 141.5 MB / 0.6823 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0009043/2.044, allocations: 1.398 MB / 1.537 GB, free: 140.8 MB / 0.6823 GB Notification: Performance of SimCode: time 2.81e-07/2.044, allocations: 0 / 1.537 GB, free: 140.8 MB / 0.6823 GB Notification: Performance of Templates: time 0.0396/2.084, allocations: 34.56 MB / 1.571 GB, free: 140 MB / 0.6823 GB make -j1 -f IDEAS_dev_IDEAS.Fluid.Actuators.Valves.Simplified.Examples.Thermostatic3WayValve.makefile (rm -f IDEAS_dev_IDEAS.Fluid.Actuators.Valves.Simplified.Examples.Thermostatic3WayValve.pipe ; mkfifo IDEAS_dev_IDEAS.Fluid.Actuators.Valves.Simplified.Examples.Thermostatic3WayValve.pipe ; head -c 1048576 < IDEAS_dev_IDEAS.Fluid.Actuators.Valves.Simplified.Examples.Thermostatic3WayValve.pipe >> ../files/IDEAS_dev_IDEAS.Fluid.Actuators.Valves.Simplified.Examples.Thermostatic3WayValve.sim & ./IDEAS_dev_IDEAS.Fluid.Actuators.Valves.Simplified.Examples.Thermostatic3WayValve -abortSlowSimulation -alarm=480 -lv LOG_STATS > IDEAS_dev_IDEAS.Fluid.Actuators.Valves.Simplified.Examples.Thermostatic3WayValve.pipe 2>&1)