Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_11_Buildings.Fluid.Chillers.Examples.ElectricEIR.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-maint.11.x/package.mo", uses=false) Using package Buildings with version 11.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.0-maint.11.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.Fluid.Chillers.Examples.ElectricEIR,fileNamePrefix="Buildings_11_Buildings_Fluid_Chillers_Examples_ElectricEIR",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Fluid.Chillers.Examples.ElectricEIR,fileNamePrefix="Buildings_11_Buildings_Fluid_Chillers_Examples_ElectricEIR",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.007581/0.007581, allocations: 103.6 kB / 15.74 MB, free: 6.047 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.002168/0.002168, allocations: 188.4 kB / 16.67 MB, free: 5.969 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.415/1.415, allocations: 222.9 MB / 240.4 MB, free: 4.336 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.0-maint.11.x/package.mo): time 2.826/2.826, allocations: 469.8 MB / 0.7425 GB, free: 7.34 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001943/0.001943, allocations: 63.89 kB / 1.065 GB, free: 13.55 MB / 0.8262 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2685/0.2704, allocations: 159.1 MB / 1.22 GB, free: 14.3 MB / 0.9825 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Chillers.Examples.ElectricEIR): time 0.5522/0.8227, allocations: 60.62 MB / 1.279 GB, free: 14.13 MB / 1.014 GB Notification: Performance of NFInst.instExpressions: time 0.01889/0.8416, allocations: 13.2 MB / 1.292 GB, free: 6.953 MB / 1.014 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.001464/0.8431, allocations: 70.25 kB / 1.292 GB, free: 6.926 MB / 1.014 GB Notification: Performance of NFTyping.typeComponents: time 0.002207/0.8454, allocations: 0.9591 MB / 1.293 GB, free: 6.344 MB / 1.014 GB Notification: Performance of NFTyping.typeBindings: time 0.005093/0.8505, allocations: 2.322 MB / 1.296 GB, free: 4.957 MB / 1.014 GB Notification: Performance of NFTyping.typeClassSections: time 0.00374/0.8542, allocations: 1.575 MB / 1.297 GB, free: 4.113 MB / 1.014 GB Notification: Performance of NFFlatten.flatten: time 0.004918/0.8591, allocations: 4.342 MB / 1.301 GB, free: 2.016 MB / 1.014 GB Notification: Performance of NFFlatten.resolveConnections: time 0.001735/0.8609, allocations: 1.348 MB / 1.303 GB, free: 1.387 MB / 1.014 GB Notification: Performance of NFEvalConstants.evaluate: time 0.002885/0.8638, allocations: 1.571 MB / 1.304 GB, free: 0.6523 MB / 1.014 GB Notification: Performance of NFSimplifyModel.simplify: time 0.001495/0.8653, allocations: 1.209 MB / 1.305 GB, free: 88 kB / 1.014 GB Notification: Performance of NFPackage.collectConstants: time 0.0002272/0.8655, allocations: 142.1 kB / 1.305 GB, free: 88 kB / 1.014 GB Notification: Performance of NFFlatten.collectFunctions: time 0.003057/0.8686, allocations: 1.473 MB / 1.307 GB, free: 15.54 MB / 1.029 GB Notification: Performance of NFScalarize.scalarize: time 0.0004657/0.8691, allocations: 425.9 kB / 1.307 GB, free: 15.29 MB / 1.029 GB Notification: Performance of NFVerifyModel.verify: time 0.0009936/0.8701, allocations: 0.9112 MB / 1.308 GB, free: 14.73 MB / 1.029 GB Notification: Performance of NFConvertDAE.convert: time 0.003792/0.8739, allocations: 2.8 MB / 1.311 GB, free: 13.66 MB / 1.029 GB Notification: Performance of FrontEnd - DAE generated: time 4.238e-06/0.8739, allocations: 0.75 kB / 1.311 GB, free: 13.66 MB / 1.029 GB Notification: Performance of FrontEnd: time 1.282e-06/0.8739, allocations: 0 / 1.311 GB, free: 13.66 MB / 1.029 GB Notification: Performance of Transformations before backend: time 1.786e-05/0.8739, allocations: 0 / 1.311 GB, free: 13.66 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.003906/0.8778, allocations: 2.246 MB / 1.313 GB, free: 12.17 MB / 1.029 GB Notification: Performance of prepare preOptimizeDAE: time 3.32e-05/0.8779, allocations: 13.19 kB / 1.313 GB, free: 12.17 MB / 1.029 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001945/0.8781, allocations: 147 kB / 1.313 GB, free: 12.07 MB / 1.029 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004454/0.8825, allocations: 0.6177 MB / 1.314 GB, free: 11.94 MB / 1.029 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002442/0.885, allocations: 1.468 MB / 1.315 GB, free: 11.09 MB / 1.029 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001796/0.8852, allocations: 152.6 kB / 1.315 GB, free: 10.98 MB / 1.029 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001865/0.8854, allocations: 108.5 kB / 1.316 GB, free: 10.95 MB / 1.029 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00334/0.8887, allocations: 1.372 MB / 1.317 GB, free: 10.42 MB / 1.029 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.648e-05/0.8888, allocations: 0 / 1.317 GB, free: 10.42 MB / 1.029 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001227/0.8889, allocations: 45.62 kB / 1.317 GB, free: 10.38 MB / 1.029 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.32e-05/0.8889, allocations: 28.98 kB / 1.317 GB, free: 10.38 MB / 1.029 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004409/0.8934, allocations: 1.42 MB / 1.318 GB, free: 9.953 MB / 1.029 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.008074/0.9014, allocations: 5.567 MB / 1.324 GB, free: 6.172 MB / 1.029 GB Notification: Performance of preOpt comSubExp (simulation): time 0.005988/0.9074, allocations: 1.386 MB / 1.325 GB, free: 5.738 MB / 1.029 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001908/0.9094, allocations: 0.6372 MB / 1.326 GB, free: 5.551 MB / 1.029 GB Notification: Performance of preOpt evalFunc (simulation): time 0.001103/0.9105, allocations: 1.239 MB / 1.327 GB, free: 4.117 MB / 1.029 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.002051/0.9125, allocations: 0.6831 MB / 1.328 GB, free: 3.914 MB / 1.029 GB Notification: Performance of pre-optimization done (n=70): time 2.485e-06/0.9126, allocations: 0 / 1.328 GB, free: 3.914 MB / 1.029 GB Notification: Performance of matching and sorting (n=70): time 0.005668/0.9182, allocations: 1.765 MB / 1.329 GB, free: 3.391 MB / 1.029 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.251e-05/0.9183, allocations: 67.41 kB / 1.329 GB, free: 3.324 MB / 1.029 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001611/0.9199, allocations: 1.29 MB / 1.331 GB, free: 2.824 MB / 1.029 GB Notification: Performance of collectPreVariables (initialization): time 8.975e-05/0.92, allocations: 44.89 kB / 1.331 GB, free: 2.781 MB / 1.029 GB Notification: Performance of collectInitialEqns (initialization): time 0.000613/0.9206, allocations: 0.6642 MB / 1.331 GB, free: 2.254 MB / 1.029 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002654/0.9209, allocations: 245.6 kB / 1.332 GB, free: 2.059 MB / 1.029 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003341/0.9212, allocations: 182.6 kB / 1.332 GB, free: 1.977 MB / 1.029 GB Notification: Performance of setup shared object (initialization): time 0.000166/0.9214, allocations: 332.5 kB / 1.332 GB, free: 1.66 MB / 1.029 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001803/0.9232, allocations: 0.5572 MB / 1.333 GB, free: 1.5 MB / 1.029 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002009/0.9252, allocations: 0.7738 MB / 1.333 GB, free: 1.113 MB / 1.029 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.00356/0.9288, allocations: 1.194 MB / 1.335 GB, free: 0.6172 MB / 1.029 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.487e-06/0.9288, allocations: 1.406 kB / 1.335 GB, free: 0.6172 MB / 1.029 GB Notification: Performance of matching and sorting (n=98) (initialization): time 0.004156/0.933, allocations: 1.455 MB / 1.336 GB, free: 124 kB / 1.029 GB Notification: Performance of prepare postOptimizeDAE: time 5.097e-05/0.9331, allocations: 40.45 kB / 1.336 GB, free: 88 kB / 1.029 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.045e-06/0.9331, allocations: 2.938 kB / 1.336 GB, free: 88 kB / 1.029 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.987e-05/0.9331, allocations: 10.25 kB / 1.336 GB, free: 84 kB / 1.029 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001357/0.9345, allocations: 266.4 kB / 1.336 GB, free: 60 kB / 1.029 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.424e-05/0.9345, allocations: 9.188 kB / 1.336 GB, free: 60 kB / 1.029 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001556/0.936, allocations: 198.2 kB / 1.337 GB, free: 15.99 MB / 1.045 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001038/0.9362, allocations: 43.73 kB / 1.337 GB, free: 15.98 MB / 1.045 GB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.002125/0.9383, allocations: 0.8024 MB / 1.337 GB, free: 15.66 MB / 1.045 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.001979/0.9403, allocations: 0.7759 MB / 1.338 GB, free: 15.26 MB / 1.045 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.00353/0.9438, allocations: 1.175 MB / 1.339 GB, free: 14.7 MB / 1.045 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 3.086e-06/0.9438, allocations: 5.594 kB / 1.339 GB, free: 14.7 MB / 1.045 GB Notification: Performance of matching and sorting (n=98) (initialization_lambda0): time 0.004231/0.9481, allocations: 1.455 MB / 1.341 GB, free: 13.99 MB / 1.045 GB Notification: Performance of prepare postOptimizeDAE: time 3.014e-05/0.9481, allocations: 32.77 kB / 1.341 GB, free: 13.96 MB / 1.045 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.27e-06/0.9481, allocations: 3.656 kB / 1.341 GB, free: 13.96 MB / 1.045 GB Notification: Performance of postOpt tearingSystem (initialization): time 8.496e-06/0.9482, allocations: 14.16 kB / 1.341 GB, free: 13.95 MB / 1.045 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001382/0.9495, allocations: 269.1 kB / 1.341 GB, free: 13.87 MB / 1.045 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.097e-05/0.9496, allocations: 7 kB / 1.341 GB, free: 13.87 MB / 1.045 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001563/0.9511, allocations: 186.3 kB / 1.341 GB, free: 13.78 MB / 1.045 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.516e-05/0.9512, allocations: 38 kB / 1.341 GB, free: 13.77 MB / 1.045 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.0002799/0.9515, allocations: 239.3 kB / 1.341 GB, free: 13.54 MB / 1.045 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002611/0.9518, allocations: 153 kB / 1.342 GB, free: 13.46 MB / 1.045 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004487/0.9563, allocations: 1.503 MB / 1.343 GB, free: 12.67 MB / 1.045 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.821e-05/0.9563, allocations: 12.11 kB / 1.343 GB, free: 12.66 MB / 1.045 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.31e-06/0.9563, allocations: 0 / 1.343 GB, free: 12.66 MB / 1.045 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.003819/0.9602, allocations: 1.277 MB / 1.344 GB, free: 11.99 MB / 1.045 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007147/0.9673, allocations: 3.269 MB / 1.347 GB, free: 9.762 MB / 1.045 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.414e-06/0.9673, allocations: 3.312 kB / 1.348 GB, free: 9.762 MB / 1.045 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001292/0.9686, allocations: 234.9 kB / 1.348 GB, free: 9.688 MB / 1.045 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.237e-05/0.9687, allocations: 15.56 kB / 1.348 GB, free: 9.68 MB / 1.045 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.493e-05/0.9688, allocations: 32.08 kB / 1.348 GB, free: 9.66 MB / 1.045 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.628e-06/0.9688, allocations: 11.17 kB / 1.348 GB, free: 9.656 MB / 1.045 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.643e-06/0.9688, allocations: 5.469 kB / 1.348 GB, free: 9.656 MB / 1.045 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006266/0.9751, allocations: 2.294 MB / 1.35 GB, free: 8.379 MB / 1.045 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0006196/0.9757, allocations: 358.6 kB / 1.35 GB, free: 8.074 MB / 1.045 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002372/0.9759, allocations: 29.02 kB / 1.35 GB, free: 8.055 MB / 1.045 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001474/0.9774, allocations: 131.4 kB / 1.351 GB, free: 8 MB / 1.045 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001657/0.9776, allocations: 78.61 kB / 1.351 GB, free: 7.953 MB / 1.045 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.665e-05/0.9777, allocations: 37.66 kB / 1.351 GB, free: 7.941 MB / 1.045 GB Notification: Performance of sorting global known variables: time 0.001322/0.979, allocations: 0.9249 MB / 1.352 GB, free: 7.438 MB / 1.045 GB Notification: Performance of sort global known variables: time 1.3e-07/0.979, allocations: 0 / 1.352 GB, free: 7.438 MB / 1.045 GB Notification: Performance of remove unused functions: time 0.002091/0.9811, allocations: 0.814 MB / 1.352 GB, free: 7.258 MB / 1.045 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.007686/0.9888, allocations: 3.258 MB / 1.356 GB, free: 5.258 MB / 1.045 GB Notification: Performance of simCode: created initialization part: time 0.005989/0.9948, allocations: 2.084 MB / 1.358 GB, free: 4.273 MB / 1.045 GB Notification: Performance of simCode: created event and clocks part: time 4.218e-06/0.9948, allocations: 0 / 1.358 GB, free: 4.273 MB / 1.045 GB Notification: Performance of simCode: created simulation system equations: time 0.002079/0.9969, allocations: 0.7086 MB / 1.358 GB, free: 3.961 MB / 1.045 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003423/1, allocations: 0.7554 MB / 1.359 GB, free: 3.559 MB / 1.045 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0246/1.025, allocations: 12.23 MB / 1.371 GB, free: 9.715 MB / 1.061 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009987/1.026, allocations: 1.234 MB / 1.372 GB, free: 8.449 MB / 1.061 GB Notification: Performance of simCode: alias equations: time 0.001496/1.028, allocations: 379.5 kB / 1.372 GB, free: 8.074 MB / 1.061 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0009731/1.028, allocations: 0.5968 MB / 1.373 GB, free: 7.477 MB / 1.061 GB Notification: Performance of SimCode: time 2.61e-07/1.028, allocations: 0 / 1.373 GB, free: 7.477 MB / 1.061 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.08734/1.116, allocations: 44.25 MB / 1.416 GB, free: 11.73 MB / 1.107 GB Notification: Performance of buildModelFMU: Generate platform static: time 10.56/11.67, allocations: 8 kB / 1.416 GB, free: 11.73 MB / 1.107 GB (rm -f Buildings_11_Buildings.Fluid.Chillers.Examples.ElectricEIR.pipe ; mkfifo Buildings_11_Buildings.Fluid.Chillers.Examples.ElectricEIR.pipe ; head -c 1048576 < Buildings_11_Buildings.Fluid.Chillers.Examples.ElectricEIR.pipe >> ../files/Buildings_11_Buildings.Fluid.Chillers.Examples.ElectricEIR.sim & python3 -m fmpy simulate --output-file Buildings_11_Buildings.Fluid.Chillers.Examples.ElectricEIR_res.csv --start-time 0 --stop-time 14400 --timeout 400 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 5.76 Buildings_11_Buildings_Fluid_Chillers_Examples_ElectricEIR.fmu > Buildings_11_Buildings.Fluid.Chillers.Examples.ElectricEIR.pipe 2>&1) diffSimulationResults("Buildings_11_Buildings.Fluid.Chillers.Examples.ElectricEIR_res.csv","/mnt/ReferenceFiles/Buildings/csv/maint_11.x/Buildings_Fluid_Chillers_Examples_ElectricEIR.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_11_Buildings.Fluid.Chillers.Examples.ElectricEIR.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches