Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_Buildings.Fluid.DXSystems.Cooling.BaseClasses.Examples.SpeedSelect.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.1-master/package.mo", uses=false) Using package Buildings with version 11.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-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.DXSystems.Cooling.BaseClasses.Examples.SpeedSelect,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|speSel.speRat",fileNamePrefix="Buildings_latest_Buildings.Fluid.DXSystems.Cooling.BaseClasses.Examples.SpeedSelect") translateModel(Buildings.Fluid.DXSystems.Cooling.BaseClasses.Examples.SpeedSelect,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|speSel.speRat",fileNamePrefix="Buildings_latest_Buildings.Fluid.DXSystems.Cooling.BaseClasses.Examples.SpeedSelect") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001817/0.001817, allocations: 110.1 kB / 16.41 MB, free: 6.488 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.001823/0.001823, allocations: 185.5 kB / 17.34 MB, free: 5.766 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.384/1.384, allocations: 222.9 MB / 241 MB, free: 15.16 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo): time 2.719/2.719, allocations: 461.9 MB / 0.7355 GB, free: 11.07 MB / 0.6075 GB Notification: Performance of FrontEnd - loaded program: time 0.001511/0.001511, allocations: 67.89 kB / 1.055 GB, free: 7.672 MB / 0.8262 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.8263/0.8278, allocations: 157.4 MB / 1.208 GB, free: 13.63 MB / 0.9356 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.DXSystems.Cooling.BaseClasses.Examples.SpeedSelect): time 0.003912/0.8318, allocations: 2.159 MB / 1.211 GB, free: 11.46 MB / 0.9356 GB Notification: Performance of NFInst.instExpressions: time 0.003686/0.8355, allocations: 2.651 MB / 1.213 GB, free: 8.797 MB / 0.9356 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001868/0.8357, allocations: 7.938 kB / 1.213 GB, free: 8.789 MB / 0.9356 GB Notification: Performance of NFTyping.typeComponents: time 0.001452/0.8372, allocations: 0.5344 MB / 1.214 GB, free: 8.258 MB / 0.9356 GB Notification: Performance of NFTyping.typeBindings: time 0.0003481/0.8376, allocations: 127.3 kB / 1.214 GB, free: 8.133 MB / 0.9356 GB Notification: Performance of NFTyping.typeClassSections: time 0.000706/0.8383, allocations: 228.4 kB / 1.214 GB, free: 7.914 MB / 0.9356 GB Notification: Performance of NFFlatten.flatten: time 0.0005547/0.8389, allocations: 382.1 kB / 1.214 GB, free: 7.539 MB / 0.9356 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001574/0.839, allocations: 65.08 kB / 1.214 GB, free: 7.473 MB / 0.9356 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002095/0.8392, allocations: 131.4 kB / 1.215 GB, free: 7.344 MB / 0.9356 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002525/0.8395, allocations: 151.2 kB / 1.215 GB, free: 7.195 MB / 0.9356 GB Notification: Performance of NFPackage.collectConstants: time 5.226e-05/0.8396, allocations: 8 kB / 1.215 GB, free: 7.188 MB / 0.9356 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0002168/0.8398, allocations: 59.97 kB / 1.215 GB, free: 7.129 MB / 0.9356 GB Notification: Performance of NFScalarize.scalarize: time 0.0001646/0.84, allocations: 131.5 kB / 1.215 GB, free: 7 MB / 0.9356 GB Notification: Performance of NFVerifyModel.verify: time 0.0002321/0.8402, allocations: 234.4 kB / 1.215 GB, free: 6.77 MB / 0.9356 GB Notification: Performance of NFConvertDAE.convert: time 0.0007287/0.8409, allocations: 0.7084 MB / 1.216 GB, free: 6.059 MB / 0.9356 GB Notification: Performance of FrontEnd - DAE generated: time 5.219e-06/0.841, allocations: 0 / 1.216 GB, free: 6.059 MB / 0.9356 GB Notification: Performance of FrontEnd: time 1.804e-06/0.841, allocations: 0 / 1.216 GB, free: 6.059 MB / 0.9356 GB Notification: Performance of Transformations before backend: time 1.831e-05/0.841, allocations: 0 / 1.216 GB, free: 6.059 MB / 0.9356 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 9 * Number of variables: 9 Notification: Performance of Generate backend data structure: time 0.001404/0.8424, allocations: 0.9183 MB / 1.217 GB, free: 5.082 MB / 0.9356 GB Notification: Performance of prepare preOptimizeDAE: time 3.964e-05/0.8424, allocations: 8.031 kB / 1.217 GB, free: 5.074 MB / 0.9356 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000132/0.8426, allocations: 68.09 kB / 1.217 GB, free: 5.008 MB / 0.9356 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006759/0.8433, allocations: 456 kB / 1.217 GB, free: 4.523 MB / 0.9356 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.771e-05/0.8433, allocations: 4.375 kB / 1.217 GB, free: 4.52 MB / 0.9356 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.297e-05/0.8433, allocations: 12.12 kB / 1.217 GB, free: 4.508 MB / 0.9356 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002422/0.8436, allocations: 100.2 kB / 1.217 GB, free: 4.395 MB / 0.9356 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.386e-06/0.8436, allocations: 3.938 kB / 1.217 GB, free: 4.391 MB / 0.9356 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.866e-05/0.8436, allocations: 8 kB / 1.217 GB, free: 4.383 MB / 0.9356 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.416e-06/0.8436, allocations: 4 kB / 1.217 GB, free: 4.379 MB / 0.9356 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001214/0.8438, allocations: 43.91 kB / 1.217 GB, free: 4.336 MB / 0.9356 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007902/0.8446, allocations: 0.5161 MB / 1.218 GB, free: 3.77 MB / 0.9356 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0004023/0.845, allocations: 106.7 kB / 1.218 GB, free: 3.656 MB / 0.9356 GB Notification: Performance of preOpt resolveLoops (simulation): time 8.844e-05/0.8451, allocations: 32.84 kB / 1.218 GB, free: 3.621 MB / 0.9356 GB Notification: Performance of preOpt evalFunc (simulation): time 2.445e-05/0.8451, allocations: 0 / 1.218 GB, free: 3.621 MB / 0.9356 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001935/0.8453, allocations: 91.36 kB / 1.218 GB, free: 3.52 MB / 0.9356 GB Notification: Performance of pre-optimization done (n=7): time 1.473e-06/0.8453, allocations: 0 / 1.218 GB, free: 3.52 MB / 0.9356 GB Notification: Performance of matching and sorting (n=7): time 0.0004262/0.8457, allocations: 196.6 kB / 1.218 GB, free: 3.32 MB / 0.9356 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.114e-05/0.8458, allocations: 110.8 kB / 1.218 GB, free: 3.188 MB / 0.9356 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001113/0.8469, allocations: 0.9149 MB / 1.219 GB, free: 2.262 MB / 0.9356 GB Notification: Performance of collectPreVariables (initialization): time 2.562e-05/0.847, allocations: 33.7 kB / 1.219 GB, free: 2.223 MB / 0.9356 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002694/0.8472, allocations: 312 kB / 1.22 GB, free: 1.914 MB / 0.9356 GB Notification: Performance of collectInitialBindings (initialization): time 3.515e-05/0.8473, allocations: 19.8 kB / 1.22 GB, free: 1.895 MB / 0.9356 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.883e-05/0.8473, allocations: 21.72 kB / 1.22 GB, free: 1.867 MB / 0.9356 GB Notification: Performance of setup shared object (initialization): time 0.0001225/0.8475, allocations: 317.9 kB / 1.22 GB, free: 1.551 MB / 0.9356 GB Notification: Performance of preBalanceInitialSystem (initialization): time 7.983e-05/0.8476, allocations: 27.97 kB / 1.22 GB, free: 1.523 MB / 0.9356 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001056/0.8477, allocations: 72.28 kB / 1.22 GB, free: 1.438 MB / 0.9356 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001599/0.8478, allocations: 77.94 kB / 1.22 GB, free: 1.355 MB / 0.9356 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.294e-06/0.8479, allocations: 0 / 1.22 GB, free: 1.355 MB / 0.9356 GB Notification: Performance of matching and sorting (n=9) (initialization): time 0.0002888/0.8481, allocations: 176.6 kB / 1.22 GB, free: 1.176 MB / 0.9356 GB Notification: Performance of prepare postOptimizeDAE: time 1.778e-05/0.8482, allocations: 6.5 kB / 1.22 GB, free: 1.172 MB / 0.9356 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.009e-06/0.8482, allocations: 4.031 kB / 1.22 GB, free: 1.168 MB / 0.9356 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.438e-05/0.8482, allocations: 0 / 1.22 GB, free: 1.168 MB / 0.9356 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.306e-05/0.8483, allocations: 15.98 kB / 1.22 GB, free: 1.152 MB / 0.9356 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.945e-06/0.8483, allocations: 4 kB / 1.22 GB, free: 1.148 MB / 0.9356 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001326/0.8484, allocations: 15.88 kB / 1.22 GB, free: 1.133 MB / 0.9356 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.837e-06/0.8485, allocations: 0 / 1.22 GB, free: 1.133 MB / 0.9356 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 2 * Number of states: 0 () * Number of discrete variables: 6 ($PRE.sta.combiTimeTable.nextTimeEvent,$whenCondition1,sta.combiTimeTable.nextTimeEventScaled,$PRE.sta.combiTimeTable.nextTimeEventScaled,sta.combiTimeTable.nextTimeEvent,sta.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (9): * Single equations (assignments): 9 * Array equations: 0 * Algorithm blocks: 0 * 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.0003225/0.8488, allocations: 319.7 kB / 1.221 GB, free: 0.8125 MB / 0.9356 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.517e-05/0.8489, allocations: 67.16 kB / 1.221 GB, free: 0.7461 MB / 0.9356 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001828/0.8491, allocations: 78.41 kB / 1.221 GB, free: 0.6602 MB / 0.9356 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.254e-06/0.8491, allocations: 4 kB / 1.221 GB, free: 0.6562 MB / 0.9356 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.494e-06/0.8491, allocations: 0 / 1.221 GB, free: 0.6562 MB / 0.9356 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.193e-06/0.8491, allocations: 11.88 kB / 1.221 GB, free: 0.6445 MB / 0.9356 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003744/0.8495, allocations: 393.3 kB / 1.221 GB, free: 216 kB / 0.9356 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.402e-06/0.8495, allocations: 0 / 1.221 GB, free: 216 kB / 0.9356 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.894e-05/0.8495, allocations: 4.188 kB / 1.221 GB, free: 212 kB / 0.9356 GB Notification: Performance of postOpt tearingSystem (simulation): time 7.384e-06/0.8496, allocations: 7.984 kB / 1.221 GB, free: 204 kB / 0.9356 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.231e-05/0.8496, allocations: 7.938 kB / 1.221 GB, free: 196 kB / 0.9356 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.973e-06/0.8496, allocations: 0 / 1.221 GB, free: 196 kB / 0.9356 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.283e-06/0.8496, allocations: 0 / 1.221 GB, free: 196 kB / 0.9356 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003234/0.8499, allocations: 204.2 kB / 1.221 GB, free: 15.97 MB / 0.9512 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001268/0.8501, allocations: 136.3 kB / 1.222 GB, free: 15.82 MB / 0.9512 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.745e-05/0.8501, allocations: 0 / 1.222 GB, free: 15.82 MB / 0.9512 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001263/0.8502, allocations: 7.984 kB / 1.222 GB, free: 15.81 MB / 0.9512 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.036e-05/0.8503, allocations: 11.98 kB / 1.222 GB, free: 15.8 MB / 0.9512 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.01e-05/0.8503, allocations: 11.88 kB / 1.222 GB, free: 15.79 MB / 0.9512 GB Notification: Performance of sorting global known variables: time 0.0008125/0.8512, allocations: 0.6824 MB / 1.222 GB, free: 15.11 MB / 0.9512 GB Notification: Performance of sort global known variables: time 1.4e-07/0.8512, allocations: 4 kB / 1.222 GB, free: 15.11 MB / 0.9512 GB Notification: Performance of remove unused functions: time 0.0002984/0.8515, allocations: 56 kB / 1.222 GB, free: 15.05 MB / 0.9512 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 4 ($whenCondition1,sta.y,sta.combiTimeTable.nextTimeEvent,sta.combiTimeTable.nextTimeEventScaled) * Number of discrete states: 2 (sta.combiTimeTable.nextTimeEventScaled,sta.combiTimeTable.nextTimeEvent) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (7): * Single equations (assignments): 5 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * 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.001005/0.8525, allocations: 424.4 kB / 1.223 GB, free: 14.79 MB / 0.9512 GB Notification: Performance of simCode: created initialization part: time 0.0002393/0.8527, allocations: 71.95 kB / 1.223 GB, free: 14.72 MB / 0.9512 GB Notification: Performance of simCode: created event and clocks part: time 2.204e-06/0.8527, allocations: 0 / 1.223 GB, free: 14.72 MB / 0.9512 GB Notification: Performance of simCode: created simulation system equations: time 9.274e-05/0.8528, allocations: 35.92 kB / 1.223 GB, free: 14.69 MB / 0.9512 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007231/0.8536, allocations: 173.3 kB / 1.223 GB, free: 14.52 MB / 0.9512 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001723/0.8553, allocations: 1.185 MB / 1.224 GB, free: 13.3 MB / 0.9512 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006256/0.856, allocations: 0.9941 MB / 1.225 GB, free: 12.29 MB / 0.9512 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.824e-05/0.856, allocations: 31.36 kB / 1.225 GB, free: 12.25 MB / 0.9512 GB Notification: Performance of SimCode: time 2.9e-07/0.856, allocations: 0 / 1.225 GB, free: 12.25 MB / 0.9512 GB Notification: Performance of Templates: time 0.01141/0.8674, allocations: 7.143 MB / 1.232 GB, free: 5.176 MB / 0.9512 GB make -j1 -f Buildings_latest_Buildings.Fluid.DXSystems.Cooling.BaseClasses.Examples.SpeedSelect.makefile (rm -f Buildings_latest_Buildings.Fluid.DXSystems.Cooling.BaseClasses.Examples.SpeedSelect.pipe ; mkfifo Buildings_latest_Buildings.Fluid.DXSystems.Cooling.BaseClasses.Examples.SpeedSelect.pipe ; head -c 1048576 < Buildings_latest_Buildings.Fluid.DXSystems.Cooling.BaseClasses.Examples.SpeedSelect.pipe >> ../files/Buildings_latest_Buildings.Fluid.DXSystems.Cooling.BaseClasses.Examples.SpeedSelect.sim & ./Buildings_latest_Buildings.Fluid.DXSystems.Cooling.BaseClasses.Examples.SpeedSelect -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Fluid.DXSystems.Cooling.BaseClasses.Examples.SpeedSelect.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Fluid.DXSystems.Cooling.BaseClasses.Examples.SpeedSelect_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Fluid_DXSystems_Cooling_BaseClasses_Examples_SpeedSelect.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Fluid.DXSystems.Cooling.BaseClasses.Examples.SpeedSelect.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches