Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_10_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 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: translateModel(Buildings.Fluid.Chillers.Examples.ElectricEIR,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|chi.TSet|chi.TEvaEnt|chi.TEvaLvg|chi.TConEnt|chi.TConLvg|chi.COP|chi.PLR1|chi.PLR2|chi.CR",fileNamePrefix="Buildings_10_Buildings.Fluid.Chillers.Examples.ElectricEIR") translateModel(Buildings.Fluid.Chillers.Examples.ElectricEIR,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|chi.TSet|chi.TEvaEnt|chi.TEvaLvg|chi.TConEnt|chi.TConLvg|chi.COP|chi.PLR1|chi.PLR2|chi.CR",fileNamePrefix="Buildings_10_Buildings.Fluid.Chillers.Examples.ElectricEIR") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008143/0.0008144, allocations: 91.38 kB / 15.36 MB, free: 0.7383 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.005497/0.005497, allocations: 171.5 kB / 16.26 MB, free: 6.613 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.5/1.5, allocations: 223.3 MB / 240.3 MB, free: 5.352 MB / 190.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.925/2.925, allocations: 437.8 MB / 0.7121 GB, free: 6.973 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.0005077/0.0005075, allocations: 12 kB / 0.8728 GB, free: 3.328 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.8571/0.8576, allocations: 153.8 MB / 1.023 GB, free: 15.89 MB / 0.7794 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Chillers.Examples.ElectricEIR): time 0.06074/0.9184, allocations: 59.14 MB / 1.081 GB, free: 4.559 MB / 0.8262 GB Notification: Performance of NFInst.instExpressions: time 0.02173/0.9402, allocations: 13.12 MB / 1.094 GB, free: 7.41 MB / 0.8419 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.003592/0.9438, allocations: 67.5 kB / 1.094 GB, free: 7.344 MB / 0.8419 GB Notification: Performance of NFTyping.typeComponents: time 0.004125/0.948, allocations: 0.8099 MB / 1.094 GB, free: 6.531 MB / 0.8419 GB Notification: Performance of NFTyping.typeBindings: time 0.01004/0.9581, allocations: 2.139 MB / 1.097 GB, free: 4.383 MB / 0.8419 GB Notification: Performance of NFTyping.typeClassSections: time 0.006287/0.9644, allocations: 1.421 MB / 1.098 GB, free: 2.973 MB / 0.8419 GB Notification: Performance of NFFlatten.flatten: time 0.01047/0.9749, allocations: 5.559 MB / 1.103 GB, free: 13.4 MB / 0.8575 GB Notification: Performance of NFFlatten.resolveConnections: time 0.002935/0.9778, allocations: 1.111 MB / 1.104 GB, free: 12.25 MB / 0.8575 GB Notification: Performance of NFEvalConstants.evaluate: time 0.003873/0.9817, allocations: 1.318 MB / 1.106 GB, free: 10.93 MB / 0.8575 GB Notification: Performance of NFSimplifyModel.simplify: time 0.002899/0.9847, allocations: 1.166 MB / 1.107 GB, free: 9.758 MB / 0.8575 GB Notification: Performance of NFPackage.collectConstants: time 0.0005662/0.9853, allocations: 60 kB / 1.107 GB, free: 9.699 MB / 0.8575 GB Notification: Performance of NFFlatten.collectFunctions: time 0.004437/0.9897, allocations: 1.368 MB / 1.108 GB, free: 8.328 MB / 0.8575 GB Notification: Performance of NFScalarize.scalarize: time 0.0007092/0.9904, allocations: 342.4 kB / 1.109 GB, free: 7.992 MB / 0.8575 GB Notification: Performance of NFVerifyModel.verify: time 0.001572/0.992, allocations: 0.837 MB / 1.109 GB, free: 7.145 MB / 0.8575 GB Notification: Performance of NFConvertDAE.convert: time 0.004788/0.9968, allocations: 2.663 MB / 1.112 GB, free: 4.473 MB / 0.8575 GB Notification: Performance of FrontEnd - DAE generated: time 6.061e-06/0.9968, allocations: 3.938 kB / 1.112 GB, free: 4.469 MB / 0.8575 GB Notification: Performance of FrontEnd: time 1.673e-06/0.9969, allocations: 4 kB / 1.112 GB, free: 4.465 MB / 0.8575 GB Notification: Performance of Transformations before backend: time 1.997e-05/0.9969, allocations: 0 / 1.112 GB, free: 4.465 MB / 0.8575 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.004013/1.001, allocations: 1.882 MB / 1.114 GB, free: 2.52 MB / 0.8575 GB Notification: Performance of prepare preOptimizeDAE: time 4.964e-05/1.001, allocations: 8.031 kB / 1.114 GB, free: 2.512 MB / 0.8575 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003666/1.005, allocations: 0.58 MB / 1.114 GB, free: 1.93 MB / 0.8575 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002845/1.007, allocations: 1.406 MB / 1.116 GB, free: 480 kB / 0.8575 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001683/1.008, allocations: 149.4 kB / 1.116 GB, free: 320 kB / 0.8575 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001845/1.008, allocations: 100 kB / 1.116 GB, free: 220 kB / 0.8575 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003537/1.011, allocations: 1.358 MB / 1.117 GB, free: 14.82 MB / 0.8731 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.492e-05/1.011, allocations: 0 / 1.117 GB, free: 14.82 MB / 0.8731 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001226/1.012, allocations: 48 kB / 1.117 GB, free: 14.77 MB / 0.8731 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.102e-05/1.012, allocations: 24 kB / 1.117 GB, free: 14.75 MB / 0.8731 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003979/1.016, allocations: 1.393 MB / 1.119 GB, free: 13.36 MB / 0.8731 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.009059/1.025, allocations: 5.477 MB / 1.124 GB, free: 7.523 MB / 0.8731 GB Notification: Performance of preOpt comSubExp (simulation): time 0.005864/1.031, allocations: 1.42 MB / 1.126 GB, free: 6.078 MB / 0.8731 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001862/1.033, allocations: 0.631 MB / 1.126 GB, free: 5.445 MB / 0.8731 GB Notification: Performance of preOpt evalFunc (simulation): time 0.001314/1.034, allocations: 1.236 MB / 1.127 GB, free: 3.93 MB / 0.8731 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.002005/1.036, allocations: 0.6978 MB / 1.128 GB, free: 3.223 MB / 0.8731 GB Notification: Performance of pre-optimization done (n=70): time 4.909e-06/1.036, allocations: 4 kB / 1.128 GB, free: 3.219 MB / 0.8731 GB Notification: Performance of matching and sorting (n=70): time 0.005596/1.041, allocations: 1.789 MB / 1.13 GB, free: 1.422 MB / 0.8731 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.595e-05/1.042, allocations: 59.97 kB / 1.13 GB, free: 1.352 MB / 0.8731 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001938/1.044, allocations: 1.275 MB / 1.131 GB, free: 68 kB / 0.8731 GB Notification: Performance of collectPreVariables (initialization): time 0.0001225/1.044, allocations: 41.7 kB / 1.131 GB, free: 20 kB / 0.8731 GB Notification: Performance of collectInitialEqns (initialization): time 0.0006848/1.044, allocations: 0.6658 MB / 1.132 GB, free: 15.34 MB / 0.8887 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002915/1.045, allocations: 240.5 kB / 1.132 GB, free: 15.11 MB / 0.8887 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001214/1.045, allocations: 65.69 kB / 1.132 GB, free: 15.04 MB / 0.8887 GB Notification: Performance of setup shared object (initialization): time 0.0001543/1.045, allocations: 337.9 kB / 1.132 GB, free: 14.7 MB / 0.8887 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001615/1.047, allocations: 0.5524 MB / 1.133 GB, free: 14.15 MB / 0.8887 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001973/1.049, allocations: 0.7817 MB / 1.134 GB, free: 13.28 MB / 0.8887 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.003416/1.052, allocations: 1.214 MB / 1.135 GB, free: 12.02 MB / 0.8887 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.25e-06/1.052, allocations: 0 / 1.135 GB, free: 12.02 MB / 0.8887 GB Notification: Performance of matching and sorting (n=98) (initialization): time 0.004284/1.056, allocations: 1.481 MB / 1.136 GB, free: 10.52 MB / 0.8887 GB Notification: Performance of prepare postOptimizeDAE: time 0.0002019/1.056, allocations: 216.1 kB / 1.137 GB, free: 10.26 MB / 0.8887 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.23e-05/1.057, allocations: 7.938 kB / 1.137 GB, free: 10.25 MB / 0.8887 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.608e-05/1.057, allocations: 8 kB / 1.137 GB, free: 10.25 MB / 0.8887 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001339/1.058, allocations: 267.7 kB / 1.137 GB, free: 9.984 MB / 0.8887 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.093e-05/1.058, allocations: 11.94 kB / 1.137 GB, free: 9.973 MB / 0.8887 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002163/1.06, allocations: 243 kB / 1.137 GB, free: 9.734 MB / 0.8887 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001274/1.06, allocations: 43.98 kB / 1.137 GB, free: 9.691 MB / 0.8887 GB Notification: Performance of prepare postOptimizeDAE: time 1.406e-05/1.06, allocations: 7.938 kB / 1.137 GB, free: 9.684 MB / 0.8887 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.003721/1.064, allocations: 1.321 MB / 1.138 GB, free: 8.352 MB / 0.8887 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.836e-06/1.064, allocations: 4 kB / 1.138 GB, free: 8.348 MB / 0.8887 GB Notification: Performance of postOpt tearingSystem (initialization): time 9.538e-06/1.064, allocations: 4 kB / 1.138 GB, free: 8.344 MB / 0.8887 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001218/1.065, allocations: 272 kB / 1.139 GB, free: 8.078 MB / 0.8887 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.596e-05/1.065, allocations: 11.94 kB / 1.139 GB, free: 8.066 MB / 0.8887 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001928/1.067, allocations: 243 kB / 1.139 GB, free: 7.828 MB / 0.8887 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001016/1.067, allocations: 35.98 kB / 1.139 GB, free: 7.793 MB / 0.8887 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.0009023/1.068, allocations: 410.7 kB / 1.139 GB, free: 7.383 MB / 0.8887 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002861/1.069, allocations: 146.2 kB / 1.139 GB, free: 7.238 MB / 0.8887 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004267/1.073, allocations: 1.524 MB / 1.141 GB, free: 5.695 MB / 0.8887 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.045e-05/1.073, allocations: 11.98 kB / 1.141 GB, free: 5.684 MB / 0.8887 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.485e-05/1.073, allocations: 3.938 kB / 1.141 GB, free: 5.68 MB / 0.8887 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.003394/1.076, allocations: 1.296 MB / 1.142 GB, free: 4.352 MB / 0.8887 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007462/1.084, allocations: 3.269 MB / 1.145 GB, free: 0.9258 MB / 0.8887 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.087e-05/1.084, allocations: 4 kB / 1.145 GB, free: 0.9219 MB / 0.8887 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00118/1.085, allocations: 235.8 kB / 1.146 GB, free: 0.6914 MB / 0.8887 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.371e-05/1.085, allocations: 8 kB / 1.146 GB, free: 0.6836 MB / 0.8887 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.46e-05/1.085, allocations: 27.97 kB / 1.146 GB, free: 0.6562 MB / 0.8887 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.612e-05/1.085, allocations: 15.88 kB / 1.146 GB, free: 0.6406 MB / 0.8887 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.58e-06/1.085, allocations: 4 kB / 1.146 GB, free: 0.6367 MB / 0.8887 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006069/1.091, allocations: 2.321 MB / 1.148 GB, free: 14.24 MB / 0.9044 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0009975/1.092, allocations: 374.8 kB / 1.148 GB, free: 13.86 MB / 0.9044 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001897/1.092, allocations: 20 kB / 1.148 GB, free: 13.84 MB / 0.9044 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001496/1.094, allocations: 183.8 kB / 1.148 GB, free: 13.66 MB / 0.9044 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001571/1.094, allocations: 72.36 kB / 1.149 GB, free: 13.59 MB / 0.9044 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.704e-05/1.094, allocations: 43.91 kB / 1.149 GB, free: 13.54 MB / 0.9044 GB Notification: Performance of sorting global known variables: time 0.00137/1.096, allocations: 0.9129 MB / 1.15 GB, free: 12.63 MB / 0.9044 GB Notification: Performance of sort global known variables: time 1.843e-06/1.096, allocations: 0 / 1.15 GB, free: 12.63 MB / 0.9044 GB Notification: Performance of remove unused functions: time 0.002343/1.098, allocations: 0.7992 MB / 1.15 GB, free: 11.83 MB / 0.9044 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.001264/1.099, allocations: 0.4976 MB / 1.151 GB, free: 11.34 MB / 0.9044 GB Notification: Performance of simCode: created initialization part: time 0.005804/1.105, allocations: 2.101 MB / 1.153 GB, free: 9.211 MB / 0.9044 GB Notification: Performance of simCode: created event and clocks part: time 1.115e-05/1.105, allocations: 0 / 1.153 GB, free: 9.211 MB / 0.9044 GB Notification: Performance of simCode: created simulation system equations: time 0.002025/1.107, allocations: 0.7186 MB / 1.154 GB, free: 8.488 MB / 0.9044 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005515/1.113, allocations: 0.7669 MB / 1.154 GB, free: 7.73 MB / 0.9044 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007596/1.12, allocations: 3.458 MB / 1.158 GB, free: 4.18 MB / 0.9044 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009619/1.121, allocations: 1.238 MB / 1.159 GB, free: 2.914 MB / 0.9044 GB Notification: Performance of simCode: alias equations: time 0.002163/1.123, allocations: 367.6 kB / 1.159 GB, free: 2.551 MB / 0.9044 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004252/1.124, allocations: 131.4 kB / 1.159 GB, free: 2.422 MB / 0.9044 GB Notification: Performance of SimCode: time 1.423e-06/1.124, allocations: 0 / 1.159 GB, free: 2.422 MB / 0.9044 GB Notification: Performance of Templates: time 0.05876/1.183, allocations: 30.84 MB / 1.189 GB, free: 3.969 MB / 0.9356 GB make -j1 -f Buildings_10_Buildings.Fluid.Chillers.Examples.ElectricEIR.makefile (rm -f Buildings_10_Buildings.Fluid.Chillers.Examples.ElectricEIR.pipe ; mkfifo Buildings_10_Buildings.Fluid.Chillers.Examples.ElectricEIR.pipe ; head -c 1048576 < Buildings_10_Buildings.Fluid.Chillers.Examples.ElectricEIR.pipe >> ../files/Buildings_10_Buildings.Fluid.Chillers.Examples.ElectricEIR.sim & ./Buildings_10_Buildings.Fluid.Chillers.Examples.ElectricEIR -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_10_Buildings.Fluid.Chillers.Examples.ElectricEIR.pipe 2>&1) diffSimulationResults("Buildings_10_Buildings.Fluid.Chillers.Examples.ElectricEIR_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_10.0.x/Buildings_Fluid_Chillers_Examples_ElectricEIR.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_10_Buildings.Fluid.Chillers.Examples.ElectricEIR.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches