Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_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-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.ElectricEIR,fileNamePrefix="Buildings_latest_Buildings_Fluid_Chillers_Examples_ElectricEIR",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Fluid.Chillers.Examples.ElectricEIR,fileNamePrefix="Buildings_latest_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.004809/0.004809, allocations: 96.7 kB / 15.73 MB, free: 6.051 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.001079/0.00108, allocations: 197.8 kB / 16.67 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.346/1.346, allocations: 222.9 MB / 240.4 MB, free: 4.324 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.0-master/package.mo): time 2.728/2.728, allocations: 469.4 MB / 0.7421 GB, free: 7.605 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001272/0.001272, allocations: 67.91 kB / 1.064 GB, free: 13.87 MB / 0.8262 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.259/0.2603, allocations: 159.1 MB / 1.22 GB, free: 14.62 MB / 0.9825 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Chillers.Examples.ElectricEIR): time 0.6008/0.8611, allocations: 60.61 MB / 1.279 GB, free: 14.36 MB / 1.014 GB Notification: Performance of NFInst.instExpressions: time 0.01794/0.8791, allocations: 13.2 MB / 1.292 GB, free: 7.352 MB / 1.014 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.002388/0.8815, allocations: 72.59 kB / 1.292 GB, free: 7.324 MB / 1.014 GB Notification: Performance of NFTyping.typeComponents: time 0.002468/0.884, allocations: 0.9849 MB / 1.293 GB, free: 6.727 MB / 1.014 GB Notification: Performance of NFTyping.typeBindings: time 0.006338/0.8904, allocations: 2.435 MB / 1.295 GB, free: 5.273 MB / 1.014 GB Notification: Performance of NFTyping.typeClassSections: time 0.004251/0.8946, allocations: 1.577 MB / 1.297 GB, free: 4.426 MB / 1.014 GB Notification: Performance of NFFlatten.flatten: time 0.006312/0.901, allocations: 4.335 MB / 1.301 GB, free: 2.348 MB / 1.014 GB Notification: Performance of NFFlatten.resolveConnections: time 0.002084/0.9031, allocations: 1.357 MB / 1.302 GB, free: 1.711 MB / 1.014 GB Notification: Performance of NFEvalConstants.evaluate: time 0.004708/0.9078, allocations: 1.601 MB / 1.304 GB, free: 0.9727 MB / 1.014 GB Notification: Performance of NFSimplifyModel.simplify: time 0.002347/0.9102, allocations: 1.211 MB / 1.305 GB, free: 412 kB / 1.014 GB Notification: Performance of NFPackage.collectConstants: time 0.0003865/0.9106, allocations: 142.3 kB / 1.305 GB, free: 412 kB / 1.014 GB Notification: Performance of NFFlatten.collectFunctions: time 0.00407/0.9146, allocations: 1.473 MB / 1.307 GB, free: 15.86 MB / 1.029 GB Notification: Performance of NFScalarize.scalarize: time 0.0005439/0.9152, allocations: 426.3 kB / 1.307 GB, free: 15.61 MB / 1.029 GB Notification: Performance of NFVerifyModel.verify: time 0.001293/0.9165, allocations: 0.9132 MB / 1.308 GB, free: 15.05 MB / 1.029 GB Notification: Performance of NFConvertDAE.convert: time 0.004792/0.9213, allocations: 2.795 MB / 1.311 GB, free: 13.98 MB / 1.029 GB Notification: Performance of FrontEnd - DAE generated: time 4.338e-06/0.9213, allocations: 2.141 kB / 1.311 GB, free: 13.98 MB / 1.029 GB Notification: Performance of FrontEnd: time 1.412e-06/0.9213, allocations: 0 / 1.311 GB, free: 13.98 MB / 1.029 GB Notification: Performance of Transformations before backend: time 2.66e-05/0.9214, allocations: 0 / 1.311 GB, free: 13.98 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.004022/0.9254, allocations: 2.249 MB / 1.313 GB, free: 12.48 MB / 1.029 GB Notification: Performance of prepare preOptimizeDAE: time 3.869e-05/0.9254, allocations: 9.688 kB / 1.313 GB, free: 12.48 MB / 1.029 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001918/0.9256, allocations: 147 kB / 1.313 GB, free: 12.39 MB / 1.029 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003743/0.9294, allocations: 0.5643 MB / 1.314 GB, free: 12.25 MB / 1.029 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002553/0.932, allocations: 1.461 MB / 1.315 GB, free: 11.41 MB / 1.029 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001498/0.9321, allocations: 148 kB / 1.315 GB, free: 11.31 MB / 1.029 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001772/0.9323, allocations: 105 kB / 1.315 GB, free: 11.27 MB / 1.029 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003005/0.9353, allocations: 1.326 MB / 1.317 GB, free: 10.75 MB / 1.029 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.668e-05/0.9354, allocations: 2.078 kB / 1.317 GB, free: 10.75 MB / 1.029 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001133/0.9355, allocations: 36.5 kB / 1.317 GB, free: 10.73 MB / 1.029 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.835e-05/0.9355, allocations: 33.27 kB / 1.317 GB, free: 10.72 MB / 1.029 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003788/0.9393, allocations: 1.334 MB / 1.318 GB, free: 10.32 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.007544/0.9469, allocations: 5.444 MB / 1.323 GB, free: 6.602 MB / 1.029 GB Notification: Performance of preOpt comSubExp (simulation): time 0.005574/0.9525, allocations: 1.343 MB / 1.325 GB, free: 6.172 MB / 1.029 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001706/0.9542, allocations: 0.6148 MB / 1.325 GB, free: 5.984 MB / 1.029 GB Notification: Performance of preOpt evalFunc (simulation): time 0.000876/0.9551, allocations: 1.235 MB / 1.326 GB, free: 4.559 MB / 1.029 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001937/0.957, allocations: 0.6539 MB / 1.327 GB, free: 4.359 MB / 1.029 GB Notification: Performance of pre-optimization done (n=70): time 3.236e-06/0.957, allocations: 3.938 kB / 1.327 GB, free: 4.355 MB / 1.029 GB Notification: Performance of matching and sorting (n=70): time 0.005343/0.9624, allocations: 1.698 MB / 1.329 GB, free: 3.844 MB / 1.029 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.294e-05/0.9624, allocations: 63.72 kB / 1.329 GB, free: 3.777 MB / 1.029 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001671/0.9641, allocations: 1.287 MB / 1.33 GB, free: 3.281 MB / 1.029 GB Notification: Performance of collectPreVariables (initialization): time 0.0001066/0.9642, allocations: 45.08 kB / 1.33 GB, free: 3.238 MB / 1.029 GB Notification: Performance of collectInitialEqns (initialization): time 0.0005325/0.9648, allocations: 0.6652 MB / 1.331 GB, free: 2.711 MB / 1.029 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002468/0.965, allocations: 251.6 kB / 1.331 GB, free: 2.512 MB / 1.029 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003073/0.9653, allocations: 175.8 kB / 1.331 GB, free: 2.434 MB / 1.029 GB Notification: Performance of setup shared object (initialization): time 0.0001037/0.9654, allocations: 333.3 kB / 1.331 GB, free: 2.117 MB / 1.029 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001561/0.967, allocations: 0.5297 MB / 1.332 GB, free: 1.965 MB / 1.029 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001719/0.9687, allocations: 0.7556 MB / 1.333 GB, free: 1.574 MB / 1.029 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.003077/0.9718, allocations: 1.148 MB / 1.334 GB, free: 1.09 MB / 1.029 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.579e-06/0.9719, allocations: 1.625 kB / 1.334 GB, free: 1.09 MB / 1.029 GB Notification: Performance of matching and sorting (n=98) (initialization): time 0.003832/0.9757, allocations: 1.41 MB / 1.335 GB, free: 0.6016 MB / 1.029 GB Notification: Performance of prepare postOptimizeDAE: time 3.929e-05/0.9757, allocations: 39.42 kB / 1.335 GB, free: 0.5664 MB / 1.029 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.117e-06/0.9758, allocations: 3.344 kB / 1.335 GB, free: 0.5664 MB / 1.029 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.238e-05/0.9758, allocations: 10.75 kB / 1.335 GB, free: 0.5625 MB / 1.029 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001251/0.977, allocations: 256.9 kB / 1.335 GB, free: 0.5391 MB / 1.029 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.468e-05/0.9771, allocations: 8.578 kB / 1.335 GB, free: 0.5391 MB / 1.029 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001652/0.9787, allocations: 182.7 kB / 1.336 GB, free: 492 kB / 1.029 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001019/0.9788, allocations: 41.66 kB / 1.336 GB, free: 484 kB / 1.029 GB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.001988/0.9808, allocations: 0.789 MB / 1.336 GB, free: 152 kB / 1.029 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.001736/0.9826, allocations: 0.741 MB / 1.337 GB, free: 15.77 MB / 1.045 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.003014/0.9856, allocations: 1.134 MB / 1.338 GB, free: 15.3 MB / 1.045 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 4.479e-06/0.9856, allocations: 1.156 kB / 1.338 GB, free: 15.3 MB / 1.045 GB Notification: Performance of matching and sorting (n=98) (initialization_lambda0): time 0.003927/0.9896, allocations: 1.411 MB / 1.34 GB, free: 14.74 MB / 1.045 GB Notification: Performance of prepare postOptimizeDAE: time 3.35e-05/0.9896, allocations: 37.8 kB / 1.34 GB, free: 14.71 MB / 1.045 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.281e-06/0.9896, allocations: 2.562 kB / 1.34 GB, free: 14.71 MB / 1.045 GB Notification: Performance of postOpt tearingSystem (initialization): time 9.207e-06/0.9896, allocations: 7.969 kB / 1.34 GB, free: 14.71 MB / 1.045 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001235/0.9909, allocations: 257.8 kB / 1.34 GB, free: 14.63 MB / 1.045 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.394e-05/0.9909, allocations: 10.72 kB / 1.34 GB, free: 14.62 MB / 1.045 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00168/0.9926, allocations: 174.5 kB / 1.34 GB, free: 14.54 MB / 1.045 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.481e-05/0.9927, allocations: 41.59 kB / 1.34 GB, free: 14.52 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.0003135/0.993, allocations: 231.2 kB / 1.34 GB, free: 14.3 MB / 1.045 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002864/0.9933, allocations: 149.7 kB / 1.341 GB, free: 14.23 MB / 1.045 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003908/0.9972, allocations: 1.471 MB / 1.342 GB, free: 13.44 MB / 1.045 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.085e-05/0.9973, allocations: 16.47 kB / 1.342 GB, free: 13.43 MB / 1.045 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.402e-06/0.9973, allocations: 0 / 1.342 GB, free: 13.43 MB / 1.045 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.003255/1.001, allocations: 1.226 MB / 1.343 GB, free: 12.78 MB / 1.045 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006981/1.008, allocations: 3.195 MB / 1.346 GB, free: 10.58 MB / 1.045 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.938e-06/1.008, allocations: 7.875 kB / 1.346 GB, free: 10.57 MB / 1.045 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001155/1.009, allocations: 223.3 kB / 1.347 GB, free: 10.5 MB / 1.045 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.162e-05/1.009, allocations: 7.125 kB / 1.347 GB, free: 10.5 MB / 1.045 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.049e-05/1.009, allocations: 28.52 kB / 1.347 GB, free: 10.49 MB / 1.045 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.428e-06/1.009, allocations: 7 kB / 1.347 GB, free: 10.49 MB / 1.045 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.092e-06/1.009, allocations: 8.531 kB / 1.347 GB, free: 10.48 MB / 1.045 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005533/1.014, allocations: 2.229 MB / 1.349 GB, free: 9.23 MB / 1.045 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0007852/1.015, allocations: 354.7 kB / 1.349 GB, free: 8.93 MB / 1.045 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002426/1.015, allocations: 20.88 kB / 1.349 GB, free: 8.918 MB / 1.045 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001349/1.017, allocations: 126.1 kB / 1.349 GB, free: 8.863 MB / 1.045 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001363/1.017, allocations: 73.61 kB / 1.349 GB, free: 8.82 MB / 1.045 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.857e-05/1.017, allocations: 41.88 kB / 1.349 GB, free: 8.805 MB / 1.045 GB Notification: Performance of sorting global known variables: time 0.001285/1.018, allocations: 0.921 MB / 1.35 GB, free: 8.305 MB / 1.045 GB Notification: Performance of sort global known variables: time 2.31e-07/1.018, allocations: 0 / 1.35 GB, free: 8.305 MB / 1.045 GB Notification: Performance of remove unused functions: time 0.002176/1.021, allocations: 0.8069 MB / 1.351 GB, free: 8.129 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.006732/1.027, allocations: 3.2 MB / 1.354 GB, free: 6.156 MB / 1.045 GB Notification: Performance of simCode: created initialization part: time 0.005365/1.033, allocations: 1.997 MB / 1.356 GB, free: 5.219 MB / 1.045 GB Notification: Performance of simCode: created event and clocks part: time 8.797e-06/1.033, allocations: 1.156 kB / 1.356 GB, free: 5.219 MB / 1.045 GB Notification: Performance of simCode: created simulation system equations: time 0.001843/1.035, allocations: 0.683 MB / 1.357 GB, free: 4.91 MB / 1.045 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00402/1.039, allocations: 0.7671 MB / 1.358 GB, free: 4.496 MB / 1.045 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02211/1.061, allocations: 12.07 MB / 1.369 GB, free: 11.42 MB / 1.061 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000741/1.061, allocations: 1.234 MB / 1.371 GB, free: 10.16 MB / 1.061 GB Notification: Performance of simCode: alias equations: time 0.001605/1.063, allocations: 379.5 kB / 1.371 GB, free: 9.781 MB / 1.061 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008391/1.064, allocations: 0.5891 MB / 1.371 GB, free: 9.191 MB / 1.061 GB Notification: Performance of SimCode: time 9.02e-07/1.064, allocations: 0 / 1.371 GB, free: 9.191 MB / 1.061 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0695/1.133, allocations: 44.06 MB / 1.414 GB, free: 13.64 MB / 1.107 GB Notification: Performance of buildModelFMU: Generate platform static: time 9.96/11.09, allocations: 13.97 kB / 1.414 GB, free: 13.62 MB / 1.107 GB (rm -f Buildings_latest_Buildings.Fluid.Chillers.Examples.ElectricEIR.pipe ; mkfifo Buildings_latest_Buildings.Fluid.Chillers.Examples.ElectricEIR.pipe ; head -c 1048576 < Buildings_latest_Buildings.Fluid.Chillers.Examples.ElectricEIR.pipe >> ../files/Buildings_latest_Buildings.Fluid.Chillers.Examples.ElectricEIR.sim & python3 -m fmpy simulate --output-file Buildings_latest_Buildings.Fluid.Chillers.Examples.ElectricEIR_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_ElectricEIR.fmu > Buildings_latest_Buildings.Fluid.Chillers.Examples.ElectricEIR.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Fluid.Chillers.Examples.ElectricEIR_res.csv","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Fluid_Chillers_Examples_ElectricEIR.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Fluid.Chillers.Examples.ElectricEIR.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches