Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ThermoPower_ThermoPower.Test.WaterComponents.TestCoeffValve.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.TestCoeffValve,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="ThermoPower_ThermoPower.Test.WaterComponents.TestCoeffValve") translateModel(ThermoPower.Test.WaterComponents.TestCoeffValve,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="ThermoPower_ThermoPower.Test.WaterComponents.TestCoeffValve") [: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.001037/0.001037, allocations: 185.8 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.39/1.39, allocations: 205.2 MB / 213.7 MB, free: 13.94 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.001004/0.001004, allocations: 104.6 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.4349/0.4349, allocations: 48.75 MB / 358.4 MB, free: 53.22 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 1.22e-05/1.243e-05, allocations: 4 kB / 424.7 MB, free: 8.223 MB / 314.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1278/0.1279, allocations: 60.25 MB / 485 MB, free: 11.84 MB / 378.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 4.935/5.063, allocations: 2.865 GB / 3.338 GB, free: 151.8 MB / 0.5105 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002076/5.063, allocations: 76.39 kB / 3.338 GB, free: 151.8 MB / 0.5105 GB Notification: Performance of FrontEnd: time 1.322/6.385, allocations: 457.8 MB / 3.785 GB, free: 55.46 MB / 0.5105 GB Notification: Performance of Transformations before backend: time 8.82e-05/6.386, allocations: 28.12 kB / 3.785 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: 124 * Number of variables: 124 Notification: Performance of Generate backend data structure: time 0.005123/6.391, allocations: 1.331 MB / 3.787 GB, free: 54.88 MB / 0.5105 GB Notification: Performance of prepare preOptimizeDAE: time 4.548e-05/6.391, allocations: 6.531 kB / 3.787 GB, free: 54.88 MB / 0.5105 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005884/6.391, allocations: 120.9 kB / 3.787 GB, free: 54.84 MB / 0.5105 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001133/6.392, allocations: 0.5659 MB / 3.787 GB, free: 54.58 MB / 0.5105 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.334e-05/6.392, allocations: 15.75 kB / 3.787 GB, free: 54.58 MB / 0.5105 GB Notification: Performance of preOpt expandDerOperator (simulation): time 6.471e-05/6.393, allocations: 28.66 kB / 3.787 GB, free: 54.58 MB / 0.5105 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0005503/6.393, allocations: 299.7 kB / 3.788 GB, free: 54.58 MB / 0.5105 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007382/6.394, allocations: 0.6235 MB / 3.788 GB, free: 54.19 MB / 0.5105 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.912e-05/6.394, allocations: 0 / 3.788 GB, free: 54.19 MB / 0.5105 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.404e-05/6.394, allocations: 3.844 kB / 3.788 GB, free: 54.19 MB / 0.5105 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.229e-05/6.394, allocations: 16.69 kB / 3.788 GB, free: 54.19 MB / 0.5105 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.2533/6.647, allocations: 131.2 MB / 3.916 GB, free: 15.7 MB / 0.5573 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001138/6.647, allocations: 79.97 kB / 3.917 GB, free: 15.59 MB / 0.5573 GB Notification: Performance of preOpt resolveLoops (simulation): time 6.16e-05/6.648, allocations: 38.48 kB / 3.917 GB, free: 15.55 MB / 0.5573 GB Notification: Performance of preOpt evalFunc (simulation): time 2.235e-05/6.648, allocations: 11.84 kB / 3.917 GB, free: 15.54 MB / 0.5573 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.629e-05/6.648, allocations: 30.56 kB / 3.917 GB, free: 15.5 MB / 0.5573 GB Notification: Performance of pre-optimization done (n=4): time 2.605e-06/6.648, allocations: 0 / 3.917 GB, free: 15.5 MB / 0.5573 GB Notification: Performance of matching and sorting (n=4): time 0.0009478/6.649, allocations: 225.8 kB / 3.917 GB, free: 15.35 MB / 0.5573 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.984e-05/6.649, allocations: 134.6 kB / 3.917 GB, free: 15.19 MB / 0.5573 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005649/6.649, allocations: 434.8 kB / 3.917 GB, free: 14.89 MB / 0.5573 GB Notification: Performance of collectPreVariables (initialization): time 2.451e-05/6.649, allocations: 25.7 kB / 3.917 GB, free: 14.86 MB / 0.5573 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001427/6.649, allocations: 303.6 kB / 3.918 GB, free: 14.63 MB / 0.5573 GB Notification: Performance of collectInitialBindings (initialization): time 2.443e-05/6.649, allocations: 16.5 kB / 3.918 GB, free: 14.62 MB / 0.5573 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.524e-05/6.649, allocations: 0 / 3.918 GB, free: 14.62 MB / 0.5573 GB Notification: Performance of setup shared object (initialization): time 0.0001923/6.65, allocations: 370 kB / 3.918 GB, free: 14.29 MB / 0.5573 GB Notification: Performance of preBalanceInitialSystem (initialization): time 9.789e-05/6.65, allocations: 45.78 kB / 3.918 GB, free: 14.27 MB / 0.5573 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001218/6.65, allocations: 126.9 kB / 3.918 GB, free: 14.14 MB / 0.5573 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004265/6.65, allocations: 89.33 kB / 3.918 GB, free: 14.09 MB / 0.5573 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.677e-06/6.65, allocations: 0 / 3.918 GB, free: 14.09 MB / 0.5573 GB Notification: Performance of matching and sorting (n=23) (initialization): time 0.001276/6.652, allocations: 432.2 kB / 3.919 GB, free: 13.84 MB / 0.5573 GB Notification: Performance of prepare postOptimizeDAE: time 0.0003914/6.652, allocations: 1.047 MB / 3.92 GB, free: 12.73 MB / 0.5573 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.096e-05/6.652, allocations: 4 kB / 3.92 GB, free: 12.73 MB / 0.5573 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.026e-05/6.652, allocations: 4 kB / 3.92 GB, free: 12.72 MB / 0.5573 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002795/6.652, allocations: 55.19 kB / 3.92 GB, free: 12.68 MB / 0.5573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.268e-05/6.652, allocations: 6.391 kB / 3.92 GB, free: 12.68 MB / 0.5573 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004835/6.653, allocations: 34.83 kB / 3.92 GB, free: 12.65 MB / 0.5573 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.5e-05/6.653, allocations: 20.48 kB / 3.92 GB, free: 12.64 MB / 0.5573 GB Notification: Performance of prepare postOptimizeDAE: time 7.263e-06/6.653, allocations: 4 kB / 3.92 GB, free: 12.64 MB / 0.5573 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0004119/6.653, allocations: 139.9 kB / 3.92 GB, free: 12.56 MB / 0.5573 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.658e-06/6.653, allocations: 4.656 kB / 3.92 GB, free: 12.55 MB / 0.5573 GB Notification: Performance of postOpt tearingSystem (initialization): time 6.832e-06/6.653, allocations: 8.25 kB / 3.92 GB, free: 12.55 MB / 0.5573 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001922/6.654, allocations: 47.86 kB / 3.92 GB, free: 12.51 MB / 0.5573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.11e-06/6.654, allocations: 4.656 kB / 3.92 GB, free: 12.51 MB / 0.5573 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003731/6.654, allocations: 23.03 kB / 3.92 GB, free: 12.49 MB / 0.5573 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.533e-05/6.654, allocations: 16.67 kB / 3.92 GB, free: 12.48 MB / 0.5573 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 12 * Number of states: 0 () * Number of discrete variables: 4 (ValveLiq4.fluidState.phase,ValveLiq3.fluidState.phase,ValveLiq2.fluidState.phase,ValveLiq1.fluidState.phase) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (23): * Single equations (assignments): 23 * 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: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001195/6.654, allocations: 113.8 kB / 3.92 GB, free: 12.36 MB / 0.5573 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004112/6.655, allocations: 137.1 kB / 3.92 GB, free: 12.27 MB / 0.5573 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002832/6.655, allocations: 138.3 kB / 3.92 GB, free: 28.19 MB / 0.573 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.787e-06/6.655, allocations: 4.031 kB / 3.92 GB, free: 28.18 MB / 0.573 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.961e-06/6.655, allocations: 8.516 kB / 3.92 GB, free: 28.18 MB / 0.573 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.346e-06/6.655, allocations: 0 / 3.92 GB, free: 28.18 MB / 0.573 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008802/6.656, allocations: 0.5313 MB / 3.921 GB, free: 27.8 MB / 0.573 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.854e-06/6.656, allocations: 3.938 kB / 3.921 GB, free: 27.79 MB / 0.573 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.836e-05/6.656, allocations: 13.2 kB / 3.921 GB, free: 27.79 MB / 0.573 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.585e-06/6.656, allocations: 0 / 3.921 GB, free: 27.79 MB / 0.573 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.428e-06/6.656, allocations: 4 kB / 3.921 GB, free: 27.78 MB / 0.573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.126e-06/6.656, allocations: 4.031 kB / 3.921 GB, free: 27.78 MB / 0.573 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.046e-06/6.656, allocations: 2.078 kB / 3.921 GB, free: 27.78 MB / 0.573 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0004938/6.656, allocations: 482.1 kB / 3.921 GB, free: 27.33 MB / 0.573 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001708/6.657, allocations: 144.2 kB / 3.922 GB, free: 27.2 MB / 0.573 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.915e-05/6.657, allocations: 7.094 kB / 3.922 GB, free: 27.19 MB / 0.573 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003116/6.657, allocations: 15.88 kB / 3.922 GB, free: 27.18 MB / 0.573 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.527e-05/6.657, allocations: 9.969 kB / 3.922 GB, free: 27.18 MB / 0.573 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.518e-06/6.657, allocations: 1.125 kB / 3.922 GB, free: 27.18 MB / 0.573 GB Notification: Performance of sort global known variables: time 0.0003765/6.657, allocations: 359.5 kB / 3.922 GB, free: 26.93 MB / 0.573 GB Notification: Performance of remove unused functions: time 0.004926/6.662, allocations: 1.103 MB / 3.923 GB, free: 25.91 MB / 0.573 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (4): * Single equations (assignments): 4 * 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: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.008227/6.671, allocations: 1.816 MB / 3.925 GB, free: 24.52 MB / 0.573 GB Notification: Performance of simCode: created initialization part: time 0.0005725/6.671, allocations: 199.9 kB / 3.925 GB, free: 24.41 MB / 0.573 GB Notification: Performance of simCode: created event and clocks part: time 4.839e-06/6.671, allocations: 0 / 3.925 GB, free: 24.41 MB / 0.573 GB Notification: Performance of simCode: created simulation system equations: time 3.506e-05/6.671, allocations: 12.28 kB / 3.925 GB, free: 24.4 MB / 0.573 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00158/6.673, allocations: 226 kB / 3.925 GB, free: 24.28 MB / 0.573 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00151/6.674, allocations: 0.585 MB / 3.926 GB, free: 23.73 MB / 0.573 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005946/6.675, allocations: 0.9465 MB / 3.927 GB, free: 22.86 MB / 0.573 GB Notification: Performance of SimCode: time 3.71e-07/6.675, allocations: 0 / 3.927 GB, free: 22.86 MB / 0.573 GB Notification: Performance of Templates: time 0.04886/6.724, allocations: 31.58 MB / 3.958 GB, free: 3.938 MB / 0.573 GB make -j1 -f ThermoPower_ThermoPower.Test.WaterComponents.TestCoeffValve.makefile (rm -f ThermoPower_ThermoPower.Test.WaterComponents.TestCoeffValve.pipe ; mkfifo ThermoPower_ThermoPower.Test.WaterComponents.TestCoeffValve.pipe ; head -c 1048576 < ThermoPower_ThermoPower.Test.WaterComponents.TestCoeffValve.pipe >> ../files/ThermoPower_ThermoPower.Test.WaterComponents.TestCoeffValve.sim & ./ThermoPower_ThermoPower.Test.WaterComponents.TestCoeffValve -abortSlowSimulation -alarm=480 -lv LOG_STATS > ThermoPower_ThermoPower.Test.WaterComponents.TestCoeffValve.pipe 2>&1)