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.0.1-master/package.mo", uses=false) Using package Buildings with version 11.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-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: translateModel(Buildings.Fluid.Chillers.Examples.ElectricReformulatedEIR,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|chi.TSet|chi.TEvaEnt|chi.TEvaLvg|chi.TConEnt|chi.TConLvg|chi.PLR1|chi.PLR2|chi.CR|chi.COP",fileNamePrefix="Buildings_latest_Buildings.Fluid.Chillers.Examples.ElectricReformulatedEIR") translateModel(Buildings.Fluid.Chillers.Examples.ElectricReformulatedEIR,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|chi.TSet|chi.TEvaEnt|chi.TEvaLvg|chi.TConEnt|chi.TConLvg|chi.PLR1|chi.PLR2|chi.CR|chi.COP",fileNamePrefix="Buildings_latest_Buildings.Fluid.Chillers.Examples.ElectricReformulatedEIR") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.009379/0.009379, allocations: 101.6 kB / 15.73 MB, free: 5.98 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.001352/0.001352, allocations: 194.2 kB / 16.67 MB, free: 5.918 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.44/1.44, allocations: 222.9 MB / 240.4 MB, free: 4.328 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo): time 2.862/2.862, allocations: 461.9 MB / 0.7348 GB, free: 14.62 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.002391/0.002391, allocations: 67.89 kB / 1.054 GB, free: 7.105 MB / 0.8106 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3426/0.345, allocations: 157.4 MB / 1.208 GB, free: 9.613 MB / 0.9669 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Chillers.Examples.ElectricReformulatedEIR): time 0.894/1.239, allocations: 60.61 MB / 1.267 GB, free: 3.867 MB / 0.9981 GB Notification: Performance of NFInst.instExpressions: time 0.02226/1.261, allocations: 13.23 MB / 1.28 GB, free: 1.566 MB / 0.9981 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.004318/1.266, allocations: 68.16 kB / 1.28 GB, free: 1.543 MB / 0.9981 GB Notification: Performance of NFTyping.typeComponents: time 0.003965/1.27, allocations: 0.9734 MB / 1.281 GB, free: 1.113 MB / 0.9981 GB Notification: Performance of NFTyping.typeBindings: time 0.01124/1.281, allocations: 2.318 MB / 1.283 GB, free: 120 kB / 0.9981 GB Notification: Performance of NFTyping.typeClassSections: time 0.00728/1.288, allocations: 1.595 MB / 1.285 GB, free: 15.8 MB / 1.014 GB Notification: Performance of NFFlatten.flatten: time 0.01219/1.301, allocations: 4.321 MB / 1.289 GB, free: 14.89 MB / 1.014 GB Notification: Performance of NFFlatten.resolveConnections: time 0.004293/1.305, allocations: 1.345 MB / 1.29 GB, free: 14.66 MB / 1.014 GB Notification: Performance of NFEvalConstants.evaluate: time 0.006976/1.312, allocations: 1.61 MB / 1.292 GB, free: 14.24 MB / 1.014 GB Notification: Performance of NFSimplifyModel.simplify: time 0.004247/1.316, allocations: 1.204 MB / 1.293 GB, free: 13.87 MB / 1.014 GB Notification: Performance of NFPackage.collectConstants: time 0.001059/1.317, allocations: 146.2 kB / 1.293 GB, free: 13.86 MB / 1.014 GB Notification: Performance of NFFlatten.collectFunctions: time 0.006833/1.324, allocations: 1.506 MB / 1.295 GB, free: 13.58 MB / 1.014 GB Notification: Performance of NFScalarize.scalarize: time 0.001349/1.326, allocations: 433.4 kB / 1.295 GB, free: 13.33 MB / 1.014 GB Notification: Performance of NFVerifyModel.verify: time 0.003917/1.329, allocations: 0.9198 MB / 1.296 GB, free: 12.77 MB / 1.014 GB Notification: Performance of NFConvertDAE.convert: time 0.01137/1.341, allocations: 2.826 MB / 1.299 GB, free: 11.7 MB / 1.014 GB Notification: Performance of FrontEnd - DAE generated: time 1.173e-05/1.341, allocations: 5.031 kB / 1.299 GB, free: 11.7 MB / 1.014 GB Notification: Performance of FrontEnd: time 3.046e-06/1.341, allocations: 0 / 1.299 GB, free: 11.7 MB / 1.014 GB Notification: Performance of Transformations before backend: time 0.0001564/1.341, allocations: 0 / 1.299 GB, free: 11.7 MB / 1.014 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.009696/1.351, allocations: 2.221 MB / 1.301 GB, free: 10.24 MB / 1.014 GB Notification: Performance of prepare preOptimizeDAE: time 5.73e-05/1.351, allocations: 13.28 kB / 1.301 GB, free: 10.24 MB / 1.014 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004369/1.355, allocations: 0.5503 MB / 1.301 GB, free: 10.12 MB / 1.014 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004409/1.36, allocations: 1.466 MB / 1.303 GB, free: 9.277 MB / 1.014 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002121/1.36, allocations: 152.3 kB / 1.303 GB, free: 9.176 MB / 1.014 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002255/1.36, allocations: 102 kB / 1.303 GB, free: 9.145 MB / 1.014 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003745/1.364, allocations: 1.327 MB / 1.304 GB, free: 8.625 MB / 1.014 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.411e-05/1.364, allocations: 1.891 kB / 1.304 GB, free: 8.625 MB / 1.014 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001211/1.364, allocations: 37.88 kB / 1.304 GB, free: 8.598 MB / 1.014 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.583e-05/1.364, allocations: 28.19 kB / 1.304 GB, free: 8.594 MB / 1.014 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004147/1.368, allocations: 1.346 MB / 1.306 GB, free: 8.199 MB / 1.014 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.01033/1.379, allocations: 5.486 MB / 1.311 GB, free: 4.457 MB / 1.014 GB Notification: Performance of preOpt comSubExp (simulation): time 0.002571/1.381, allocations: 1.052 MB / 1.312 GB, free: 3.977 MB / 1.014 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001671/1.383, allocations: 0.603 MB / 1.313 GB, free: 3.801 MB / 1.014 GB Notification: Performance of preOpt evalFunc (simulation): time 0.001088/1.384, allocations: 1.239 MB / 1.314 GB, free: 2.371 MB / 1.014 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.002164/1.386, allocations: 0.6589 MB / 1.315 GB, free: 2.168 MB / 1.014 GB Notification: Performance of pre-optimization done (n=70): time 5.049e-06/1.386, allocations: 4 kB / 1.315 GB, free: 2.164 MB / 1.014 GB Notification: Performance of matching and sorting (n=70): time 0.00655/1.393, allocations: 1.712 MB / 1.316 GB, free: 1.656 MB / 1.014 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.351e-05/1.393, allocations: 63.84 kB / 1.316 GB, free: 1.59 MB / 1.014 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002691/1.396, allocations: 1.342 MB / 1.318 GB, free: 1.078 MB / 1.014 GB Notification: Performance of collectPreVariables (initialization): time 0.0001944/1.396, allocations: 44.58 kB / 1.318 GB, free: 1.035 MB / 1.014 GB Notification: Performance of collectInitialEqns (initialization): time 0.0009109/1.397, allocations: 0.6752 MB / 1.318 GB, free: 0.5 MB / 1.014 GB Notification: Performance of collectInitialBindings (initialization): time 0.0004016/1.397, allocations: 242.9 kB / 1.319 GB, free: 316 kB / 1.014 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004482/1.398, allocations: 179.5 kB / 1.319 GB, free: 232 kB / 1.014 GB Notification: Performance of setup shared object (initialization): time 0.0001769/1.398, allocations: 339.2 kB / 1.319 GB, free: 15.91 MB / 1.029 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001685/1.399, allocations: 0.5302 MB / 1.32 GB, free: 15.76 MB / 1.029 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001901/1.401, allocations: 0.7583 MB / 1.32 GB, free: 15.37 MB / 1.029 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.003252/1.405, allocations: 1.159 MB / 1.321 GB, free: 14.89 MB / 1.029 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.226e-06/1.405, allocations: 5.312 kB / 1.321 GB, free: 14.89 MB / 1.029 GB Notification: Performance of matching and sorting (n=98) (initialization): time 0.004569/1.409, allocations: 1.422 MB / 1.323 GB, free: 14.39 MB / 1.029 GB Notification: Performance of prepare postOptimizeDAE: time 4.735e-05/1.409, allocations: 39.52 kB / 1.323 GB, free: 14.36 MB / 1.029 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.784e-05/1.409, allocations: 8.531 kB / 1.323 GB, free: 14.36 MB / 1.029 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.742e-05/1.409, allocations: 6.875 kB / 1.323 GB, free: 14.36 MB / 1.029 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001244/1.411, allocations: 261.7 kB / 1.323 GB, free: 14.33 MB / 1.029 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.624e-05/1.411, allocations: 7.938 kB / 1.323 GB, free: 14.33 MB / 1.029 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001877/1.413, allocations: 186.6 kB / 1.323 GB, free: 14.27 MB / 1.029 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001124/1.413, allocations: 41.09 kB / 1.323 GB, free: 14.26 MB / 1.029 GB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.002191/1.415, allocations: 0.7991 MB / 1.324 GB, free: 13.93 MB / 1.029 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.001747/1.417, allocations: 0.7589 MB / 1.325 GB, free: 13.54 MB / 1.029 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.002962/1.42, allocations: 1.148 MB / 1.326 GB, free: 13.07 MB / 1.029 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 4.178e-06/1.42, allocations: 1.062 kB / 1.326 GB, free: 13.07 MB / 1.029 GB Notification: Performance of matching and sorting (n=98) (initialization_lambda0): time 0.004269/1.424, allocations: 1.417 MB / 1.327 GB, free: 12.57 MB / 1.029 GB Notification: Performance of prepare postOptimizeDAE: time 4.489e-05/1.424, allocations: 32.61 kB / 1.327 GB, free: 12.54 MB / 1.029 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.038e-05/1.424, allocations: 3.375 kB / 1.327 GB, free: 12.54 MB / 1.029 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.434e-05/1.424, allocations: 10.41 kB / 1.327 GB, free: 12.54 MB / 1.029 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001296/1.425, allocations: 258.5 kB / 1.328 GB, free: 12.52 MB / 1.029 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.649e-05/1.425, allocations: 10.09 kB / 1.328 GB, free: 12.51 MB / 1.029 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002235/1.428, allocations: 170.7 kB / 1.328 GB, free: 12.47 MB / 1.029 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001332/1.428, allocations: 34.19 kB / 1.328 GB, free: 12.46 MB / 1.029 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.0005093/1.428, allocations: 242.9 kB / 1.328 GB, free: 12.24 MB / 1.029 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005269/1.429, allocations: 154.6 kB / 1.328 GB, free: 12.16 MB / 1.029 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004676/1.433, allocations: 1.476 MB / 1.33 GB, free: 11.66 MB / 1.029 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.216e-05/1.433, allocations: 10.77 kB / 1.33 GB, free: 11.66 MB / 1.029 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.039e-05/1.434, allocations: 0 / 1.33 GB, free: 11.66 MB / 1.029 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.003569/1.437, allocations: 1.239 MB / 1.331 GB, free: 11.2 MB / 1.029 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.009364/1.446, allocations: 3.234 MB / 1.334 GB, free: 9.523 MB / 1.029 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.878e-05/1.447, allocations: 4.438 kB / 1.334 GB, free: 9.523 MB / 1.029 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001304/1.448, allocations: 223.2 kB / 1.334 GB, free: 9.453 MB / 1.029 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.359e-05/1.448, allocations: 11.22 kB / 1.334 GB, free: 9.449 MB / 1.029 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001161/1.448, allocations: 32.03 kB / 1.334 GB, free: 9.43 MB / 1.029 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.006e-05/1.448, allocations: 11.59 kB / 1.334 GB, free: 9.426 MB / 1.029 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.378e-06/1.448, allocations: 8.344 kB / 1.334 GB, free: 9.422 MB / 1.029 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006445/1.455, allocations: 2.241 MB / 1.337 GB, free: 8.18 MB / 1.029 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001397/1.456, allocations: 354.8 kB / 1.337 GB, free: 7.879 MB / 1.029 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006948/1.457, allocations: 17 kB / 1.337 GB, free: 7.871 MB / 1.029 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002178/1.459, allocations: 129.5 kB / 1.337 GB, free: 7.812 MB / 1.029 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002332/1.459, allocations: 74.64 kB / 1.337 GB, free: 7.77 MB / 1.029 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001616/1.459, allocations: 45.44 kB / 1.337 GB, free: 7.75 MB / 1.029 GB Notification: Performance of sorting global known variables: time 0.002523/1.462, allocations: 0.957 MB / 1.338 GB, free: 7.234 MB / 1.029 GB Notification: Performance of sort global known variables: time 4e-07/1.462, allocations: 0 / 1.338 GB, free: 7.234 MB / 1.029 GB Notification: Performance of remove unused functions: time 0.004917/1.467, allocations: 0.8174 MB / 1.339 GB, free: 7.055 MB / 1.029 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.002009/1.469, allocations: 0.5193 MB / 1.339 GB, free: 6.773 MB / 1.029 GB Notification: Performance of simCode: created initialization part: time 0.006343/1.475, allocations: 2.036 MB / 1.341 GB, free: 5.816 MB / 1.029 GB Notification: Performance of simCode: created event and clocks part: time 1.167e-05/1.475, allocations: 1.406 kB / 1.341 GB, free: 5.816 MB / 1.029 GB Notification: Performance of simCode: created simulation system equations: time 0.002057/1.477, allocations: 0.6872 MB / 1.342 GB, free: 5.508 MB / 1.029 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00534/1.483, allocations: 0.7533 MB / 1.343 GB, free: 5.105 MB / 1.029 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00849/1.491, allocations: 2.908 MB / 1.346 GB, free: 3.375 MB / 1.029 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001303/1.492, allocations: 1.25 MB / 1.347 GB, free: 2.422 MB / 1.029 GB Notification: Performance of simCode: alias equations: time 0.00255/1.495, allocations: 375.7 kB / 1.347 GB, free: 2.234 MB / 1.029 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007238/1.496, allocations: 122.5 kB / 1.347 GB, free: 2.211 MB / 1.029 GB Notification: Performance of SimCode: time 2.264e-06/1.496, allocations: 1.406 kB / 1.347 GB, free: 2.211 MB / 1.029 GB Notification: Performance of Templates: time 0.06458/1.56, allocations: 32.13 MB / 1.379 GB, free: 7.004 MB / 1.061 GB make -j1 -f Buildings_latest_Buildings.Fluid.Chillers.Examples.ElectricReformulatedEIR.makefile (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 & ./Buildings_latest_Buildings.Fluid.Chillers.Examples.ElectricReformulatedEIR -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Fluid.Chillers.Examples.ElectricReformulatedEIR.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Fluid.Chillers.Examples.ElectricReformulatedEIR_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Fluid_Chillers_Examples_ElectricReformulatedEIR.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Fluid.Chillers.Examples.ElectricReformulatedEIR.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches