Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr IDEAS_dev_IDEAS.Fluid.HeatExchangers.Validation.HeaterCooler_u.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.HeatExchangers.Validation.HeaterCooler_u,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="IDEAS_dev_IDEAS.Fluid.HeatExchangers.Validation.HeaterCooler_u") translateModel(IDEAS.Fluid.HeatExchangers.Validation.HeaterCooler_u,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="IDEAS_dev_IDEAS.Fluid.HeatExchangers.Validation.HeaterCooler_u") [: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.001956/0.001956, allocations: 175.7 kB / 7.46 MB, free: 2.484 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0-master/package.mo): time 0.5952/0.5952, allocations: 133.5 MB / 141.4 MB, free: 15.69 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.152/1.152, allocations: 221.3 MB / 395 MB, free: 10.24 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.0009051/0.000905, allocations: 90.47 kB / 477.8 MB, free: 10.92 MB / 394.7 MB Notification: Performance of FrontEnd - loaded program: time 7.003e-06/7.023e-06, allocations: 2.875 kB / 0.5528 GB, free: 88.93 MB / 442.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1174/0.1175, allocations: 82.3 MB / 0.6332 GB, free: 14.16 MB / 442.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 2.683/2.8, allocations: 1.893 GB / 2.527 GB, free: 68.12 MB / 0.6823 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001766/2.8, allocations: 87.95 kB / 2.527 GB, free: 68.04 MB / 0.6823 GB Notification: Performance of FrontEnd: time 2.666/5.466, allocations: 1.05 GB / 3.577 GB, free: 43.38 MB / 0.6823 GB Notification: Performance of Transformations before backend: time 0.0001552/5.467, allocations: 53.53 kB / 3.577 GB, free: 43.33 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: 294 * Number of variables: 294 Notification: Performance of Generate backend data structure: time 0.003738/5.47, allocations: 2.079 MB / 3.579 GB, free: 41.2 MB / 0.6823 GB Notification: Performance of prepare preOptimizeDAE: time 3.045e-05/5.47, allocations: 8.031 kB / 3.579 GB, free: 41.19 MB / 0.6823 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003684/5.474, allocations: 0.6609 MB / 3.58 GB, free: 40.52 MB / 0.6823 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002771/5.477, allocations: 1.458 MB / 3.581 GB, free: 39.05 MB / 0.6823 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000318/5.477, allocations: 126.2 kB / 3.581 GB, free: 38.92 MB / 0.6823 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000146/5.477, allocations: 75.91 kB / 3.581 GB, free: 38.85 MB / 0.6823 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001513/5.479, allocations: 1.024 MB / 3.582 GB, free: 37.82 MB / 0.6823 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001653/5.48, allocations: 1.223 MB / 3.583 GB, free: 36.52 MB / 0.6823 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.874e-05/5.48, allocations: 3.984 kB / 3.583 GB, free: 36.52 MB / 0.6823 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.958e-05/5.481, allocations: 7.938 kB / 3.583 GB, free: 36.51 MB / 0.6823 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.278e-05/5.481, allocations: 38.22 kB / 3.583 GB, free: 36.47 MB / 0.6823 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006308/5.487, allocations: 5.967 MB / 3.589 GB, free: 30.32 MB / 0.6823 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0007293/5.488, allocations: 0.5992 MB / 3.59 GB, free: 29.71 MB / 0.6823 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005239/5.488, allocations: 488.1 kB / 3.59 GB, free: 29.23 MB / 0.6823 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0005039/5.489, allocations: 480.2 kB / 3.591 GB, free: 28.68 MB / 0.6823 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006038/5.489, allocations: 0.5444 MB / 3.591 GB, free: 28.11 MB / 0.6823 GB Notification: Performance of pre-optimization done (n=87): time 2.184e-06/5.489, allocations: 0 / 3.591 GB, free: 28.11 MB / 0.6823 GB Notification: Performance of matching and sorting (n=95): time 0.006903/5.496, allocations: 3.161 MB / 3.594 GB, free: 24.91 MB / 0.6823 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.075e-05/5.496, allocations: 192.7 kB / 3.595 GB, free: 24.67 MB / 0.6823 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009168/5.497, allocations: 0.9225 MB / 3.596 GB, free: 23.74 MB / 0.6823 GB Notification: Performance of collectPreVariables (initialization): time 6.98e-05/5.497, allocations: 32.44 kB / 3.596 GB, free: 23.71 MB / 0.6823 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002134/5.498, allocations: 485.5 kB / 3.596 GB, free: 23.23 MB / 0.6823 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002005/5.498, allocations: 315.3 kB / 3.596 GB, free: 22.91 MB / 0.6823 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.774e-05/5.498, allocations: 0 / 3.596 GB, free: 22.91 MB / 0.6823 GB Notification: Performance of setup shared object (initialization): time 5.625e-05/5.498, allocations: 337.9 kB / 3.597 GB, free: 22.58 MB / 0.6823 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004685/5.498, allocations: 397.9 kB / 3.597 GB, free: 22.19 MB / 0.6823 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005568/5.499, allocations: 0.5912 MB / 3.598 GB, free: 21.51 MB / 0.6823 GB Notification: The following equation is consistent and got removed from the initialization problem: $DER.heaDyn.vol.dynBal.medium.p = 0.0 Notification: Performance of analyzeInitialSystem (initialization): time 0.003743/5.503, allocations: 1.44 MB / 3.599 GB, free: 20.06 MB / 0.6823 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.284e-06/5.503, allocations: 0 / 3.599 GB, free: 20.06 MB / 0.6823 GB Notification: Performance of matching and sorting (n=114) (initialization): time 0.003295/5.506, allocations: 1.614 MB / 3.601 GB, free: 18.44 MB / 0.6823 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001737/5.506, allocations: 1.257 MB / 3.602 GB, free: 17.11 MB / 0.6823 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.935e-06/5.506, allocations: 4 kB / 3.602 GB, free: 17.11 MB / 0.6823 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008791/5.507, allocations: 413.9 kB / 3.602 GB, free: 16.7 MB / 0.6823 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006947/5.508, allocations: 179.7 kB / 3.602 GB, free: 16.53 MB / 0.6823 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005377/5.513, allocations: 6.333 MB / 3.609 GB, free: 9.836 MB / 0.6823 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001427/5.515, allocations: 123.8 kB / 3.609 GB, free: 9.715 MB / 0.6823 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.125e-05/5.515, allocations: 44.05 kB / 3.609 GB, free: 9.672 MB / 0.6823 GB Notification: Performance of prepare postOptimizeDAE: time 5.881e-06/5.515, allocations: 4 kB / 3.609 GB, free: 9.668 MB / 0.6823 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.003233/5.518, allocations: 1.419 MB / 3.61 GB, free: 8.246 MB / 0.6823 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.621e-06/5.518, allocations: 4 kB / 3.61 GB, free: 8.242 MB / 0.6823 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008745/5.519, allocations: 406.9 kB / 3.611 GB, free: 7.84 MB / 0.6823 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006874/5.52, allocations: 180 kB / 3.611 GB, free: 7.664 MB / 0.6823 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005745/5.525, allocations: 7.205 MB / 3.618 GB, free: 4 kB / 0.6823 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001371/5.527, allocations: 123.8 kB / 3.618 GB, free: 15.88 MB / 0.698 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.117e-05/5.527, allocations: 40.05 kB / 3.618 GB, free: 15.84 MB / 0.698 GB Warning: Assuming redundant initial conditions for the following 1 initial equations: $DER.heaDyn.vol.dynBal.medium.p = 0.0 Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: heaSte.vol.heatPort.Q_flow:VARIABLE(flow=true unit = "W" final = true ) "Heat flow rate (positive if flowing from outside into the component)" type: Real Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 14 * Number of states: 0 () * Number of discrete variables: 9 ($whenCondition1,TSet.a,TSet.b,TSet.last,$PRE.TSet.nextEvent,TSet.nextEvent,TSet.nextEventScaled,con2.I.trigger_internal,con1.I.trigger_internal) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (87): * Single equations (assignments): 82 * Array equations: 0 * Algorithm blocks: 1 * 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: 0 * Non-linear torn systems: 4 {1 4,1 10,1 4,1 4} Notification: Performance of prepare postOptimizeDAE: time 0.0003421/5.527, allocations: 166.5 kB / 3.618 GB, free: 15.66 MB / 0.698 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002653/5.527, allocations: 158.1 kB / 3.618 GB, free: 15.51 MB / 0.698 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003492/5.531, allocations: 1.417 MB / 3.62 GB, free: 14.07 MB / 0.698 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.107e-06/5.531, allocations: 8 kB / 3.62 GB, free: 14.07 MB / 0.698 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.186e-06/5.531, allocations: 0 / 3.62 GB, free: 14.07 MB / 0.698 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.002882/5.534, allocations: 1.292 MB / 3.621 GB, free: 12.74 MB / 0.698 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006104/5.54, allocations: 3.121 MB / 3.624 GB, free: 9.539 MB / 0.698 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.953e-06/5.54, allocations: 4.5 kB / 3.624 GB, free: 9.535 MB / 0.698 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009641/5.541, allocations: 203.7 kB / 3.624 GB, free: 9.336 MB / 0.698 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004163/5.541, allocations: 184.9 kB / 3.624 GB, free: 9.156 MB / 0.698 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.999e-05/5.541, allocations: 19.98 kB / 3.624 GB, free: 9.137 MB / 0.698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002741/5.544, allocations: 2.414 MB / 3.627 GB, free: 6.582 MB / 0.698 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.444e-06/5.544, allocations: 8 kB / 3.627 GB, free: 6.574 MB / 0.698 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0041/5.548, allocations: 2.368 MB / 3.629 GB, free: 4.012 MB / 0.698 GB Notification: Performance of postOpt removeConstants (simulation): time 0.000704/5.549, allocations: 359 kB / 3.629 GB, free: 3.641 MB / 0.698 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002557/5.549, allocations: 12 kB / 3.629 GB, free: 3.629 MB / 0.698 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001273/5.551, allocations: 131.7 kB / 3.629 GB, free: 3.5 MB / 0.698 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001159/5.551, allocations: 64.48 kB / 3.629 GB, free: 3.438 MB / 0.698 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.768e-05/5.551, allocations: 39.92 kB / 3.63 GB, free: 3.398 MB / 0.698 GB Notification: Performance of sort global known variables: time 0.0009555/5.552, allocations: 0.6992 MB / 3.63 GB, free: 2.699 MB / 0.698 GB Notification: Performance of remove unused functions: time 0.003526/5.555, allocations: 0.9345 MB / 3.631 GB, free: 1.766 MB / 0.698 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 17 * Number of states: 6 (senTem1.T,con1.I.y,heaDyn.vol.dynBal.medium.X[2],heaDyn.vol.dynBal.medium.dT,senTem2.T,con2.I.y) * Number of discrete variables: 6 ($whenCondition1,TSet.a,TSet.b,TSet.last,TSet.nextEvent,TSet.nextEventScaled) * Number of discrete states: 6 (TSet.nextEvent,TSet.last,TSet.nextEventScaled,TSet.b,TSet.a,$whenCondition1) * Top-level inputs: 0 Notification: Strong component statistics for simulation (82): * Single equations (assignments): 79 * Array equations: 0 * Algorithm blocks: 1 * 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 4,1 4} Notification: Performance of Backend phase and start with SimCode phase: time 0.003913/5.559, allocations: 2.637 MB / 3.634 GB, free: 15.02 MB / 0.7136 GB Notification: Performance of simCode: created initialization part: time 0.003223/5.562, allocations: 2.389 MB / 3.636 GB, free: 12.55 MB / 0.7136 GB Notification: Performance of simCode: created event and clocks part: time 3.356e-06/5.562, allocations: 0 / 3.636 GB, free: 12.55 MB / 0.7136 GB Notification: Performance of simCode: created simulation system equations: time 0.0009018/5.563, allocations: 0.6656 MB / 3.637 GB, free: 11.87 MB / 0.7136 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002935/5.566, allocations: 0.6833 MB / 3.637 GB, free: 11.19 MB / 0.7136 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005627/5.572, allocations: 2.646 MB / 3.64 GB, free: 8.457 MB / 0.7136 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001329/5.573, allocations: 1.493 MB / 3.641 GB, free: 6.938 MB / 0.7136 GB Notification: Performance of SimCode: time 2.8e-07/5.573, allocations: 0 / 3.641 GB, free: 6.938 MB / 0.7136 GB Notification: Performance of Templates: time 0.278/5.851, allocations: 50.08 MB / 3.69 GB, free: 159.4 MB / 0.7136 GB make -j1 -f IDEAS_dev_IDEAS.Fluid.HeatExchangers.Validation.HeaterCooler_u.makefile (rm -f IDEAS_dev_IDEAS.Fluid.HeatExchangers.Validation.HeaterCooler_u.pipe ; mkfifo IDEAS_dev_IDEAS.Fluid.HeatExchangers.Validation.HeaterCooler_u.pipe ; head -c 1048576 < IDEAS_dev_IDEAS.Fluid.HeatExchangers.Validation.HeaterCooler_u.pipe >> ../files/IDEAS_dev_IDEAS.Fluid.HeatExchangers.Validation.HeaterCooler_u.sim & ./IDEAS_dev_IDEAS.Fluid.HeatExchangers.Validation.HeaterCooler_u -abortSlowSimulation -alarm=480 -lv LOG_STATS > IDEAS_dev_IDEAS.Fluid.HeatExchangers.Validation.HeaterCooler_u.pipe 2>&1)