Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr BuildingSystems_BuildingSystems.Fluid.Storage.Examples.Stratified.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.Storage.Examples.Stratified,fileNamePrefix="BuildingSystems_BuildingSystems_Fluid_Storage_Examples_Stratified",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(BuildingSystems.Fluid.Storage.Examples.Stratified,fileNamePrefix="BuildingSystems_BuildingSystems_Fluid_Storage_Examples_Stratified",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.7339/0.7339, allocations: 141.8 MB / 149.1 MB, free: 12.43 MB / 130.9 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.00105/0.00105, allocations: 175.7 kB / 181.9 MB, free: 12.91 MB / 162.9 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.243/1.243, allocations: 221.4 MB / 436 MB, free: 392 kB / 323 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001013/0.001013, allocations: 92.59 kB / 0.507 GB, free: 13.28 MB / 419 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.001729/0.001729, allocations: 278.8 kB / 0.5884 GB, free: 57.66 MB / 419 MB Notification: Performance of FrontEnd - loaded program: time 0.1632/0.1649, allocations: 89.64 MB / 0.676 GB, free: 15.97 MB / 467 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4026/0.5675, allocations: 82.77 MB / 0.7568 GB, free: 34.96 MB / 467 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.6489/1.216, allocations: 381.8 MB / 1.13 GB, free: 6.023 MB / 0.6748 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002208/1.217, allocations: 90.88 kB / 1.13 GB, free: 5.98 MB / 0.6748 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 2145 * Number of variables: 2145 Notification: Performance of Generate backend data structure: time 8.941/10.16, allocations: 2.974 GB / 4.104 GB, free: 13.99 MB / 0.7373 GB Notification: Performance of prepare preOptimizeDAE: time 3.968e-05/10.16, allocations: 15.94 kB / 4.104 GB, free: 13.97 MB / 0.7373 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.007974/10.17, allocations: 1.174 MB / 4.105 GB, free: 12.79 MB / 0.7373 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02597/10.19, allocations: 10.88 MB / 4.116 GB, free: 1.883 MB / 0.7373 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003695/10.19, allocations: 268 kB / 4.116 GB, free: 1.621 MB / 0.7373 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002666/10.19, allocations: 495.8 kB / 4.117 GB, free: 1.137 MB / 0.7373 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.3172/10.51, allocations: 9.169 MB / 4.126 GB, free: 111.3 MB / 0.7373 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02879/10.54, allocations: 10.55 MB / 4.136 GB, free: 110.1 MB / 0.7373 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0004715/10.54, allocations: 26.97 kB / 4.136 GB, free: 110.1 MB / 0.7373 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002744/10.54, allocations: 20.5 kB / 4.136 GB, free: 110.1 MB / 0.7373 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002469/10.54, allocations: 248.9 kB / 4.136 GB, free: 110.1 MB / 0.7373 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.07317/10.62, allocations: 46.17 MB / 4.181 GB, free: 90.99 MB / 0.7373 GB Notification: Performance of preOpt comSubExp (simulation): time 0.008916/10.63, allocations: 5.763 MB / 4.187 GB, free: 90.95 MB / 0.7373 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.007598/10.63, allocations: 4.781 MB / 4.192 GB, free: 90.88 MB / 0.7373 GB Notification: Performance of preOpt evalFunc (simulation): time 0.00146/10.64, allocations: 0.8331 MB / 4.193 GB, free: 90.12 MB / 0.7373 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.006311/10.64, allocations: 3.264 MB / 4.196 GB, free: 89.96 MB / 0.7373 GB Notification: Performance of pre-optimization done (n=449): time 8.546e-06/10.64, allocations: 0 / 4.196 GB, free: 89.96 MB / 0.7373 GB Notification: Performance of matching and sorting (n=449): time 0.01435/10.66, allocations: 6.349 MB / 4.202 GB, free: 89.52 MB / 0.7373 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.562e-05/10.66, allocations: 157.7 kB / 4.202 GB, free: 89.39 MB / 0.7373 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01205/10.67, allocations: 5.967 MB / 4.208 GB, free: 89.01 MB / 0.7373 GB Notification: Performance of collectPreVariables (initialization): time 0.001395/10.67, allocations: 32.83 kB / 4.208 GB, free: 88.98 MB / 0.7373 GB Notification: Performance of collectInitialEqns (initialization): time 0.005009/10.68, allocations: 3.214 MB / 4.211 GB, free: 87.68 MB / 0.7373 GB Notification: Performance of collectInitialBindings (initialization): time 0.004087/10.68, allocations: 1.501 MB / 4.213 GB, free: 86.71 MB / 0.7373 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001015/10.68, allocations: 3.188 kB / 4.213 GB, free: 86.71 MB / 0.7373 GB Notification: Performance of setup shared object (initialization): time 0.0005454/10.68, allocations: 0.5429 MB / 4.213 GB, free: 86.39 MB / 0.7373 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004507/10.69, allocations: 2.915 MB / 4.216 GB, free: 86.38 MB / 0.7373 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005357/10.69, allocations: 4.752 MB / 4.221 GB, free: 84.2 MB / 0.7373 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.007294/10.7, allocations: 4.288 MB / 4.225 GB, free: 84.15 MB / 0.7373 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.161e-05/10.7, allocations: 14.81 kB / 4.225 GB, free: 84.15 MB / 0.7373 GB Notification: Performance of matching and sorting (n=754) (initialization): time 0.01628/10.71, allocations: 8.485 MB / 4.233 GB, free: 83.71 MB / 0.7373 GB Notification: Performance of prepare postOptimizeDAE: time 0.004914/10.72, allocations: 27.84 MB / 4.26 GB, free: 54.64 MB / 0.7373 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001538/10.72, allocations: 62.67 kB / 4.26 GB, free: 54.64 MB / 0.7373 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001695/10.72, allocations: 94.75 kB / 4.26 GB, free: 54.64 MB / 0.7373 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006564/10.73, allocations: 1.424 MB / 4.262 GB, free: 54.64 MB / 0.7373 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0001415/10.73, allocations: 130 kB / 4.262 GB, free: 54.64 MB / 0.7373 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.008426/10.73, allocations: 0.7893 MB / 4.263 GB, free: 54.3 MB / 0.7373 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001292/10.74, allocations: 280.4 kB / 4.263 GB, free: 54.3 MB / 0.7373 GB Notification: Performance of prepare postOptimizeDAE: time 1.084e-05/10.74, allocations: 7.719 kB / 4.263 GB, free: 54.3 MB / 0.7373 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0147/10.75, allocations: 7.807 MB / 4.271 GB, free: 54.22 MB / 0.7373 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001951/10.75, allocations: 58.69 kB / 4.271 GB, free: 54.22 MB / 0.7373 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001134/10.75, allocations: 100.5 kB / 4.271 GB, free: 54.22 MB / 0.7373 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006092/10.76, allocations: 1.419 MB / 4.272 GB, free: 54.22 MB / 0.7373 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0001206/10.76, allocations: 124.2 kB / 4.272 GB, free: 54.22 MB / 0.7373 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.007413/10.77, allocations: 0.6736 MB / 4.273 GB, free: 53.98 MB / 0.7373 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001527/10.77, allocations: 282 kB / 4.273 GB, free: 53.98 MB / 0.7373 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 264 * Number of states: 0 () * Number of discrete variables: 15 ($whenCondition1,$whenCondition2,TWat.a,TWat.b,TWat.last,$PRE.TWat.nextEvent,TWat.nextEvent,TWat.nextEventScaled,P.a,P.b,P.last,$PRE.P.nextEvent,P.nextEvent,P.nextEventScaled,dH.local_reset) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (744): * Single equations (assignments): 742 * Array equations: 0 * Algorithm blocks: 2 * 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.002584/10.77, allocations: 363.1 kB / 4.273 GB, free: 53.77 MB / 0.7373 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.002672/10.77, allocations: 0.6315 MB / 4.274 GB, free: 53.44 MB / 0.7373 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01415/10.79, allocations: 7.074 MB / 4.281 GB, free: 53.24 MB / 0.7373 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.061e-05/10.79, allocations: 40.78 kB / 4.281 GB, free: 53.24 MB / 0.7373 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.892e-05/10.79, allocations: 0 / 4.281 GB, free: 53.24 MB / 0.7373 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.01007/10.8, allocations: 5.871 MB / 4.287 GB, free: 53.09 MB / 0.7373 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03954/10.84, allocations: 15.84 MB / 4.302 GB, free: 52.09 MB / 0.7373 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.581e-05/10.84, allocations: 0 / 4.302 GB, free: 52.09 MB / 0.7373 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.004842/10.84, allocations: 0.88 MB / 4.303 GB, free: 52.09 MB / 0.7373 GB Notification: Performance of postOpt tearingSystem (simulation): time 7.476e-05/10.84, allocations: 21 kB / 4.303 GB, free: 52.08 MB / 0.7373 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0009662/10.84, allocations: 69.09 kB / 4.303 GB, free: 52.08 MB / 0.7373 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.394e-05/10.84, allocations: 15.66 kB / 4.303 GB, free: 52.08 MB / 0.7373 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.658e-06/10.84, allocations: 2.25 kB / 4.303 GB, free: 52.08 MB / 0.7373 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.01843/10.86, allocations: 10.9 MB / 4.314 GB, free: 51.29 MB / 0.7373 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.02299/10.88, allocations: 15.61 MB / 4.329 GB, free: 50.1 MB / 0.7373 GB Notification: Performance of postOpt removeConstants (simulation): time 0.005703/10.89, allocations: 1.758 MB / 4.331 GB, free: 49.62 MB / 0.7373 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002697/10.89, allocations: 31.12 kB / 4.331 GB, free: 49.62 MB / 0.7373 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.007487/10.9, allocations: 439.9 kB / 4.331 GB, free: 49.59 MB / 0.7373 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.00113/10.9, allocations: 228.1 kB / 4.331 GB, free: 49.59 MB / 0.7373 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.001195/10.9, allocations: 208.2 kB / 4.332 GB, free: 49.59 MB / 0.7373 GB Notification: Performance of sort global known variables: time 0.009691/10.91, allocations: 4.559 MB / 4.336 GB, free: 48.89 MB / 0.7373 GB Notification: Performance of remove unused functions: time 0.02331/10.93, allocations: 4.992 MB / 4.341 GB, free: 47.8 MB / 0.7373 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 21 (tanSim.vol[1].dynBal.U,tanSim.vol[2].dynBal.U,tanSim.vol[3].dynBal.U,tanSim.vol[4].dynBal.U,tanSim.vol[5].dynBal.U,tanSim.vol[6].dynBal.U,tanSim.vol[7].dynBal.U,tanSim.vol[8].dynBal.U,tanSim.vol[9].dynBal.U,tanSim.vol[10].dynBal.U,tanEnh.vol[1].dynBal.U,tanEnh.vol[2].dynBal.U,tanEnh.vol[3].dynBal.U,tanEnh.vol[4].dynBal.U,tanEnh.vol[5].dynBal.U,tanEnh.vol[6].dynBal.U,tanEnh.vol[7].dynBal.U,tanEnh.vol[8].dynBal.U,tanEnh.vol[9].dynBal.U,tanEnh.vol[10].dynBal.U,dH.y) * Number of discrete variables: 12 ($whenCondition1,$whenCondition2,TWat.a,TWat.b,TWat.last,TWat.nextEvent,TWat.nextEventScaled,P.a,P.b,P.last,P.nextEvent,P.nextEventScaled) * Number of discrete states: 12 (P.nextEvent,P.last,P.nextEventScaled,P.b,P.a,$whenCondition2,TWat.nextEvent,TWat.last,TWat.nextEventScaled,TWat.b,TWat.a,$whenCondition1) * Top-level inputs: 0 Notification: Strong component statistics for simulation (445): * Single equations (assignments): 441 * Array equations: 0 * Algorithm blocks: 2 * Record equations: 2 * 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.002656/10.94, allocations: 0.862 MB / 4.342 GB, free: 47.62 MB / 0.7373 GB Notification: Performance of simCode: created initialization part: time 0.01805/10.96, allocations: 11.16 MB / 4.353 GB, free: 44.06 MB / 0.7373 GB Notification: Performance of simCode: created event and clocks part: time 1.365e-05/10.96, allocations: 4.375 kB / 4.353 GB, free: 44.06 MB / 0.7373 GB Notification: Performance of simCode: created simulation system equations: time 0.004751/10.96, allocations: 3.145 MB / 4.356 GB, free: 42.92 MB / 0.7373 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.01955/10.98, allocations: 3.317 MB / 4.359 GB, free: 42.39 MB / 0.7373 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04374/11.02, allocations: 16.76 MB / 4.375 GB, free: 37.37 MB / 0.7373 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.01438/11.04, allocations: 6.97 MB / 4.382 GB, free: 33.84 MB / 0.7373 GB Notification: Performance of SimCode: time 1.212e-06/11.04, allocations: 4.844 kB / 4.382 GB, free: 33.83 MB / 0.7373 GB (rm -f BuildingSystems_BuildingSystems.Fluid.Storage.Examples.Stratified.pipe ; mkfifo BuildingSystems_BuildingSystems.Fluid.Storage.Examples.Stratified.pipe ; head -c 1048576 < BuildingSystems_BuildingSystems.Fluid.Storage.Examples.Stratified.pipe >> ../files/BuildingSystems_BuildingSystems.Fluid.Storage.Examples.Stratified.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_BuildingSystems_BuildingSystems_Fluid_Storage_Examples_Stratified_fmu --startTime=0 --stopTime=10800 --timeout=50 --tolerance=1e-08 BuildingSystems_BuildingSystems_Fluid_Storage_Examples_Stratified.fmu > BuildingSystems_BuildingSystems.Fluid.Storage.Examples.Stratified.pipe 2>&1)