Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr BuildingSystems_BuildingSystems.Fluid.Examples.Performance.Example1v2.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.Example1v2,fileNamePrefix="BuildingSystems_BuildingSystems_Fluid_Examples_Performance_Example1v2",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(BuildingSystems.Fluid.Examples.Performance.Example1v2,fileNamePrefix="BuildingSystems_BuildingSystems_Fluid_Examples_Performance_Example1v2",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.7287/0.7287, allocations: 141.8 MB / 149.1 MB, free: 3.836 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.001102/0.001102, allocations: 183.2 kB / 181.9 MB, free: 15.59 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.323/1.323, allocations: 221.4 MB / 436 MB, free: 8.73 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.0009002/0.0009002, allocations: 99.75 kB / 0.507 GB, free: 24.18 MB / 394.9 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.001894/0.001894, allocations: 273.5 kB / 0.5884 GB, free: 11.79 MB / 442.9 MB Notification: Performance of FrontEnd - loaded program: time 0.2013/0.2033, allocations: 89.65 MB / 0.676 GB, free: 2.055 MB / 0.5107 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4097/0.613, allocations: 82.75 MB / 0.7568 GB, free: 112.3 MB / 0.5263 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.6517/1.265, allocations: 378.5 MB / 1.126 GB, free: 2.195 MB / 0.6513 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002408/1.265, allocations: 98.55 kB / 1.127 GB, free: 2.148 MB / 0.6513 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1418 * Number of variables: 1418 Notification: Performance of Generate backend data structure: time 8.417/9.682, allocations: 2.331 GB / 3.457 GB, free: 67.5 MB / 0.7607 GB Notification: Performance of prepare preOptimizeDAE: time 4.221e-05/9.682, allocations: 9.719 kB / 3.457 GB, free: 67.5 MB / 0.7607 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00855/9.69, allocations: 1.257 MB / 3.459 GB, free: 66.98 MB / 0.7607 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02999/9.72, allocations: 12.88 MB / 3.471 GB, free: 65.61 MB / 0.7607 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004078/9.721, allocations: 180 kB / 3.471 GB, free: 65.61 MB / 0.7607 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002943/9.724, allocations: 358.4 kB / 3.472 GB, free: 65.6 MB / 0.7607 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.02562/9.749, allocations: 18.14 MB / 3.489 GB, free: 65.57 MB / 0.7607 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02567/9.775, allocations: 12.76 MB / 3.502 GB, free: 64.76 MB / 0.7607 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001959/9.775, allocations: 23.22 kB / 3.502 GB, free: 64.75 MB / 0.7607 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001471/9.777, allocations: 21.16 kB / 3.502 GB, free: 64.75 MB / 0.7607 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.311e-05/9.777, allocations: 134.8 kB / 3.502 GB, free: 64.75 MB / 0.7607 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1069/9.884, allocations: 62.22 MB / 3.563 GB, free: 44.39 MB / 0.7607 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0111/9.895, allocations: 8.474 MB / 3.571 GB, free: 44.34 MB / 0.7607 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.01189/9.907, allocations: 9.401 MB / 3.58 GB, free: 44.08 MB / 0.7607 GB Notification: Performance of preOpt evalFunc (simulation): time 0.05829/9.965, allocations: 29.54 MB / 3.609 GB, free: 36.27 MB / 0.7607 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.01059/9.976, allocations: 7.353 MB / 3.616 GB, free: 36.17 MB / 0.7607 GB Notification: Performance of pre-optimization done (n=301): time 1.044e-05/9.976, allocations: 0 / 3.616 GB, free: 36.17 MB / 0.7607 GB Notification: Performance of matching and sorting (n=301): time 0.03005/10.01, allocations: 14.93 MB / 3.631 GB, free: 35.61 MB / 0.7607 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.245e-05/10.01, allocations: 90.44 kB / 3.631 GB, free: 35.54 MB / 0.7607 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0144/10.02, allocations: 6.578 MB / 3.637 GB, free: 35.07 MB / 0.7607 GB Notification: Performance of collectPreVariables (initialization): time 0.002488/10.02, allocations: 33.14 kB / 3.637 GB, free: 35.04 MB / 0.7607 GB Notification: Performance of collectInitialEqns (initialization): time 0.004312/10.03, allocations: 2.549 MB / 3.64 GB, free: 33.72 MB / 0.7607 GB Notification: Performance of collectInitialBindings (initialization): time 0.004604/10.03, allocations: 1.042 MB / 3.641 GB, free: 33.05 MB / 0.7607 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001188/10.03, allocations: 2.156 kB / 3.641 GB, free: 33.05 MB / 0.7607 GB Notification: Performance of setup shared object (initialization): time 0.0003531/10.03, allocations: 0.4884 MB / 3.641 GB, free: 32.73 MB / 0.7607 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.008314/10.04, allocations: 6.246 MB / 3.647 GB, free: 32.71 MB / 0.7607 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01055/10.05, allocations: 8.027 MB / 3.655 GB, free: 28.91 MB / 0.7607 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01265/10.07, allocations: 7.311 MB / 3.662 GB, free: 26.23 MB / 0.7607 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001138/10.07, allocations: 18.69 kB / 3.662 GB, free: 26.23 MB / 0.7607 GB Notification: Performance of matching and sorting (n=578) (initialization): time 0.0408/10.11, allocations: 16.73 MB / 3.679 GB, free: 15.08 MB / 0.7607 GB Notification: Performance of prepare postOptimizeDAE: time 0.00774/10.11, allocations: 24.48 MB / 3.703 GB, free: 4.902 MB / 0.7763 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002273/10.11, allocations: 49.08 kB / 3.703 GB, free: 4.855 MB / 0.7763 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.005604/10.12, allocations: 1.611 MB / 3.704 GB, free: 3.629 MB / 0.7763 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00983/10.13, allocations: 1.566 MB / 3.706 GB, free: 2.652 MB / 0.7763 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008941/10.14, allocations: 4.641 MB / 3.71 GB, free: 14.61 MB / 0.7919 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01329/10.15, allocations: 0.6985 MB / 3.711 GB, free: 14 MB / 0.7919 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.003211/10.16, allocations: 0.539 MB / 3.712 GB, free: 13.68 MB / 0.7919 GB Notification: Performance of prepare postOptimizeDAE: time 1.966e-05/10.16, allocations: 4 kB / 3.712 GB, free: 13.68 MB / 0.7919 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.03801/10.19, allocations: 15.9 MB / 3.727 GB, free: 0.8047 MB / 0.7919 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002667/10.19, allocations: 48.22 kB / 3.727 GB, free: 0.7578 MB / 0.7919 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.006813/10.2, allocations: 1.638 MB / 3.729 GB, free: 0 / 0.7919 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.3677/10.57, allocations: 1.736 MB / 3.73 GB, free: 155 MB / 0.7919 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0112/10.58, allocations: 7.867 MB / 3.738 GB, free: 152 MB / 0.7919 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01165/10.59, allocations: 0.5875 MB / 3.739 GB, free: 152 MB / 0.7919 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002539/10.59, allocations: 0.5357 MB / 3.739 GB, free: 152 MB / 0.7919 GB Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: val.port_internal.h_outflow:VARIABLE(min = -10000000000.0 max = 10000000000.0 unit = "J/kg" nominal = 1000000.0 protected = true ) "Specific thermodynamic enthalpy close to the connection point if m_flow < 0" type: Real Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 215 * 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,allowFlowReversal.y) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (524): * Single equations (assignments): 519 * 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: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 3 {3 4,2 5,20 21} Notification: Performance of prepare postOptimizeDAE: time 0.002498/10.6, allocations: 258.6 kB / 3.739 GB, free: 151.9 MB / 0.7919 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.003614/10.6, allocations: 0.696 MB / 3.74 GB, free: 151.9 MB / 0.7919 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02857/10.63, allocations: 14.44 MB / 3.754 GB, free: 151.7 MB / 0.7919 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.535e-05/10.63, allocations: 33.47 kB / 3.754 GB, free: 151.7 MB / 0.7919 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.324e-06/10.63, allocations: 2.906 kB / 3.754 GB, free: 151.7 MB / 0.7919 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0142/10.64, allocations: 10.33 MB / 3.764 GB, free: 151.2 MB / 0.7919 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0388/10.68, allocations: 23.26 MB / 3.787 GB, free: 148.3 MB / 0.7919 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.274e-05/10.68, allocations: 3.469 kB / 3.787 GB, free: 148.3 MB / 0.7919 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.005496/10.69, allocations: 0.6807 MB / 3.788 GB, free: 148.3 MB / 0.7919 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.002029/10.69, allocations: 0.808 MB / 3.789 GB, free: 148.3 MB / 0.7919 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0008112/10.69, allocations: 74.08 kB / 3.789 GB, free: 148.3 MB / 0.7919 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004662/10.69, allocations: 3.401 MB / 3.792 GB, free: 146.7 MB / 0.7919 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.613e-06/10.69, allocations: 3.531 kB / 3.792 GB, free: 146.7 MB / 0.7919 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.02736/10.72, allocations: 18.63 MB / 3.81 GB, free: 146.1 MB / 0.7919 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.03309/10.76, allocations: 26.51 MB / 3.836 GB, free: 144.8 MB / 0.7919 GB Notification: Performance of postOpt removeConstants (simulation): time 0.006805/10.76, allocations: 1.965 MB / 3.838 GB, free: 144.4 MB / 0.7919 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.003414/10.77, allocations: 17.36 kB / 3.838 GB, free: 144.4 MB / 0.7919 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.007788/10.77, allocations: 329.1 kB / 3.838 GB, free: 144.3 MB / 0.7919 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0009593/10.77, allocations: 197.2 kB / 3.838 GB, free: 144.3 MB / 0.7919 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000718/10.78, allocations: 158.9 kB / 3.839 GB, free: 144.3 MB / 0.7919 GB Notification: Performance of sort global known variables: time 0.008162/10.78, allocations: 5.004 MB / 3.843 GB, free: 144.1 MB / 0.7919 GB Notification: Performance of remove unused functions: time 0.02642/10.81, allocations: 5.04 MB / 3.848 GB, free: 143.8 MB / 0.7919 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 22 (pump.vol.dynBal.U,hea.outCon.T,vol[1].dynBal.U,vol[2].dynBal.U,vol[3].dynBal.U,vol[4].dynBal.U,vol[5].dynBal.U,vol[6].dynBal.U,vol[7].dynBal.U,vol[8].dynBal.U,vol[9].dynBal.U,vol[10].dynBal.U,vol[11].dynBal.U,vol[12].dynBal.U,vol[13].dynBal.U,vol[14].dynBal.U,vol[15].dynBal.U,vol[16].dynBal.U,vol[17].dynBal.U,vol[18].dynBal.U,vol[19].dynBal.U,vol[20].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 (303): * Single equations (assignments): 294 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 4 * When equations: 2 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 3 {3 4,20 21,2 5} Notification: Performance of Backend phase and start with SimCode phase: time 0.00325/10.81, allocations: 1.176 MB / 3.85 GB, free: 143.6 MB / 0.7919 GB Notification: Performance of simCode: created initialization part: time 0.03849/10.85, allocations: 23.14 MB / 3.872 GB, free: 143.2 MB / 0.7919 GB Notification: Performance of simCode: created event and clocks part: time 1.169e-05/10.85, allocations: 2.594 kB / 3.872 GB, free: 143.2 MB / 0.7919 GB Notification: Performance of simCode: created simulation system equations: time 0.01155/10.86, allocations: 6.116 MB / 3.878 GB, free: 143.2 MB / 0.7919 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.02317/10.89, allocations: 3.806 MB / 3.882 GB, free: 143.2 MB / 0.7919 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04174/10.93, allocations: 17.55 MB / 3.899 GB, free: 140 MB / 0.7919 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.01328/10.94, allocations: 6.541 MB / 3.905 GB, free: 138.5 MB / 0.7919 GB Notification: Performance of SimCode: time 1.413e-06/10.94, allocations: 0 / 3.905 GB, free: 138.5 MB / 0.7919 GB (rm -f BuildingSystems_BuildingSystems.Fluid.Examples.Performance.Example1v2.pipe ; mkfifo BuildingSystems_BuildingSystems.Fluid.Examples.Performance.Example1v2.pipe ; head -c 1048576 < BuildingSystems_BuildingSystems.Fluid.Examples.Performance.Example1v2.pipe >> ../files/BuildingSystems_BuildingSystems.Fluid.Examples.Performance.Example1v2.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_BuildingSystems_BuildingSystems_Fluid_Examples_Performance_Example1v2_fmu --startTime=0 --stopTime=20 --timeout=50 --tolerance=1e-06 BuildingSystems_BuildingSystems_Fluid_Examples_Performance_Example1v2.fmu > BuildingSystems_BuildingSystems.Fluid.Examples.Performance.Example1v2.pipe 2>&1)