Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr BuildSysPro_BuildSysPro.IBPSA.Fluid.HeatExchangers.Examples.WaterHeater_T.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildSysPro 3.5.0/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Using package BuildSysPro with version 3.4.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildSysPro 3.5.0/package.mo) Running command: "" <> buildModelFMU(BuildSysPro.IBPSA.Fluid.HeatExchangers.Examples.WaterHeater_T,fileNamePrefix="BuildSysPro_BuildSysPro_IBPSA_Fluid_HeatExchangers_Examples_WaterHeater_T",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(BuildSysPro.IBPSA.Fluid.HeatExchangers.Examples.WaterHeater_T,fileNamePrefix="BuildSysPro_BuildSysPro_IBPSA_Fluid_HeatExchangers_Examples_WaterHeater_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/BuildSysPro 3.5.0/package.mo): time 0.7246/0.7246, allocations: 127.4 MB / 134.6 MB, free: 4.07 MB / 106.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001223/0.001223, allocations: 181.3 kB / 164.4 MB, free: 6.836 MB / 138.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.056/2.056, allocations: 205.1 MB / 399.1 MB, free: 6.047 MB / 298.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001058/0.001058, allocations: 81.59 kB / 476.3 MB, free: 8.797 MB / 378.7 MB Notification: Performance of FrontEnd - loaded program: time 0.3755/0.3766, allocations: 82.89 MB / 0.5461 GB, free: 42.61 MB / 378.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2191/0.5957, allocations: 76.74 MB / 0.621 GB, free: 13.78 MB / 426.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 1.734/2.33, allocations: 415.9 MB / 1.027 GB, free: 64.59 MB / 0.6198 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003411/2.33, allocations: 95.12 kB / 1.027 GB, free: 64.55 MB / 0.6198 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 291 * Number of variables: 291 Notification: Performance of Generate backend data structure: time 5.493/7.823, allocations: 1.126 GB / 2.153 GB, free: 68.59 MB / 0.6823 GB Notification: Performance of prepare preOptimizeDAE: time 4.723e-05/7.823, allocations: 7.625 kB / 2.153 GB, free: 68.59 MB / 0.6823 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003236/7.826, allocations: 493.2 kB / 2.153 GB, free: 68.47 MB / 0.6823 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.009023/7.835, allocations: 2.415 MB / 2.156 GB, free: 68.1 MB / 0.6823 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000107/7.836, allocations: 36.56 kB / 2.156 GB, free: 68.1 MB / 0.6823 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005331/7.836, allocations: 78.3 kB / 2.156 GB, free: 68.1 MB / 0.6823 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.002554/7.839, allocations: 0.8009 MB / 2.157 GB, free: 68.09 MB / 0.6823 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002748/7.841, allocations: 1.132 MB / 2.158 GB, free: 67.78 MB / 0.6823 GB Notification: Performance of preOpt findStateOrder (simulation): time 4.36e-05/7.842, allocations: 6.906 kB / 2.158 GB, free: 67.77 MB / 0.6823 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001083/7.842, allocations: 3 kB / 2.158 GB, free: 67.77 MB / 0.6823 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.359e-05/7.842, allocations: 34.41 kB / 2.158 GB, free: 67.77 MB / 0.6823 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0109/7.853, allocations: 7.28 MB / 2.165 GB, free: 63.28 MB / 0.6823 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001076/7.854, allocations: 0.6002 MB / 2.166 GB, free: 63.25 MB / 0.6823 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004581/7.854, allocations: 311.8 kB / 2.166 GB, free: 63.24 MB / 0.6823 GB Notification: Performance of preOpt evalFunc (simulation): time 0.00488/7.859, allocations: 2.632 MB / 2.168 GB, free: 61.62 MB / 0.6823 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005417/7.86, allocations: 366.4 kB / 2.169 GB, free: 61.55 MB / 0.6823 GB Notification: Performance of pre-optimization done (n=61): time 3.727e-06/7.86, allocations: 3.609 kB / 2.169 GB, free: 61.55 MB / 0.6823 GB Notification: Performance of matching and sorting (n=61): time 0.002839/7.863, allocations: 0.9111 MB / 2.17 GB, free: 61.32 MB / 0.6823 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001171/7.863, allocations: 190.6 kB / 2.17 GB, free: 61.09 MB / 0.6823 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002476/7.865, allocations: 1.267 MB / 2.171 GB, free: 60.93 MB / 0.6823 GB Notification: Performance of collectPreVariables (initialization): time 0.0001114/7.865, allocations: 32.14 kB / 2.171 GB, free: 60.89 MB / 0.6823 GB Notification: Performance of collectInitialEqns (initialization): time 0.0005742/7.866, allocations: 0.6052 MB / 2.172 GB, free: 60.56 MB / 0.6823 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002104/7.866, allocations: 212.2 kB / 2.172 GB, free: 60.43 MB / 0.6823 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.494e-05/7.866, allocations: 0 / 2.172 GB, free: 60.43 MB / 0.6823 GB Notification: Performance of setup shared object (initialization): time 9.864e-05/7.866, allocations: 347 kB / 2.172 GB, free: 60.12 MB / 0.6823 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004567/7.867, allocations: 279.8 kB / 2.172 GB, free: 60.12 MB / 0.6823 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006997/7.867, allocations: 0.7347 MB / 2.173 GB, free: 59.55 MB / 0.6823 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001847/7.869, allocations: 0.5338 MB / 2.174 GB, free: 59.54 MB / 0.6823 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.985e-06/7.869, allocations: 3.875 kB / 2.174 GB, free: 59.54 MB / 0.6823 GB Notification: Performance of matching and sorting (n=133) (initialization): time 0.00286/7.872, allocations: 1.193 MB / 2.175 GB, free: 59.41 MB / 0.6823 GB Notification: Performance of prepare postOptimizeDAE: time 0.001375/7.874, allocations: 4.961 MB / 2.18 GB, free: 54.2 MB / 0.6823 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.238e-05/7.874, allocations: 19.22 kB / 2.18 GB, free: 54.2 MB / 0.6823 GB Notification: Performance of postOpt tearingSystem (initialization): time 4.442e-05/7.874, allocations: 17.94 kB / 2.18 GB, free: 54.2 MB / 0.6823 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001155/7.875, allocations: 271.1 kB / 2.18 GB, free: 54.2 MB / 0.6823 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.563e-05/7.875, allocations: 24 kB / 2.18 GB, free: 54.2 MB / 0.6823 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001947/7.877, allocations: 167.3 kB / 2.18 GB, free: 54.14 MB / 0.6823 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001344/7.877, allocations: 60.41 kB / 2.18 GB, free: 54.14 MB / 0.6823 GB Notification: Performance of prepare postOptimizeDAE: time 1.579e-05/7.877, allocations: 3.75 kB / 2.18 GB, free: 54.14 MB / 0.6823 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.002403/7.879, allocations: 0.9563 MB / 2.181 GB, free: 54.12 MB / 0.6823 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.043e-05/7.879, allocations: 11.28 kB / 2.181 GB, free: 54.12 MB / 0.6823 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.795e-05/7.879, allocations: 22.44 kB / 2.181 GB, free: 54.12 MB / 0.6823 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009367/7.88, allocations: 251.6 kB / 2.181 GB, free: 54.12 MB / 0.6823 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.102e-05/7.88, allocations: 27.66 kB / 2.182 GB, free: 54.12 MB / 0.6823 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001762/7.882, allocations: 132.1 kB / 2.182 GB, free: 54.09 MB / 0.6823 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001056/7.882, allocations: 56.39 kB / 2.182 GB, free: 54.09 MB / 0.6823 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 55 * 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 (129): * Single equations (assignments): 125 * Array equations: 2 * Algorithm blocks: 1 * Record equations: 1 * 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.0003268/7.883, allocations: 150 kB / 2.182 GB, free: 53.97 MB / 0.6823 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002917/7.883, allocations: 166.8 kB / 2.182 GB, free: 53.88 MB / 0.6823 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002947/7.886, allocations: 1.151 MB / 2.183 GB, free: 53.71 MB / 0.6823 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.538e-05/7.886, allocations: 14.89 kB / 2.183 GB, free: 53.71 MB / 0.6823 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.417e-06/7.886, allocations: 0 / 2.183 GB, free: 53.71 MB / 0.6823 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.001491/7.887, allocations: 0.9469 MB / 2.184 GB, free: 53.34 MB / 0.6823 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002351/7.89, allocations: 1.054 MB / 2.185 GB, free: 53.15 MB / 0.6823 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.166e-06/7.89, allocations: 3.406 kB / 2.185 GB, free: 53.15 MB / 0.6823 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008296/7.891, allocations: 140.3 kB / 2.185 GB, free: 53.15 MB / 0.6823 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001705/7.891, allocations: 23.16 kB / 2.185 GB, free: 53.14 MB / 0.6823 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.766e-05/7.891, allocations: 14.08 kB / 2.185 GB, free: 53.14 MB / 0.6823 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001043/7.892, allocations: 1.242 MB / 2.186 GB, free: 51.96 MB / 0.6823 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.042e-06/7.892, allocations: 3.797 kB / 2.186 GB, free: 51.96 MB / 0.6823 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.002551/7.895, allocations: 1.341 MB / 2.188 GB, free: 51.67 MB / 0.6823 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.003338/7.898, allocations: 2.157 MB / 2.19 GB, free: 51.02 MB / 0.6823 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0009233/7.899, allocations: 332.9 kB / 2.19 GB, free: 50.82 MB / 0.6823 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002331/7.899, allocations: 6.906 kB / 2.19 GB, free: 50.82 MB / 0.6823 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001012/7.9, allocations: 87.03 kB / 2.19 GB, free: 50.82 MB / 0.6823 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001189/7.9, allocations: 42.86 kB / 2.19 GB, free: 50.82 MB / 0.6823 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.347e-05/7.9, allocations: 31.92 kB / 2.19 GB, free: 50.82 MB / 0.6823 GB Notification: Performance of sort global known variables: time 0.001653/7.902, allocations: 0.9405 MB / 2.191 GB, free: 50.71 MB / 0.6823 GB Notification: Performance of remove unused functions: time 0.006441/7.908, allocations: 1.29 MB / 2.193 GB, free: 50.53 MB / 0.6823 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 6 (vol.dynBal.U,mov.filter.x[1],mov.filter.x[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 (70): * Single equations (assignments): 62 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 5 * 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%) 1} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0032/7.912, allocations: 1.209 MB / 2.194 GB, free: 50.25 MB / 0.6823 GB Notification: Performance of simCode: created initialization part: time 0.002807/7.915, allocations: 1.369 MB / 2.195 GB, free: 50.11 MB / 0.6823 GB Notification: Performance of simCode: created event and clocks part: time 6.472e-06/7.915, allocations: 3.719 kB / 2.195 GB, free: 50.11 MB / 0.6823 GB Notification: Performance of simCode: created simulation system equations: time 0.0007021/7.915, allocations: 436.8 kB / 2.195 GB, free: 50.01 MB / 0.6823 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003377/7.919, allocations: 0.619 MB / 2.196 GB, free: 49.99 MB / 0.6823 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005672/7.924, allocations: 2.359 MB / 2.198 GB, free: 49.39 MB / 0.6823 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001302/7.926, allocations: 1.58 MB / 2.2 GB, free: 48.67 MB / 0.6823 GB Notification: Performance of SimCode: time 8.32e-07/7.926, allocations: 3.156 kB / 2.2 GB, free: 48.67 MB / 0.6823 GB (rm -f BuildSysPro_BuildSysPro.IBPSA.Fluid.HeatExchangers.Examples.WaterHeater_T.pipe ; mkfifo BuildSysPro_BuildSysPro.IBPSA.Fluid.HeatExchangers.Examples.WaterHeater_T.pipe ; head -c 1048576 < BuildSysPro_BuildSysPro.IBPSA.Fluid.HeatExchangers.Examples.WaterHeater_T.pipe >> ../files/BuildSysPro_BuildSysPro.IBPSA.Fluid.HeatExchangers.Examples.WaterHeater_T.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_BuildSysPro_BuildSysPro_IBPSA_Fluid_HeatExchangers_Examples_WaterHeater_T_fmu --startTime=0 --stopTime=172800 --timeout=50 --tolerance=1e-06 BuildSysPro_BuildSysPro_IBPSA_Fluid_HeatExchangers_Examples_WaterHeater_T.fmu > BuildSysPro_BuildSysPro.IBPSA.Fluid.HeatExchangers.Examples.WaterHeater_T.pipe 2>&1)