Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr BuildingSystems_BuildingSystems.Fluid.HeatExchangers.BaseClasses.Examples.HANaturalCylinder.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.HeatExchangers.BaseClasses.Examples.HANaturalCylinder,fileNamePrefix="BuildingSystems_BuildingSystems_Fluid_HeatExchangers_BaseClasses_Examples_HANaturalCylinder",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(BuildingSystems.Fluid.HeatExchangers.BaseClasses.Examples.HANaturalCylinder,fileNamePrefix="BuildingSystems_BuildingSystems_Fluid_HeatExchangers_BaseClasses_Examples_HANaturalCylinder",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.7525/0.7525, allocations: 141.8 MB / 149.1 MB, free: 9.82 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.001087/0.001087, allocations: 186.4 kB / 181.9 MB, free: 6.781 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.333/1.333, allocations: 221.3 MB / 436 MB, free: 14.73 MB / 346.9 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001022/0.001022, allocations: 100.5 kB / 0.507 GB, free: 7.973 MB / 394.9 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.001879/0.001879, allocations: 288.6 kB / 0.5885 GB, free: 4.77 MB / 474.9 MB Notification: Performance of FrontEnd - loaded program: time 0.4211/0.4231, allocations: 89.63 MB / 0.676 GB, free: 166.2 MB / 0.5419 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1451/0.5682, allocations: 82.79 MB / 0.7568 GB, free: 113.4 MB / 0.5419 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.5819/1.15, allocations: 332 MB / 1.081 GB, free: 11.64 MB / 0.6513 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002465/1.15, allocations: 87.94 kB / 1.081 GB, free: 11.6 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: 17 * Number of variables: 17 Notification: Performance of Generate backend data structure: time 0.03563/1.186, allocations: 14.37 MB / 1.095 GB, free: 128 kB / 0.6513 GB Notification: Performance of prepare preOptimizeDAE: time 3.972e-05/1.186, allocations: 14.02 kB / 1.095 GB, free: 116 kB / 0.6513 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.226e-05/1.186, allocations: 7.906 kB / 1.095 GB, free: 108 kB / 0.6513 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002141/1.186, allocations: 184.3 kB / 1.095 GB, free: 15.89 MB / 0.6669 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.45e-05/1.186, allocations: 4 kB / 1.095 GB, free: 15.88 MB / 0.6669 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.183e-05/1.186, allocations: 4 kB / 1.095 GB, free: 15.88 MB / 0.6669 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0002071/1.187, allocations: 90.97 kB / 1.095 GB, free: 15.82 MB / 0.6669 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001427/1.187, allocations: 87.45 kB / 1.095 GB, free: 15.75 MB / 0.6669 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.414e-06/1.187, allocations: 3.719 kB / 1.096 GB, free: 15.75 MB / 0.6669 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.227e-05/1.187, allocations: 4 kB / 1.096 GB, free: 15.74 MB / 0.6669 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.608e-06/1.187, allocations: 0 / 1.096 GB, free: 15.74 MB / 0.6669 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00058/1.187, allocations: 388.3 kB / 1.096 GB, free: 15.39 MB / 0.6669 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001303/1.188, allocations: 88.19 kB / 1.096 GB, free: 15.32 MB / 0.6669 GB Notification: Performance of preOpt resolveLoops (simulation): time 7.233e-05/1.188, allocations: 46.55 kB / 1.096 GB, free: 15.28 MB / 0.6669 GB Notification: Performance of preOpt evalFunc (simulation): time 0.001039/1.189, allocations: 0.9298 MB / 1.097 GB, free: 14.27 MB / 0.6669 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.672e-05/1.189, allocations: 38.56 kB / 1.097 GB, free: 14.22 MB / 0.6669 GB Notification: Performance of pre-optimization done (n=12): time 1.332e-06/1.189, allocations: 0 / 1.097 GB, free: 14.22 MB / 0.6669 GB Notification: Performance of matching and sorting (n=12): time 0.0004772/1.189, allocations: 132 kB / 1.097 GB, free: 14.11 MB / 0.6669 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.977e-05/1.189, allocations: 59.25 kB / 1.097 GB, free: 14.04 MB / 0.6669 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001088/1.189, allocations: 143.4 kB / 1.097 GB, free: 13.91 MB / 0.6669 GB Notification: Performance of collectPreVariables (initialization): time 1.812e-05/1.189, allocations: 25.7 kB / 1.097 GB, free: 13.88 MB / 0.6669 GB Notification: Performance of collectInitialEqns (initialization): time 5.332e-05/1.19, allocations: 100.2 kB / 1.097 GB, free: 13.78 MB / 0.6669 GB Notification: Performance of collectInitialBindings (initialization): time 2.651e-05/1.19, allocations: 39.27 kB / 1.097 GB, free: 13.75 MB / 0.6669 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.032e-05/1.19, allocations: 4 kB / 1.097 GB, free: 13.74 MB / 0.6669 GB Notification: Performance of setup shared object (initialization): time 0.0001131/1.19, allocations: 330.4 kB / 1.098 GB, free: 13.42 MB / 0.6669 GB Notification: Performance of preBalanceInitialSystem (initialization): time 8.591e-05/1.19, allocations: 47.31 kB / 1.098 GB, free: 13.39 MB / 0.6669 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001145/1.19, allocations: 81.48 kB / 1.098 GB, free: 13.32 MB / 0.6669 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005619/1.19, allocations: 148 kB / 1.098 GB, free: 13.2 MB / 0.6669 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.903e-06/1.19, allocations: 0 / 1.098 GB, free: 13.2 MB / 0.6669 GB Notification: Performance of matching and sorting (n=26) (initialization): time 0.0007298/1.191, allocations: 263 kB / 1.098 GB, free: 12.98 MB / 0.6669 GB Notification: Performance of prepare postOptimizeDAE: time 1.624e-05/1.191, allocations: 6.812 kB / 1.098 GB, free: 12.98 MB / 0.6669 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.673e-06/1.191, allocations: 0 / 1.098 GB, free: 12.98 MB / 0.6669 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.039e-05/1.191, allocations: 7.906 kB / 1.098 GB, free: 12.97 MB / 0.6669 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003082/1.192, allocations: 59.98 kB / 1.098 GB, free: 12.91 MB / 0.6669 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.394e-06/1.192, allocations: 8 kB / 1.098 GB, free: 12.91 MB / 0.6669 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001675/1.192, allocations: 27.83 kB / 1.098 GB, free: 12.88 MB / 0.6669 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.99e-05/1.192, allocations: 15.81 kB / 1.098 GB, free: 12.87 MB / 0.6669 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 4 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (26): * Single equations (assignments): 26 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 9.816e-05/1.192, allocations: 116.8 kB / 1.098 GB, free: 12.75 MB / 0.6669 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.562e-05/1.192, allocations: 7.906 kB / 1.098 GB, free: 12.74 MB / 0.6669 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004171/1.192, allocations: 159.3 kB / 1.099 GB, free: 12.6 MB / 0.6669 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.04e-06/1.192, allocations: 4 kB / 1.099 GB, free: 12.59 MB / 0.6669 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.777e-06/1.192, allocations: 0 / 1.099 GB, free: 12.59 MB / 0.6669 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.76e-06/1.192, allocations: 3.984 kB / 1.099 GB, free: 12.59 MB / 0.6669 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002226/1.193, allocations: 188.8 kB / 1.099 GB, free: 12.39 MB / 0.6669 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.553e-06/1.193, allocations: 0 / 1.099 GB, free: 12.39 MB / 0.6669 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001817/1.193, allocations: 39.97 kB / 1.099 GB, free: 12.35 MB / 0.6669 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.641e-06/1.193, allocations: 4 kB / 1.099 GB, free: 12.34 MB / 0.6669 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.908e-06/1.193, allocations: 7.875 kB / 1.099 GB, free: 12.34 MB / 0.6669 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.423e-06/1.193, allocations: 0 / 1.099 GB, free: 12.34 MB / 0.6669 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.334e-06/1.193, allocations: 0 / 1.099 GB, free: 12.34 MB / 0.6669 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0003787/1.193, allocations: 239.9 kB / 1.099 GB, free: 12.11 MB / 0.6669 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.0004826/1.194, allocations: 0.6071 MB / 1.1 GB, free: 11.52 MB / 0.6669 GB Notification: Performance of postOpt removeConstants (simulation): time 4.3e-05/1.194, allocations: 88.92 kB / 1.1 GB, free: 11.41 MB / 0.6669 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.541e-05/1.194, allocations: 0 / 1.1 GB, free: 11.41 MB / 0.6669 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001621/1.194, allocations: 19.98 kB / 1.1 GB, free: 11.39 MB / 0.6669 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.217e-05/1.194, allocations: 11.92 kB / 1.1 GB, free: 11.38 MB / 0.6669 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.111e-05/1.194, allocations: 4 kB / 1.1 GB, free: 11.38 MB / 0.6669 GB Notification: Performance of sort global known variables: time 6.222e-05/1.194, allocations: 107.8 kB / 1.1 GB, free: 11.28 MB / 0.6669 GB Notification: Performance of remove unused functions: time 0.0008969/1.195, allocations: 71.73 kB / 1.1 GB, free: 11.22 MB / 0.6669 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (12): * Single equations (assignments): 12 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0003285/1.195, allocations: 186.3 kB / 1.1 GB, free: 11.04 MB / 0.6669 GB Notification: Performance of simCode: created initialization part: time 0.0002247/1.196, allocations: 112.5 kB / 1.1 GB, free: 10.96 MB / 0.6669 GB Notification: Performance of simCode: created event and clocks part: time 3.596e-06/1.196, allocations: 0 / 1.1 GB, free: 10.96 MB / 0.6669 GB Notification: Performance of simCode: created simulation system equations: time 6.944e-05/1.196, allocations: 46.31 kB / 1.1 GB, free: 10.93 MB / 0.6669 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002512/1.196, allocations: 23.77 kB / 1.1 GB, free: 10.91 MB / 0.6669 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000414/1.196, allocations: 145.9 kB / 1.1 GB, free: 10.75 MB / 0.6669 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003888/1.197, allocations: 0.7296 MB / 1.101 GB, free: 10 MB / 0.6669 GB Notification: Performance of SimCode: time 2.8e-07/1.197, allocations: 0 / 1.101 GB, free: 10 MB / 0.6669 GB (rm -f BuildingSystems_BuildingSystems.Fluid.HeatExchangers.BaseClasses.Examples.HANaturalCylinder.pipe ; mkfifo BuildingSystems_BuildingSystems.Fluid.HeatExchangers.BaseClasses.Examples.HANaturalCylinder.pipe ; head -c 1048576 < BuildingSystems_BuildingSystems.Fluid.HeatExchangers.BaseClasses.Examples.HANaturalCylinder.pipe >> ../files/BuildingSystems_BuildingSystems.Fluid.HeatExchangers.BaseClasses.Examples.HANaturalCylinder.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_BuildingSystems_BuildingSystems_Fluid_HeatExchangers_BaseClasses_Examples_HANaturalCylinder_fmu --startTime=0 --stopTime=250 --timeout=50 --tolerance=1e-06 BuildingSystems_BuildingSystems_Fluid_HeatExchangers_BaseClasses_Examples_HANaturalCylinder.fmu > BuildingSystems_BuildingSystems.Fluid.HeatExchangers.BaseClasses.Examples.HANaturalCylinder.pipe 2>&1)