Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_11_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.1.0-maint.11.x/package.mo", uses=false) Using package Buildings with version 11.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.0-maint.11.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_11_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_11_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.007526/0.007526, allocations: 99.38 kB / 15.73 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.001723/0.001723, allocations: 197.5 kB / 16.67 MB, free: 5.934 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.489/1.489, allocations: 222.9 MB / 240.4 MB, free: 4.316 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.0-maint.11.x/package.mo): time 2.945/2.945, allocations: 469.8 MB / 0.7425 GB, free: 7.312 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.002601/0.002601, allocations: 68.09 kB / 1.065 GB, free: 12.99 MB / 0.8262 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.372/0.3746, allocations: 159.1 MB / 1.221 GB, free: 13.74 MB / 0.9825 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Chillers.Examples.ElectricReformulatedEIR): time 0.8621/1.237, allocations: 60.72 MB / 1.28 GB, free: 14.71 MB / 1.014 GB Notification: Performance of NFInst.instExpressions: time 0.02628/1.263, allocations: 13.25 MB / 1.293 GB, free: 7.012 MB / 1.014 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.003644/1.267, allocations: 71.59 kB / 1.293 GB, free: 6.984 MB / 1.014 GB Notification: Performance of NFTyping.typeComponents: time 0.00472/1.271, allocations: 0.9978 MB / 1.294 GB, free: 6.395 MB / 1.014 GB Notification: Performance of NFTyping.typeBindings: time 0.0125/1.284, allocations: 2.435 MB / 1.296 GB, free: 4.945 MB / 1.014 GB Notification: Performance of NFTyping.typeClassSections: time 0.006153/1.29, allocations: 1.602 MB / 1.298 GB, free: 4.09 MB / 1.014 GB Notification: Performance of NFFlatten.flatten: time 0.008172/1.298, allocations: 4.326 MB / 1.302 GB, free: 2.016 MB / 1.014 GB Notification: Performance of NFFlatten.resolveConnections: time 0.003051/1.301, allocations: 1.125 MB / 1.303 GB, free: 1.445 MB / 1.014 GB Notification: Performance of NFEvalConstants.evaluate: time 0.005525/1.307, allocations: 1.613 MB / 1.305 GB, free: 0.6914 MB / 1.014 GB Notification: Performance of NFSimplifyModel.simplify: time 0.003558/1.31, allocations: 1.208 MB / 1.306 GB, free: 128 kB / 1.014 GB Notification: Performance of NFPackage.collectConstants: time 0.0009106/1.311, allocations: 145.8 kB / 1.306 GB, free: 124 kB / 1.014 GB Notification: Performance of NFFlatten.collectFunctions: time 0.00552/1.317, allocations: 1.505 MB / 1.308 GB, free: 15.57 MB / 1.029 GB Notification: Performance of NFScalarize.scalarize: time 0.001268/1.318, allocations: 450.3 kB / 1.308 GB, free: 15.3 MB / 1.029 GB Notification: Performance of NFVerifyModel.verify: time 0.003273/1.321, allocations: 0.9153 MB / 1.309 GB, free: 14.74 MB / 1.029 GB Notification: Performance of NFConvertDAE.convert: time 0.009774/1.331, allocations: 2.847 MB / 1.312 GB, free: 13.65 MB / 1.029 GB Notification: Performance of FrontEnd - DAE generated: time 8.646e-06/1.331, allocations: 0 / 1.312 GB, free: 13.65 MB / 1.029 GB Notification: Performance of FrontEnd: time 2.144e-06/1.331, allocations: 1.5 kB / 1.312 GB, free: 13.65 MB / 1.029 GB Notification: Performance of Transformations before backend: time 0.0001269/1.331, allocations: 0 / 1.312 GB, free: 13.65 MB / 1.029 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.008074/1.339, allocations: 2.285 MB / 1.314 GB, free: 12.13 MB / 1.029 GB Notification: Performance of prepare preOptimizeDAE: time 4.926e-05/1.339, allocations: 8.594 kB / 1.314 GB, free: 12.13 MB / 1.029 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004936/1.344, allocations: 0.6195 MB / 1.315 GB, free: 12 MB / 1.029 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004352/1.349, allocations: 1.49 MB / 1.316 GB, free: 11.14 MB / 1.029 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002667/1.349, allocations: 146.7 kB / 1.316 GB, free: 11.04 MB / 1.029 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003972/1.349, allocations: 100.1 kB / 1.316 GB, free: 11.01 MB / 1.029 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004266/1.354, allocations: 1.384 MB / 1.318 GB, free: 10.47 MB / 1.029 GB Notification: Performance of preOpt findStateOrder (simulation): time 4.004e-05/1.354, allocations: 1.984 kB / 1.318 GB, free: 10.47 MB / 1.029 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001872/1.354, allocations: 40.81 kB / 1.318 GB, free: 10.44 MB / 1.029 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.654e-05/1.354, allocations: 31.25 kB / 1.318 GB, free: 10.44 MB / 1.029 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004707/1.359, allocations: 1.441 MB / 1.319 GB, free: 10 MB / 1.029 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.01103/1.37, allocations: 5.599 MB / 1.325 GB, free: 6.223 MB / 1.029 GB Notification: Performance of preOpt comSubExp (simulation): time 0.003058/1.373, allocations: 1.063 MB / 1.326 GB, free: 5.746 MB / 1.029 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001834/1.374, allocations: 0.5928 MB / 1.326 GB, free: 5.578 MB / 1.029 GB Notification: Performance of preOpt evalFunc (simulation): time 0.001064/1.375, allocations: 1.24 MB / 1.327 GB, free: 4.145 MB / 1.029 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.00211/1.378, allocations: 0.6922 MB / 1.328 GB, free: 3.934 MB / 1.029 GB Notification: Performance of pre-optimization done (n=70): time 2.846e-06/1.378, allocations: 0 / 1.328 GB, free: 3.934 MB / 1.029 GB Notification: Performance of matching and sorting (n=70): time 0.0058/1.383, allocations: 1.798 MB / 1.33 GB, free: 3.398 MB / 1.029 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.656e-05/1.383, allocations: 59.16 kB / 1.33 GB, free: 3.336 MB / 1.029 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002435/1.386, allocations: 1.347 MB / 1.331 GB, free: 2.82 MB / 1.029 GB Notification: Performance of collectPreVariables (initialization): time 0.0002092/1.386, allocations: 43.83 kB / 1.331 GB, free: 2.777 MB / 1.029 GB Notification: Performance of collectInitialEqns (initialization): time 0.0006976/1.387, allocations: 0.6817 MB / 1.332 GB, free: 2.234 MB / 1.029 GB Notification: Performance of collectInitialBindings (initialization): time 0.0003454/1.387, allocations: 258 kB / 1.332 GB, free: 2.031 MB / 1.029 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003888/1.388, allocations: 176.5 kB / 1.332 GB, free: 1.953 MB / 1.029 GB Notification: Performance of setup shared object (initialization): time 0.0001258/1.388, allocations: 333.3 kB / 1.333 GB, free: 1.637 MB / 1.029 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001715/1.389, allocations: 0.5667 MB / 1.333 GB, free: 1.473 MB / 1.029 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001922/1.391, allocations: 0.7767 MB / 1.334 GB, free: 1.086 MB / 1.029 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.003588/1.395, allocations: 1.2 MB / 1.335 GB, free: 0.5977 MB / 1.029 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.384e-05/1.395, allocations: 1.312 kB / 1.335 GB, free: 0.5977 MB / 1.029 GB Notification: Performance of matching and sorting (n=98) (initialization): time 0.005469/1.4, allocations: 1.476 MB / 1.337 GB, free: 96 kB / 1.029 GB Notification: Performance of prepare postOptimizeDAE: time 5.66e-05/1.4, allocations: 32.91 kB / 1.337 GB, free: 64 kB / 1.029 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.798e-05/1.4, allocations: 7.625 kB / 1.337 GB, free: 60 kB / 1.029 GB Notification: Performance of postOpt tearingSystem (initialization): time 3.443e-05/1.4, allocations: 6.781 kB / 1.337 GB, free: 60 kB / 1.029 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001387/1.402, allocations: 274.8 kB / 1.337 GB, free: 32 kB / 1.029 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.093e-05/1.402, allocations: 6.656 kB / 1.337 GB, free: 32 kB / 1.029 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002239/1.404, allocations: 199.9 kB / 1.337 GB, free: 15.96 MB / 1.045 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001494/1.404, allocations: 41.09 kB / 1.337 GB, free: 15.95 MB / 1.045 GB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.002328/1.407, allocations: 0.8187 MB / 1.338 GB, free: 15.63 MB / 1.045 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.001844/1.408, allocations: 0.7853 MB / 1.339 GB, free: 15.23 MB / 1.045 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.003292/1.412, allocations: 1.187 MB / 1.34 GB, free: 14.6 MB / 1.045 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 5.981e-06/1.412, allocations: 5.312 kB / 1.34 GB, free: 14.6 MB / 1.045 GB Notification: Performance of matching and sorting (n=98) (initialization_lambda0): time 0.004438/1.416, allocations: 1.468 MB / 1.341 GB, free: 13.89 MB / 1.045 GB Notification: Performance of prepare postOptimizeDAE: time 3.964e-05/1.416, allocations: 32.77 kB / 1.341 GB, free: 13.86 MB / 1.045 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.648e-06/1.416, allocations: 4.062 kB / 1.341 GB, free: 13.86 MB / 1.045 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.841e-05/1.416, allocations: 14.28 kB / 1.341 GB, free: 13.85 MB / 1.045 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001333/1.418, allocations: 264.5 kB / 1.342 GB, free: 13.77 MB / 1.045 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.703e-05/1.418, allocations: 10.5 kB / 1.342 GB, free: 13.77 MB / 1.045 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001985/1.42, allocations: 189.9 kB / 1.342 GB, free: 13.67 MB / 1.045 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001207/1.42, allocations: 38.8 kB / 1.342 GB, free: 13.66 MB / 1.045 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.0003685/1.42, allocations: 231 kB / 1.342 GB, free: 13.44 MB / 1.045 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006272/1.421, allocations: 156 kB / 1.342 GB, free: 13.36 MB / 1.045 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004468/1.425, allocations: 1.529 MB / 1.344 GB, free: 12.55 MB / 1.045 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.272e-05/1.425, allocations: 8.094 kB / 1.344 GB, free: 12.55 MB / 1.045 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.735e-06/1.425, allocations: 0 / 1.344 GB, free: 12.55 MB / 1.045 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.003679/1.429, allocations: 1.288 MB / 1.345 GB, free: 11.88 MB / 1.045 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.009785/1.439, allocations: 3.307 MB / 1.348 GB, free: 9.633 MB / 1.045 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.986e-05/1.439, allocations: 8.344 kB / 1.348 GB, free: 9.629 MB / 1.045 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001394/1.44, allocations: 233.8 kB / 1.348 GB, free: 9.555 MB / 1.045 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.949e-05/1.44, allocations: 10.69 kB / 1.348 GB, free: 9.551 MB / 1.045 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001086/1.44, allocations: 24.42 kB / 1.348 GB, free: 9.539 MB / 1.045 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.047e-05/1.44, allocations: 16.23 kB / 1.348 GB, free: 9.531 MB / 1.045 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.784e-06/1.44, allocations: 4.188 kB / 1.348 GB, free: 9.531 MB / 1.045 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006586/1.447, allocations: 2.323 MB / 1.351 GB, free: 8.246 MB / 1.045 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001147/1.448, allocations: 376.8 kB / 1.351 GB, free: 7.926 MB / 1.045 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005049/1.448, allocations: 19.59 kB / 1.351 GB, free: 7.918 MB / 1.045 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001776/1.45, allocations: 132.2 kB / 1.351 GB, free: 7.863 MB / 1.045 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001888/1.45, allocations: 74.05 kB / 1.351 GB, free: 7.82 MB / 1.045 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001294/1.451, allocations: 46.64 kB / 1.351 GB, free: 7.801 MB / 1.045 GB Notification: Performance of sorting global known variables: time 0.001813/1.452, allocations: 0.9531 MB / 1.352 GB, free: 7.289 MB / 1.045 GB Notification: Performance of sort global known variables: time 1e-07/1.452, allocations: 0 / 1.352 GB, free: 7.289 MB / 1.045 GB Notification: Performance of remove unused functions: time 0.003025/1.455, allocations: 0.8243 MB / 1.353 GB, free: 7.105 MB / 1.045 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.001466/1.457, allocations: 0.5296 MB / 1.354 GB, free: 6.809 MB / 1.045 GB Notification: Performance of simCode: created initialization part: time 0.005955/1.463, allocations: 2.028 MB / 1.356 GB, free: 5.852 MB / 1.045 GB Notification: Performance of simCode: created event and clocks part: time 8.846e-06/1.463, allocations: 1.562 kB / 1.356 GB, free: 5.852 MB / 1.045 GB Notification: Performance of simCode: created simulation system equations: time 0.002052/1.465, allocations: 0.6856 MB / 1.356 GB, free: 5.547 MB / 1.045 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005004/1.47, allocations: 0.7651 MB / 1.357 GB, free: 5.137 MB / 1.045 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007496/1.477, allocations: 2.978 MB / 1.36 GB, free: 3.344 MB / 1.045 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001148/1.479, allocations: 1.252 MB / 1.361 GB, free: 2.387 MB / 1.045 GB Notification: Performance of simCode: alias equations: time 0.00201/1.481, allocations: 375.4 kB / 1.361 GB, free: 2.199 MB / 1.045 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005196/1.481, allocations: 134.1 kB / 1.362 GB, free: 2.164 MB / 1.045 GB Notification: Performance of SimCode: time 9.32e-07/1.481, allocations: 0 / 1.362 GB, free: 2.164 MB / 1.045 GB Notification: Performance of Templates: time 0.05415/1.535, allocations: 32.49 MB / 1.393 GB, free: 3.816 MB / 1.076 GB make -j1 -f Buildings_11_Buildings.Fluid.Chillers.Examples.ElectricReformulatedEIR.makefile (rm -f Buildings_11_Buildings.Fluid.Chillers.Examples.ElectricReformulatedEIR.pipe ; mkfifo Buildings_11_Buildings.Fluid.Chillers.Examples.ElectricReformulatedEIR.pipe ; head -c 1048576 < Buildings_11_Buildings.Fluid.Chillers.Examples.ElectricReformulatedEIR.pipe >> ../files/Buildings_11_Buildings.Fluid.Chillers.Examples.ElectricReformulatedEIR.sim & ./Buildings_11_Buildings.Fluid.Chillers.Examples.ElectricReformulatedEIR -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_11_Buildings.Fluid.Chillers.Examples.ElectricReformulatedEIR.pipe 2>&1) diffSimulationResults("Buildings_11_Buildings.Fluid.Chillers.Examples.ElectricReformulatedEIR_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_11.x/Buildings_Fluid_Chillers_Examples_ElectricReformulatedEIR.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_11_Buildings.Fluid.Chillers.Examples.ElectricReformulatedEIR.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches