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.001021/0.001021, allocations: 92.16 kB / 16.02 MB, free: 80 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.001259/0.001259, allocations: 183.3 kB / 16.92 MB, free: 6.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.427/1.427, allocations: 223.3 MB / 241 MB, free: 5.32 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.474/2.474, allocations: 390.9 MB / 0.667 GB, free: 2.324 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.0004317/0.0004317, allocations: 15.98 kB / 0.8166 GB, free: 13.2 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.712/0.7124, allocations: 142.4 MB / 0.9557 GB, free: 7.848 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Chillers.Examples.ElectricReformulatedEIR): time 0.05661/0.7691, allocations: 58.99 MB / 1.013 GB, free: 4.293 MB / 0.7637 GB Notification: Performance of NFInst.instExpressions: time 0.02011/0.7893, allocations: 13.12 MB / 1.026 GB, free: 7.137 MB / 0.7794 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.003111/0.7924, allocations: 59.56 kB / 1.026 GB, free: 7.078 MB / 0.7794 GB Notification: Performance of NFTyping.typeComponents: time 0.003004/0.7954, allocations: 0.8023 MB / 1.027 GB, free: 6.273 MB / 0.7794 GB Notification: Performance of NFTyping.typeBindings: time 0.007501/0.803, allocations: 2.147 MB / 1.029 GB, free: 4.117 MB / 0.7794 GB Notification: Performance of NFTyping.typeClassSections: time 0.004451/0.8074, allocations: 1.403 MB / 1.03 GB, free: 2.727 MB / 0.7794 GB Notification: Performance of NFFlatten.flatten: time 0.007366/0.8148, allocations: 5.531 MB / 1.036 GB, free: 13.18 MB / 0.795 GB Notification: Performance of NFFlatten.resolveConnections: time 0.002432/0.8173, allocations: 1.084 MB / 1.037 GB, free: 12.07 MB / 0.795 GB Notification: Performance of NFEvalConstants.evaluate: time 0.003566/0.8209, allocations: 1.326 MB / 1.038 GB, free: 10.73 MB / 0.795 GB Notification: Performance of NFSimplifyModel.simplify: time 0.002393/0.8233, allocations: 1.159 MB / 1.039 GB, free: 9.57 MB / 0.795 GB Notification: Performance of NFPackage.collectConstants: time 0.0004861/0.8238, allocations: 60 kB / 1.039 GB, free: 9.512 MB / 0.795 GB Notification: Performance of NFFlatten.collectFunctions: time 0.003901/0.8277, allocations: 1.368 MB / 1.041 GB, free: 8.141 MB / 0.795 GB Notification: Performance of NFScalarize.scalarize: time 0.0007018/0.8285, allocations: 334.4 kB / 1.041 GB, free: 7.812 MB / 0.795 GB Notification: Performance of NFVerifyModel.verify: time 0.001741/0.8302, allocations: 0.8487 MB / 1.042 GB, free: 6.953 MB / 0.795 GB Notification: Performance of NFConvertDAE.convert: time 0.003245/0.8335, allocations: 2.05 MB / 1.044 GB, free: 4.898 MB / 0.795 GB Notification: Performance of FrontEnd - DAE generated: time 5.039e-06/0.8335, allocations: 0 / 1.044 GB, free: 4.898 MB / 0.795 GB Notification: Performance of FrontEnd: time 1.623e-06/0.8335, allocations: 0 / 1.044 GB, free: 4.898 MB / 0.795 GB Notification: Performance of Transformations before backend: time 3.777e-05/0.8336, allocations: 0 / 1.044 GB, free: 4.898 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.00373/0.8373, allocations: 1.894 MB / 1.046 GB, free: 2.941 MB / 0.795 GB Notification: Performance of prepare preOptimizeDAE: time 4.54e-05/0.8374, allocations: 12.03 kB / 1.046 GB, free: 2.93 MB / 0.795 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003698/0.8411, allocations: 0.6424 MB / 1.046 GB, free: 2.285 MB / 0.795 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002627/0.8437, allocations: 1.41 MB / 1.048 GB, free: 0.8242 MB / 0.795 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001668/0.8439, allocations: 145.4 kB / 1.048 GB, free: 0.668 MB / 0.795 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001736/0.8441, allocations: 96 kB / 1.048 GB, free: 0.5742 MB / 0.795 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003071/0.8471, allocations: 1.354 MB / 1.049 GB, free: 15.19 MB / 0.8106 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.751e-05/0.8472, allocations: 7.844 kB / 1.049 GB, free: 15.18 MB / 0.8106 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001081/0.8473, allocations: 40 kB / 1.049 GB, free: 15.14 MB / 0.8106 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.616e-05/0.8474, allocations: 23.94 kB / 1.049 GB, free: 15.12 MB / 0.8106 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003751/0.8511, allocations: 1.393 MB / 1.051 GB, free: 13.72 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.007652/0.8588, allocations: 5.398 MB / 1.056 GB, free: 7.969 MB / 0.8106 GB Notification: Performance of preOpt comSubExp (simulation): time 0.002595/0.8614, allocations: 1.09 MB / 1.057 GB, free: 6.836 MB / 0.8106 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001681/0.8631, allocations: 0.6353 MB / 1.058 GB, free: 6.199 MB / 0.8106 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0009915/0.8641, allocations: 1.24 MB / 1.059 GB, free: 4.68 MB / 0.8106 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001888/0.866, allocations: 0.6862 MB / 1.06 GB, free: 3.98 MB / 0.8106 GB Notification: Performance of pre-optimization done (n=69): time 3.567e-06/0.866, allocations: 7.938 kB / 1.06 GB, free: 3.973 MB / 0.8106 GB Notification: Performance of matching and sorting (n=69): time 0.005446/0.8715, allocations: 1.805 MB / 1.061 GB, free: 2.16 MB / 0.8106 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.579e-05/0.8716, allocations: 63.91 kB / 1.061 GB, free: 2.086 MB / 0.8106 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002229/0.8738, allocations: 1.312 MB / 1.063 GB, free: 0.7656 MB / 0.8106 GB Notification: Performance of collectPreVariables (initialization): time 0.0001234/0.874, allocations: 45.7 kB / 1.063 GB, free: 0.7148 MB / 0.8106 GB Notification: Performance of collectInitialEqns (initialization): time 0.0006238/0.8746, allocations: 0.6738 MB / 1.063 GB, free: 32 kB / 0.8106 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002644/0.8749, allocations: 240.6 kB / 1.064 GB, free: 15.79 MB / 0.8262 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001246/0.875, allocations: 69.69 kB / 1.064 GB, free: 15.72 MB / 0.8262 GB Notification: Performance of setup shared object (initialization): time 0.000115/0.8751, allocations: 333.9 kB / 1.064 GB, free: 15.39 MB / 0.8262 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00167/0.8768, allocations: 0.5602 MB / 1.065 GB, free: 14.83 MB / 0.8262 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001867/0.8787, allocations: 0.7821 MB / 1.065 GB, free: 13.96 MB / 0.8262 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.00331/0.882, allocations: 1.206 MB / 1.066 GB, free: 12.72 MB / 0.8262 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.378e-06/0.882, allocations: 0 / 1.066 GB, free: 12.72 MB / 0.8262 GB Notification: Performance of matching and sorting (n=96) (initialization): time 0.004226/0.8862, allocations: 1.481 MB / 1.068 GB, free: 11.22 MB / 0.8262 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001627/0.8864, allocations: 213 kB / 1.068 GB, free: 10.96 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.168e-05/0.8865, allocations: 0 / 1.068 GB, free: 10.96 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.575e-05/0.8865, allocations: 8 kB / 1.068 GB, free: 10.96 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001307/0.8878, allocations: 275.6 kB / 1.068 GB, free: 10.69 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.323e-05/0.8878, allocations: 8 kB / 1.068 GB, free: 10.68 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001819/0.8897, allocations: 247 kB / 1.069 GB, free: 10.44 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001196/0.8898, allocations: 39.97 kB / 1.069 GB, free: 10.4 MB / 0.8262 GB Notification: Performance of prepare postOptimizeDAE: time 1.126e-05/0.8898, allocations: 7.984 kB / 1.069 GB, free: 10.39 MB / 0.8262 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.003653/0.8935, allocations: 1.317 MB / 1.07 GB, free: 9.066 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.295e-06/0.8935, allocations: 4.312 kB / 1.07 GB, free: 9.062 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.035e-05/0.8935, allocations: 8 kB / 1.07 GB, free: 9.055 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001299/0.8948, allocations: 267.7 kB / 1.07 GB, free: 8.793 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.86e-05/0.8948, allocations: 11.94 kB / 1.07 GB, free: 8.781 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0018/0.8967, allocations: 235.1 kB / 1.07 GB, free: 8.551 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001032/0.8968, allocations: 39.92 kB / 1.071 GB, free: 8.512 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.0007455/0.8975, allocations: 416.9 kB / 1.071 GB, free: 8.094 MB / 0.8262 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003717/0.8979, allocations: 150.1 kB / 1.071 GB, free: 7.945 MB / 0.8262 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004178/0.9021, allocations: 1.536 MB / 1.073 GB, free: 6.387 MB / 0.8262 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.691e-05/0.9021, allocations: 8 kB / 1.073 GB, free: 6.379 MB / 0.8262 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.898e-06/0.9021, allocations: 7.922 kB / 1.073 GB, free: 6.371 MB / 0.8262 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.003396/0.9055, allocations: 1.3 MB / 1.074 GB, free: 5.039 MB / 0.8262 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00723/0.9128, allocations: 3.281 MB / 1.077 GB, free: 1.602 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.301e-05/0.9128, allocations: 8 kB / 1.077 GB, free: 1.594 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001209/0.914, allocations: 236.2 kB / 1.077 GB, free: 1.363 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.923e-05/0.9141, allocations: 8 kB / 1.077 GB, free: 1.355 MB / 0.8262 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.258e-05/0.9142, allocations: 27.98 kB / 1.077 GB, free: 1.328 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.236e-05/0.9142, allocations: 15.88 kB / 1.077 GB, free: 1.312 MB / 0.8262 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.281e-06/0.9142, allocations: 11.98 kB / 1.077 GB, free: 1.301 MB / 0.8262 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005778/0.92, allocations: 2.325 MB / 1.08 GB, free: 14.9 MB / 0.8419 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0008402/0.9208, allocations: 374.7 kB / 1.08 GB, free: 14.51 MB / 0.8419 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003318/0.9212, allocations: 23.94 kB / 1.08 GB, free: 14.49 MB / 0.8419 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001646/0.9228, allocations: 179.8 kB / 1.08 GB, free: 14.31 MB / 0.8419 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001587/0.923, allocations: 68.42 kB / 1.08 GB, free: 14.24 MB / 0.8419 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001019/0.9231, allocations: 39.97 kB / 1.08 GB, free: 14.2 MB / 0.8419 GB Notification: Performance of sorting global known variables: time 0.001556/0.9247, allocations: 0.9489 MB / 1.081 GB, free: 13.26 MB / 0.8419 GB Notification: Performance of sort global known variables: time 1.4e-07/0.9247, allocations: 0 / 1.081 GB, free: 13.26 MB / 0.8419 GB Notification: Performance of remove unused functions: time 0.002328/0.927, allocations: 0.7914 MB / 1.082 GB, free: 12.46 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.001169/0.9282, allocations: 0.5249 MB / 1.082 GB, free: 11.95 MB / 0.8419 GB Notification: Performance of simCode: created initialization part: time 0.005737/0.934, allocations: 2.101 MB / 1.085 GB, free: 9.82 MB / 0.8419 GB Notification: Performance of simCode: created event and clocks part: time 6.332e-06/0.934, allocations: 0 / 1.085 GB, free: 9.82 MB / 0.8419 GB Notification: Performance of simCode: created simulation system equations: time 0.001962/0.936, allocations: 0.703 MB / 1.085 GB, free: 9.121 MB / 0.8419 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005113/0.9411, allocations: 0.7706 MB / 1.086 GB, free: 8.355 MB / 0.8419 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005899/0.947, allocations: 3.377 MB / 1.089 GB, free: 4.887 MB / 0.8419 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009645/0.948, allocations: 1.246 MB / 1.09 GB, free: 3.613 MB / 0.8419 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006602/0.9487, allocations: 135.4 kB / 1.091 GB, free: 3.48 MB / 0.8419 GB Notification: Performance of SimCode: time 7.91e-07/0.9487, allocations: 0 / 1.091 GB, free: 3.48 MB / 0.8419 GB Notification: Performance of Templates: time 0.04486/0.9936, allocations: 26.78 MB / 1.117 GB, free: 8.906 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