Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ThermoPower_ThermoPower.Test.WaterComponents.ValveZeroFlow2.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoPower 3.1.0-master/package.mo", uses=false) Using package ThermoPower with version 3.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoPower 3.1.0-master/package.mo) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Running command: translateModel(ThermoPower.Test.WaterComponents.ValveZeroFlow2,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="ThermoPower_ThermoPower.Test.WaterComponents.ValveZeroFlow2") translateModel(ThermoPower.Test.WaterComponents.ValveZeroFlow2,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="ThermoPower_ThermoPower.Test.WaterComponents.ValveZeroFlow2") [: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 3.2.3+maint.om/package.mo): time 0.001189/0.001189, allocations: 188 kB / 8.131 MB, free: 2.086 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.186/1.186, allocations: 205.2 MB / 213.7 MB, free: 13.93 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0009522/0.0009522, allocations: 100.7 kB / 261.8 MB, free: 13.56 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoPower 3.1.0-master/package.mo): time 0.3369/0.3369, allocations: 48.75 MB / 358.4 MB, free: 53.2 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 6.913e-06/7.104e-06, allocations: 224 / 424.7 MB, free: 8.227 MB / 314.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1186/0.1186, allocations: 60.26 MB / 485 MB, free: 11.83 MB / 378.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 4.689/4.808, allocations: 2.905 GB / 3.379 GB, free: 134.5 MB / 0.5105 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002741/4.808, allocations: 81.2 kB / 3.379 GB, free: 134.5 MB / 0.5105 GB Notification: Performance of FrontEnd: time 0.8022/5.61, allocations: 294.5 MB / 3.667 GB, free: 55.46 MB / 0.5105 GB Notification: Performance of Transformations before backend: time 4.887e-05/5.61, allocations: 11.91 kB / 3.667 GB, free: 55.46 MB / 0.5105 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 79 * Number of variables: 79 Notification: Performance of Generate backend data structure: time 0.0048/5.615, allocations: 1.083 MB / 3.668 GB, free: 54.76 MB / 0.5105 GB Notification: Performance of prepare preOptimizeDAE: time 3.972e-05/5.615, allocations: 13.41 kB / 3.668 GB, free: 54.76 MB / 0.5105 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005403/5.616, allocations: 86.7 kB / 3.668 GB, free: 54.73 MB / 0.5105 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007473/5.616, allocations: 353.3 kB / 3.668 GB, free: 54.46 MB / 0.5105 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.293e-05/5.617, allocations: 17.47 kB / 3.668 GB, free: 54.45 MB / 0.5105 GB Notification: Performance of preOpt expandDerOperator (simulation): time 7.58e-05/5.617, allocations: 16.5 kB / 3.668 GB, free: 54.45 MB / 0.5105 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0004647/5.617, allocations: 236 kB / 3.668 GB, free: 54.36 MB / 0.5105 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000509/5.618, allocations: 355.9 kB / 3.669 GB, free: 54.14 MB / 0.5105 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.464e-05/5.618, allocations: 3.969 kB / 3.669 GB, free: 54.14 MB / 0.5105 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.161e-05/5.618, allocations: 0 / 3.669 GB, free: 54.14 MB / 0.5105 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.876e-05/5.618, allocations: 10.41 kB / 3.669 GB, free: 54.14 MB / 0.5105 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001944/5.62, allocations: 2.104 MB / 3.671 GB, free: 52.26 MB / 0.5105 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003754/5.62, allocations: 187.6 kB / 3.671 GB, free: 52.18 MB / 0.5105 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001322/5.62, allocations: 89.45 kB / 3.671 GB, free: 52.14 MB / 0.5105 GB Notification: Performance of preOpt evalFunc (simulation): time 0.06037/5.681, allocations: 32.01 MB / 3.702 GB, free: 26.59 MB / 0.5105 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.816e-05/5.681, allocations: 38.55 kB / 3.702 GB, free: 26.54 MB / 0.5105 GB Notification: Performance of pre-optimization done (n=25): time 2.555e-06/5.681, allocations: 4 kB / 3.702 GB, free: 26.54 MB / 0.5105 GB Notification: Performance of matching and sorting (n=33): time 0.003764/5.684, allocations: 1.155 MB / 3.704 GB, free: 25.32 MB / 0.5105 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.602e-05/5.684, allocations: 55.41 kB / 3.704 GB, free: 25.26 MB / 0.5105 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000223/5.685, allocations: 219.5 kB / 3.704 GB, free: 25.04 MB / 0.5105 GB Notification: Performance of collectPreVariables (initialization): time 2.685e-05/5.685, allocations: 25.7 kB / 3.704 GB, free: 25 MB / 0.5105 GB Notification: Performance of collectInitialEqns (initialization): time 6.792e-05/5.685, allocations: 172.2 kB / 3.704 GB, free: 24.83 MB / 0.5105 GB Notification: Performance of collectInitialBindings (initialization): time 7.2e-05/5.685, allocations: 118.3 kB / 3.704 GB, free: 24.71 MB / 0.5105 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.778e-05/5.685, allocations: 0 / 3.704 GB, free: 24.71 MB / 0.5105 GB Notification: Performance of setup shared object (initialization): time 7.281e-05/5.685, allocations: 350.7 kB / 3.704 GB, free: 24.36 MB / 0.5105 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001589/5.685, allocations: 104 kB / 3.705 GB, free: 24.26 MB / 0.5105 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001684/5.685, allocations: 154.3 kB / 3.705 GB, free: 24.09 MB / 0.5105 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003657/5.686, allocations: 139.6 kB / 3.705 GB, free: 23.95 MB / 0.5105 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.653e-06/5.686, allocations: 0 / 3.705 GB, free: 23.95 MB / 0.5105 GB Notification: Performance of matching and sorting (n=42) (initialization): time 0.001089/5.687, allocations: 464.7 kB / 3.705 GB, free: 23.49 MB / 0.5105 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001415/5.687, allocations: 0.5332 MB / 3.706 GB, free: 22.91 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.158e-06/5.687, allocations: 4 kB / 3.706 GB, free: 22.91 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004303/5.687, allocations: 85.64 kB / 3.706 GB, free: 22.82 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003503/5.688, allocations: 87.8 kB / 3.706 GB, free: 22.73 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0008031/5.689, allocations: 1.136 MB / 3.707 GB, free: 21.55 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003654/5.689, allocations: 40.03 kB / 3.707 GB, free: 21.51 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.46e-05/5.689, allocations: 19.97 kB / 3.707 GB, free: 21.49 MB / 0.5105 GB Notification: Performance of prepare postOptimizeDAE: time 7.454e-06/5.689, allocations: 4 kB / 3.707 GB, free: 21.48 MB / 0.5105 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0007489/5.69, allocations: 325.3 kB / 3.707 GB, free: 21.16 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.887e-06/5.69, allocations: 0 / 3.707 GB, free: 21.16 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003676/5.69, allocations: 93.73 kB / 3.707 GB, free: 21.06 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002925/5.69, allocations: 83.83 kB / 3.708 GB, free: 20.98 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.000726/5.691, allocations: 1.144 MB / 3.709 GB, free: 19.79 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003219/5.692, allocations: 32.06 kB / 3.709 GB, free: 19.75 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.608e-05/5.692, allocations: 12 kB / 3.709 GB, free: 19.74 MB / 0.5105 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 6 * Number of states: 0 () * Number of discrete variables: 3 (Valve.fluidState.phase,Tank2.liquidState.phase,Tank1.liquidState.phase) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (40): * Single equations (assignments): 38 * 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: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 2 {1 1,1 1} Notification: Performance of prepare postOptimizeDAE: time 0.0001061/5.692, allocations: 116.8 kB / 3.709 GB, free: 19.62 MB / 0.5105 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002417/5.692, allocations: 95.53 kB / 3.709 GB, free: 19.53 MB / 0.5105 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00147/5.693, allocations: 1.251 MB / 3.71 GB, free: 18.27 MB / 0.5105 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.348e-05/5.693, allocations: 15.98 kB / 3.71 GB, free: 18.25 MB / 0.5105 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.64e-06/5.693, allocations: 0 / 3.71 GB, free: 18.25 MB / 0.5105 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.713e-06/5.693, allocations: 0 / 3.71 GB, free: 18.25 MB / 0.5105 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006503/5.694, allocations: 0.5983 MB / 3.711 GB, free: 17.62 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.705e-06/5.694, allocations: 0 / 3.711 GB, free: 17.62 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003302/5.694, allocations: 71.89 kB / 3.711 GB, free: 17.55 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004884/5.695, allocations: 137.5 kB / 3.711 GB, free: 17.41 MB / 0.5105 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.969e-05/5.695, allocations: 7.984 kB / 3.711 GB, free: 17.4 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0007638/5.696, allocations: 1.265 MB / 3.712 GB, free: 16.09 MB / 0.5105 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.304e-06/5.696, allocations: 0 / 3.712 GB, free: 16.09 MB / 0.5105 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.00161/5.697, allocations: 1.44 MB / 3.714 GB, free: 14.62 MB / 0.5105 GB Notification: Performance of postOpt removeConstants (simulation): time 0.000165/5.698, allocations: 148.4 kB / 3.714 GB, free: 14.46 MB / 0.5105 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.187e-05/5.698, allocations: 3.984 kB / 3.714 GB, free: 14.45 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002942/5.698, allocations: 19.98 kB / 3.714 GB, free: 14.43 MB / 0.5105 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.441e-05/5.698, allocations: 19.91 kB / 3.714 GB, free: 14.41 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.388e-05/5.698, allocations: 19.98 kB / 3.714 GB, free: 14.39 MB / 0.5105 GB Notification: Performance of sort global known variables: time 0.0001264/5.698, allocations: 167.1 kB / 3.714 GB, free: 14.23 MB / 0.5105 GB Notification: Performance of remove unused functions: time 0.004464/5.703, allocations: 0.9367 MB / 3.715 GB, free: 13.29 MB / 0.5105 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 4 (Tank1.y,Tank1.h,Tank2.y,Tank2.h) * Number of discrete variables: 6 ($cse1.phase,$cse1.region,$cse4.phase,$cse4.region,$cse5.phase,$cse5.region) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (36): * Single equations (assignments): 31 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 3 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 2 {1 1,1 1} Notification: Performance of Backend phase and start with SimCode phase: time 0.00722/5.71, allocations: 1.506 MB / 3.716 GB, free: 11.9 MB / 0.5105 GB Notification: Performance of simCode: created initialization part: time 0.001399/5.711, allocations: 0.8108 MB / 3.717 GB, free: 11.09 MB / 0.5105 GB Notification: Performance of simCode: created event and clocks part: time 3.045e-06/5.711, allocations: 0 / 3.717 GB, free: 11.09 MB / 0.5105 GB Notification: Performance of simCode: created simulation system equations: time 0.0006391/5.712, allocations: 0.5657 MB / 3.718 GB, free: 10.53 MB / 0.5105 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008579/5.713, allocations: 137.7 kB / 3.718 GB, free: 10.4 MB / 0.5105 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001702/5.715, allocations: 1.08 MB / 3.719 GB, free: 9.305 MB / 0.5105 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004033/5.715, allocations: 0.909 MB / 3.72 GB, free: 8.371 MB / 0.5105 GB Notification: Performance of SimCode: time 3.91e-07/5.715, allocations: 0 / 3.72 GB, free: 8.371 MB / 0.5105 GB Notification: Performance of Templates: time 0.2626/5.978, allocations: 30.33 MB / 3.749 GB, free: 120.7 MB / 0.5105 GB make -j1 -f ThermoPower_ThermoPower.Test.WaterComponents.ValveZeroFlow2.makefile (rm -f ThermoPower_ThermoPower.Test.WaterComponents.ValveZeroFlow2.pipe ; mkfifo ThermoPower_ThermoPower.Test.WaterComponents.ValveZeroFlow2.pipe ; head -c 1048576 < ThermoPower_ThermoPower.Test.WaterComponents.ValveZeroFlow2.pipe >> ../files/ThermoPower_ThermoPower.Test.WaterComponents.ValveZeroFlow2.sim & ./ThermoPower_ThermoPower.Test.WaterComponents.ValveZeroFlow2 -abortSlowSimulation -alarm=480 -lv LOG_STATS > ThermoPower_ThermoPower.Test.WaterComponents.ValveZeroFlow2.pipe 2>&1)