Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ThermalSeparation_ThermalSeparation.Examples.Testing.Pump.PumpSystem.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/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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermalSeparation 0.2.0-master/package.mo", uses=false) Using package ThermalSeparation with version 0.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermalSeparation 0.2.0-master/package.mo) 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 Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Running command: translateModel(ThermalSeparation.Examples.Testing.Pump.PumpSystem,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="ThermalSeparation_ThermalSeparation.Examples.Testing.Pump.PumpSystem") translateModel(ThermalSeparation.Examples.Testing.Pump.PumpSystem,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="ThermalSeparation_ThermalSeparation.Examples.Testing.Pump.PumpSystem") [: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.0008252/0.0008252, allocations: 192.1 kB / 7.806 MB, free: 2.484 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 0.971/0.971, allocations: 221.4 MB / 229.6 MB, free: 3.008 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0007881/0.0007881, allocations: 100.5 kB / 280.5 MB, free: 1.242 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermalSeparation 0.2.0-master/package.mo): time 0.3424/0.3424, allocations: 64.46 MB / 395.7 MB, free: 27.41 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 5.981e-06/6.001e-06, allocations: 4 kB / 466.6 MB, free: 6.18 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2166/0.2166, allocations: 64.85 MB / 0.519 GB, free: 30.08 MB / 378.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3592/0.5758, allocations: 250.4 MB / 0.7635 GB, free: 37.86 MB / 490.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001406/0.576, allocations: 61.91 kB / 0.7636 GB, free: 37.83 MB / 490.7 MB Notification: Performance of FrontEnd: time 0.1113/0.6874, allocations: 59.88 MB / 0.8221 GB, free: 4.031 MB / 0.4948 GB Notification: Performance of Transformations before backend: time 4.712e-05/0.6874, allocations: 32 kB / 0.8221 GB, free: 4 MB / 0.4948 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 547 * Number of variables: 547 Notification: Performance of Generate backend data structure: time 0.004086/0.6915, allocations: 1.772 MB / 0.8238 GB, free: 2.172 MB / 0.4948 GB Notification: Performance of prepare preOptimizeDAE: time 3.089e-05/0.6916, allocations: 8.031 kB / 0.8238 GB, free: 2.164 MB / 0.4948 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004972/0.6921, allocations: 197.7 kB / 0.824 GB, free: 1.969 MB / 0.4948 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001285/0.6934, allocations: 0.7664 MB / 0.8248 GB, free: 1.156 MB / 0.4948 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.696e-05/0.6934, allocations: 64 kB / 0.8248 GB, free: 1.094 MB / 0.4948 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0006559/0.6941, allocations: 172 kB / 0.825 GB, free: 0.9258 MB / 0.4948 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.003246/0.6973, allocations: 1.961 MB / 0.8269 GB, free: 14.95 MB / 0.5105 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003395/0.7007, allocations: 2.38 MB / 0.8292 GB, free: 12.37 MB / 0.5105 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.869e-05/0.7008, allocations: 7.938 kB / 0.8292 GB, free: 12.36 MB / 0.5105 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001483/0.7009, allocations: 4 kB / 0.8293 GB, free: 12.36 MB / 0.5105 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001052/0.7011, allocations: 127.5 kB / 0.8294 GB, free: 12.23 MB / 0.5105 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0102/0.7113, allocations: 9.997 MB / 0.8391 GB, free: 1.848 MB / 0.5105 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0009826/0.7123, allocations: 0.7484 MB / 0.8399 GB, free: 1.047 MB / 0.5105 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007356/0.713, allocations: 0.543 MB / 0.8404 GB, free: 500 kB / 0.5105 GB Notification: Performance of preOpt evalFunc (simulation): time 8.883e-05/0.7131, allocations: 25.08 kB / 0.8404 GB, free: 476 kB / 0.5105 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.716e-05/0.7131, allocations: 47.56 kB / 0.8405 GB, free: 420 kB / 0.5105 GB Notification: Performance of pre-optimization done (n=114): time 2.895e-06/0.7131, allocations: 0 / 0.8405 GB, free: 420 kB / 0.5105 GB Notification: Performance of matching and sorting (n=136): time 0.01716/0.7303, allocations: 6.539 MB / 0.8469 GB, free: 9.773 MB / 0.5261 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.712e-05/0.7304, allocations: 201.2 kB / 0.847 GB, free: 9.531 MB / 0.5261 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008016/0.7312, allocations: 0.7534 MB / 0.8478 GB, free: 8.777 MB / 0.5261 GB Notification: Performance of collectPreVariables (initialization): time 8.932e-05/0.7313, allocations: 29.7 kB / 0.8478 GB, free: 8.742 MB / 0.5261 GB Notification: Performance of collectInitialEqns (initialization): time 0.0004587/0.7318, allocations: 0.9078 MB / 0.8487 GB, free: 7.816 MB / 0.5261 GB Notification: Performance of collectInitialBindings (initialization): time 0.0003386/0.7321, allocations: 477.2 kB / 0.8492 GB, free: 7.344 MB / 0.5261 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001041/0.7322, allocations: 0 / 0.8492 GB, free: 7.344 MB / 0.5261 GB Notification: Performance of setup shared object (initialization): time 0.0001817/0.7324, allocations: 423.4 kB / 0.8496 GB, free: 6.922 MB / 0.5261 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001167/0.7336, allocations: 0.8519 MB / 0.8504 GB, free: 6.066 MB / 0.5261 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001701/0.7353, allocations: 1.784 MB / 0.8521 GB, free: 3.828 MB / 0.5261 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001531/0.7368, allocations: 1.197 MB / 0.8533 GB, free: 2.629 MB / 0.5261 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.795e-05/0.7369, allocations: 15.94 kB / 0.8533 GB, free: 2.613 MB / 0.5261 GB Notification: Performance of matching and sorting (n=298) (initialization): time 0.007482/0.7444, allocations: 3.335 MB / 0.8566 GB, free: 15.26 MB / 0.5417 GB Notification: Performance of prepare postOptimizeDAE: time 1.32e-05/0.7444, allocations: 7.984 kB / 0.8566 GB, free: 15.25 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.992e-05/0.7444, allocations: 36.12 kB / 0.8566 GB, free: 15.22 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.004366/0.7488, allocations: 0.949 MB / 0.8575 GB, free: 14.26 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002593/0.7514, allocations: 0.5343 MB / 0.8581 GB, free: 13.73 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009091/0.7605, allocations: 5.656 MB / 0.8636 GB, free: 7.898 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001861/0.7624, allocations: 147.7 kB / 0.8637 GB, free: 7.754 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000192/0.7626, allocations: 124 kB / 0.8638 GB, free: 7.633 MB / 0.5417 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 147 * Number of states: 0 () * Number of discrete variables: 5 (tank.mediumLiquidIn.state.phase,tank.mediumLiquid.state.phase,sourceLiquid.medium.state.phase,idealPumpControlledVdot.mediumLiquidIn.state.phase,idealPumpControlledVdot.mediumLiquid.state.phase) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (269): * Single equations (assignments): 264 * Array equations: 2 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(9,53.1%) 11} * Non-linear torn systems: 2 {1 3,1 3} Notification: Performance of prepare postOptimizeDAE: time 0.0003036/0.7629, allocations: 199.9 kB / 0.864 GB, free: 7.43 MB / 0.5417 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002664/0.7632, allocations: 110.6 kB / 0.8641 GB, free: 7.32 MB / 0.5417 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007239/0.7704, allocations: 2.73 MB / 0.8668 GB, free: 4.57 MB / 0.5417 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.006469/0.7769, allocations: 2.38 MB / 0.8691 GB, free: 2.168 MB / 0.5417 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.085e-05/0.7769, allocations: 7.984 kB / 0.8691 GB, free: 2.16 MB / 0.5417 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.223e-05/0.7769, allocations: 3.984 kB / 0.8691 GB, free: 2.156 MB / 0.5417 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01105/0.788, allocations: 5.319 MB / 0.8743 GB, free: 12.71 MB / 0.5573 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.979e-06/0.788, allocations: 11.98 kB / 0.8743 GB, free: 12.7 MB / 0.5573 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001607/0.7896, allocations: 248.2 kB / 0.8746 GB, free: 12.45 MB / 0.5573 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.005525/0.7951, allocations: 1.242 MB / 0.8758 GB, free: 11.2 MB / 0.5573 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001029/0.7953, allocations: 15.98 kB / 0.8758 GB, free: 11.18 MB / 0.5573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008837/0.8041, allocations: 6.09 MB / 0.8818 GB, free: 4.898 MB / 0.5573 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.1341/0.9382, allocations: 4.814 MB / 0.8865 GB, free: 186.8 MB / 0.5573 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.007447/0.9457, allocations: 4.48 MB / 0.8908 GB, free: 185.7 MB / 0.5573 GB Notification: Performance of postOpt removeConstants (simulation): time 0.000189/0.9459, allocations: 190.1 kB / 0.891 GB, free: 185.6 MB / 0.5573 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002022/0.9461, allocations: 11.59 kB / 0.891 GB, free: 185.6 MB / 0.5573 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001297/0.9474, allocations: 103.5 kB / 0.8911 GB, free: 185.6 MB / 0.5573 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001792/0.9476, allocations: 93.41 kB / 0.8912 GB, free: 185.6 MB / 0.5573 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001006/0.9477, allocations: 49.2 kB / 0.8913 GB, free: 185.6 MB / 0.5573 GB Notification: Performance of sort global known variables: time 0.0004788/0.9482, allocations: 0.5151 MB / 0.8918 GB, free: 185.6 MB / 0.5573 GB Notification: Performance of remove unused functions: time 0.002274/0.9505, allocations: 0.5342 MB / 0.8923 GB, free: 185.6 MB / 0.5573 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 25 * Number of states: 4 ($STATESET140525298755991.x[3],$STATESET140525298755991.x[2],$STATESET140525298755991.x[1],tank.level) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (116): * Single equations (assignments): 112 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(7,61.2%) 11} * Non-linear torn systems: 3 {1 3,6 7,1 3} Notification: Performance of Backend phase and start with SimCode phase: time 0.0002739/0.9507, allocations: 200.7 kB / 0.8925 GB, free: 185.5 MB / 0.5573 GB Notification: Performance of simCode: created initialization part: time 0.004138/0.9549, allocations: 2.448 MB / 0.8949 GB, free: 185.3 MB / 0.5573 GB Notification: Performance of simCode: created event and clocks part: time 3.527e-06/0.9549, allocations: 3.969 kB / 0.8949 GB, free: 185.3 MB / 0.5573 GB Notification: Performance of simCode: created simulation system equations: time 0.002856/0.9578, allocations: 1.268 MB / 0.8961 GB, free: 185.2 MB / 0.5573 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001065/0.9588, allocations: 203.6 kB / 0.8963 GB, free: 185.2 MB / 0.5573 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004767/0.9636, allocations: 3.087 MB / 0.8993 GB, free: 184.3 MB / 0.5573 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001182/0.9648, allocations: 1.577 MB / 0.9009 GB, free: 183.6 MB / 0.5573 GB Notification: Performance of SimCode: time 5.01e-07/0.9648, allocations: 0 / 0.9009 GB, free: 183.6 MB / 0.5573 GB Notification: Performance of Templates: time 0.02933/0.9942, allocations: 26.64 MB / 0.9269 GB, free: 182.9 MB / 0.5573 GB make -j1 -f ThermalSeparation_ThermalSeparation.Examples.Testing.Pump.PumpSystem.makefile (rm -f ThermalSeparation_ThermalSeparation.Examples.Testing.Pump.PumpSystem.pipe ; mkfifo ThermalSeparation_ThermalSeparation.Examples.Testing.Pump.PumpSystem.pipe ; head -c 1048576 < ThermalSeparation_ThermalSeparation.Examples.Testing.Pump.PumpSystem.pipe >> ../files/ThermalSeparation_ThermalSeparation.Examples.Testing.Pump.PumpSystem.sim & ./ThermalSeparation_ThermalSeparation.Examples.Testing.Pump.PumpSystem -abortSlowSimulation -alarm=480 -lv LOG_STATS > ThermalSeparation_ThermalSeparation.Examples.Testing.Pump.PumpSystem.pipe 2>&1)