Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ThermoPower_ThermoPower.Test.WaterComponents.TestAccumulator.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.TestAccumulator,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="ThermoPower_ThermoPower.Test.WaterComponents.TestAccumulator") translateModel(ThermoPower.Test.WaterComponents.TestAccumulator,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="ThermoPower_ThermoPower.Test.WaterComponents.TestAccumulator") [: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.001394/0.001394, allocations: 190.6 kB / 8.133 MB, free: 2.199 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.309/1.309, allocations: 205.2 MB / 213.7 MB, free: 13.86 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.0008628/0.0008627, allocations: 94.8 kB / 261.8 MB, free: 13.55 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoPower 3.1.0-master/package.mo): time 0.4178/0.4178, allocations: 48.76 MB / 358.4 MB, free: 53.11 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 8.125e-06/8.295e-06, allocations: 4 kB / 424.7 MB, free: 8.227 MB / 314.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1185/0.1185, allocations: 60.26 MB / 485 MB, free: 11.83 MB / 378.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 4.82/4.938, allocations: 2.88 GB / 3.353 GB, free: 147.7 MB / 0.5105 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003013/4.939, allocations: 76.48 kB / 3.353 GB, free: 147.7 MB / 0.5105 GB Notification: Performance of FrontEnd: time 0.6214/5.56, allocations: 207.6 MB / 3.556 GB, free: 88.08 MB / 0.5105 GB Notification: Performance of Transformations before backend: time 4.458e-05/5.56, allocations: 7.719 kB / 3.556 GB, free: 88.08 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: 62 * Number of variables: 62 Notification: Performance of Generate backend data structure: time 0.004923/5.565, allocations: 1.009 MB / 3.557 GB, free: 87.61 MB / 0.5105 GB Notification: Performance of prepare preOptimizeDAE: time 4.667e-05/5.565, allocations: 13.83 kB / 3.557 GB, free: 87.61 MB / 0.5105 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002533/5.565, allocations: 54.97 kB / 3.557 GB, free: 87.59 MB / 0.5105 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005179/5.566, allocations: 312.6 kB / 3.558 GB, free: 87.38 MB / 0.5105 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.481e-05/5.566, allocations: 11.02 kB / 3.558 GB, free: 87.38 MB / 0.5105 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.624e-05/5.566, allocations: 15.22 kB / 3.558 GB, free: 87.38 MB / 0.5105 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0003123/5.566, allocations: 160.2 kB / 3.558 GB, free: 87.38 MB / 0.5105 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003985/5.567, allocations: 280.3 kB / 3.558 GB, free: 87.26 MB / 0.5105 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.231e-05/5.567, allocations: 1.125 kB / 3.558 GB, free: 87.26 MB / 0.5105 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.831e-05/5.567, allocations: 7.375 kB / 3.558 GB, free: 87.26 MB / 0.5105 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.415e-06/5.567, allocations: 3.938 kB / 3.558 GB, free: 87.26 MB / 0.5105 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001492/5.568, allocations: 1.258 MB / 3.559 GB, free: 86.46 MB / 0.5105 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002123/5.568, allocations: 109.6 kB / 3.559 GB, free: 86.44 MB / 0.5105 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001244/5.569, allocations: 93.25 kB / 3.559 GB, free: 86.43 MB / 0.5105 GB Notification: Performance of preOpt evalFunc (simulation): time 0.07352/5.642, allocations: 32.01 MB / 3.591 GB, free: 67.04 MB / 0.5105 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.856e-05/5.642, allocations: 30.56 kB / 3.591 GB, free: 67 MB / 0.5105 GB Notification: Performance of pre-optimization done (n=23): time 2.455e-06/5.642, allocations: 0 / 3.591 GB, free: 67 MB / 0.5105 GB Notification: Performance of matching and sorting (n=27): time 0.002194/5.644, allocations: 0.7843 MB / 3.591 GB, free: 66.7 MB / 0.5105 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.59e-05/5.644, allocations: 55.19 kB / 3.591 GB, free: 66.63 MB / 0.5105 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00024/5.645, allocations: 210.6 kB / 3.592 GB, free: 66.53 MB / 0.5105 GB Notification: Performance of collectPreVariables (initialization): time 2.248e-05/5.645, allocations: 29.95 kB / 3.592 GB, free: 66.5 MB / 0.5105 GB Notification: Performance of collectInitialEqns (initialization): time 6.355e-05/5.645, allocations: 156.4 kB / 3.592 GB, free: 66.4 MB / 0.5105 GB Notification: Performance of collectInitialBindings (initialization): time 6.981e-05/5.645, allocations: 93.17 kB / 3.592 GB, free: 66.35 MB / 0.5105 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.269e-05/5.645, allocations: 3.938 kB / 3.592 GB, free: 66.35 MB / 0.5105 GB Notification: Performance of setup shared object (initialization): time 7.212e-05/5.645, allocations: 342.6 kB / 3.592 GB, free: 66.04 MB / 0.5105 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001207/5.645, allocations: 80.64 kB / 3.592 GB, free: 66.03 MB / 0.5105 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001346/5.645, allocations: 102.5 kB / 3.592 GB, free: 66.02 MB / 0.5105 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000167/5.645, allocations: 91.5 kB / 3.593 GB, free: 66.01 MB / 0.5105 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.153e-06/5.645, allocations: 3.719 kB / 3.593 GB, free: 66.01 MB / 0.5105 GB Notification: Performance of matching and sorting (n=32) (initialization): time 0.001401/5.647, allocations: 485 kB / 3.593 GB, free: 65.95 MB / 0.5105 GB Notification: Performance of prepare postOptimizeDAE: time 5.387e-05/5.647, allocations: 188.8 kB / 3.593 GB, free: 65.76 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.162e-06/5.647, allocations: 0 / 3.593 GB, free: 65.76 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001048/5.648, allocations: 244 kB / 3.593 GB, free: 65.75 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001536/5.648, allocations: 48.94 kB / 3.593 GB, free: 65.75 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001026/5.649, allocations: 0.8969 MB / 3.594 GB, free: 65.22 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002599/5.649, allocations: 29.11 kB / 3.594 GB, free: 65.22 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.039e-05/5.649, allocations: 11.06 kB / 3.594 GB, free: 65.22 MB / 0.5105 GB Notification: Performance of prepare postOptimizeDAE: time 5.821e-06/5.649, allocations: 5.469 kB / 3.594 GB, free: 65.22 MB / 0.5105 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001125/5.651, allocations: 392.3 kB / 3.595 GB, free: 65.2 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.395e-06/5.651, allocations: 6.5 kB / 3.595 GB, free: 65.2 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009299/5.652, allocations: 240 kB / 3.595 GB, free: 65.19 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001473/5.652, allocations: 44.55 kB / 3.595 GB, free: 65.19 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0009139/5.653, allocations: 0.8665 MB / 3.596 GB, free: 64.66 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002462/5.653, allocations: 27.16 kB / 3.596 GB, free: 64.66 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.772e-05/5.653, allocations: 3.812 kB / 3.596 GB, free: 64.66 MB / 0.5105 GB Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: $DER.Accumulator1.Vl:DUMMY_DER(fixed = false ) "Volume occupied by water" type: Real Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 2 * Number of states: 0 () * Number of discrete variables: 1 (Accumulator1.liquidState.phase) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (16): * Single equations (assignments): 15 * 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: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {6 11} Notification: Performance of prepare postOptimizeDAE: time 0.0001621/5.653, allocations: 110.2 kB / 3.596 GB, free: 64.55 MB / 0.5105 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001177/5.653, allocations: 56.38 kB / 3.596 GB, free: 64.53 MB / 0.5105 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007388/5.654, allocations: 0.5333 MB / 3.597 GB, free: 64.45 MB / 0.5105 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.949e-06/5.654, allocations: 7.328 kB / 3.597 GB, free: 64.45 MB / 0.5105 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.304e-06/5.654, allocations: 0 / 3.597 GB, free: 64.45 MB / 0.5105 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.829e-06/5.654, allocations: 0 / 3.597 GB, free: 64.45 MB / 0.5105 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001201/5.655, allocations: 0.9723 MB / 3.598 GB, free: 64.16 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.016e-06/5.655, allocations: 0 / 3.598 GB, free: 64.16 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003568/5.656, allocations: 79.16 kB / 3.598 GB, free: 64.16 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002538/5.656, allocations: 53.7 kB / 3.598 GB, free: 64.15 MB / 0.5105 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.534e-05/5.656, allocations: 3.891 kB / 3.598 GB, free: 64.15 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0007992/5.657, allocations: 1.29 MB / 3.599 GB, free: 62.96 MB / 0.5105 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.614e-06/5.657, allocations: 3.75 kB / 3.599 GB, free: 62.96 MB / 0.5105 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0007767/5.658, allocations: 0.69 MB / 3.6 GB, free: 62.79 MB / 0.5105 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001139/5.658, allocations: 135.1 kB / 3.6 GB, free: 62.68 MB / 0.5105 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.379e-05/5.658, allocations: 0 / 3.6 GB, free: 62.68 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002551/5.658, allocations: 25.62 kB / 3.6 GB, free: 62.68 MB / 0.5105 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.772e-05/5.658, allocations: 29.06 kB / 3.6 GB, free: 62.67 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.711e-05/5.658, allocations: 3.938 kB / 3.6 GB, free: 62.67 MB / 0.5105 GB Notification: Performance of sort global known variables: time 0.0001181/5.658, allocations: 172.4 kB / 3.6 GB, free: 62.59 MB / 0.5105 GB Notification: Performance of remove unused functions: time 0.003822/5.662, allocations: 0.8758 MB / 3.601 GB, free: 62.5 MB / 0.5105 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 4 (Accumulator1.zl,Accumulator1.hl,Accumulator1.rhog,Accumulator1.Tg) * Number of discrete variables: 2 ($cse1.phase,$cse1.region) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (27): * Single equations (assignments): 25 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 1 * 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: 1 {(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.005206/5.667, allocations: 1.32 MB / 3.602 GB, free: 62.28 MB / 0.5105 GB Notification: Performance of simCode: created initialization part: time 0.001434/5.669, allocations: 0.585 MB / 3.603 GB, free: 62.27 MB / 0.5105 GB Notification: Performance of simCode: created event and clocks part: time 3.116e-06/5.669, allocations: 0 / 3.603 GB, free: 62.27 MB / 0.5105 GB Notification: Performance of simCode: created simulation system equations: time 0.0004077/5.669, allocations: 345.3 kB / 3.603 GB, free: 62.17 MB / 0.5105 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006446/5.67, allocations: 96.22 kB / 3.603 GB, free: 62.17 MB / 0.5105 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001202/5.671, allocations: 0.748 MB / 3.604 GB, free: 61.97 MB / 0.5105 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002567/5.671, allocations: 0.8422 MB / 3.605 GB, free: 61.27 MB / 0.5105 GB Notification: Performance of SimCode: time 4.91e-07/5.671, allocations: 0 / 3.605 GB, free: 61.27 MB / 0.5105 GB Notification: Performance of Templates: time 0.03689/5.708, allocations: 27.63 MB / 3.632 GB, free: 59.74 MB / 0.5105 GB make -j1 -f ThermoPower_ThermoPower.Test.WaterComponents.TestAccumulator.makefile (rm -f ThermoPower_ThermoPower.Test.WaterComponents.TestAccumulator.pipe ; mkfifo ThermoPower_ThermoPower.Test.WaterComponents.TestAccumulator.pipe ; head -c 1048576 < ThermoPower_ThermoPower.Test.WaterComponents.TestAccumulator.pipe >> ../files/ThermoPower_ThermoPower.Test.WaterComponents.TestAccumulator.sim & ./ThermoPower_ThermoPower.Test.WaterComponents.TestAccumulator -abortSlowSimulation -alarm=480 -lv LOG_STATS > ThermoPower_ThermoPower.Test.WaterComponents.TestAccumulator.pipe 2>&1)