Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_9_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 9.1.2-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.2-maint.9.1.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_9_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_9_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.001534/0.001534, allocations: 100.1 kB / 15.88 MB, free: 12 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.002374/0.002374, allocations: 199.4 kB / 16.79 MB, free: 6.809 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.447/1.447, allocations: 222.9 MB / 240.5 MB, free: 4.602 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.2-maint.9.1.x/package.mo): time 2.411/2.411, allocations: 390.2 MB / 0.6649 GB, free: 0.6406 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.001572/0.001572, allocations: 67.89 kB / 0.8125 GB, free: 14.88 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7183/0.7199, allocations: 140.4 MB / 0.9496 GB, free: 9.203 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Chillers.Examples.ElectricReformulatedEIR): time 0.06548/0.7854, allocations: 60.09 MB / 1.008 GB, free: 5.844 MB / 0.7637 GB Notification: Performance of NFInst.instExpressions: time 0.02172/0.8071, allocations: 13.27 MB / 1.021 GB, free: 8.539 MB / 0.7794 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.00391/0.8111, allocations: 67.56 kB / 1.021 GB, free: 8.473 MB / 0.7794 GB Notification: Performance of NFTyping.typeComponents: time 0.003533/0.8147, allocations: 0.8099 MB / 1.022 GB, free: 7.66 MB / 0.7794 GB Notification: Performance of NFTyping.typeBindings: time 0.00831/0.8231, allocations: 2.142 MB / 1.024 GB, free: 5.508 MB / 0.7794 GB Notification: Performance of NFTyping.typeClassSections: time 0.005842/0.8289, allocations: 1.4 MB / 1.026 GB, free: 4.121 MB / 0.7794 GB Notification: Performance of NFFlatten.flatten: time 0.008089/0.837, allocations: 5.527 MB / 1.031 GB, free: 14.58 MB / 0.795 GB Notification: Performance of NFFlatten.resolveConnections: time 0.002723/0.8398, allocations: 1.122 MB / 1.032 GB, free: 13.43 MB / 0.795 GB Notification: Performance of NFEvalConstants.evaluate: time 0.004334/0.8442, allocations: 1.353 MB / 1.033 GB, free: 12.07 MB / 0.795 GB Notification: Performance of NFSimplifyModel.simplify: time 0.002813/0.847, allocations: 1.194 MB / 1.035 GB, free: 10.87 MB / 0.795 GB Notification: Performance of NFPackage.collectConstants: time 0.0005946/0.8476, allocations: 79.94 kB / 1.035 GB, free: 10.79 MB / 0.795 GB Notification: Performance of NFFlatten.collectFunctions: time 0.004372/0.852, allocations: 1.388 MB / 1.036 GB, free: 9.398 MB / 0.795 GB Notification: Performance of NFScalarize.scalarize: time 0.0008435/0.8529, allocations: 362.4 kB / 1.036 GB, free: 9.043 MB / 0.795 GB Notification: Performance of NFVerifyModel.verify: time 0.002446/0.8553, allocations: 0.8431 MB / 1.037 GB, free: 8.195 MB / 0.795 GB Notification: Performance of NFConvertDAE.convert: time 0.004182/0.8595, allocations: 2.093 MB / 1.039 GB, free: 6.098 MB / 0.795 GB Notification: Performance of FrontEnd - DAE generated: time 7.274e-06/0.8596, allocations: 0 / 1.039 GB, free: 6.098 MB / 0.795 GB Notification: Performance of FrontEnd: time 1.583e-06/0.8596, allocations: 0 / 1.039 GB, free: 6.098 MB / 0.795 GB Notification: Performance of Transformations before backend: time 0.0001017/0.8597, allocations: 0 / 1.039 GB, free: 6.098 MB / 0.795 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 230 * Number of variables: 230 Notification: Performance of Generate backend data structure: time 0.006461/0.8662, allocations: 2.201 MB / 1.041 GB, free: 3.832 MB / 0.795 GB Notification: Performance of prepare preOptimizeDAE: time 5.601e-05/0.8662, allocations: 12.03 kB / 1.041 GB, free: 3.82 MB / 0.795 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004087/0.8703, allocations: 0.6034 MB / 1.042 GB, free: 3.215 MB / 0.795 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003595/0.8739, allocations: 1.407 MB / 1.043 GB, free: 1.758 MB / 0.795 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002501/0.8742, allocations: 141.4 kB / 1.043 GB, free: 1.605 MB / 0.795 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003415/0.8746, allocations: 107.9 kB / 1.044 GB, free: 1.5 MB / 0.795 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003766/0.8784, allocations: 1.315 MB / 1.045 GB, free: 156 kB / 0.795 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.752e-05/0.8784, allocations: 0 / 1.045 GB, free: 156 kB / 0.795 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001392/0.8786, allocations: 40 kB / 1.045 GB, free: 116 kB / 0.795 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.184e-05/0.8787, allocations: 20 kB / 1.045 GB, free: 96 kB / 0.795 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003991/0.8827, allocations: 1.331 MB / 1.046 GB, free: 14.76 MB / 0.8106 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.009646/0.8923, allocations: 5.371 MB / 1.051 GB, free: 9.035 MB / 0.8106 GB Notification: Performance of preOpt comSubExp (simulation): time 0.002702/0.8951, allocations: 1.055 MB / 1.052 GB, free: 7.938 MB / 0.8106 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001681/0.8968, allocations: 0.6015 MB / 1.053 GB, free: 7.332 MB / 0.8106 GB Notification: Performance of preOpt evalFunc (simulation): time 0.00114/0.8979, allocations: 1.248 MB / 1.054 GB, free: 5.809 MB / 0.8106 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001966/0.8999, allocations: 0.6588 MB / 1.055 GB, free: 5.137 MB / 0.8106 GB Notification: Performance of pre-optimization done (n=69): time 3.537e-06/0.8999, allocations: 0 / 1.055 GB, free: 5.137 MB / 0.8106 GB Notification: Performance of matching and sorting (n=69): time 0.005545/0.9055, allocations: 1.703 MB / 1.057 GB, free: 3.426 MB / 0.8106 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.215e-05/0.9056, allocations: 59.97 kB / 1.057 GB, free: 3.355 MB / 0.8106 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002458/0.908, allocations: 1.316 MB / 1.058 GB, free: 2.031 MB / 0.8106 GB Notification: Performance of collectPreVariables (initialization): time 0.0001367/0.9082, allocations: 45.7 kB / 1.058 GB, free: 1.98 MB / 0.8106 GB Notification: Performance of collectInitialEqns (initialization): time 0.000711/0.9089, allocations: 0.67 MB / 1.059 GB, free: 1.301 MB / 0.8106 GB Notification: Performance of collectInitialBindings (initialization): time 0.0003141/0.9092, allocations: 236.6 kB / 1.059 GB, free: 1.066 MB / 0.8106 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003786/0.9096, allocations: 170.5 kB / 1.059 GB, free: 0.8945 MB / 0.8106 GB Notification: Performance of setup shared object (initialization): time 0.0001515/0.9098, allocations: 338 kB / 1.059 GB, free: 0.5586 MB / 0.8106 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001676/0.9115, allocations: 0.5317 MB / 1.06 GB, free: 24 kB / 0.8106 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001913/0.9134, allocations: 0.7469 MB / 1.061 GB, free: 15.2 MB / 0.8262 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.003257/0.9167, allocations: 1.143 MB / 1.062 GB, free: 14.01 MB / 0.8262 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.724e-06/0.9167, allocations: 0 / 1.062 GB, free: 14.01 MB / 0.8262 GB Notification: Performance of matching and sorting (n=96) (initialization): time 0.00443/0.9211, allocations: 1.411 MB / 1.063 GB, free: 12.59 MB / 0.8262 GB Notification: Performance of prepare postOptimizeDAE: time 6.074e-05/0.9212, allocations: 33.7 kB / 1.063 GB, free: 12.55 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.093e-05/0.9212, allocations: 320 / 1.063 GB, free: 12.55 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.988e-05/0.9213, allocations: 19.88 kB / 1.063 GB, free: 12.53 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00132/0.9226, allocations: 259.6 kB / 1.063 GB, free: 12.27 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.309e-05/0.9226, allocations: 4 kB / 1.063 GB, free: 12.27 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002012/0.9247, allocations: 222.9 kB / 1.064 GB, free: 12.05 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001253/0.9248, allocations: 35.98 kB / 1.064 GB, free: 12.02 MB / 0.8262 GB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.002258/0.9271, allocations: 0.7985 MB / 1.064 GB, free: 11.21 MB / 0.8262 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.001866/0.929, allocations: 0.743 MB / 1.065 GB, free: 10.39 MB / 0.8262 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.003633/0.9326, allocations: 1.139 MB / 1.066 GB, free: 9.207 MB / 0.8262 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 5.991e-06/0.9326, allocations: 0 / 1.066 GB, free: 9.207 MB / 0.8262 GB Notification: Performance of matching and sorting (n=96) (initialization_lambda0): time 0.006234/0.9389, allocations: 1.399 MB / 1.068 GB, free: 7.793 MB / 0.8262 GB Notification: Performance of prepare postOptimizeDAE: time 7.588e-05/0.939, allocations: 37.69 kB / 1.068 GB, free: 7.75 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.057e-05/0.939, allocations: 0 / 1.068 GB, free: 7.75 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.945e-05/0.9391, allocations: 8 kB / 1.068 GB, free: 7.742 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001845/0.9409, allocations: 255.7 kB / 1.068 GB, free: 7.492 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.304e-05/0.941, allocations: 8 kB / 1.068 GB, free: 7.484 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003034/0.944, allocations: 207.3 kB / 1.068 GB, free: 7.281 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002437/0.9443, allocations: 39.92 kB / 1.068 GB, free: 7.242 MB / 0.8262 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 13 * Number of states: 0 () * Number of discrete variables: 6 (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 (95): * Single equations (assignments): 94 * 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.0007151/0.945, allocations: 236 kB / 1.068 GB, free: 7.004 MB / 0.8262 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.00107/0.9461, allocations: 154.1 kB / 1.068 GB, free: 6.852 MB / 0.8262 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006487/0.9526, allocations: 1.477 MB / 1.07 GB, free: 5.352 MB / 0.8262 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.84e-05/0.9527, allocations: 8 kB / 1.07 GB, free: 5.344 MB / 0.8262 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.263e-05/0.9527, allocations: 0 / 1.07 GB, free: 5.344 MB / 0.8262 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.005053/0.9578, allocations: 1.23 MB / 1.071 GB, free: 4.082 MB / 0.8262 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01254/0.9704, allocations: 3.21 MB / 1.074 GB, free: 0.7148 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.395e-05/0.9704, allocations: 4 kB / 1.074 GB, free: 0.7109 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002303/0.9727, allocations: 224.2 kB / 1.074 GB, free: 0.4922 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.645e-05/0.9728, allocations: 7.938 kB / 1.074 GB, free: 496 kB / 0.8262 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001418/0.973, allocations: 27.98 kB / 1.075 GB, free: 468 kB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.888e-05/0.973, allocations: 8 kB / 1.075 GB, free: 460 kB / 0.8262 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.057e-05/0.973, allocations: 7.938 kB / 1.075 GB, free: 452 kB / 0.8262 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01169/0.9847, allocations: 2.232 MB / 1.077 GB, free: 14.13 MB / 0.8419 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001602/0.9864, allocations: 354.9 kB / 1.077 GB, free: 13.77 MB / 0.8419 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005423/0.987, allocations: 23.94 kB / 1.077 GB, free: 13.74 MB / 0.8419 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002978/0.99, allocations: 159.8 kB / 1.077 GB, free: 13.59 MB / 0.8419 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002961/0.9903, allocations: 68.36 kB / 1.077 GB, free: 13.52 MB / 0.8419 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001945/0.9905, allocations: 43.97 kB / 1.077 GB, free: 13.48 MB / 0.8419 GB Notification: Performance of sorting global known variables: time 0.00284/0.9933, allocations: 0.9451 MB / 1.078 GB, free: 12.54 MB / 0.8419 GB Notification: Performance of sort global known variables: time 5.51e-07/0.9934, allocations: 0 / 1.078 GB, free: 12.54 MB / 0.8419 GB Notification: Performance of remove unused functions: time 0.004559/0.9979, allocations: 0.7875 MB / 1.079 GB, free: 11.75 MB / 0.8419 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 (73): * Single equations (assignments): 65 * 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.002139/1, allocations: 0.5187 MB / 1.08 GB, free: 11.23 MB / 0.8419 GB Notification: Performance of simCode: created initialization part: time 0.01123/1.011, allocations: 1.996 MB / 1.081 GB, free: 9.207 MB / 0.8419 GB Notification: Performance of simCode: created event and clocks part: time 1.856e-05/1.011, allocations: 7.938 kB / 1.081 GB, free: 9.199 MB / 0.8419 GB Notification: Performance of simCode: created simulation system equations: time 0.003744/1.015, allocations: 0.664 MB / 1.082 GB, free: 8.539 MB / 0.8419 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.007983/1.023, allocations: 0.7553 MB / 1.083 GB, free: 7.793 MB / 0.8419 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01115/1.034, allocations: 3.301 MB / 1.086 GB, free: 4.398 MB / 0.8419 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001672/1.036, allocations: 1.242 MB / 1.087 GB, free: 3.129 MB / 0.8419 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001146/1.037, allocations: 135.4 kB / 1.087 GB, free: 2.996 MB / 0.8419 GB Notification: Performance of SimCode: time 1.744e-06/1.037, allocations: 0 / 1.087 GB, free: 2.996 MB / 0.8419 GB Notification: Performance of Templates: time 0.07906/1.116, allocations: 27.01 MB / 1.114 GB, free: 8.199 MB / 0.8731 GB make -j1 -f Buildings_9_Buildings.Fluid.Chillers.Examples.ElectricReformulatedEIR.makefile (rm -f Buildings_9_Buildings.Fluid.Chillers.Examples.ElectricReformulatedEIR.pipe ; mkfifo Buildings_9_Buildings.Fluid.Chillers.Examples.ElectricReformulatedEIR.pipe ; head -c 1048576 < Buildings_9_Buildings.Fluid.Chillers.Examples.ElectricReformulatedEIR.pipe >> ../files/Buildings_9_Buildings.Fluid.Chillers.Examples.ElectricReformulatedEIR.sim & ./Buildings_9_Buildings.Fluid.Chillers.Examples.ElectricReformulatedEIR -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_9_Buildings.Fluid.Chillers.Examples.ElectricReformulatedEIR.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Fluid.Chillers.Examples.ElectricReformulatedEIR_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Fluid_Chillers_Examples_ElectricReformulatedEIR.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_Buildings.Fluid.Chillers.Examples.ElectricReformulatedEIR.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches