Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_Buildings.Fluid.Chillers.Examples.ElectricEIR.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.0-master/package.mo", uses=false) Using package Buildings with version 11.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-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.ElectricEIR,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|chi.TSet|chi.TEvaEnt|chi.TEvaLvg|chi.TConEnt|chi.TConLvg|chi.COP|chi.PLR1|chi.PLR2|chi.CR",fileNamePrefix="Buildings_latest_Buildings.Fluid.Chillers.Examples.ElectricEIR") translateModel(Buildings.Fluid.Chillers.Examples.ElectricEIR,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|chi.TSet|chi.TEvaEnt|chi.TEvaLvg|chi.TConEnt|chi.TConLvg|chi.COP|chi.PLR1|chi.PLR2|chi.CR",fileNamePrefix="Buildings_latest_Buildings.Fluid.Chillers.Examples.ElectricEIR") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.00149/0.00149, allocations: 112.6 kB / 16.37 MB, free: 6 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.001697/0.001698, allocations: 196 kB / 17.31 MB, free: 5.613 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.405/1.405, allocations: 222.9 MB / 241 MB, free: 15.18 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/package.mo): time 2.58/2.58, allocations: 442.6 MB / 0.7165 GB, free: 14.64 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001226/0.001226, allocations: 63.42 kB / 0.8773 GB, free: 10.97 MB / 0.6544 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3618/0.3631, allocations: 153 MB / 1.027 GB, free: 2.051 MB / 0.795 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Chillers.Examples.ElectricEIR): time 0.6374/1.001, allocations: 60.6 MB / 1.086 GB, free: 11.82 MB / 0.8419 GB Notification: Performance of NFInst.instExpressions: time 0.01862/1.019, allocations: 13.21 MB / 1.099 GB, free: 11.47 MB / 0.8419 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.003134/1.022, allocations: 69.22 kB / 1.099 GB, free: 11.47 MB / 0.8419 GB Notification: Performance of NFTyping.typeComponents: time 0.003197/1.026, allocations: 0.9638 MB / 1.1 GB, free: 11.46 MB / 0.8419 GB Notification: Performance of NFTyping.typeBindings: time 0.008341/1.034, allocations: 2.319 MB / 1.102 GB, free: 11.01 MB / 0.8419 GB Notification: Performance of NFTyping.typeClassSections: time 0.004952/1.039, allocations: 1.577 MB / 1.104 GB, free: 10.86 MB / 0.8419 GB Notification: Performance of NFFlatten.flatten: time 0.007026/1.046, allocations: 4.332 MB / 1.108 GB, free: 8.941 MB / 0.8419 GB Notification: Performance of NFFlatten.resolveConnections: time 0.002231/1.048, allocations: 1.343 MB / 1.109 GB, free: 8.324 MB / 0.8419 GB Notification: Performance of NFEvalConstants.evaluate: time 0.004191/1.052, allocations: 1.569 MB / 1.111 GB, free: 7.676 MB / 0.8419 GB Notification: Performance of NFSimplifyModel.simplify: time 0.002616/1.055, allocations: 1.208 MB / 1.112 GB, free: 7.203 MB / 0.8419 GB Notification: Performance of NFPackage.collectConstants: time 0.0003884/1.055, allocations: 147.3 kB / 1.112 GB, free: 7.199 MB / 0.8419 GB Notification: Performance of NFFlatten.collectFunctions: time 0.004587/1.06, allocations: 1.472 MB / 1.113 GB, free: 6.746 MB / 0.8419 GB Notification: Performance of NFScalarize.scalarize: time 0.0005013/1.061, allocations: 413.8 kB / 1.114 GB, free: 6.516 MB / 0.8419 GB Notification: Performance of NFVerifyModel.verify: time 0.001326/1.062, allocations: 0.9134 MB / 1.115 GB, free: 5.965 MB / 0.8419 GB Notification: Performance of NFConvertDAE.convert: time 0.005827/1.068, allocations: 2.784 MB / 1.117 GB, free: 5.043 MB / 0.8419 GB Notification: Performance of FrontEnd - DAE generated: time 5.871e-06/1.068, allocations: 1.891 kB / 1.117 GB, free: 5.043 MB / 0.8419 GB Notification: Performance of FrontEnd: time 3.026e-06/1.068, allocations: 0 / 1.117 GB, free: 5.043 MB / 0.8419 GB Notification: Performance of Transformations before backend: time 3.186e-05/1.068, allocations: 3.938 kB / 1.117 GB, free: 5.039 MB / 0.8419 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.004155/1.072, allocations: 2.186 MB / 1.12 GB, free: 3.633 MB / 0.8419 GB Notification: Performance of prepare preOptimizeDAE: time 3.431e-05/1.072, allocations: 13.31 kB / 1.12 GB, free: 3.629 MB / 0.8419 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003437/1.075, allocations: 0.5482 MB / 1.12 GB, free: 3.512 MB / 0.8419 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002428/1.078, allocations: 1.435 MB / 1.122 GB, free: 2.727 MB / 0.8419 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001587/1.078, allocations: 144.8 kB / 1.122 GB, free: 2.633 MB / 0.8419 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001711/1.078, allocations: 109.5 kB / 1.122 GB, free: 2.594 MB / 0.8419 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002822/1.081, allocations: 1.325 MB / 1.123 GB, free: 2.07 MB / 0.8419 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.758e-05/1.081, allocations: 5.609 kB / 1.123 GB, free: 2.066 MB / 0.8419 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.654e-05/1.081, allocations: 36.81 kB / 1.123 GB, free: 2.039 MB / 0.8419 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.6e-05/1.081, allocations: 29.16 kB / 1.123 GB, free: 2.035 MB / 0.8419 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003687/1.085, allocations: 1.336 MB / 1.124 GB, free: 1.637 MB / 0.8419 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.008472/1.093, allocations: 5.464 MB / 1.13 GB, free: 13.97 MB / 0.8575 GB Notification: Performance of preOpt comSubExp (simulation): time 0.005528/1.099, allocations: 1.338 MB / 1.131 GB, free: 13.55 MB / 0.8575 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001759/1.101, allocations: 0.6053 MB / 1.132 GB, free: 13.37 MB / 0.8575 GB Notification: Performance of preOpt evalFunc (simulation): time 0.001007/1.102, allocations: 1.232 MB / 1.133 GB, free: 11.95 MB / 0.8575 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001802/1.104, allocations: 0.6579 MB / 1.134 GB, free: 11.74 MB / 0.8575 GB Notification: Performance of pre-optimization done (n=70): time 5.22e-06/1.104, allocations: 0 / 1.134 GB, free: 11.74 MB / 0.8575 GB Notification: Performance of matching and sorting (n=70): time 0.005092/1.109, allocations: 1.685 MB / 1.135 GB, free: 11.24 MB / 0.8575 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.592e-05/1.109, allocations: 66.88 kB / 1.135 GB, free: 11.18 MB / 0.8575 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001911/1.111, allocations: 1.292 MB / 1.137 GB, free: 10.67 MB / 0.8575 GB Notification: Performance of collectPreVariables (initialization): time 0.0001472/1.111, allocations: 44.67 kB / 1.137 GB, free: 10.63 MB / 0.8575 GB Notification: Performance of collectInitialEqns (initialization): time 0.0005966/1.112, allocations: 0.6526 MB / 1.137 GB, free: 10.12 MB / 0.8575 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002664/1.112, allocations: 245.5 kB / 1.137 GB, free: 9.93 MB / 0.8575 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003232/1.112, allocations: 174.3 kB / 1.138 GB, free: 9.852 MB / 0.8575 GB Notification: Performance of setup shared object (initialization): time 0.000131/1.112, allocations: 336.1 kB / 1.138 GB, free: 9.535 MB / 0.8575 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00153/1.114, allocations: 0.5303 MB / 1.138 GB, free: 9.387 MB / 0.8575 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001714/1.116, allocations: 0.7519 MB / 1.139 GB, free: 9 MB / 0.8575 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.003055/1.119, allocations: 1.142 MB / 1.14 GB, free: 8.535 MB / 0.8575 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.182e-06/1.119, allocations: 1.125 kB / 1.14 GB, free: 8.535 MB / 0.8575 GB Notification: Performance of matching and sorting (n=98) (initialization): time 0.004264/1.123, allocations: 1.409 MB / 1.142 GB, free: 8.062 MB / 0.8575 GB Notification: Performance of prepare postOptimizeDAE: time 5.426e-05/1.123, allocations: 39.5 kB / 1.142 GB, free: 8.027 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.289e-05/1.123, allocations: 3.344 kB / 1.142 GB, free: 8.027 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.735e-05/1.123, allocations: 7.031 kB / 1.142 GB, free: 8.027 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001252/1.124, allocations: 256.8 kB / 1.142 GB, free: 8.004 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.693e-05/1.124, allocations: 11.8 kB / 1.142 GB, free: 8 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001851/1.126, allocations: 183.1 kB / 1.142 GB, free: 7.941 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001267/1.126, allocations: 39.53 kB / 1.142 GB, free: 7.934 MB / 0.8575 GB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.00209/1.128, allocations: 0.7822 MB / 1.143 GB, free: 7.621 MB / 0.8575 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.001834/1.13, allocations: 0.7469 MB / 1.144 GB, free: 7.18 MB / 0.8575 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.003119/1.133, allocations: 1.13 MB / 1.145 GB, free: 6.566 MB / 0.8575 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 6.843e-06/1.133, allocations: 1.25 kB / 1.145 GB, free: 6.566 MB / 0.8575 GB Notification: Performance of matching and sorting (n=98) (initialization_lambda0): time 0.004104/1.137, allocations: 1.395 MB / 1.146 GB, free: 5.891 MB / 0.8575 GB Notification: Performance of prepare postOptimizeDAE: time 3.774e-05/1.138, allocations: 33.45 kB / 1.146 GB, free: 5.859 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.157e-06/1.138, allocations: 7.844 kB / 1.146 GB, free: 5.855 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.737e-05/1.138, allocations: 10.52 kB / 1.146 GB, free: 5.852 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001252/1.139, allocations: 257.5 kB / 1.146 GB, free: 5.773 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.588e-05/1.139, allocations: 12 kB / 1.146 GB, free: 5.77 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001885/1.141, allocations: 180.2 kB / 1.147 GB, free: 5.676 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001142/1.141, allocations: 42.78 kB / 1.147 GB, free: 5.66 MB / 0.8575 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.0004059/1.141, allocations: 227.5 kB / 1.147 GB, free: 5.445 MB / 0.8575 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004414/1.142, allocations: 148.4 kB / 1.147 GB, free: 5.367 MB / 0.8575 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004007/1.146, allocations: 1.462 MB / 1.148 GB, free: 4.594 MB / 0.8575 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.294e-05/1.146, allocations: 14.91 kB / 1.148 GB, free: 4.586 MB / 0.8575 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.212e-06/1.146, allocations: 0 / 1.148 GB, free: 4.586 MB / 0.8575 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.003128/1.149, allocations: 1.218 MB / 1.15 GB, free: 3.945 MB / 0.8575 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007351/1.156, allocations: 3.204 MB / 1.153 GB, free: 1.762 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.008e-05/1.156, allocations: 4.438 kB / 1.153 GB, free: 1.762 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001121/1.158, allocations: 219.5 kB / 1.153 GB, free: 1.695 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.124e-05/1.158, allocations: 7.156 kB / 1.153 GB, free: 1.695 MB / 0.8575 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.687e-05/1.158, allocations: 33.42 kB / 1.153 GB, free: 1.676 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.07e-05/1.158, allocations: 19.91 kB / 1.153 GB, free: 1.664 MB / 0.8575 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.168e-06/1.158, allocations: 2.375 kB / 1.153 GB, free: 1.664 MB / 0.8575 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005411/1.163, allocations: 2.214 MB / 1.155 GB, free: 436 kB / 0.8575 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0009948/1.164, allocations: 348.4 kB / 1.156 GB, free: 132 kB / 0.8575 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002362/1.164, allocations: 21.69 kB / 1.156 GB, free: 120 kB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001282/1.166, allocations: 131 kB / 1.156 GB, free: 60 kB / 0.8575 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001494/1.166, allocations: 70.27 kB / 1.156 GB, free: 20 kB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.861e-05/1.166, allocations: 40.94 kB / 1.156 GB, free: 4 kB / 0.8575 GB Notification: Performance of sorting global known variables: time 0.00129/1.167, allocations: 0.9199 MB / 1.157 GB, free: 15.5 MB / 0.8731 GB Notification: Performance of sort global known variables: time 1.9e-07/1.167, allocations: 4 kB / 1.157 GB, free: 15.5 MB / 0.8731 GB Notification: Performance of remove unused functions: time 0.002206/1.169, allocations: 0.8038 MB / 1.157 GB, free: 15.33 MB / 0.8731 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.001098/1.17, allocations: 0.5178 MB / 1.158 GB, free: 15.06 MB / 0.8731 GB Notification: Performance of simCode: created initialization part: time 0.005139/1.176, allocations: 2.001 MB / 1.16 GB, free: 14.12 MB / 0.8731 GB Notification: Performance of simCode: created event and clocks part: time 7.825e-06/1.176, allocations: 0 / 1.16 GB, free: 14.12 MB / 0.8731 GB Notification: Performance of simCode: created simulation system equations: time 0.001819/1.177, allocations: 0.6777 MB / 1.161 GB, free: 13.82 MB / 0.8731 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003958/1.181, allocations: 0.7592 MB / 1.161 GB, free: 13.41 MB / 0.8731 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006131/1.188, allocations: 2.861 MB / 1.164 GB, free: 11.7 MB / 0.8731 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008263/1.188, allocations: 1.237 MB / 1.165 GB, free: 10.57 MB / 0.8731 GB Notification: Performance of simCode: alias equations: time 0.001945/1.19, allocations: 375.4 kB / 1.166 GB, free: 10.2 MB / 0.8731 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004371/1.191, allocations: 131.4 kB / 1.166 GB, free: 10.07 MB / 0.8731 GB Notification: Performance of SimCode: time 1.102e-06/1.191, allocations: 0 / 1.166 GB, free: 10.07 MB / 0.8731 GB Notification: Performance of Templates: time 0.05125/1.242, allocations: 31.6 MB / 1.197 GB, free: 10.89 MB / 0.9044 GB make -j1 -f Buildings_latest_Buildings.Fluid.Chillers.Examples.ElectricEIR.makefile (rm -f Buildings_latest_Buildings.Fluid.Chillers.Examples.ElectricEIR.pipe ; mkfifo Buildings_latest_Buildings.Fluid.Chillers.Examples.ElectricEIR.pipe ; head -c 1048576 < Buildings_latest_Buildings.Fluid.Chillers.Examples.ElectricEIR.pipe >> ../files/Buildings_latest_Buildings.Fluid.Chillers.Examples.ElectricEIR.sim & ./Buildings_latest_Buildings.Fluid.Chillers.Examples.ElectricEIR -abortSlowSimulation -alarm=480 -s gbode -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Fluid.Chillers.Examples.ElectricEIR.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Fluid.Chillers.Examples.ElectricEIR_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Fluid_Chillers_Examples_ElectricEIR.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Fluid.Chillers.Examples.ElectricEIR.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches