Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_10_Buildings.Examples.DualFanDualDuct.Controls.Examples.PreHeatCoil.conf.json 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/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/Buildings 10.1.1-maint.10.0.x/package.mo", uses=false) Using package Buildings with version 10.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.x/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 ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Buildings.Examples.DualFanDualDuct.Controls.Examples.PreHeatCoil,fileNamePrefix="Buildings_10_Buildings_Examples_DualFanDualDuct_Controls_Examples_PreHeatCoil",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Examples.DualFanDualDuct.Controls.Examples.PreHeatCoil,fileNamePrefix="Buildings_10_Buildings_Examples_DualFanDualDuct_Controls_Examples_PreHeatCoil",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.004033/0.004033, allocations: 99.69 kB / 15.73 MB, free: 6.043 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001163/0.001163, allocations: 192.4 kB / 16.67 MB, free: 5.953 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.287/1.287, allocations: 222.9 MB / 240.4 MB, free: 15.15 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.x/package.mo): time 2.253/2.253, allocations: 437.1 MB / 0.7106 GB, free: 4.336 MB / 0.5762 GB Notification: Performance of FrontEnd - loaded program: time 0.001724/0.001724, allocations: 67.89 kB / 1.018 GB, free: 9.918 MB / 0.795 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.5737/0.5755, allocations: 151.6 MB / 1.166 GB, free: 3.77 MB / 0.8887 GB Notification: Performance of NFInst.instantiate(Buildings.Examples.DualFanDualDuct.Controls.Examples.PreHeatCoil): time 0.003771/0.5793, allocations: 2.936 MB / 1.169 GB, free: 0.8125 MB / 0.8887 GB Notification: Performance of NFInst.instExpressions: time 0.001656/0.5809, allocations: 1.103 MB / 1.17 GB, free: 15.7 MB / 0.9044 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001762/0.5811, allocations: 11.94 kB / 1.17 GB, free: 15.69 MB / 0.9044 GB Notification: Performance of NFTyping.typeComponents: time 0.0002128/0.5813, allocations: 79.14 kB / 1.17 GB, free: 15.61 MB / 0.9044 GB Notification: Performance of NFTyping.typeBindings: time 0.000163/0.5815, allocations: 75.2 kB / 1.17 GB, free: 15.54 MB / 0.9044 GB Notification: Performance of NFTyping.typeClassSections: time 0.0006549/0.5822, allocations: 347.5 kB / 1.171 GB, free: 15.2 MB / 0.9044 GB Notification: Performance of NFFlatten.flatten: time 0.0006647/0.5828, allocations: 0.7184 MB / 1.171 GB, free: 14.48 MB / 0.9044 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0005511/0.5834, allocations: 0.4965 MB / 1.172 GB, free: 13.98 MB / 0.9044 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002275/0.5836, allocations: 243.1 kB / 1.172 GB, free: 13.74 MB / 0.9044 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002535/0.5839, allocations: 250.8 kB / 1.172 GB, free: 13.49 MB / 0.9044 GB Notification: Performance of NFPackage.collectConstants: time 8.448e-05/0.584, allocations: 75.94 kB / 1.172 GB, free: 13.42 MB / 0.9044 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001128/0.5841, allocations: 75.98 kB / 1.172 GB, free: 13.34 MB / 0.9044 GB Notification: Performance of NFScalarize.scalarize: time 0.0001244/0.5842, allocations: 143.6 kB / 1.173 GB, free: 13.2 MB / 0.9044 GB Notification: Performance of NFVerifyModel.verify: time 0.0002252/0.5845, allocations: 266.7 kB / 1.173 GB, free: 12.94 MB / 0.9044 GB Notification: Performance of NFConvertDAE.convert: time 0.0007045/0.5852, allocations: 0.7623 MB / 1.174 GB, free: 12.18 MB / 0.9044 GB Notification: Performance of FrontEnd - DAE generated: time 5.049e-06/0.5852, allocations: 4 kB / 1.174 GB, free: 12.18 MB / 0.9044 GB Notification: Performance of FrontEnd: time 1.162e-06/0.5852, allocations: 3.938 kB / 1.174 GB, free: 12.17 MB / 0.9044 GB Notification: Performance of Transformations before backend: time 6.582e-06/0.5852, allocations: 0 / 1.174 GB, free: 12.17 MB / 0.9044 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 113 * Number of variables: 113 Notification: Performance of Generate backend data structure: time 0.001476/0.5867, allocations: 0.8981 MB / 1.174 GB, free: 11.22 MB / 0.9044 GB Notification: Performance of prepare preOptimizeDAE: time 3.119e-05/0.5867, allocations: 12.86 kB / 1.174 GB, free: 11.21 MB / 0.9044 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.856e-05/0.5868, allocations: 86.7 kB / 1.175 GB, free: 11.11 MB / 0.9044 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.315e-05/0.5869, allocations: 60.56 kB / 1.175 GB, free: 11.05 MB / 0.9044 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005883/0.5875, allocations: 452.8 kB / 1.175 GB, free: 10.57 MB / 0.9044 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.349e-05/0.5876, allocations: 41.38 kB / 1.175 GB, free: 10.53 MB / 0.9044 GB Notification: Performance of preOpt expandDerOperator (simulation): time 7.159e-05/0.5877, allocations: 48.38 kB / 1.175 GB, free: 10.48 MB / 0.9044 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009225/0.5886, allocations: 0.5353 MB / 1.176 GB, free: 9.918 MB / 0.9044 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.262e-05/0.5886, allocations: 0 / 1.176 GB, free: 9.918 MB / 0.9044 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.372e-05/0.5886, allocations: 20 kB / 1.176 GB, free: 9.898 MB / 0.9044 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.106e-05/0.5887, allocations: 12 kB / 1.176 GB, free: 9.887 MB / 0.9044 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009318/0.5896, allocations: 403.6 kB / 1.176 GB, free: 9.492 MB / 0.9044 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002023/0.5916, allocations: 1.833 MB / 1.178 GB, free: 7.582 MB / 0.9044 GB Notification: Performance of preOpt comSubExp (simulation): time 0.00088/0.5925, allocations: 369.4 kB / 1.178 GB, free: 7.203 MB / 0.9044 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.000406/0.5929, allocations: 179.2 kB / 1.178 GB, free: 7.023 MB / 0.9044 GB Notification: Performance of preOpt evalFunc (simulation): time 3.265e-05/0.593, allocations: 7.938 kB / 1.178 GB, free: 7.016 MB / 0.9044 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000509/0.5935, allocations: 250.8 kB / 1.179 GB, free: 6.75 MB / 0.9044 GB Notification: Performance of pre-optimization done (n=35): time 1.403e-06/0.5935, allocations: 0 / 1.179 GB, free: 6.75 MB / 0.9044 GB Notification: Performance of matching and sorting (n=35): time 0.001188/0.5947, allocations: 481.6 kB / 1.179 GB, free: 6.277 MB / 0.9044 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.431e-05/0.5948, allocations: 93.08 kB / 1.179 GB, free: 6.168 MB / 0.9044 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004001/0.5952, allocations: 397.5 kB / 1.18 GB, free: 5.766 MB / 0.9044 GB Notification: Performance of collectPreVariables (initialization): time 4.521e-05/0.5952, allocations: 49.69 kB / 1.18 GB, free: 5.711 MB / 0.9044 GB Notification: Performance of collectInitialEqns (initialization): time 0.000177/0.5954, allocations: 248.7 kB / 1.18 GB, free: 5.465 MB / 0.9044 GB Notification: Performance of collectInitialBindings (initialization): time 8.407e-05/0.5955, allocations: 107.1 kB / 1.18 GB, free: 5.359 MB / 0.9044 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001477/0.5956, allocations: 114.3 kB / 1.18 GB, free: 5.242 MB / 0.9044 GB Notification: Performance of setup shared object (initialization): time 0.0001454/0.5958, allocations: 350.8 kB / 1.18 GB, free: 4.891 MB / 0.9044 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003972/0.5962, allocations: 157 kB / 1.18 GB, free: 4.738 MB / 0.9044 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004633/0.5967, allocations: 265.9 kB / 1.181 GB, free: 4.434 MB / 0.9044 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007997/0.5975, allocations: 407.4 kB / 1.181 GB, free: 3.988 MB / 0.9044 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.484e-06/0.5975, allocations: 0 / 1.181 GB, free: 3.988 MB / 0.9044 GB Notification: Performance of matching and sorting (n=60) (initialization): time 0.001019/0.5985, allocations: 0.5263 MB / 1.182 GB, free: 3.449 MB / 0.9044 GB Notification: Performance of prepare postOptimizeDAE: time 3.148e-05/0.5986, allocations: 29.7 kB / 1.182 GB, free: 3.414 MB / 0.9044 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.813e-06/0.5986, allocations: 4.406 kB / 1.182 GB, free: 3.41 MB / 0.9044 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.453e-05/0.5986, allocations: 12 kB / 1.182 GB, free: 3.398 MB / 0.9044 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002978/0.5989, allocations: 75.81 kB / 1.182 GB, free: 3.324 MB / 0.9044 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.032e-05/0.5989, allocations: 8 kB / 1.182 GB, free: 3.316 MB / 0.9044 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003243/0.5992, allocations: 71.58 kB / 1.182 GB, free: 3.246 MB / 0.9044 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.978e-05/0.5993, allocations: 20 kB / 1.182 GB, free: 3.227 MB / 0.9044 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 14 * Number of states: 0 () * Number of discrete variables: 35 ($PRE.preHeatCoil.toOn.enableFire,$PRE.preHeatCoil.toOff.enableFire,preHeatCoil.toOn.t_start,$PRE.preHeatCoil.toOn.t_start,preHeatCoil.stateGraphRoot.resume,preHeatCoil.stateGraphRoot.suspend,preHeatCoil.toOff.t_start,$PRE.preHeatCoil.toOff.t_start,preHeatCoil.toOff.fire,preHeatCoil.toOff.enableFire,preHeatCoil.pumOn.active,preHeatCoil.pumOn.oldActive,$PRE.preHeatCoil.pumOn.oldActive,preHeatCoil.pumOn.newActive,$PRE.preHeatCoil.pumOn.newActive,preHeatCoil.pumOn.localActive,$PRE.preHeatCoil.pumOn.localActive,preHeatCoil.stateGraphRoot.activeSteps,preHeatCoil.toOn.enableFire,preHeatCoil.pumOff.oldActive,$PRE.preHeatCoil.pumOff.oldActive,preHeatCoil.pumOff.newActive,$PRE.preHeatCoil.pumOff.newActive,preHeatCoil.pumOff.localActive,$PRE.preHeatCoil.pumOff.localActive,preHeatCoil.pumOff.active,preHeatCoil.preHeaOn.y,$PRE.preHeatCoil.preHeaOn.y,TMix.count,$PRE.TMix.count,TMix.T_start,$PRE.TMix.T_start,$whenCondition1,$whenCondition2,preHeatCoil.preHeaCoiCon.I.trigger_internal) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (59): * Single equations (assignments): 58 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0002052/0.5995, allocations: 213.6 kB / 1.182 GB, free: 3.012 MB / 0.9044 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.582e-05/0.5996, allocations: 47.66 kB / 1.182 GB, free: 2.965 MB / 0.9044 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0008881/0.6005, allocations: 386.2 kB / 1.182 GB, free: 2.582 MB / 0.9044 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.19e-06/0.6005, allocations: 8 kB / 1.182 GB, free: 2.574 MB / 0.9044 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.636e-06/0.6005, allocations: 0 / 1.182 GB, free: 2.574 MB / 0.9044 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.572e-06/0.6005, allocations: 3.984 kB / 1.182 GB, free: 2.57 MB / 0.9044 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001452/0.6019, allocations: 0.952 MB / 1.183 GB, free: 1.559 MB / 0.9044 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.897e-06/0.602, allocations: 8.031 kB / 1.183 GB, free: 1.551 MB / 0.9044 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002402/0.6022, allocations: 47.95 kB / 1.183 GB, free: 1.504 MB / 0.9044 GB Notification: Performance of postOpt tearingSystem (simulation): time 7.073e-06/0.6022, allocations: 3.984 kB / 1.183 GB, free: 1.5 MB / 0.9044 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.485e-05/0.6023, allocations: 15.88 kB / 1.183 GB, free: 1.484 MB / 0.9044 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.308e-06/0.6023, allocations: 4 kB / 1.183 GB, free: 1.48 MB / 0.9044 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.11e-07/0.6023, allocations: 0 / 1.183 GB, free: 1.48 MB / 0.9044 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00124/0.6035, allocations: 0.6437 MB / 1.184 GB, free: 0.8164 MB / 0.9044 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001404/0.6037, allocations: 156.7 kB / 1.184 GB, free: 0.6406 MB / 0.9044 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.347e-05/0.6037, allocations: 12 kB / 1.184 GB, free: 0.6289 MB / 0.9044 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002917/0.604, allocations: 36.02 kB / 1.184 GB, free: 0.5938 MB / 0.9044 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001101/0.6041, allocations: 47.89 kB / 1.184 GB, free: 0.5469 MB / 0.9044 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.647e-05/0.6042, allocations: 15.92 kB / 1.184 GB, free: 0.5312 MB / 0.9044 GB Notification: Performance of sorting global known variables: time 0.0002559/0.6044, allocations: 263.2 kB / 1.185 GB, free: 280 kB / 0.9044 GB Notification: Performance of sort global known variables: time 1.2e-07/0.6044, allocations: 0 / 1.185 GB, free: 280 kB / 0.9044 GB Notification: Performance of remove unused functions: time 0.0003607/0.6048, allocations: 95.84 kB / 1.185 GB, free: 184 kB / 0.9044 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 1 (preHeatCoil.preHeaCoiCon.I.y) * Number of discrete variables: 21 (preHeatCoil.toOn.t_start,preHeatCoil.toOff.enableFire,preHeatCoil.pumOn.active,preHeatCoil.pumOff.active,$cse1,$cse2,$whenCondition2,$whenCondition1,TMix.T_start,TMix.count,preHeatCoil.preHeaOn.y,preHeatCoil.pumOff.localActive,preHeatCoil.pumOff.newActive,preHeatCoil.pumOff.oldActive,preHeatCoil.toOn.enableFire,preHeatCoil.stateGraphRoot.activeSteps,preHeatCoil.pumOn.localActive,preHeatCoil.pumOn.newActive,preHeatCoil.pumOn.oldActive,preHeatCoil.toOff.fire,preHeatCoil.toOff.t_start) * Number of discrete states: 5 (TMix.count,preHeatCoil.pumOff.newActive,preHeatCoil.pumOn.newActive,preHeatCoil.preHeaOn.y,preHeatCoil.toOn.t_start) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (37): * Single equations (assignments): 31 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 6 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.001582/0.6064, allocations: 1.212 MB / 1.186 GB, free: 14.94 MB / 0.92 GB Notification: Performance of simCode: created initialization part: time 0.0008932/0.6073, allocations: 439.3 kB / 1.186 GB, free: 14.5 MB / 0.92 GB Notification: Performance of simCode: created event and clocks part: time 1.823e-06/0.6073, allocations: 0 / 1.186 GB, free: 14.5 MB / 0.92 GB Notification: Performance of simCode: created simulation system equations: time 0.0004313/0.6077, allocations: 191.6 kB / 1.187 GB, free: 14.31 MB / 0.92 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004699/0.6082, allocations: 95.08 kB / 1.187 GB, free: 14.22 MB / 0.92 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005339/0.6136, allocations: 3.965 MB / 1.19 GB, free: 10.07 MB / 0.92 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003965/0.614, allocations: 0.8351 MB / 1.191 GB, free: 9.215 MB / 0.92 GB Notification: Performance of simCode: alias equations: time 0.0001738/0.6142, allocations: 51.44 kB / 1.191 GB, free: 9.16 MB / 0.92 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002276/0.6144, allocations: 155.4 kB / 1.191 GB, free: 9.008 MB / 0.92 GB Notification: Performance of SimCode: time 2.2e-07/0.6144, allocations: 4 kB / 1.191 GB, free: 9.004 MB / 0.92 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 5.064/5.679, allocations: 9.211 MB / 1.2 GB, free: 15.96 MB / 0.9356 GB Notification: Performance of buildModelFMU: Generate platform static: time 20.06/25.73, allocations: 12.34 kB / 1.2 GB, free: 15.95 MB / 0.9356 GB (rm -f Buildings_10_Buildings.Examples.DualFanDualDuct.Controls.Examples.PreHeatCoil.pipe ; mkfifo Buildings_10_Buildings.Examples.DualFanDualDuct.Controls.Examples.PreHeatCoil.pipe ; head -c 1048576 < Buildings_10_Buildings.Examples.DualFanDualDuct.Controls.Examples.PreHeatCoil.pipe >> ../files/Buildings_10_Buildings.Examples.DualFanDualDuct.Controls.Examples.PreHeatCoil.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_10_Buildings.Examples.DualFanDualDuct.Controls.Examples.PreHeatCoil_res.mat --tempDir=temp_Buildings_10_Buildings_Examples_DualFanDualDuct_Controls_Examples_PreHeatCoil_fmu --startTime=0 --stopTime=10800 --timeout=400 --tolerance=1e-06 Buildings_10_Buildings_Examples_DualFanDualDuct_Controls_Examples_PreHeatCoil.fmu > Buildings_10_Buildings.Examples.DualFanDualDuct.Controls.Examples.PreHeatCoil.pipe 2>&1)