Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_10_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 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.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_10_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_10_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.008215/0.008215, allocations: 105.4 kB / 15.74 MB, free: 6.008 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.001788/0.001788, allocations: 188.5 kB / 16.67 MB, free: 5.926 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.467/1.467, allocations: 222.9 MB / 240.4 MB, free: 15.07 MB / 206.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.554/2.554, allocations: 437 MB / 0.7105 GB, free: 4.41 MB / 0.5762 GB Notification: Performance of FrontEnd - loaded program: time 0.001305/0.001305, allocations: 60.12 kB / 1.019 GB, free: 9.414 MB / 0.795 GB Notification: Performance of FrontEnd - Absyn->SCode: time 1.015/1.016, allocations: 151.6 MB / 1.167 GB, free: 3.875 MB / 0.8887 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Chillers.Examples.ElectricReformulatedEIR): time 0.06442/1.08, allocations: 60.62 MB / 1.226 GB, free: 7.039 MB / 0.9512 GB Notification: Performance of NFInst.instExpressions: time 0.0214/1.102, allocations: 13.24 MB / 1.239 GB, free: 9.762 MB / 0.9669 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.003502/1.105, allocations: 71.56 kB / 1.239 GB, free: 9.691 MB / 0.9669 GB Notification: Performance of NFTyping.typeComponents: time 0.003142/1.109, allocations: 0.9821 MB / 1.24 GB, free: 8.703 MB / 0.9669 GB Notification: Performance of NFTyping.typeBindings: time 0.007332/1.116, allocations: 2.437 MB / 1.242 GB, free: 6.258 MB / 0.9669 GB Notification: Performance of NFTyping.typeClassSections: time 0.004283/1.12, allocations: 1.592 MB / 1.244 GB, free: 4.676 MB / 0.9669 GB Notification: Performance of NFFlatten.flatten: time 0.006229/1.127, allocations: 4.337 MB / 1.248 GB, free: 336 kB / 0.9669 GB Notification: Performance of NFFlatten.resolveConnections: time 0.002289/1.129, allocations: 1.343 MB / 1.249 GB, free: 14.96 MB / 0.9825 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0045/1.133, allocations: 1.608 MB / 1.251 GB, free: 13.35 MB / 0.9825 GB Notification: Performance of NFSimplifyModel.simplify: time 0.002404/1.136, allocations: 1.202 MB / 1.252 GB, free: 12.14 MB / 0.9825 GB Notification: Performance of NFPackage.collectConstants: time 0.0004941/1.136, allocations: 140 kB / 1.252 GB, free: 12 MB / 0.9825 GB Notification: Performance of NFFlatten.collectFunctions: time 0.004563/1.141, allocations: 1.513 MB / 1.254 GB, free: 10.49 MB / 0.9825 GB Notification: Performance of NFScalarize.scalarize: time 0.0008675/1.142, allocations: 434.3 kB / 1.254 GB, free: 10.06 MB / 0.9825 GB Notification: Performance of NFVerifyModel.verify: time 0.002274/1.144, allocations: 0.9173 MB / 1.255 GB, free: 9.141 MB / 0.9825 GB Notification: Performance of NFConvertDAE.convert: time 0.006462/1.151, allocations: 2.841 MB / 1.258 GB, free: 6.293 MB / 0.9825 GB Notification: Performance of FrontEnd - DAE generated: time 7.164e-06/1.151, allocations: 0 / 1.258 GB, free: 6.293 MB / 0.9825 GB Notification: Performance of FrontEnd: time 2.624e-06/1.151, allocations: 0 / 1.258 GB, free: 6.293 MB / 0.9825 GB Notification: Performance of Transformations before backend: time 2.97e-05/1.151, allocations: 0 / 1.258 GB, free: 6.293 MB / 0.9825 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.004555/1.155, allocations: 2.288 MB / 1.26 GB, free: 3.934 MB / 0.9825 GB Notification: Performance of prepare preOptimizeDAE: time 4.659e-05/1.155, allocations: 8.922 kB / 1.26 GB, free: 3.926 MB / 0.9825 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003433/1.159, allocations: 0.5732 MB / 1.261 GB, free: 3.352 MB / 0.9825 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002873/1.162, allocations: 1.474 MB / 1.262 GB, free: 1.828 MB / 0.9825 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001775/1.162, allocations: 153.3 kB / 1.262 GB, free: 1.664 MB / 0.9825 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001757/1.162, allocations: 100 kB / 1.262 GB, free: 1.566 MB / 0.9825 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002993/1.165, allocations: 1.338 MB / 1.263 GB, free: 200 kB / 0.9825 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.769e-05/1.165, allocations: 0 / 1.263 GB, free: 200 kB / 0.9825 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001103/1.165, allocations: 36 kB / 1.264 GB, free: 164 kB / 0.9825 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.377e-05/1.165, allocations: 24 kB / 1.264 GB, free: 140 kB / 0.9825 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003721/1.169, allocations: 1.347 MB / 1.265 GB, free: 14.79 MB / 0.9981 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.008271/1.177, allocations: 5.499 MB / 1.27 GB, free: 8.941 MB / 0.9981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.002697/1.18, allocations: 1.067 MB / 1.271 GB, free: 7.832 MB / 0.9981 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001567/1.181, allocations: 0.6008 MB / 1.272 GB, free: 7.227 MB / 0.9981 GB Notification: Performance of preOpt evalFunc (simulation): time 0.001002/1.182, allocations: 1.232 MB / 1.273 GB, free: 5.719 MB / 0.9981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001845/1.184, allocations: 0.6666 MB / 1.274 GB, free: 5.043 MB / 0.9981 GB Notification: Performance of pre-optimization done (n=70): time 3.085e-06/1.184, allocations: 0 / 1.274 GB, free: 5.043 MB / 0.9981 GB Notification: Performance of matching and sorting (n=70): time 0.005632/1.19, allocations: 1.716 MB / 1.275 GB, free: 3.32 MB / 0.9981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.12e-05/1.19, allocations: 63.97 kB / 1.275 GB, free: 3.246 MB / 0.9981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002067/1.192, allocations: 1.344 MB / 1.277 GB, free: 1.895 MB / 0.9981 GB Notification: Performance of collectPreVariables (initialization): time 0.0001039/1.192, allocations: 45.7 kB / 1.277 GB, free: 1.844 MB / 0.9981 GB Notification: Performance of collectInitialEqns (initialization): time 0.000685/1.193, allocations: 0.6787 MB / 1.277 GB, free: 1.156 MB / 0.9981 GB Notification: Performance of collectInitialBindings (initialization): time 0.000248/1.193, allocations: 257.8 kB / 1.278 GB, free: 0.9023 MB / 0.9981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003292/1.194, allocations: 174.5 kB / 1.278 GB, free: 0.7266 MB / 0.9981 GB Notification: Performance of setup shared object (initialization): time 0.0001553/1.194, allocations: 341.9 kB / 1.278 GB, free: 396 kB / 0.9981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001549/1.195, allocations: 0.5357 MB / 1.279 GB, free: 15.84 MB / 1.014 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001756/1.197, allocations: 0.7478 MB / 1.279 GB, free: 15.02 MB / 1.014 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.003196/1.2, allocations: 1.156 MB / 1.281 GB, free: 13.81 MB / 1.014 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.949e-06/1.2, allocations: 7.938 kB / 1.281 GB, free: 13.8 MB / 1.014 GB Notification: Performance of matching and sorting (n=98) (initialization): time 0.004008/1.204, allocations: 1.435 MB / 1.282 GB, free: 12.35 MB / 1.014 GB Notification: Performance of prepare postOptimizeDAE: time 4.626e-05/1.204, allocations: 37.64 kB / 1.282 GB, free: 12.31 MB / 1.014 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.229e-05/1.204, allocations: 4 kB / 1.282 GB, free: 12.3 MB / 1.014 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.422e-05/1.204, allocations: 4.312 kB / 1.282 GB, free: 12.3 MB / 1.014 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001242/1.206, allocations: 263.6 kB / 1.282 GB, free: 12.04 MB / 1.014 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.569e-05/1.206, allocations: 8 kB / 1.282 GB, free: 12.04 MB / 1.014 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001493/1.207, allocations: 191.2 kB / 1.282 GB, free: 11.85 MB / 1.014 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.33e-05/1.207, allocations: 39.98 kB / 1.283 GB, free: 11.81 MB / 1.014 GB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.002051/1.209, allocations: 0.7985 MB / 1.283 GB, free: 11 MB / 1.014 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.001728/1.211, allocations: 0.7478 MB / 1.284 GB, free: 10.18 MB / 1.014 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.003069/1.214, allocations: 1.152 MB / 1.285 GB, free: 8.973 MB / 1.014 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 3.025e-06/1.214, allocations: 4 kB / 1.285 GB, free: 8.969 MB / 1.014 GB Notification: Performance of matching and sorting (n=98) (initialization_lambda0): time 0.003936/1.218, allocations: 1.424 MB / 1.287 GB, free: 7.531 MB / 1.014 GB Notification: Performance of prepare postOptimizeDAE: time 3.461e-05/1.218, allocations: 33.7 kB / 1.287 GB, free: 7.492 MB / 1.014 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.482e-06/1.218, allocations: 4 kB / 1.287 GB, free: 7.488 MB / 1.014 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.184e-05/1.218, allocations: 7.938 kB / 1.287 GB, free: 7.48 MB / 1.014 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001266/1.219, allocations: 255.7 kB / 1.287 GB, free: 7.23 MB / 1.014 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.29e-05/1.219, allocations: 11.94 kB / 1.287 GB, free: 7.219 MB / 1.014 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001385/1.221, allocations: 171.5 kB / 1.287 GB, free: 7.051 MB / 1.014 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.521e-05/1.221, allocations: 43.97 kB / 1.287 GB, free: 7.008 MB / 1.014 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.0002784/1.221, allocations: 228 kB / 1.287 GB, free: 6.777 MB / 1.014 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002392/1.221, allocations: 166.9 kB / 1.287 GB, free: 6.613 MB / 1.014 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003897/1.225, allocations: 1.486 MB / 1.289 GB, free: 5.105 MB / 1.014 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.77e-05/1.225, allocations: 8 kB / 1.289 GB, free: 5.098 MB / 1.014 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.592e-06/1.225, allocations: 0 / 1.289 GB, free: 5.098 MB / 1.014 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.003128/1.229, allocations: 1.238 MB / 1.29 GB, free: 3.832 MB / 1.014 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006729/1.235, allocations: 3.239 MB / 1.293 GB, free: 456 kB / 1.014 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.064e-05/1.235, allocations: 4 kB / 1.293 GB, free: 452 kB / 1.014 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001131/1.237, allocations: 224 kB / 1.293 GB, free: 228 kB / 1.014 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.419e-05/1.237, allocations: 8 kB / 1.293 GB, free: 220 kB / 1.014 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.04e-05/1.237, allocations: 35.97 kB / 1.294 GB, free: 184 kB / 1.014 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.275e-05/1.237, allocations: 11.94 kB / 1.294 GB, free: 172 kB / 1.014 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.529e-06/1.237, allocations: 4 kB / 1.294 GB, free: 168 kB / 1.014 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005764/1.242, allocations: 2.252 MB / 1.296 GB, free: 13.84 MB / 1.029 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001015/1.243, allocations: 359.7 kB / 1.296 GB, free: 13.47 MB / 1.029 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000219/1.244, allocations: 20 kB / 1.296 GB, free: 13.45 MB / 1.029 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001283/1.245, allocations: 131.9 kB / 1.296 GB, free: 13.32 MB / 1.029 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001562/1.245, allocations: 72.36 kB / 1.296 GB, free: 13.25 MB / 1.029 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.882e-05/1.245, allocations: 39.97 kB / 1.296 GB, free: 13.21 MB / 1.029 GB Notification: Performance of sorting global known variables: time 0.001365/1.247, allocations: 0.9611 MB / 1.297 GB, free: 12.25 MB / 1.029 GB Notification: Performance of sort global known variables: time 5.31e-07/1.247, allocations: 0 / 1.297 GB, free: 12.25 MB / 1.029 GB Notification: Performance of remove unused functions: time 0.002145/1.249, allocations: 0.8148 MB / 1.298 GB, free: 11.43 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.001073/1.25, allocations: 0.5326 MB / 1.299 GB, free: 10.9 MB / 1.029 GB Notification: Performance of simCode: created initialization part: time 0.005473/1.255, allocations: 2.027 MB / 1.301 GB, free: 8.852 MB / 1.029 GB Notification: Performance of simCode: created event and clocks part: time 6.172e-06/1.255, allocations: 0 / 1.301 GB, free: 8.852 MB / 1.029 GB Notification: Performance of simCode: created simulation system equations: time 0.001954/1.257, allocations: 0.6913 MB / 1.301 GB, free: 8.164 MB / 1.029 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00354/1.261, allocations: 0.7594 MB / 1.302 GB, free: 7.422 MB / 1.029 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006139/1.267, allocations: 2.962 MB / 1.305 GB, free: 4.367 MB / 1.029 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008456/1.268, allocations: 1.249 MB / 1.306 GB, free: 3.09 MB / 1.029 GB Notification: Performance of simCode: alias equations: time 0.00155/1.269, allocations: 375.5 kB / 1.306 GB, free: 2.719 MB / 1.029 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003801/1.27, allocations: 127.4 kB / 1.307 GB, free: 2.594 MB / 1.029 GB Notification: Performance of SimCode: time 5.41e-07/1.27, allocations: 0 / 1.307 GB, free: 2.594 MB / 1.029 GB Notification: Performance of Templates: time 0.05896/1.329, allocations: 32.14 MB / 1.338 GB, free: 2.832 MB / 1.061 GB make -j1 -f Buildings_10_Buildings.Fluid.Chillers.Examples.ElectricReformulatedEIR.makefile (rm -f Buildings_10_Buildings.Fluid.Chillers.Examples.ElectricReformulatedEIR.pipe ; mkfifo Buildings_10_Buildings.Fluid.Chillers.Examples.ElectricReformulatedEIR.pipe ; head -c 1048576 < Buildings_10_Buildings.Fluid.Chillers.Examples.ElectricReformulatedEIR.pipe >> ../files/Buildings_10_Buildings.Fluid.Chillers.Examples.ElectricReformulatedEIR.sim & ./Buildings_10_Buildings.Fluid.Chillers.Examples.ElectricReformulatedEIR -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_10_Buildings.Fluid.Chillers.Examples.ElectricReformulatedEIR.pipe 2>&1) diffSimulationResults("Buildings_10_Buildings.Fluid.Chillers.Examples.ElectricReformulatedEIR_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_10.0.x/Buildings_Fluid_Chillers_Examples_ElectricReformulatedEIR.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_10_Buildings.Fluid.Chillers.Examples.ElectricReformulatedEIR.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches