Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr BuildingSystems_BuildingSystems.Fluid.HeatExchangers.Examples.WaterHeater_u.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.WaterHeater_u,fileNamePrefix="BuildingSystems_BuildingSystems_Fluid_HeatExchangers_Examples_WaterHeater_u",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(BuildingSystems.Fluid.HeatExchangers.Examples.WaterHeater_u,fileNamePrefix="BuildingSystems_BuildingSystems_Fluid_HeatExchangers_Examples_WaterHeater_u",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.744/0.744, allocations: 141.8 MB / 149.1 MB, free: 3.777 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.001142/0.001142, allocations: 189.4 kB / 181.9 MB, free: 15.55 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.291/1.291, allocations: 221.4 MB / 436 MB, free: 8.684 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.0009631/0.0009632, allocations: 90.38 kB / 0.507 GB, free: 24.25 MB / 394.9 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.001903/0.001903, allocations: 273.4 kB / 0.5885 GB, free: 11.75 MB / 442.9 MB Notification: Performance of FrontEnd - loaded program: time 0.1739/0.1758, allocations: 89.64 MB / 0.676 GB, free: 2.027 MB / 0.5107 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4029/0.5787, allocations: 82.77 MB / 0.7568 GB, free: 112.4 MB / 0.5263 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.6332/1.212, allocations: 404.8 MB / 1.152 GB, free: 9.945 MB / 0.6825 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002765/1.212, allocations: 99.48 kB / 1.152 GB, free: 9.898 MB / 0.6825 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 310 * Number of variables: 310 Notification: Performance of Generate backend data structure: time 3.919/5.132, allocations: 1.151 GB / 2.303 GB, free: 88.86 MB / 0.7138 GB Notification: Performance of prepare preOptimizeDAE: time 4.31e-05/5.132, allocations: 12.45 kB / 2.303 GB, free: 88.86 MB / 0.7138 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00226/5.134, allocations: 388 kB / 2.303 GB, free: 88.75 MB / 0.7138 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.008114/5.142, allocations: 2.461 MB / 2.306 GB, free: 88.38 MB / 0.7138 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000105/5.142, allocations: 39.41 kB / 2.306 GB, free: 88.38 MB / 0.7138 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004776/5.143, allocations: 84.44 kB / 2.306 GB, free: 88.38 MB / 0.7138 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.002389/5.145, allocations: 0.8678 MB / 2.307 GB, free: 88.37 MB / 0.7138 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003025/5.148, allocations: 1.153 MB / 2.308 GB, free: 88.12 MB / 0.7138 GB Notification: Performance of preOpt findStateOrder (simulation): time 4.702e-05/5.148, allocations: 0 / 2.308 GB, free: 88.12 MB / 0.7138 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002047/5.148, allocations: 5.719 kB / 2.308 GB, free: 88.12 MB / 0.7138 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.755e-05/5.148, allocations: 50.25 kB / 2.308 GB, free: 88.12 MB / 0.7138 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01178/5.16, allocations: 7.714 MB / 2.315 GB, free: 83.68 MB / 0.7138 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0007247/5.161, allocations: 475.9 kB / 2.316 GB, free: 83.66 MB / 0.7138 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005968/5.162, allocations: 384.5 kB / 2.316 GB, free: 83.65 MB / 0.7138 GB Notification: Performance of preOpt evalFunc (simulation): time 0.005022/5.167, allocations: 2.52 MB / 2.319 GB, free: 82.38 MB / 0.7138 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005706/5.167, allocations: 411.9 kB / 2.319 GB, free: 82.3 MB / 0.7138 GB Notification: Performance of pre-optimization done (n=70): time 3.186e-06/5.167, allocations: 0 / 2.319 GB, free: 82.3 MB / 0.7138 GB Notification: Performance of matching and sorting (n=70): time 0.002322/5.17, allocations: 0.8277 MB / 2.32 GB, free: 82.15 MB / 0.7138 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.227e-05/5.17, allocations: 161.9 kB / 2.32 GB, free: 81.96 MB / 0.7138 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002145/5.172, allocations: 1.187 MB / 2.321 GB, free: 81.8 MB / 0.7138 GB Notification: Performance of collectPreVariables (initialization): time 0.0001094/5.172, allocations: 29.61 kB / 2.321 GB, free: 81.77 MB / 0.7138 GB Notification: Performance of collectInitialEqns (initialization): time 0.0005468/5.173, allocations: 0.5828 MB / 2.322 GB, free: 81.45 MB / 0.7138 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002787/5.173, allocations: 240.3 kB / 2.322 GB, free: 81.3 MB / 0.7138 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.772e-05/5.173, allocations: 0 / 2.322 GB, free: 81.3 MB / 0.7138 GB Notification: Performance of setup shared object (initialization): time 8.749e-05/5.173, allocations: 348.8 kB / 2.322 GB, free: 80.99 MB / 0.7138 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004263/5.173, allocations: 269.6 kB / 2.323 GB, free: 80.99 MB / 0.7138 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006582/5.174, allocations: 0.6411 MB / 2.323 GB, free: 80.54 MB / 0.7138 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001337/5.175, allocations: 471.6 kB / 2.324 GB, free: 80.53 MB / 0.7138 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.386e-05/5.175, allocations: 3.406 kB / 2.324 GB, free: 80.53 MB / 0.7138 GB Notification: Performance of matching and sorting (n=124) (initialization): time 0.002551/5.178, allocations: 1.093 MB / 2.325 GB, free: 80.39 MB / 0.7138 GB Notification: Performance of prepare postOptimizeDAE: time 0.0009408/5.179, allocations: 3.953 MB / 2.329 GB, free: 76.23 MB / 0.7138 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.981e-05/5.179, allocations: 10.72 kB / 2.329 GB, free: 76.23 MB / 0.7138 GB Notification: Performance of postOpt tearingSystem (initialization): time 4.724e-05/5.179, allocations: 16.34 kB / 2.329 GB, free: 76.23 MB / 0.7138 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001052/5.18, allocations: 251.5 kB / 2.329 GB, free: 76.23 MB / 0.7138 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.572e-05/5.18, allocations: 22.78 kB / 2.329 GB, free: 76.23 MB / 0.7138 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001725/5.182, allocations: 155.2 kB / 2.329 GB, free: 76.18 MB / 0.7138 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001446/5.182, allocations: 59.91 kB / 2.329 GB, free: 76.18 MB / 0.7138 GB Notification: Performance of prepare postOptimizeDAE: time 1.198e-05/5.182, allocations: 3.438 kB / 2.329 GB, free: 76.18 MB / 0.7138 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.00217/5.184, allocations: 0.8628 MB / 2.33 GB, free: 76.16 MB / 0.7138 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.283e-05/5.184, allocations: 12.22 kB / 2.33 GB, free: 76.16 MB / 0.7138 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.726e-05/5.184, allocations: 18.91 kB / 2.33 GB, free: 76.16 MB / 0.7138 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000984/5.185, allocations: 244.8 kB / 2.33 GB, free: 76.16 MB / 0.7138 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.92e-05/5.185, allocations: 23.52 kB / 2.33 GB, free: 76.16 MB / 0.7138 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001757/5.187, allocations: 125.2 kB / 2.33 GB, free: 76.13 MB / 0.7138 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001234/5.187, allocations: 58.14 kB / 2.331 GB, free: 76.13 MB / 0.7138 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 44 * 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 (122): * Single equations (assignments): 120 * 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.0003452/5.188, allocations: 149.1 kB / 2.331 GB, free: 76.01 MB / 0.7138 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005326/5.188, allocations: 163.6 kB / 2.331 GB, free: 75.92 MB / 0.7138 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002901/5.191, allocations: 1.044 MB / 2.332 GB, free: 75.84 MB / 0.7138 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.137e-05/5.191, allocations: 15.56 kB / 2.332 GB, free: 75.84 MB / 0.7138 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.226e-05/5.191, allocations: 4.219 kB / 2.332 GB, free: 75.84 MB / 0.7138 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.001485/5.193, allocations: 0.7085 MB / 2.333 GB, free: 75.74 MB / 0.7138 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0057/5.198, allocations: 2.39 MB / 2.335 GB, free: 75.22 MB / 0.7138 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.666e-06/5.198, allocations: 3.844 kB / 2.335 GB, free: 75.22 MB / 0.7138 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008334/5.199, allocations: 168 kB / 2.335 GB, free: 75.22 MB / 0.7138 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001939/5.199, allocations: 28.72 kB / 2.335 GB, free: 75.21 MB / 0.7138 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.219e-05/5.199, allocations: 17.27 kB / 2.335 GB, free: 75.21 MB / 0.7138 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0008825/5.2, allocations: 1.263 MB / 2.336 GB, free: 74.02 MB / 0.7138 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.532e-06/5.2, allocations: 2.156 kB / 2.336 GB, free: 74.02 MB / 0.7138 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.002786/5.203, allocations: 1.543 MB / 2.338 GB, free: 73.56 MB / 0.7138 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.003314/5.206, allocations: 2.397 MB / 2.34 GB, free: 72.73 MB / 0.7138 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0009974/5.207, allocations: 356.3 kB / 2.341 GB, free: 72.54 MB / 0.7138 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004893/5.208, allocations: 10.86 kB / 2.341 GB, free: 72.54 MB / 0.7138 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001391/5.209, allocations: 74.39 kB / 2.341 GB, free: 72.53 MB / 0.7138 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001547/5.21, allocations: 62.33 kB / 2.341 GB, free: 72.53 MB / 0.7138 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000107/5.21, allocations: 39.56 kB / 2.341 GB, free: 72.53 MB / 0.7138 GB Notification: Performance of sort global known variables: time 0.001946/5.212, allocations: 0.8876 MB / 2.342 GB, free: 72.42 MB / 0.7138 GB Notification: Performance of remove unused functions: time 0.008233/5.22, allocations: 1.364 MB / 2.343 GB, free: 72.23 MB / 0.7138 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 8 * Number of states: 6 (vol.dynBal.U,mov.filter.s[1],mov.filter.s[2],conPI.I.y,THeaOut.T,hea.vol.dynBal.U) * 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 (82): * Single equations (assignments): 74 * 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.002768/5.223, allocations: 1.095 MB / 2.344 GB, free: 71.97 MB / 0.7138 GB Notification: Performance of simCode: created initialization part: time 0.002418/5.225, allocations: 1.299 MB / 2.345 GB, free: 71.88 MB / 0.7138 GB Notification: Performance of simCode: created event and clocks part: time 6.412e-06/5.225, allocations: 0 / 2.345 GB, free: 71.88 MB / 0.7138 GB Notification: Performance of simCode: created simulation system equations: time 0.0008211/5.226, allocations: 489.4 kB / 2.346 GB, free: 71.78 MB / 0.7138 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003799/5.23, allocations: 0.7022 MB / 2.346 GB, free: 71.77 MB / 0.7138 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006144/5.236, allocations: 2.409 MB / 2.349 GB, free: 71.11 MB / 0.7138 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001786/5.238, allocations: 1.598 MB / 2.35 GB, free: 70.38 MB / 0.7138 GB Notification: Performance of SimCode: time 1.372e-06/5.238, allocations: 0 / 2.35 GB, free: 70.38 MB / 0.7138 GB (rm -f BuildingSystems_BuildingSystems.Fluid.HeatExchangers.Examples.WaterHeater_u.pipe ; mkfifo BuildingSystems_BuildingSystems.Fluid.HeatExchangers.Examples.WaterHeater_u.pipe ; head -c 1048576 < BuildingSystems_BuildingSystems.Fluid.HeatExchangers.Examples.WaterHeater_u.pipe >> ../files/BuildingSystems_BuildingSystems.Fluid.HeatExchangers.Examples.WaterHeater_u.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_BuildingSystems_BuildingSystems_Fluid_HeatExchangers_Examples_WaterHeater_u_fmu --startTime=0 --stopTime=172800 --timeout=50 --tolerance=1e-06 BuildingSystems_BuildingSystems_Fluid_HeatExchangers_Examples_WaterHeater_u.fmu > BuildingSystems_BuildingSystems.Fluid.HeatExchangers.Examples.WaterHeater_u.pipe 2>&1)