Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr BuildingSystems_BuildingSystems.Fluid.Movers.Validation.FlowControlled_m_flow.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo", uses=false) 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/NcDataReader2 2.5.1-master/package.mo", uses=false) Using package NcDataReader2 with version 2.5.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-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) Using package BuildingSystems with version 2.0.0-beta (/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo) Running command: translateModel(BuildingSystems.Fluid.Movers.Validation.FlowControlled_m_flow,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="BuildingSystems_BuildingSystems.Fluid.Movers.Validation.FlowControlled_m_flow") translateModel(BuildingSystems.Fluid.Movers.Validation.FlowControlled_m_flow,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="BuildingSystems_BuildingSystems.Fluid.Movers.Validation.FlowControlled_m_flow") [: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/BuildingSystems 2.0.0-master/package.mo): time 0.758/0.758, allocations: 141.8 MB / 149.1 MB, free: 13.63 MB / 138.9 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001456/0.001456, allocations: 185.2 kB / 181.9 MB, free: 10.27 MB / 154.9 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.408/1.408, allocations: 221.3 MB / 436 MB, free: 2.797 MB / 330.9 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.000911/0.0009111, allocations: 94.91 kB / 0.507 GB, free: 17.9 MB / 378.9 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.001905/0.001905, allocations: 271.5 kB / 0.5884 GB, free: 4.281 MB / 442.9 MB Notification: Performance of FrontEnd - loaded program: time 8.135e-06/8.166e-06, allocations: 2.031 kB / 0.6759 GB, free: 137.2 MB / 0.5107 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.197/0.197, allocations: 82.77 MB / 0.7567 GB, free: 84.14 MB / 0.5107 GB Notification: Performance of FrontEnd - scodeFlatten: time 4.457/4.654, allocations: 1.905 GB / 2.662 GB, free: 96.39 MB / 0.6983 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002386/4.654, allocations: 85.27 kB / 2.662 GB, free: 96.31 MB / 0.6983 GB Notification: Performance of FrontEnd: time 5.904/10.56, allocations: 1.673 GB / 4.335 GB, free: 43.42 MB / 0.7452 GB Notification: Performance of Transformations before backend: time 0.0004234/10.56, allocations: 60.86 kB / 4.335 GB, free: 43.37 MB / 0.7452 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 341 * Number of variables: 341 Notification: Performance of Generate backend data structure: time 0.009177/10.57, allocations: 2.512 MB / 4.337 GB, free: 40.8 MB / 0.7452 GB Notification: Performance of prepare preOptimizeDAE: time 7.388e-05/10.57, allocations: 9.281 kB / 4.337 GB, free: 40.79 MB / 0.7452 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.007387/10.58, allocations: 0.8865 MB / 4.338 GB, free: 39.9 MB / 0.7452 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.008342/10.58, allocations: 2.705 MB / 4.341 GB, free: 37.12 MB / 0.7452 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001004/10.58, allocations: 48 kB / 4.341 GB, free: 37.07 MB / 0.7452 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005827/10.58, allocations: 88 kB / 4.341 GB, free: 36.99 MB / 0.7452 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.002946/10.59, allocations: 1.235 MB / 4.342 GB, free: 35.75 MB / 0.7452 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003086/10.59, allocations: 1.414 MB / 4.344 GB, free: 34.27 MB / 0.7452 GB Notification: Performance of preOpt findStateOrder (simulation): time 4.217e-05/10.59, allocations: 0 / 4.344 GB, free: 34.27 MB / 0.7452 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001749/10.59, allocations: 4 kB / 4.344 GB, free: 34.27 MB / 0.7452 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.314e-05/10.59, allocations: 46.61 kB / 4.344 GB, free: 34.22 MB / 0.7452 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01255/10.6, allocations: 7.627 MB / 4.351 GB, free: 26.09 MB / 0.7452 GB Notification: Performance of preOpt comSubExp (simulation): time 0.00146/10.6, allocations: 0.8694 MB / 4.352 GB, free: 25.2 MB / 0.7452 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009219/10.61, allocations: 0.5377 MB / 4.352 GB, free: 24.66 MB / 0.7452 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0003715/10.61, allocations: 279.9 kB / 4.353 GB, free: 24.34 MB / 0.7452 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.7e-05/10.61, allocations: 39.22 kB / 4.353 GB, free: 24.29 MB / 0.7452 GB Notification: Performance of pre-optimization done (n=78): time 4.749e-06/10.61, allocations: 4 kB / 4.353 GB, free: 24.28 MB / 0.7452 GB Notification: Performance of matching and sorting (n=78): time 0.004947/10.61, allocations: 1.142 MB / 4.354 GB, free: 23.13 MB / 0.7452 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.06e-05/10.61, allocations: 60.06 kB / 4.354 GB, free: 23.06 MB / 0.7452 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003844/10.61, allocations: 1.293 MB / 4.355 GB, free: 21.73 MB / 0.7452 GB Notification: Performance of collectPreVariables (initialization): time 0.0002145/10.62, allocations: 25.7 kB / 4.355 GB, free: 21.7 MB / 0.7452 GB Notification: Performance of collectInitialEqns (initialization): time 0.0006416/10.62, allocations: 0.6204 MB / 4.356 GB, free: 21.07 MB / 0.7452 GB Notification: Performance of collectInitialBindings (initialization): time 0.0004464/10.62, allocations: 268 kB / 4.356 GB, free: 20.8 MB / 0.7452 GB Notification: Performance of simplifyInitialFunctions (initialization): time 9.064e-05/10.62, allocations: 0 / 4.356 GB, free: 20.8 MB / 0.7452 GB Notification: Performance of setup shared object (initialization): time 0.0001022/10.62, allocations: 345.9 kB / 4.356 GB, free: 20.46 MB / 0.7452 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005834/10.62, allocations: 362.1 kB / 4.357 GB, free: 20.1 MB / 0.7452 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000753/10.62, allocations: 0.7648 MB / 4.358 GB, free: 19.14 MB / 0.7452 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001229/10.62, allocations: 0.5144 MB / 4.358 GB, free: 18.63 MB / 0.7452 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.373e-05/10.62, allocations: 4 kB / 4.358 GB, free: 18.62 MB / 0.7452 GB Notification: Performance of matching and sorting (n=128) (initialization): time 0.003304/10.62, allocations: 1.345 MB / 4.359 GB, free: 17.27 MB / 0.7452 GB Notification: Performance of prepare postOptimizeDAE: time 0.0008305/10.62, allocations: 3.838 MB / 4.363 GB, free: 13.15 MB / 0.7452 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.56e-05/10.62, allocations: 8 kB / 4.363 GB, free: 13.14 MB / 0.7452 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004307/10.62, allocations: 108.5 kB / 4.363 GB, free: 13.04 MB / 0.7452 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001323/10.63, allocations: 263.6 kB / 4.363 GB, free: 12.78 MB / 0.7452 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002358/10.63, allocations: 2.225 MB / 4.366 GB, free: 10.42 MB / 0.7452 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002148/10.63, allocations: 162.9 kB / 4.366 GB, free: 10.26 MB / 0.7452 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001795/10.63, allocations: 67.97 kB / 4.366 GB, free: 10.19 MB / 0.7452 GB Notification: Performance of prepare postOptimizeDAE: time 9.989e-06/10.63, allocations: 4 kB / 4.366 GB, free: 10.19 MB / 0.7452 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.002641/10.63, allocations: 1.041 MB / 4.367 GB, free: 9.145 MB / 0.7452 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.258e-05/10.63, allocations: 12 kB / 4.367 GB, free: 9.133 MB / 0.7452 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002946/10.63, allocations: 112.9 kB / 4.367 GB, free: 9.023 MB / 0.7452 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009767/10.63, allocations: 239.6 kB / 4.367 GB, free: 8.789 MB / 0.7452 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001947/10.64, allocations: 1.638 MB / 4.369 GB, free: 7.035 MB / 0.7452 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002013/10.64, allocations: 143.2 kB / 4.369 GB, free: 6.895 MB / 0.7452 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001459/10.64, allocations: 52.05 kB / 4.369 GB, free: 6.844 MB / 0.7452 GB Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: floMacSta.vol.heaFloSen.Q_flow:VARIABLE(unit = "W" protected = true ) "Heat flow from port_a to port_b as output signal" type: Real Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 42 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (122): * Single equations (assignments): 118 * Array equations: 2 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 1 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 0 * Non-linear Jacobian: 1 {1} * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {1 4} Notification: Performance of prepare postOptimizeDAE: time 0.0004966/10.64, allocations: 145.6 kB / 4.369 GB, free: 6.703 MB / 0.7452 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006845/10.64, allocations: 189.7 kB / 4.369 GB, free: 6.516 MB / 0.7452 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003374/10.64, allocations: 1.105 MB / 4.37 GB, free: 5.398 MB / 0.7452 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.297e-06/10.64, allocations: 8 kB / 4.37 GB, free: 5.391 MB / 0.7452 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.5e-06/10.64, allocations: 0 / 4.37 GB, free: 5.391 MB / 0.7452 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.001922/10.64, allocations: 0.9172 MB / 4.371 GB, free: 4.438 MB / 0.7452 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006751/10.65, allocations: 2.642 MB / 4.374 GB, free: 1.699 MB / 0.7452 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.322e-06/10.65, allocations: 4.125 kB / 4.374 GB, free: 1.695 MB / 0.7452 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001097/10.65, allocations: 199.7 kB / 4.374 GB, free: 1.5 MB / 0.7452 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003055/10.65, allocations: 96.45 kB / 4.374 GB, free: 1.406 MB / 0.7452 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.834e-05/10.65, allocations: 11.98 kB / 4.374 GB, free: 1.395 MB / 0.7452 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00251/10.66, allocations: 2.225 MB / 4.376 GB, free: 15.02 MB / 0.7608 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.869e-06/10.66, allocations: 0 / 4.376 GB, free: 15.02 MB / 0.7608 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.003619/10.66, allocations: 1.68 MB / 4.378 GB, free: 13.27 MB / 0.7608 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001283/10.66, allocations: 345.7 kB / 4.378 GB, free: 12.91 MB / 0.7608 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000611/10.66, allocations: 11.91 kB / 4.378 GB, free: 12.9 MB / 0.7608 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001704/10.66, allocations: 103.7 kB / 4.378 GB, free: 12.8 MB / 0.7608 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001297/10.66, allocations: 44.58 kB / 4.378 GB, free: 12.76 MB / 0.7608 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.94e-05/10.66, allocations: 31.98 kB / 4.379 GB, free: 12.73 MB / 0.7608 GB Notification: Performance of sort global known variables: time 0.002412/10.67, allocations: 0.9788 MB / 4.379 GB, free: 11.73 MB / 0.7608 GB Notification: Performance of remove unused functions: time 0.007245/10.67, allocations: 1.298 MB / 4.381 GB, free: 10.43 MB / 0.7608 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * Number of states: 3 (floMacDyn.vol.dynBal.U,floMacDyn.vol.dynBal.m,floMacDyn.vol.dynBal.mXi[1]) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (77): * Single equations (assignments): 75 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 1 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 0 * Non-linear Jacobian: 1 {1} * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {1 4} Notification: Performance of Backend phase and start with SimCode phase: time 0.008332/10.68, allocations: 4.388 MB / 4.385 GB, free: 5.738 MB / 0.7608 GB Notification: Performance of simCode: created initialization part: time 0.004355/10.69, allocations: 1.691 MB / 4.387 GB, free: 4.031 MB / 0.7608 GB Notification: Performance of simCode: created event and clocks part: time 6.362e-06/10.69, allocations: 0 / 4.387 GB, free: 4.031 MB / 0.7608 GB Notification: Performance of simCode: created simulation system equations: time 0.001122/10.69, allocations: 0.5135 MB / 4.387 GB, free: 3.512 MB / 0.7608 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005083/10.69, allocations: 0.8285 MB / 4.388 GB, free: 2.691 MB / 0.7608 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.4571/11.15, allocations: 2.739 MB / 4.391 GB, free: 121.9 MB / 0.7608 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002461/11.15, allocations: 1.769 MB / 4.392 GB, free: 121.2 MB / 0.7608 GB Notification: Performance of SimCode: time 2.284e-06/11.15, allocations: 0 / 4.392 GB, free: 121.2 MB / 0.7608 GB Notification: Performance of Templates: time 0.1032/11.25, allocations: 58.8 MB / 4.45 GB, free: 120 MB / 0.7608 GB make -j1 -f BuildingSystems_BuildingSystems.Fluid.Movers.Validation.FlowControlled_m_flow.makefile (rm -f BuildingSystems_BuildingSystems.Fluid.Movers.Validation.FlowControlled_m_flow.pipe ; mkfifo BuildingSystems_BuildingSystems.Fluid.Movers.Validation.FlowControlled_m_flow.pipe ; head -c 1048576 < BuildingSystems_BuildingSystems.Fluid.Movers.Validation.FlowControlled_m_flow.pipe >> ../files/BuildingSystems_BuildingSystems.Fluid.Movers.Validation.FlowControlled_m_flow.sim & ./BuildingSystems_BuildingSystems.Fluid.Movers.Validation.FlowControlled_m_flow -abortSlowSimulation -alarm=480 -lv LOG_STATS > BuildingSystems_BuildingSystems.Fluid.Movers.Validation.FlowControlled_m_flow.pipe 2>&1)