Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr BuildingSystems_BuildingSystems.Fluid.Examples.Performance.PressureDrop.SeriesParallelFlowOptimised.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.Examples.Performance.PressureDrop.SeriesParallelFlowOptimised,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="BuildingSystems_BuildingSystems.Fluid.Examples.Performance.PressureDrop.SeriesParallelFlowOptimised") translateModel(BuildingSystems.Fluid.Examples.Performance.PressureDrop.SeriesParallelFlowOptimised,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="BuildingSystems_BuildingSystems.Fluid.Examples.Performance.PressureDrop.SeriesParallelFlowOptimised") [: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.7625/0.7625, allocations: 141.8 MB / 149.1 MB, free: 4.543 MB / 122.9 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001048/0.001049, allocations: 178.3 kB / 181.9 MB, free: 192 kB / 138.9 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.488/1.488, allocations: 221.3 MB / 436 MB, free: 9.48 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.0009775/0.0009775, allocations: 96.95 kB / 0.507 GB, free: 24.13 MB / 394.9 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002/0.002, allocations: 277 kB / 0.5884 GB, free: 12.4 MB / 442.9 MB Notification: Performance of FrontEnd - loaded program: time 7.404e-06/7.434e-06, allocations: 0 / 0.6759 GB, free: 2.766 MB / 0.5107 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.515/0.515, allocations: 82.76 MB / 0.7567 GB, free: 113 MB / 0.5263 GB Notification: Performance of FrontEnd - scodeFlatten: time 4.493/5.008, allocations: 1.829 GB / 2.586 GB, free: 268.5 MB / 0.6982 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002473/5.008, allocations: 95.34 kB / 2.586 GB, free: 268.4 MB / 0.6982 GB Notification: Performance of FrontEnd: time 7.15/12.16, allocations: 1.998 GB / 4.584 GB, free: 143.8 MB / 0.6982 GB Notification: Performance of Transformations before backend: time 0.0001681/12.16, allocations: 31.2 kB / 4.584 GB, free: 143.8 MB / 0.6982 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 136 * Number of variables: 136 Notification: Performance of Generate backend data structure: time 0.00477/12.16, allocations: 1.351 MB / 4.585 GB, free: 142.5 MB / 0.6982 GB Notification: Performance of prepare preOptimizeDAE: time 4.088e-05/12.16, allocations: 11.97 kB / 4.585 GB, free: 142.5 MB / 0.6982 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001354/12.16, allocations: 202.3 kB / 4.585 GB, free: 142.3 MB / 0.6982 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004344/12.17, allocations: 1.432 MB / 4.587 GB, free: 140.9 MB / 0.6982 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.742e-05/12.17, allocations: 20 kB / 4.587 GB, free: 140.8 MB / 0.6982 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001953/12.17, allocations: 40 kB / 4.587 GB, free: 140.8 MB / 0.6982 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001266/12.17, allocations: 0.7248 MB / 4.587 GB, free: 140.1 MB / 0.6982 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001192/12.17, allocations: 0.8643 MB / 4.588 GB, free: 139.1 MB / 0.6982 GB Notification: Performance of preOpt findStateOrder (simulation): time 2e-05/12.17, allocations: 4 kB / 4.588 GB, free: 139.1 MB / 0.6982 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.021e-05/12.17, allocations: 0 / 4.588 GB, free: 139.1 MB / 0.6982 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.681e-05/12.17, allocations: 16 kB / 4.588 GB, free: 139.1 MB / 0.6982 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005224/12.18, allocations: 4.711 MB / 4.593 GB, free: 134.2 MB / 0.6982 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0008717/12.18, allocations: 0.5299 MB / 4.593 GB, free: 133.6 MB / 0.6982 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.000448/12.18, allocations: 455.3 kB / 4.594 GB, free: 133.2 MB / 0.6982 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0003557/12.18, allocations: 194.5 kB / 4.594 GB, free: 133 MB / 0.6982 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003901/12.18, allocations: 309.5 kB / 4.594 GB, free: 132.6 MB / 0.6982 GB Notification: Performance of pre-optimization done (n=35): time 2.745e-06/12.18, allocations: 0 / 4.594 GB, free: 132.6 MB / 0.6982 GB Notification: Performance of matching and sorting (n=35): time 0.002125/12.18, allocations: 0.9587 MB / 4.595 GB, free: 131.7 MB / 0.6982 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.308e-05/12.18, allocations: 88.2 kB / 4.595 GB, free: 131.6 MB / 0.6982 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001176/12.18, allocations: 0.9139 MB / 4.596 GB, free: 130.7 MB / 0.6982 GB Notification: Performance of collectPreVariables (initialization): time 6.205e-05/12.18, allocations: 29.7 kB / 4.596 GB, free: 130.6 MB / 0.6982 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002302/12.18, allocations: 349.3 kB / 4.597 GB, free: 130.3 MB / 0.6982 GB Notification: Performance of collectInitialBindings (initialization): time 8.687e-05/12.18, allocations: 126.2 kB / 4.597 GB, free: 130.2 MB / 0.6982 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.376e-05/12.18, allocations: 0 / 4.597 GB, free: 130.2 MB / 0.6982 GB Notification: Performance of setup shared object (initialization): time 7.472e-05/12.18, allocations: 322 kB / 4.597 GB, free: 129.8 MB / 0.6982 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002627/12.18, allocations: 232.3 kB / 4.597 GB, free: 129.6 MB / 0.6982 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004332/12.18, allocations: 0.5444 MB / 4.598 GB, free: 128.9 MB / 0.6982 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003493/12.18, allocations: 327.5 kB / 4.598 GB, free: 128.6 MB / 0.6982 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.627e-06/12.18, allocations: 0 / 4.598 GB, free: 128.6 MB / 0.6982 GB Notification: Performance of matching and sorting (n=58) (initialization): time 0.001761/12.19, allocations: 1.086 MB / 4.599 GB, free: 127.6 MB / 0.6982 GB Notification: Performance of prepare postOptimizeDAE: time 0.0004745/12.19, allocations: 2.097 MB / 4.601 GB, free: 125.3 MB / 0.6982 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.726e-05/12.19, allocations: 8 kB / 4.601 GB, free: 125.3 MB / 0.6982 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006841/12.19, allocations: 335.6 kB / 4.602 GB, free: 125 MB / 0.6982 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002312/12.19, allocations: 63.89 kB / 4.602 GB, free: 124.9 MB / 0.6982 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001236/12.19, allocations: 1.345 MB / 4.603 GB, free: 123.6 MB / 0.6982 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001156/12.19, allocations: 109.5 kB / 4.603 GB, free: 123.4 MB / 0.6982 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.881e-05/12.19, allocations: 24 kB / 4.603 GB, free: 123.4 MB / 0.6982 GB Notification: Performance of prepare postOptimizeDAE: time 8.476e-06/12.19, allocations: 7.938 kB / 4.603 GB, free: 123.4 MB / 0.6982 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001214/12.19, allocations: 0.7575 MB / 4.604 GB, free: 122.7 MB / 0.6982 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.435e-06/12.19, allocations: 9.125 kB / 4.604 GB, free: 122.7 MB / 0.6982 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007609/12.19, allocations: 313.3 kB / 4.604 GB, free: 122.4 MB / 0.6982 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002145/12.19, allocations: 73.62 kB / 4.604 GB, free: 122.3 MB / 0.6982 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003709/12.2, allocations: 3.438 MB / 4.608 GB, free: 118.8 MB / 0.6982 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009967/12.2, allocations: 107.5 kB / 4.608 GB, free: 118.7 MB / 0.6982 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.235e-05/12.2, allocations: 24 kB / 4.608 GB, free: 118.6 MB / 0.6982 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 24 * Number of states: 0 () * Number of discrete variables: 5 ($whenCondition1,$PRE.pulse_m_flow.T_start,pulse_m_flow.T_start,$PRE.pulse_m_flow.count,pulse_m_flow.count) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (34): * Single equations (assignments): 32 * 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: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {2 22} Notification: Performance of prepare postOptimizeDAE: time 0.0001597/12.2, allocations: 125.1 kB / 4.608 GB, free: 118.5 MB / 0.6982 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001135/12.2, allocations: 102.7 kB / 4.608 GB, free: 118.4 MB / 0.6982 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00128/12.2, allocations: 0.8575 MB / 4.609 GB, free: 117.5 MB / 0.6982 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.691e-06/12.2, allocations: 7.984 kB / 4.609 GB, free: 117.5 MB / 0.6982 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.114e-06/12.2, allocations: 0 / 4.609 GB, free: 117.5 MB / 0.6982 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.122e-06/12.2, allocations: 0 / 4.609 GB, free: 117.5 MB / 0.6982 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002234/12.2, allocations: 1.787 MB / 4.61 GB, free: 115.7 MB / 0.6982 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.488e-06/12.2, allocations: 4 kB / 4.61 GB, free: 115.7 MB / 0.6982 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001131/12.2, allocations: 27.92 kB / 4.61 GB, free: 115.7 MB / 0.6982 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005169/12.2, allocations: 293.7 kB / 4.611 GB, free: 115.4 MB / 0.6982 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.559e-05/12.2, allocations: 4 kB / 4.611 GB, free: 115.4 MB / 0.6982 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0009306/12.2, allocations: 1.204 MB / 4.612 GB, free: 114.2 MB / 0.6982 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.71e-06/12.2, allocations: 8.062 kB / 4.612 GB, free: 114.1 MB / 0.6982 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.001074/12.2, allocations: 1.034 MB / 4.613 GB, free: 113 MB / 0.6982 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0003126/12.2, allocations: 239.7 kB / 4.613 GB, free: 112.8 MB / 0.6982 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001291/12.2, allocations: 4 kB / 4.613 GB, free: 112.8 MB / 0.6982 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006947/12.2, allocations: 79.75 kB / 4.613 GB, free: 112.7 MB / 0.6982 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001008/12.2, allocations: 35.86 kB / 4.613 GB, free: 112.7 MB / 0.6982 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.456e-05/12.2, allocations: 12 kB / 4.613 GB, free: 112.7 MB / 0.6982 GB Notification: Performance of sort global known variables: time 0.0007176/12.21, allocations: 0.7139 MB / 4.614 GB, free: 111.9 MB / 0.6982 GB Notification: Performance of remove unused functions: time 0.001648/12.21, allocations: 0.554 MB / 4.615 GB, free: 111.4 MB / 0.6982 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 8 * Number of states: 0 () * Number of discrete variables: 3 ($whenCondition1,pulse_m_flow.T_start,pulse_m_flow.count) * Number of discrete states: 1 (pulse_m_flow.count) * Top-level inputs: 0 Notification: Strong component statistics for simulation (12): * Single equations (assignments): 9 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 2 * 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 {2 22} Notification: Performance of Backend phase and start with SimCode phase: time 0.001651/12.21, allocations: 1.221 MB / 4.616 GB, free: 110.3 MB / 0.6982 GB Notification: Performance of simCode: created initialization part: time 0.001583/12.21, allocations: 1.066 MB / 4.617 GB, free: 109.2 MB / 0.6982 GB Notification: Performance of simCode: created event and clocks part: time 2.925e-06/12.21, allocations: 4.062 kB / 4.617 GB, free: 109.2 MB / 0.6982 GB Notification: Performance of simCode: created simulation system equations: time 0.0003903/12.21, allocations: 266.9 kB / 4.617 GB, free: 109 MB / 0.6982 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002617/12.21, allocations: 0.5658 MB / 4.618 GB, free: 108.4 MB / 0.6982 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002288/12.22, allocations: 1.476 MB / 4.619 GB, free: 106.9 MB / 0.6982 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006681/12.22, allocations: 1.296 MB / 4.62 GB, free: 105.6 MB / 0.6982 GB Notification: Performance of SimCode: time 7.71e-07/12.22, allocations: 0 / 4.62 GB, free: 105.6 MB / 0.6982 GB Notification: Performance of Templates: time 0.03808/12.25, allocations: 27.38 MB / 4.647 GB, free: 78.54 MB / 0.6982 GB make -j1 -f BuildingSystems_BuildingSystems.Fluid.Examples.Performance.PressureDrop.SeriesParallelFlowOptimised.makefile (rm -f BuildingSystems_BuildingSystems.Fluid.Examples.Performance.PressureDrop.SeriesParallelFlowOptimised.pipe ; mkfifo BuildingSystems_BuildingSystems.Fluid.Examples.Performance.PressureDrop.SeriesParallelFlowOptimised.pipe ; head -c 1048576 < BuildingSystems_BuildingSystems.Fluid.Examples.Performance.PressureDrop.SeriesParallelFlowOptimised.pipe >> ../files/BuildingSystems_BuildingSystems.Fluid.Examples.Performance.PressureDrop.SeriesParallelFlowOptimised.sim & ./BuildingSystems_BuildingSystems.Fluid.Examples.Performance.PressureDrop.SeriesParallelFlowOptimised -abortSlowSimulation -alarm=480 -lv LOG_STATS > BuildingSystems_BuildingSystems.Fluid.Examples.Performance.PressureDrop.SeriesParallelFlowOptimised.pipe 2>&1)