Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr BuildingSystems_BuildingSystems.Fluid.HeatExchangers.Examples.AirHeater_T.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.Examples.AirHeater_T,fileNamePrefix="BuildingSystems_BuildingSystems_Fluid_HeatExchangers_Examples_AirHeater_T",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(BuildingSystems.Fluid.HeatExchangers.Examples.AirHeater_T,fileNamePrefix="BuildingSystems_BuildingSystems_Fluid_HeatExchangers_Examples_AirHeater_T",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.7345/0.7345, allocations: 141.8 MB / 149.1 MB, free: 13.05 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.001193/0.001193, allocations: 185.6 kB / 181.9 MB, free: 9.754 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.317/1.317, allocations: 221.3 MB / 436 MB, free: 2.266 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.000935/0.000935, allocations: 98.81 kB / 0.507 GB, free: 10.98 MB / 394.9 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.001868/0.001868, allocations: 291.6 kB / 0.5885 GB, free: 7.809 MB / 474.9 MB Notification: Performance of FrontEnd - loaded program: time 0.1946/0.1965, allocations: 89.63 MB / 0.676 GB, free: 14.09 MB / 0.5575 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3819/0.5784, allocations: 82.76 MB / 0.7568 GB, free: 139 MB / 0.5575 GB Notification: Performance of FrontEnd - scodeFlatten: time 3.392/3.97, allocations: 1.92 GB / 2.677 GB, free: 97.16 MB / 0.6982 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003188/3.971, allocations: 107.4 kB / 2.677 GB, free: 97.07 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: 333 * Number of variables: 333 Notification: Performance of Generate backend data structure: time 6.934/10.9, allocations: 2.093 GB / 4.771 GB, free: 79.16 MB / 0.745 GB Notification: Performance of prepare preOptimizeDAE: time 4.891e-05/10.91, allocations: 13.05 kB / 4.771 GB, free: 79.16 MB / 0.745 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005989/10.91, allocations: 0.8302 MB / 4.771 GB, free: 79.03 MB / 0.745 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.007587/10.92, allocations: 2.229 MB / 4.774 GB, free: 78.61 MB / 0.745 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.413e-05/10.92, allocations: 44.61 kB / 4.774 GB, free: 78.61 MB / 0.745 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005145/10.92, allocations: 93.95 kB / 4.774 GB, free: 78.61 MB / 0.745 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.002758/10.92, allocations: 1.153 MB / 4.775 GB, free: 78.6 MB / 0.745 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003414/10.93, allocations: 1.356 MB / 4.776 GB, free: 78.39 MB / 0.745 GB Notification: Performance of preOpt findStateOrder (simulation): time 4.731e-05/10.93, allocations: 5.688 kB / 4.776 GB, free: 78.39 MB / 0.745 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002061/10.93, allocations: 7.719 kB / 4.776 GB, free: 78.38 MB / 0.745 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.024e-05/10.93, allocations: 47.64 kB / 4.776 GB, free: 78.38 MB / 0.745 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01287/10.94, allocations: 7.609 MB / 4.784 GB, free: 74.36 MB / 0.745 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0009615/10.94, allocations: 0.5797 MB / 4.784 GB, free: 74.34 MB / 0.745 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006865/10.94, allocations: 485.8 kB / 4.785 GB, free: 74.34 MB / 0.745 GB Notification: Performance of preOpt evalFunc (simulation): time 0.001253/10.94, allocations: 0.926 MB / 4.786 GB, free: 73.4 MB / 0.745 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0008248/10.94, allocations: 0.4954 MB / 4.786 GB, free: 73.34 MB / 0.745 GB Notification: Performance of pre-optimization done (n=86): time 4.118e-06/10.94, allocations: 2.344 kB / 4.786 GB, free: 73.34 MB / 0.745 GB Notification: Performance of matching and sorting (n=86): time 0.003912/10.95, allocations: 1.132 MB / 4.787 GB, free: 73.19 MB / 0.745 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.776e-05/10.95, allocations: 113.2 kB / 4.787 GB, free: 73.06 MB / 0.745 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002985/10.95, allocations: 1.22 MB / 4.789 GB, free: 72.88 MB / 0.745 GB Notification: Performance of collectPreVariables (initialization): time 0.0001561/10.95, allocations: 34.3 kB / 4.789 GB, free: 72.85 MB / 0.745 GB Notification: Performance of collectInitialEqns (initialization): time 0.0007332/10.95, allocations: 0.591 MB / 4.789 GB, free: 72.54 MB / 0.745 GB Notification: Performance of collectInitialBindings (initialization): time 0.0003629/10.95, allocations: 292.9 kB / 4.789 GB, free: 72.34 MB / 0.745 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.217e-05/10.95, allocations: 0 / 4.789 GB, free: 72.34 MB / 0.745 GB Notification: Performance of setup shared object (initialization): time 0.0001071/10.95, allocations: 348 kB / 4.79 GB, free: 72.04 MB / 0.745 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005577/10.95, allocations: 342.7 kB / 4.79 GB, free: 72.04 MB / 0.745 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007676/10.95, allocations: 0.7015 MB / 4.791 GB, free: 71.61 MB / 0.745 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.00131/10.95, allocations: 0.5458 MB / 4.791 GB, free: 71.59 MB / 0.745 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.379e-05/10.95, allocations: 3.438 kB / 4.791 GB, free: 71.59 MB / 0.745 GB Notification: Performance of matching and sorting (n=135) (initialization): time 0.002778/10.96, allocations: 1.246 MB / 4.792 GB, free: 71.45 MB / 0.745 GB Notification: Performance of prepare postOptimizeDAE: time 0.000757/10.96, allocations: 3.35 MB / 4.796 GB, free: 67.95 MB / 0.745 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.431e-05/10.96, allocations: 9.344 kB / 4.796 GB, free: 67.95 MB / 0.745 GB Notification: Performance of postOpt tearingSystem (initialization): time 4.916e-05/10.96, allocations: 16.56 kB / 4.796 GB, free: 67.95 MB / 0.745 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001275/10.96, allocations: 264.6 kB / 4.796 GB, free: 67.95 MB / 0.745 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.867e-05/10.96, allocations: 22.16 kB / 4.796 GB, free: 67.94 MB / 0.745 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002055/10.96, allocations: 177.4 kB / 4.796 GB, free: 67.89 MB / 0.745 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001456/10.96, allocations: 52.8 kB / 4.796 GB, free: 67.89 MB / 0.745 GB Notification: Performance of prepare postOptimizeDAE: time 8.907e-06/10.96, allocations: 3.719 kB / 4.796 GB, free: 67.89 MB / 0.745 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.002232/10.96, allocations: 1.012 MB / 4.797 GB, free: 67.88 MB / 0.745 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.438e-05/10.96, allocations: 7.469 kB / 4.797 GB, free: 67.88 MB / 0.745 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.379e-05/10.96, allocations: 17.75 kB / 4.797 GB, free: 67.88 MB / 0.745 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001227/10.96, allocations: 264.8 kB / 4.798 GB, free: 67.88 MB / 0.745 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.43e-05/10.96, allocations: 19.83 kB / 4.798 GB, free: 67.88 MB / 0.745 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002025/10.97, allocations: 160.2 kB / 4.798 GB, free: 67.84 MB / 0.745 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001392/10.97, allocations: 52.45 kB / 4.798 GB, free: 67.84 MB / 0.745 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 37 * Number of states: 0 () * Number of discrete variables: 6 ($whenCondition1,$PRE.TSet.T_start,TSet.T_start,$PRE.TSet.count,TSet.count,conPI.I.trigger_internal) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (133): * Single equations (assignments): 131 * 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: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.000295/10.97, allocations: 139.9 kB / 4.798 GB, free: 67.73 MB / 0.745 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005836/10.97, allocations: 177 kB / 4.798 GB, free: 67.64 MB / 0.745 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003153/10.97, allocations: 1.103 MB / 4.799 GB, free: 67.55 MB / 0.745 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.4e-05/10.97, allocations: 7.75 kB / 4.799 GB, free: 67.55 MB / 0.745 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.44e-05/10.97, allocations: 3.562 kB / 4.799 GB, free: 67.55 MB / 0.745 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.001768/10.97, allocations: 1.151 MB / 4.8 GB, free: 67.09 MB / 0.745 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00627/10.98, allocations: 2.494 MB / 4.803 GB, free: 66.73 MB / 0.745 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.905e-06/10.98, allocations: 1.281 kB / 4.803 GB, free: 66.73 MB / 0.745 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001012/10.98, allocations: 183 kB / 4.803 GB, free: 66.73 MB / 0.745 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.000242/10.98, allocations: 53.11 kB / 4.803 GB, free: 66.72 MB / 0.745 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.268e-05/10.98, allocations: 13.34 kB / 4.803 GB, free: 66.72 MB / 0.745 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001278/10.98, allocations: 1.373 MB / 4.804 GB, free: 65.52 MB / 0.745 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.488e-06/10.98, allocations: 2.875 kB / 4.804 GB, free: 65.52 MB / 0.745 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.002885/10.98, allocations: 1.691 MB / 4.806 GB, free: 65.14 MB / 0.745 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.004081/10.99, allocations: 2.744 MB / 4.809 GB, free: 64.39 MB / 0.745 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001196/10.99, allocations: 354.3 kB / 4.809 GB, free: 64.2 MB / 0.745 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006659/10.99, allocations: 10.16 kB / 4.809 GB, free: 64.2 MB / 0.745 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00173/10.99, allocations: 112.9 kB / 4.809 GB, free: 64.19 MB / 0.745 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001515/10.99, allocations: 55.62 kB / 4.809 GB, free: 64.19 MB / 0.745 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.031e-05/10.99, allocations: 35.62 kB / 4.809 GB, free: 64.19 MB / 0.745 GB Notification: Performance of sort global known variables: time 0.002046/10.99, allocations: 0.9077 MB / 4.81 GB, free: 64.08 MB / 0.745 GB Notification: Performance of remove unused functions: time 0.008779/11, allocations: 1.989 MB / 4.812 GB, free: 63.91 MB / 0.745 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * Number of states: 8 (vol.dynBal.U,vol.dynBal.m,vol.dynBal.mXi[1],mov.filter.s[1],mov.filter.s[2],conPI.I.y,THeaOut.T,hea.outCon.T) * Number of discrete variables: 3 ($whenCondition1,TSet.T_start,TSet.count) * Number of discrete states: 1 (TSet.count) * Top-level inputs: 0 Notification: Strong component statistics for simulation (87): * Single equations (assignments): 84 * 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: 1 {(1,100.0%) 2} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.006278/11.01, allocations: 3.681 MB / 4.816 GB, free: 62.57 MB / 0.745 GB Notification: Performance of simCode: created initialization part: time 0.003033/11.01, allocations: 1.506 MB / 4.817 GB, free: 62.48 MB / 0.745 GB Notification: Performance of simCode: created event and clocks part: time 7.244e-06/11.01, allocations: 3.125 kB / 4.817 GB, free: 62.48 MB / 0.745 GB Notification: Performance of simCode: created simulation system equations: time 0.0009483/11.01, allocations: 0.5155 MB / 4.818 GB, free: 62.38 MB / 0.745 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00399/11.02, allocations: 0.7264 MB / 4.818 GB, free: 62.34 MB / 0.745 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009707/11.03, allocations: 2.992 MB / 4.821 GB, free: 61.64 MB / 0.745 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002367/11.03, allocations: 1.693 MB / 4.823 GB, free: 60.91 MB / 0.745 GB Notification: Performance of SimCode: time 7.51e-07/11.03, allocations: 3.938 kB / 4.823 GB, free: 60.9 MB / 0.745 GB (rm -f BuildingSystems_BuildingSystems.Fluid.HeatExchangers.Examples.AirHeater_T.pipe ; mkfifo BuildingSystems_BuildingSystems.Fluid.HeatExchangers.Examples.AirHeater_T.pipe ; head -c 1048576 < BuildingSystems_BuildingSystems.Fluid.HeatExchangers.Examples.AirHeater_T.pipe >> ../files/BuildingSystems_BuildingSystems.Fluid.HeatExchangers.Examples.AirHeater_T.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_BuildingSystems_BuildingSystems_Fluid_HeatExchangers_Examples_AirHeater_T_fmu --startTime=0 --stopTime=172800 --timeout=50 --tolerance=1e-08 BuildingSystems_BuildingSystems_Fluid_HeatExchangers_Examples_AirHeater_T.fmu > BuildingSystems_BuildingSystems.Fluid.HeatExchangers.Examples.AirHeater_T.pipe 2>&1)