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.009974/0.009974, allocations: 102.7 kB / 15.73 MB, free: 6.492 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.001897/0.001897, allocations: 192.6 kB / 16.67 MB, free: 6.379 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.439/1.439, allocations: 222.9 MB / 240.4 MB, free: 4.367 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo): time 2.949/2.949, allocations: 461.8 MB / 0.7348 GB, free: 14.72 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001445/0.001445, allocations: 63.91 kB / 1.054 GB, free: 7.156 MB / 0.8106 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3862/0.3876, allocations: 157.4 MB / 1.208 GB, free: 9.664 MB / 0.9669 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Chillers.Examples.ElectricReformulatedEIR): time 0.8704/1.258, allocations: 60.6 MB / 1.267 GB, free: 3.848 MB / 0.9981 GB Notification: Performance of NFInst.instExpressions: time 0.02007/1.278, allocations: 13.23 MB / 1.28 GB, free: 1.621 MB / 0.9981 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.003437/1.282, allocations: 70.59 kB / 1.28 GB, free: 1.594 MB / 0.9981 GB Notification: Performance of NFTyping.typeComponents: time 0.002915/1.285, allocations: 0.9767 MB / 1.281 GB, free: 1.16 MB / 0.9981 GB Notification: Performance of NFTyping.typeBindings: time 0.01064/1.295, allocations: 2.317 MB / 1.283 GB, free: 168 kB / 0.9981 GB Notification: Performance of NFTyping.typeClassSections: time 0.007399/1.303, allocations: 1.593 MB / 1.285 GB, free: 15.86 MB / 1.014 GB Notification: Performance of NFFlatten.flatten: time 0.01027/1.313, allocations: 4.326 MB / 1.289 GB, free: 14.94 MB / 1.014 GB Notification: Performance of NFFlatten.resolveConnections: time 0.002785/1.316, allocations: 1.346 MB / 1.29 GB, free: 14.71 MB / 1.014 GB Notification: Performance of NFEvalConstants.evaluate: time 0.005261/1.321, allocations: 1.606 MB / 1.292 GB, free: 14.3 MB / 1.014 GB Notification: Performance of NFSimplifyModel.simplify: time 0.002872/1.324, allocations: 1.202 MB / 1.293 GB, free: 13.92 MB / 1.014 GB Notification: Performance of NFPackage.collectConstants: time 0.0003547/1.324, allocations: 149.6 kB / 1.293 GB, free: 13.91 MB / 1.014 GB Notification: Performance of NFFlatten.collectFunctions: time 0.005179/1.33, allocations: 1.504 MB / 1.295 GB, free: 13.69 MB / 1.014 GB Notification: Performance of NFScalarize.scalarize: time 0.0006297/1.33, allocations: 437.9 kB / 1.295 GB, free: 13.43 MB / 1.014 GB Notification: Performance of NFVerifyModel.verify: time 0.001596/1.332, allocations: 0.9146 MB / 1.296 GB, free: 12.87 MB / 1.014 GB Notification: Performance of NFConvertDAE.convert: time 0.006856/1.339, allocations: 2.827 MB / 1.299 GB, free: 11.8 MB / 1.014 GB Notification: Performance of FrontEnd - DAE generated: time 8.406e-06/1.339, allocations: 4 kB / 1.299 GB, free: 11.8 MB / 1.014 GB Notification: Performance of FrontEnd: time 1.693e-06/1.339, allocations: 5.062 kB / 1.299 GB, free: 11.8 MB / 1.014 GB Notification: Performance of Transformations before backend: time 3.104e-05/1.339, allocations: 0 / 1.299 GB, free: 11.8 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.005401/1.344, allocations: 2.224 MB / 1.301 GB, free: 10.34 MB / 1.014 GB Notification: Performance of prepare preOptimizeDAE: time 4.605e-05/1.344, allocations: 9.031 kB / 1.301 GB, free: 10.34 MB / 1.014 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004016/1.348, allocations: 0.5506 MB / 1.301 GB, free: 10.22 MB / 1.014 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002984/1.351, allocations: 1.466 MB / 1.303 GB, free: 9.379 MB / 1.014 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001854/1.351, allocations: 148.8 kB / 1.303 GB, free: 9.281 MB / 1.014 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000193/1.352, allocations: 101.4 kB / 1.303 GB, free: 9.25 MB / 1.014 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00353/1.355, allocations: 1.332 MB / 1.304 GB, free: 8.727 MB / 1.014 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.858e-05/1.355, allocations: 1.094 kB / 1.304 GB, free: 8.727 MB / 1.014 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001116/1.355, allocations: 37.94 kB / 1.304 GB, free: 8.699 MB / 1.014 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.499e-05/1.355, allocations: 28.72 kB / 1.304 GB, free: 8.695 MB / 1.014 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00398/1.359, allocations: 1.35 MB / 1.306 GB, free: 8.297 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.008825/1.368, allocations: 5.481 MB / 1.311 GB, free: 4.559 MB / 1.014 GB Notification: Performance of preOpt comSubExp (simulation): time 0.002695/1.371, allocations: 1.063 MB / 1.312 GB, free: 4.07 MB / 1.014 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001688/1.373, allocations: 0.5935 MB / 1.313 GB, free: 3.902 MB / 1.014 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0009986/1.374, allocations: 1.239 MB / 1.314 GB, free: 2.473 MB / 1.014 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.002065/1.376, allocations: 0.6623 MB / 1.315 GB, free: 2.266 MB / 1.014 GB Notification: Performance of pre-optimization done (n=70): time 3.026e-06/1.376, allocations: 0 / 1.315 GB, free: 2.266 MB / 1.014 GB Notification: Performance of matching and sorting (n=70): time 0.00583/1.382, allocations: 1.711 MB / 1.316 GB, free: 1.758 MB / 1.014 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.089e-05/1.382, allocations: 64.59 kB / 1.316 GB, free: 1.691 MB / 1.014 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003036/1.385, allocations: 1.343 MB / 1.318 GB, free: 1.18 MB / 1.014 GB Notification: Performance of collectPreVariables (initialization): time 0.0001248/1.385, allocations: 43.05 kB / 1.318 GB, free: 1.137 MB / 1.014 GB Notification: Performance of collectInitialEqns (initialization): time 0.0008556/1.386, allocations: 0.6789 MB / 1.318 GB, free: 0.5977 MB / 1.014 GB Notification: Performance of collectInitialBindings (initialization): time 0.0003398/1.386, allocations: 240.1 kB / 1.319 GB, free: 420 kB / 1.014 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004403/1.386, allocations: 179.4 kB / 1.319 GB, free: 336 kB / 1.014 GB Notification: Performance of setup shared object (initialization): time 0.0001714/1.387, allocations: 338.7 kB / 1.319 GB, free: 8 kB / 1.014 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001844/1.389, allocations: 0.5354 MB / 1.32 GB, free: 15.86 MB / 1.029 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002147/1.391, allocations: 0.7564 MB / 1.32 GB, free: 15.47 MB / 1.029 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.003571/1.394, allocations: 1.159 MB / 1.321 GB, free: 14.99 MB / 1.029 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.185e-06/1.394, allocations: 1.312 kB / 1.321 GB, free: 14.99 MB / 1.029 GB Notification: Performance of matching and sorting (n=98) (initialization): time 0.004404/1.399, allocations: 1.425 MB / 1.323 GB, free: 14.5 MB / 1.029 GB Notification: Performance of prepare postOptimizeDAE: time 5.206e-05/1.399, allocations: 32.61 kB / 1.323 GB, free: 14.46 MB / 1.029 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.722e-05/1.399, allocations: 11.5 kB / 1.323 GB, free: 14.46 MB / 1.029 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.949e-05/1.399, allocations: 7.688 kB / 1.323 GB, free: 14.46 MB / 1.029 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001333/1.4, allocations: 255.8 kB / 1.323 GB, free: 14.43 MB / 1.029 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.712e-05/1.4, allocations: 7.188 kB / 1.323 GB, free: 14.43 MB / 1.029 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002101/1.402, allocations: 186.6 kB / 1.323 GB, free: 14.37 MB / 1.029 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001394/1.402, allocations: 42.06 kB / 1.323 GB, free: 14.36 MB / 1.029 GB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.00222/1.405, allocations: 0.8006 MB / 1.324 GB, free: 14.04 MB / 1.029 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.001951/1.407, allocations: 0.7571 MB / 1.325 GB, free: 13.65 MB / 1.029 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.003429/1.41, allocations: 1.148 MB / 1.326 GB, free: 13.17 MB / 1.029 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 8.385e-06/1.41, allocations: 1.344 kB / 1.326 GB, free: 13.17 MB / 1.029 GB Notification: Performance of matching and sorting (n=98) (initialization_lambda0): time 0.004395/1.415, allocations: 1.416 MB / 1.327 GB, free: 12.68 MB / 1.029 GB Notification: Performance of prepare postOptimizeDAE: time 4.473e-05/1.415, allocations: 35.47 kB / 1.327 GB, free: 12.65 MB / 1.029 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.988e-06/1.415, allocations: 4.062 kB / 1.327 GB, free: 12.65 MB / 1.029 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.911e-05/1.415, allocations: 10.5 kB / 1.327 GB, free: 12.64 MB / 1.029 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001264/1.416, allocations: 257.8 kB / 1.328 GB, free: 12.62 MB / 1.029 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.029e-05/1.416, allocations: 8.047 kB / 1.328 GB, free: 12.62 MB / 1.029 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002328/1.418, allocations: 169.5 kB / 1.328 GB, free: 12.57 MB / 1.029 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001529/1.418, allocations: 41.02 kB / 1.328 GB, free: 12.57 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.0005702/1.419, allocations: 235.5 kB / 1.328 GB, free: 12.34 MB / 1.029 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007185/1.42, allocations: 150.5 kB / 1.328 GB, free: 12.27 MB / 1.029 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005399/1.425, allocations: 1.49 MB / 1.33 GB, free: 11.76 MB / 1.029 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.845e-05/1.425, allocations: 8.875 kB / 1.33 GB, free: 11.76 MB / 1.029 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.214e-05/1.425, allocations: 0 / 1.33 GB, free: 11.76 MB / 1.029 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.00361/1.429, allocations: 1.236 MB / 1.331 GB, free: 11.3 MB / 1.029 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.009122/1.438, allocations: 3.234 MB / 1.334 GB, free: 9.598 MB / 1.029 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.328e-05/1.438, allocations: 9.031 kB / 1.334 GB, free: 9.594 MB / 1.029 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001207/1.439, allocations: 224.2 kB / 1.334 GB, free: 9.523 MB / 1.029 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.658e-05/1.439, allocations: 10.59 kB / 1.334 GB, free: 9.52 MB / 1.029 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001021/1.439, allocations: 28.11 kB / 1.334 GB, free: 9.504 MB / 1.029 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.939e-05/1.439, allocations: 10.58 kB / 1.334 GB, free: 9.5 MB / 1.029 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.121e-05/1.439, allocations: 9 kB / 1.334 GB, free: 9.496 MB / 1.029 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006514/1.446, allocations: 2.241 MB / 1.337 GB, free: 8.254 MB / 1.029 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001168/1.447, allocations: 359.1 kB / 1.337 GB, free: 7.949 MB / 1.029 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005612/1.448, allocations: 17.25 kB / 1.337 GB, free: 7.941 MB / 1.029 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00178/1.449, allocations: 122.3 kB / 1.337 GB, free: 7.891 MB / 1.029 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002092/1.45, allocations: 77.72 kB / 1.337 GB, free: 7.844 MB / 1.029 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001514/1.45, allocations: 42.06 kB / 1.337 GB, free: 7.828 MB / 1.029 GB Notification: Performance of sorting global known variables: time 0.002306/1.452, allocations: 0.9562 MB / 1.338 GB, free: 7.312 MB / 1.029 GB Notification: Performance of sort global known variables: time 3.01e-07/1.452, allocations: 4.75 kB / 1.338 GB, free: 7.309 MB / 1.029 GB Notification: Performance of remove unused functions: time 0.004235/1.456, allocations: 0.8128 MB / 1.339 GB, free: 7.133 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.002003/1.458, allocations: 0.5195 MB / 1.339 GB, free: 6.848 MB / 1.029 GB Notification: Performance of simCode: created initialization part: time 0.00676/1.465, allocations: 2.028 MB / 1.341 GB, free: 5.898 MB / 1.029 GB Notification: Performance of simCode: created event and clocks part: time 1.037e-05/1.465, allocations: 1.375 kB / 1.341 GB, free: 5.898 MB / 1.029 GB Notification: Performance of simCode: created simulation system equations: time 0.002197/1.467, allocations: 0.691 MB / 1.342 GB, free: 5.586 MB / 1.029 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005718/1.473, allocations: 0.7651 MB / 1.343 GB, free: 5.176 MB / 1.029 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01129/1.485, allocations: 2.901 MB / 1.346 GB, free: 3.453 MB / 1.029 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002114/1.487, allocations: 1.245 MB / 1.347 GB, free: 2.508 MB / 1.029 GB Notification: Performance of simCode: alias equations: time 0.003371/1.49, allocations: 375.2 kB / 1.347 GB, free: 2.32 MB / 1.029 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0009337/1.491, allocations: 132.2 kB / 1.347 GB, free: 2.285 MB / 1.029 GB Notification: Performance of SimCode: time 2.003e-06/1.491, allocations: 4 kB / 1.347 GB, free: 2.281 MB / 1.029 GB Notification: Performance of Templates: time 0.06381/1.555, allocations: 32.74 MB / 1.379 GB, free: 6.504 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