Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr BuildingSystems_BuildingSystems.Fluid.Examples.Performance.Example3.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: "" <> buildModelFMU(BuildingSystems.Fluid.Examples.Performance.Example3,fileNamePrefix="BuildingSystems_BuildingSystems_Fluid_Examples_Performance_Example3",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(BuildingSystems.Fluid.Examples.Performance.Example3,fileNamePrefix="BuildingSystems_BuildingSystems_Fluid_Examples_Performance_Example3",fmuType="me",version="2.0",platforms={"static"}) [: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.7466/0.7466, allocations: 141.8 MB / 149.1 MB, free: 4.395 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.001054/0.001054, allocations: 189.5 kB / 181.9 MB, free: 72 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.291/1.291, allocations: 221.4 MB / 436 MB, free: 9.309 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.001007/0.001007, allocations: 98.02 kB / 0.507 GB, free: 24.2 MB / 394.9 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.001753/0.001753, allocations: 276.5 kB / 0.5884 GB, free: 12.29 MB / 442.9 MB Notification: Performance of FrontEnd - loaded program: time 0.2046/0.2064, allocations: 89.64 MB / 0.676 GB, free: 2.574 MB / 0.5107 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3889/0.5954, allocations: 82.76 MB / 0.7568 GB, free: 112.9 MB / 0.5263 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.6466/1.242, allocations: 361.1 MB / 1.109 GB, free: 4.852 MB / 0.6357 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002624/1.242, allocations: 98.11 kB / 1.11 GB, free: 4.805 MB / 0.6357 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 235 * Number of variables: 235 Notification: Performance of Generate backend data structure: time 2.488/3.73, allocations: 0.7027 GB / 1.812 GB, free: 116.5 MB / 0.7138 GB Notification: Performance of prepare preOptimizeDAE: time 3.957e-05/3.73, allocations: 11.22 kB / 1.812 GB, free: 116.5 MB / 0.7138 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001764/3.732, allocations: 291.5 kB / 1.813 GB, free: 116.4 MB / 0.7138 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.008058/3.74, allocations: 2.55 MB / 1.815 GB, free: 116 MB / 0.7138 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.423e-05/3.74, allocations: 37.41 kB / 1.815 GB, free: 115.9 MB / 0.7138 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003332/3.741, allocations: 63.62 kB / 1.815 GB, free: 115.9 MB / 0.7138 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001769/3.742, allocations: 0.8559 MB / 1.816 GB, free: 115.9 MB / 0.7138 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00175/3.744, allocations: 1.081 MB / 1.817 GB, free: 115.7 MB / 0.7138 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.348e-05/3.744, allocations: 5.812 kB / 1.817 GB, free: 115.7 MB / 0.7138 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.525e-05/3.744, allocations: 3.781 kB / 1.817 GB, free: 115.7 MB / 0.7138 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.915e-05/3.744, allocations: 22.56 kB / 1.817 GB, free: 115.7 MB / 0.7138 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.007186/3.751, allocations: 6.575 MB / 1.824 GB, free: 111.8 MB / 0.7138 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000755/3.752, allocations: 0.5723 MB / 1.824 GB, free: 111.7 MB / 0.7138 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004061/3.753, allocations: 367.7 kB / 1.824 GB, free: 111.7 MB / 0.7138 GB Notification: Performance of preOpt evalFunc (simulation): time 0.002461/3.755, allocations: 1.674 MB / 1.826 GB, free: 110.8 MB / 0.7138 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004037/3.756, allocations: 318.3 kB / 1.826 GB, free: 110.8 MB / 0.7138 GB Notification: Performance of pre-optimization done (n=47): time 2.675e-06/3.756, allocations: 0 / 1.826 GB, free: 110.8 MB / 0.7138 GB Notification: Performance of matching and sorting (n=47): time 0.001718/3.757, allocations: 0.8455 MB / 1.827 GB, free: 110.6 MB / 0.7138 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.635e-05/3.757, allocations: 55.75 kB / 1.827 GB, free: 110.6 MB / 0.7138 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001377/3.759, allocations: 1.379 MB / 1.829 GB, free: 110.4 MB / 0.7138 GB Notification: Performance of collectPreVariables (initialization): time 5.456e-05/3.759, allocations: 29.61 kB / 1.829 GB, free: 110.4 MB / 0.7138 GB Notification: Performance of collectInitialEqns (initialization): time 0.000308/3.759, allocations: 0.5419 MB / 1.829 GB, free: 110.1 MB / 0.7138 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001382/3.759, allocations: 165.5 kB / 1.829 GB, free: 110 MB / 0.7138 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.641e-05/3.759, allocations: 0 / 1.829 GB, free: 110 MB / 0.7138 GB Notification: Performance of setup shared object (initialization): time 6.823e-05/3.759, allocations: 335.5 kB / 1.83 GB, free: 109.7 MB / 0.7138 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000324/3.76, allocations: 263.6 kB / 1.83 GB, free: 109.7 MB / 0.7138 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004888/3.76, allocations: 0.6909 MB / 1.831 GB, free: 109.1 MB / 0.7138 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008917/3.761, allocations: 430.9 kB / 1.831 GB, free: 109.1 MB / 0.7138 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.509e-06/3.761, allocations: 3.906 kB / 1.831 GB, free: 109.1 MB / 0.7138 GB Notification: Performance of matching and sorting (n=99) (initialization): time 0.001897/3.763, allocations: 1.135 MB / 1.832 GB, free: 109 MB / 0.7138 GB Notification: Performance of prepare postOptimizeDAE: time 0.0006843/3.764, allocations: 4.074 MB / 1.836 GB, free: 104.7 MB / 0.7138 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.241e-05/3.764, allocations: 7.812 kB / 1.836 GB, free: 104.7 MB / 0.7138 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.000275/3.764, allocations: 120.8 kB / 1.836 GB, free: 104.7 MB / 0.7138 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006633/3.765, allocations: 178.8 kB / 1.836 GB, free: 104.7 MB / 0.7138 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0005546/3.765, allocations: 0.8049 MB / 1.837 GB, free: 104.2 MB / 0.7138 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001162/3.766, allocations: 129.9 kB / 1.837 GB, free: 104.1 MB / 0.7138 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.049e-05/3.766, allocations: 46.55 kB / 1.837 GB, free: 104.1 MB / 0.7138 GB Notification: Performance of prepare postOptimizeDAE: time 6.722e-06/3.767, allocations: 10.69 kB / 1.837 GB, free: 104.1 MB / 0.7138 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001618/3.768, allocations: 0.9336 MB / 1.838 GB, free: 104 MB / 0.7138 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.228e-05/3.768, allocations: 14.66 kB / 1.838 GB, free: 104 MB / 0.7138 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001909/3.768, allocations: 115.3 kB / 1.838 GB, free: 104 MB / 0.7138 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005789/3.769, allocations: 173.4 kB / 1.839 GB, free: 103.9 MB / 0.7138 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001708/3.771, allocations: 1.984 MB / 1.84 GB, free: 102.6 MB / 0.7138 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009587/3.772, allocations: 100.6 kB / 1.841 GB, free: 102.6 MB / 0.7138 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.605e-05/3.772, allocations: 53.17 kB / 1.841 GB, free: 102.6 MB / 0.7138 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 45 * Number of states: 0 () * Number of discrete variables: 7 ($whenCondition1,$PRE.pulse.T_start,pulse.T_start,$PRE.pulse.count,pulse.count,from_dp.y,mergeDp.y) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (85): * Single equations (assignments): 82 * Array equations: 1 * 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 {1 12} Notification: Performance of prepare postOptimizeDAE: time 0.0001905/3.772, allocations: 145.1 kB / 1.841 GB, free: 102.5 MB / 0.7138 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001761/3.772, allocations: 158.3 kB / 1.841 GB, free: 102.4 MB / 0.7138 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001938/3.774, allocations: 0.9944 MB / 1.842 GB, free: 102.3 MB / 0.7138 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.087e-06/3.774, allocations: 7.281 kB / 1.842 GB, free: 102.3 MB / 0.7138 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.505e-06/3.774, allocations: 3.594 kB / 1.842 GB, free: 102.3 MB / 0.7138 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.001099/3.775, allocations: 0.8976 MB / 1.843 GB, free: 101.9 MB / 0.7138 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002828/3.778, allocations: 1.946 MB / 1.845 GB, free: 101.6 MB / 0.7138 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.576e-06/3.778, allocations: 0 / 1.845 GB, free: 101.6 MB / 0.7138 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004883/3.779, allocations: 98.95 kB / 1.845 GB, free: 101.6 MB / 0.7138 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001901/3.779, allocations: 102.1 kB / 1.845 GB, free: 101.5 MB / 0.7138 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.113e-05/3.779, allocations: 21.11 kB / 1.845 GB, free: 101.5 MB / 0.7138 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.000405/3.779, allocations: 0.7389 MB / 1.846 GB, free: 101 MB / 0.7138 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.855e-06/3.779, allocations: 2.844 kB / 1.846 GB, free: 101 MB / 0.7138 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.001578/3.781, allocations: 1.308 MB / 1.847 GB, free: 100.7 MB / 0.7138 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.002148/3.783, allocations: 2.083 MB / 1.849 GB, free: 100 MB / 0.7138 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0005391/3.783, allocations: 308.9 kB / 1.849 GB, free: 99.82 MB / 0.7138 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002/3.784, allocations: 0 / 1.849 GB, free: 99.82 MB / 0.7138 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007727/3.784, allocations: 71.98 kB / 1.849 GB, free: 99.81 MB / 0.7138 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001128/3.785, allocations: 42.02 kB / 1.849 GB, free: 99.81 MB / 0.7138 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.967e-05/3.785, allocations: 26.22 kB / 1.849 GB, free: 99.81 MB / 0.7138 GB Notification: Performance of sort global known variables: time 0.001302/3.786, allocations: 1.069 MB / 1.85 GB, free: 99.7 MB / 0.7138 GB Notification: Performance of remove unused functions: time 0.004405/3.79, allocations: 1.029 MB / 1.851 GB, free: 99.57 MB / 0.7138 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 1 (pump.vol.dynBal.U) * Number of discrete variables: 3 ($whenCondition1,pulse.T_start,pulse.count) * Number of discrete states: 1 (pulse.count) * Top-level inputs: 0 Notification: Strong component statistics for simulation (42): * Single equations (assignments): 36 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 3 * 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 {1 12} Notification: Performance of Backend phase and start with SimCode phase: time 0.001393/3.792, allocations: 0.7704 MB / 1.852 GB, free: 99.37 MB / 0.7138 GB Notification: Performance of simCode: created initialization part: time 0.001846/3.794, allocations: 1.302 MB / 1.853 GB, free: 99.13 MB / 0.7138 GB Notification: Performance of simCode: created event and clocks part: time 2.896e-06/3.794, allocations: 0 / 1.853 GB, free: 99.13 MB / 0.7138 GB Notification: Performance of simCode: created simulation system equations: time 0.0004234/3.794, allocations: 308.6 kB / 1.854 GB, free: 99.12 MB / 0.7138 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002234/3.796, allocations: 0.592 MB / 1.854 GB, free: 99.1 MB / 0.7138 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003498/3.8, allocations: 2.279 MB / 1.856 GB, free: 98.54 MB / 0.7138 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001058/3.801, allocations: 1.669 MB / 1.858 GB, free: 97.82 MB / 0.7138 GB Notification: Performance of SimCode: time 2.164e-06/3.801, allocations: 0 / 1.858 GB, free: 97.82 MB / 0.7138 GB (rm -f BuildingSystems_BuildingSystems.Fluid.Examples.Performance.Example3.pipe ; mkfifo BuildingSystems_BuildingSystems.Fluid.Examples.Performance.Example3.pipe ; head -c 1048576 < BuildingSystems_BuildingSystems.Fluid.Examples.Performance.Example3.pipe >> ../files/BuildingSystems_BuildingSystems.Fluid.Examples.Performance.Example3.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_BuildingSystems_BuildingSystems_Fluid_Examples_Performance_Example3_fmu --startTime=0 --stopTime=20 --timeout=50 --tolerance=1e-06 BuildingSystems_BuildingSystems_Fluid_Examples_Performance_Example3.fmu > BuildingSystems_BuildingSystems.Fluid.Examples.Performance.Example3.pipe 2>&1)