Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_Buildings.Fluid.Chillers.Examples.ElectricReformulatedEIR.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 11.1.0-master/package.mo", uses=false) Using package Buildings with version 11.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.0-master/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.Fluid.Chillers.Examples.ElectricReformulatedEIR,fileNamePrefix="Buildings_latest_Buildings_Fluid_Chillers_Examples_ElectricReformulatedEIR",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Fluid.Chillers.Examples.ElectricReformulatedEIR,fileNamePrefix="Buildings_latest_Buildings_Fluid_Chillers_Examples_ElectricReformulatedEIR",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.00436/0.00436, allocations: 97.27 kB / 15.73 MB, free: 6.066 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.001077/0.001077, allocations: 195.9 kB / 16.68 MB, free: 5.973 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.295/1.295, allocations: 222.9 MB / 240.4 MB, free: 15.16 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.0-master/package.mo): time 2.513/2.513, allocations: 469.4 MB / 0.7422 GB, free: 3.578 MB / 0.6075 GB Notification: Performance of FrontEnd - loaded program: time 0.00141/0.00141, allocations: 63.91 kB / 1.064 GB, free: 14.32 MB / 0.8419 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7581/0.7595, allocations: 159.1 MB / 1.22 GB, free: 2.324 MB / 0.9356 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Chillers.Examples.ElectricReformulatedEIR): time 0.0641/0.8236, allocations: 60.61 MB / 1.279 GB, free: 5.5 MB / 0.9981 GB Notification: Performance of NFInst.instExpressions: time 0.01959/0.8433, allocations: 13.25 MB / 1.292 GB, free: 8.223 MB / 1.014 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.00259/0.8459, allocations: 63.62 kB / 1.292 GB, free: 8.16 MB / 1.014 GB Notification: Performance of NFTyping.typeComponents: time 0.00289/0.8488, allocations: 0.9859 MB / 1.293 GB, free: 7.168 MB / 1.014 GB Notification: Performance of NFTyping.typeBindings: time 0.006614/0.8555, allocations: 2.445 MB / 1.295 GB, free: 4.715 MB / 1.014 GB Notification: Performance of NFTyping.typeClassSections: time 0.004234/0.8597, allocations: 1.599 MB / 1.297 GB, free: 3.125 MB / 1.014 GB Notification: Performance of NFFlatten.flatten: time 0.005729/0.8655, allocations: 4.337 MB / 1.301 GB, free: 14.78 MB / 1.029 GB Notification: Performance of NFFlatten.resolveConnections: time 0.002251/0.8677, allocations: 1.348 MB / 1.302 GB, free: 13.41 MB / 1.029 GB Notification: Performance of NFEvalConstants.evaluate: time 0.003694/0.8715, allocations: 1.604 MB / 1.304 GB, free: 11.8 MB / 1.029 GB Notification: Performance of NFSimplifyModel.simplify: time 0.002074/0.8735, allocations: 1.206 MB / 1.305 GB, free: 10.59 MB / 1.029 GB Notification: Performance of NFPackage.collectConstants: time 0.0004061/0.874, allocations: 140 kB / 1.305 GB, free: 10.45 MB / 1.029 GB Notification: Performance of NFFlatten.collectFunctions: time 0.003525/0.8775, allocations: 1.505 MB / 1.307 GB, free: 8.945 MB / 1.029 GB Notification: Performance of NFScalarize.scalarize: time 0.0006042/0.8781, allocations: 434.3 kB / 1.307 GB, free: 8.52 MB / 1.029 GB Notification: Performance of NFVerifyModel.verify: time 0.001497/0.8796, allocations: 0.9173 MB / 1.308 GB, free: 7.598 MB / 1.029 GB Notification: Performance of NFConvertDAE.convert: time 0.004825/0.8845, allocations: 2.846 MB / 1.311 GB, free: 4.742 MB / 1.029 GB Notification: Performance of FrontEnd - DAE generated: time 4.98e-06/0.8845, allocations: 0 / 1.311 GB, free: 4.742 MB / 1.029 GB Notification: Performance of FrontEnd: time 1.553e-06/0.8845, allocations: 0 / 1.311 GB, free: 4.742 MB / 1.029 GB Notification: Performance of Transformations before backend: time 5.402e-05/0.8845, allocations: 0 / 1.311 GB, free: 4.742 MB / 1.029 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 233 * Number of variables: 233 Notification: Performance of Generate backend data structure: time 0.004458/0.889, allocations: 2.281 MB / 1.313 GB, free: 2.391 MB / 1.029 GB Notification: Performance of prepare preOptimizeDAE: time 4.048e-05/0.8891, allocations: 12.62 kB / 1.313 GB, free: 2.379 MB / 1.029 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002382/0.8893, allocations: 147.9 kB / 1.313 GB, free: 2.227 MB / 1.029 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003927/0.8932, allocations: 0.5652 MB / 1.314 GB, free: 1.66 MB / 1.029 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002743/0.896, allocations: 1.478 MB / 1.315 GB, free: 136 kB / 1.029 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000185/0.8962, allocations: 149.4 kB / 1.315 GB, free: 15.97 MB / 1.045 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000202/0.8964, allocations: 108 kB / 1.315 GB, free: 15.86 MB / 1.045 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003238/0.8997, allocations: 1.326 MB / 1.317 GB, free: 14.51 MB / 1.045 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.321e-05/0.8997, allocations: 3.984 kB / 1.317 GB, free: 14.5 MB / 1.045 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000127/0.8998, allocations: 40 kB / 1.317 GB, free: 14.46 MB / 1.045 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.057e-05/0.8999, allocations: 35.88 kB / 1.317 GB, free: 14.43 MB / 1.045 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004043/0.9039, allocations: 1.339 MB / 1.318 GB, free: 13.09 MB / 1.045 GB Warning: The model contains alias variables with redundant start and/or conflicting nominal values. It is recommended to resolve the conflicts, because otherwise the system could be hard to solve. To print the conflicting alias sets and the chosen candidates please use -d=aliasConflicts. Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.007803/0.9117, allocations: 5.499 MB / 1.324 GB, free: 7.238 MB / 1.045 GB Notification: Performance of preOpt comSubExp (simulation): time 0.002691/0.9145, allocations: 1.062 MB / 1.325 GB, free: 6.133 MB / 1.045 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001726/0.9162, allocations: 0.5997 MB / 1.325 GB, free: 5.527 MB / 1.045 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0009835/0.9172, allocations: 1.236 MB / 1.326 GB, free: 4.016 MB / 1.045 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001974/0.9192, allocations: 0.6705 MB / 1.327 GB, free: 3.336 MB / 1.045 GB Notification: Performance of pre-optimization done (n=70): time 3.135e-06/0.9192, allocations: 0 / 1.327 GB, free: 3.336 MB / 1.045 GB Notification: Performance of matching and sorting (n=70): time 0.005547/0.9247, allocations: 1.712 MB / 1.329 GB, free: 1.617 MB / 1.045 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.109e-05/0.9248, allocations: 59.97 kB / 1.329 GB, free: 1.547 MB / 1.045 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002029/0.9269, allocations: 1.344 MB / 1.33 GB, free: 200 kB / 1.045 GB Notification: Performance of collectPreVariables (initialization): time 0.0001086/0.927, allocations: 45.7 kB / 1.33 GB, free: 148 kB / 1.045 GB Notification: Performance of collectInitialEqns (initialization): time 0.0006725/0.9277, allocations: 0.6827 MB / 1.331 GB, free: 15.45 MB / 1.061 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002662/0.9279, allocations: 257.7 kB / 1.331 GB, free: 15.2 MB / 1.061 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003352/0.9283, allocations: 178.5 kB / 1.331 GB, free: 15.02 MB / 1.061 GB Notification: Performance of setup shared object (initialization): time 0.0001304/0.9284, allocations: 341.9 kB / 1.332 GB, free: 14.68 MB / 1.061 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00171/0.9301, allocations: 0.5317 MB / 1.332 GB, free: 14.14 MB / 1.061 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001939/0.9321, allocations: 0.7597 MB / 1.333 GB, free: 13.3 MB / 1.061 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.003437/0.9355, allocations: 1.156 MB / 1.334 GB, free: 12.1 MB / 1.061 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.361e-06/0.9356, allocations: 4 kB / 1.334 GB, free: 12.09 MB / 1.061 GB Notification: Performance of matching and sorting (n=98) (initialization): time 0.004217/0.9398, allocations: 1.431 MB / 1.335 GB, free: 10.65 MB / 1.061 GB Notification: Performance of prepare postOptimizeDAE: time 3.901e-05/0.9398, allocations: 37.67 kB / 1.335 GB, free: 10.61 MB / 1.061 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.25e-05/0.9399, allocations: 4 kB / 1.335 GB, free: 10.6 MB / 1.061 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.477e-05/0.9399, allocations: 8 kB / 1.335 GB, free: 10.59 MB / 1.061 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001343/0.9412, allocations: 259.6 kB / 1.336 GB, free: 10.34 MB / 1.061 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.227e-05/0.9413, allocations: 4 kB / 1.336 GB, free: 10.34 MB / 1.061 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001648/0.9429, allocations: 179.3 kB / 1.336 GB, free: 10.16 MB / 1.061 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000103/0.943, allocations: 43.97 kB / 1.336 GB, free: 10.12 MB / 1.061 GB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.002184/0.9452, allocations: 0.8063 MB / 1.337 GB, free: 9.309 MB / 1.061 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.001887/0.9471, allocations: 0.7478 MB / 1.337 GB, free: 8.48 MB / 1.061 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.00323/0.9504, allocations: 1.152 MB / 1.338 GB, free: 7.281 MB / 1.061 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 3.717e-06/0.9504, allocations: 0 / 1.338 GB, free: 7.281 MB / 1.061 GB Notification: Performance of matching and sorting (n=98) (initialization_lambda0): time 0.004104/0.9545, allocations: 1.423 MB / 1.34 GB, free: 5.844 MB / 1.061 GB Notification: Performance of prepare postOptimizeDAE: time 3.646e-05/0.9545, allocations: 29.7 kB / 1.34 GB, free: 5.809 MB / 1.061 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.002e-05/0.9546, allocations: 7.938 kB / 1.34 GB, free: 5.801 MB / 1.061 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.174e-05/0.9546, allocations: 8 kB / 1.34 GB, free: 5.793 MB / 1.061 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001306/0.9559, allocations: 255.9 kB / 1.34 GB, free: 5.543 MB / 1.061 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.446e-05/0.9559, allocations: 12 kB / 1.34 GB, free: 5.531 MB / 1.061 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001729/0.9577, allocations: 171.5 kB / 1.34 GB, free: 5.363 MB / 1.061 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.667e-05/0.9578, allocations: 39.98 kB / 1.34 GB, free: 5.324 MB / 1.061 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 14 * Number of states: 0 () * Number of discrete variables: 7 (chi.tru.y,chi.on,pulse.count,$PRE.pulse.count,pulse.T_start,$PRE.pulse.T_start,$whenCondition1) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (97): * Single equations (assignments): 96 * 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.0003453/0.9581, allocations: 240 kB / 1.341 GB, free: 5.082 MB / 1.061 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004263/0.9586, allocations: 159 kB / 1.341 GB, free: 4.926 MB / 1.061 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004314/0.9629, allocations: 1.474 MB / 1.342 GB, free: 3.43 MB / 1.061 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.33e-05/0.9629, allocations: 11.94 kB / 1.342 GB, free: 3.418 MB / 1.061 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.213e-06/0.9629, allocations: 0 / 1.342 GB, free: 3.418 MB / 1.061 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.003536/0.9665, allocations: 1.238 MB / 1.343 GB, free: 2.148 MB / 1.061 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007239/0.9737, allocations: 3.25 MB / 1.347 GB, free: 14.74 MB / 1.076 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.129e-05/0.9737, allocations: 7.938 kB / 1.347 GB, free: 14.73 MB / 1.076 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001224/0.975, allocations: 224.2 kB / 1.347 GB, free: 14.51 MB / 1.076 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.252e-05/0.975, allocations: 4 kB / 1.347 GB, free: 14.51 MB / 1.076 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.987e-05/0.9751, allocations: 27.97 kB / 1.347 GB, free: 14.48 MB / 1.076 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.073e-05/0.9751, allocations: 8 kB / 1.347 GB, free: 14.47 MB / 1.076 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.762e-06/0.9751, allocations: 7.938 kB / 1.347 GB, free: 14.46 MB / 1.076 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005936/0.981, allocations: 2.252 MB / 1.349 GB, free: 12.13 MB / 1.076 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0007363/0.9818, allocations: 363.6 kB / 1.349 GB, free: 11.76 MB / 1.076 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002981/0.9821, allocations: 23.94 kB / 1.349 GB, free: 11.73 MB / 1.076 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001518/0.9836, allocations: 135.8 kB / 1.35 GB, free: 11.6 MB / 1.076 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001517/0.9838, allocations: 72.36 kB / 1.35 GB, free: 11.53 MB / 1.076 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.298e-05/0.9839, allocations: 39.97 kB / 1.35 GB, free: 11.49 MB / 1.076 GB Notification: Performance of sorting global known variables: time 0.001446/0.9854, allocations: 0.9572 MB / 1.351 GB, free: 10.54 MB / 1.076 GB Notification: Performance of sort global known variables: time 2.3e-07/0.9854, allocations: 0 / 1.351 GB, free: 10.54 MB / 1.076 GB Notification: Performance of remove unused functions: time 0.002236/0.9876, allocations: 0.811 MB / 1.351 GB, free: 9.727 MB / 1.076 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 19 * Number of states: 2 (chi.vol1.dynBal.U,chi.vol2.dynBal.U) * Number of discrete variables: 4 ($whenCondition1,pulse.T_start,pulse.count,chi.on) * Number of discrete states: 1 (pulse.count) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (74): * Single equations (assignments): 66 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 6 * When equations: 2 * 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.007248/0.9949, allocations: 3.24 MB / 1.355 GB, free: 6.422 MB / 1.076 GB Notification: Performance of simCode: created initialization part: time 0.005921/1.001, allocations: 2.015 MB / 1.356 GB, free: 4.387 MB / 1.076 GB Notification: Performance of simCode: created event and clocks part: time 4.678e-06/1.001, allocations: 0 / 1.356 GB, free: 4.387 MB / 1.076 GB Notification: Performance of simCode: created simulation system equations: time 0.002028/1.003, allocations: 0.6874 MB / 1.357 GB, free: 3.695 MB / 1.076 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003833/1.007, allocations: 0.7619 MB / 1.358 GB, free: 2.945 MB / 1.076 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0253/1.032, allocations: 12.47 MB / 1.37 GB, free: 6.164 MB / 1.092 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001225/1.033, allocations: 1.249 MB / 1.371 GB, free: 4.883 MB / 1.092 GB Notification: Performance of simCode: alias equations: time 0.001907/1.035, allocations: 378 kB / 1.372 GB, free: 4.512 MB / 1.092 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001039/1.036, allocations: 0.6047 MB / 1.372 GB, free: 3.906 MB / 1.092 GB Notification: Performance of SimCode: time 9.72e-07/1.036, allocations: 3.938 kB / 1.372 GB, free: 3.902 MB / 1.092 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.08326/1.12, allocations: 44.76 MB / 1.416 GB, free: 7.676 MB / 1.139 GB Notification: Performance of buildModelFMU: Generate platform static: time 10.07/11.19, allocations: 9.562 kB / 1.416 GB, free: 7.672 MB / 1.139 GB (rm -f Buildings_latest_Buildings.Fluid.Chillers.Examples.ElectricReformulatedEIR.pipe ; mkfifo Buildings_latest_Buildings.Fluid.Chillers.Examples.ElectricReformulatedEIR.pipe ; head -c 1048576 < Buildings_latest_Buildings.Fluid.Chillers.Examples.ElectricReformulatedEIR.pipe >> ../files/Buildings_latest_Buildings.Fluid.Chillers.Examples.ElectricReformulatedEIR.sim & python3 -m fmpy simulate --output-file Buildings_latest_Buildings.Fluid.Chillers.Examples.ElectricReformulatedEIR_res.csv --start-time 0 --stop-time 14400 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 5.76 Buildings_latest_Buildings_Fluid_Chillers_Examples_ElectricReformulatedEIR.fmu > Buildings_latest_Buildings.Fluid.Chillers.Examples.ElectricReformulatedEIR.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Fluid.Chillers.Examples.ElectricReformulatedEIR_res.csv","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Fluid_Chillers_Examples_ElectricReformulatedEIR.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Fluid.Chillers.Examples.ElectricReformulatedEIR.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches