Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_Buildings.Fluid.DXSystems.Cooling.BaseClasses.Examples.SpeedShift.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 12.0.0-master/package.mo", uses=false) Using package Buildings with version 12.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.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.DXSystems.Cooling.BaseClasses.Examples.SpeedShift,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|speShi.y|speShi.speRat",fileNamePrefix="Buildings_latest_Buildings.Fluid.DXSystems.Cooling.BaseClasses.Examples.SpeedShift") translateModel(Buildings.Fluid.DXSystems.Cooling.BaseClasses.Examples.SpeedShift,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|speShi.y|speShi.speRat",fileNamePrefix="Buildings_latest_Buildings.Fluid.DXSystems.Cooling.BaseClasses.Examples.SpeedShift") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001298/0.001298, allocations: 102.9 kB / 16.27 MB, free: 6.414 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.001256/0.001256, allocations: 189.7 kB / 17.2 MB, free: 5.953 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.377/1.377, allocations: 222.9 MB / 240.9 MB, free: 15.22 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo): time 2.681/2.681, allocations: 482.4 MB / 0.7553 GB, free: 6.996 MB / 0.6231 GB Notification: Performance of FrontEnd - loaded program: time 0.001902/0.001902, allocations: 68.06 kB / 0.9245 GB, free: 15.95 MB / 0.7012 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7407/0.7426, allocations: 162.2 MB / 1.083 GB, free: 1.641 MB / 0.8262 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.DXSystems.Cooling.BaseClasses.Examples.SpeedShift): time 0.003294/0.7459, allocations: 2.038 MB / 1.085 GB, free: 224 kB / 0.8262 GB Notification: Performance of NFInst.instExpressions: time 0.003761/0.7497, allocations: 2.602 MB / 1.087 GB, free: 14.38 MB / 0.8419 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001401/0.7499, allocations: 1.312 kB / 1.087 GB, free: 14.38 MB / 0.8419 GB Notification: Performance of NFTyping.typeComponents: time 0.001376/0.7513, allocations: 0.5084 MB / 1.088 GB, free: 14.15 MB / 0.8419 GB Notification: Performance of NFTyping.typeBindings: time 0.0001637/0.7515, allocations: 66.42 kB / 1.088 GB, free: 14.12 MB / 0.8419 GB Notification: Performance of NFTyping.typeClassSections: time 0.001068/0.7526, allocations: 273.6 kB / 1.088 GB, free: 14.02 MB / 0.8419 GB Notification: Performance of NFFlatten.flatten: time 0.000473/0.7531, allocations: 331.8 kB / 1.089 GB, free: 13.88 MB / 0.8419 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001919/0.7533, allocations: 94.7 kB / 1.089 GB, free: 13.84 MB / 0.8419 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001359/0.7534, allocations: 110.8 kB / 1.089 GB, free: 13.79 MB / 0.8419 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001911/0.7536, allocations: 132.4 kB / 1.089 GB, free: 13.73 MB / 0.8419 GB Notification: Performance of NFPackage.collectConstants: time 3.369e-05/0.7537, allocations: 12.16 kB / 1.089 GB, free: 13.73 MB / 0.8419 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0005709/0.7542, allocations: 318.6 kB / 1.089 GB, free: 13.64 MB / 0.8419 GB Notification: Performance of NFScalarize.scalarize: time 0.000126/0.7544, allocations: 97.67 kB / 1.089 GB, free: 13.61 MB / 0.8419 GB Notification: Performance of NFVerifyModel.verify: time 0.0002077/0.7546, allocations: 213.1 kB / 1.09 GB, free: 13.46 MB / 0.8419 GB Notification: Performance of NFConvertDAE.convert: time 0.001009/0.7556, allocations: 0.8118 MB / 1.09 GB, free: 13.19 MB / 0.8419 GB Notification: Performance of FrontEnd - DAE generated: time 3.948e-06/0.7556, allocations: 1.25 kB / 1.09 GB, free: 13.19 MB / 0.8419 GB Notification: Performance of FrontEnd: time 1.423e-06/0.7556, allocations: 0 / 1.09 GB, free: 13.19 MB / 0.8419 GB Notification: Performance of Transformations before backend: time 8.506e-06/0.7556, allocations: 0 / 1.09 GB, free: 13.19 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: 22 * Number of variables: 22 Notification: Performance of Generate backend data structure: time 0.001185/0.7568, allocations: 0.8645 MB / 1.091 GB, free: 12.48 MB / 0.8419 GB Notification: Performance of prepare preOptimizeDAE: time 3.532e-05/0.7569, allocations: 13.41 kB / 1.091 GB, free: 12.48 MB / 0.8419 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001037/0.757, allocations: 66.06 kB / 1.091 GB, free: 12.45 MB / 0.8419 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004452/0.7574, allocations: 390.5 kB / 1.092 GB, free: 12.12 MB / 0.8419 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.503e-05/0.7575, allocations: 8.344 kB / 1.092 GB, free: 12.11 MB / 0.8419 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.385e-05/0.7575, allocations: 10.78 kB / 1.092 GB, free: 12.11 MB / 0.8419 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002535/0.7578, allocations: 133.8 kB / 1.092 GB, free: 12.05 MB / 0.8419 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.347e-05/0.7578, allocations: 0.5625 kB / 1.092 GB, free: 12.05 MB / 0.8419 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.498e-05/0.7578, allocations: 5.188 kB / 1.092 GB, free: 12.04 MB / 0.8419 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.36e-06/0.7578, allocations: 1.125 kB / 1.092 GB, free: 12.04 MB / 0.8419 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001691/0.758, allocations: 102.9 kB / 1.092 GB, free: 12.02 MB / 0.8419 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000852/0.7588, allocations: 0.5419 MB / 1.092 GB, free: 11.64 MB / 0.8419 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001884/0.759, allocations: 111.6 kB / 1.093 GB, free: 11.59 MB / 0.8419 GB Notification: Performance of preOpt resolveLoops (simulation): time 9.682e-05/0.7591, allocations: 63.02 kB / 1.093 GB, free: 11.56 MB / 0.8419 GB Notification: Performance of preOpt evalFunc (simulation): time 4.072e-05/0.7592, allocations: 10.7 kB / 1.093 GB, free: 11.56 MB / 0.8419 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002451/0.7595, allocations: 135.7 kB / 1.093 GB, free: 11.46 MB / 0.8419 GB Notification: Performance of pre-optimization done (n=11): time 1.293e-06/0.7595, allocations: 1.156 kB / 1.093 GB, free: 11.46 MB / 0.8419 GB Notification: Performance of matching and sorting (n=11): time 0.0005679/0.76, allocations: 313.1 kB / 1.093 GB, free: 11.31 MB / 0.8419 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.788e-05/0.7601, allocations: 85.25 kB / 1.093 GB, free: 11.21 MB / 0.8419 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001099/0.7612, allocations: 0.7904 MB / 1.094 GB, free: 10.91 MB / 0.8419 GB Notification: Performance of collectPreVariables (initialization): time 2.659e-05/0.7612, allocations: 26.83 kB / 1.094 GB, free: 10.88 MB / 0.8419 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002939/0.7615, allocations: 294.3 kB / 1.094 GB, free: 10.64 MB / 0.8419 GB Notification: Performance of collectInitialBindings (initialization): time 3.355e-05/0.7616, allocations: 25.3 kB / 1.094 GB, free: 10.62 MB / 0.8419 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.278e-05/0.7617, allocations: 30.86 kB / 1.094 GB, free: 10.6 MB / 0.8419 GB Notification: Performance of setup shared object (initialization): time 0.0001303/0.7618, allocations: 309 kB / 1.095 GB, free: 10.3 MB / 0.8419 GB Notification: Performance of preBalanceInitialSystem (initialization): time 9.333e-05/0.7619, allocations: 46.94 kB / 1.095 GB, free: 10.29 MB / 0.8419 GB Notification: Performance of partitionIndependentBlocks (initialization): time 7.398e-05/0.762, allocations: 47.5 kB / 1.095 GB, free: 10.27 MB / 0.8419 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001937/0.7622, allocations: 153.2 kB / 1.095 GB, free: 10.18 MB / 0.8419 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.836e-06/0.7622, allocations: 0 / 1.095 GB, free: 10.18 MB / 0.8419 GB Notification: Performance of matching and sorting (n=12) (initialization): time 0.0003614/0.7625, allocations: 276.5 kB / 1.095 GB, free: 10.03 MB / 0.8419 GB Notification: Performance of prepare postOptimizeDAE: time 4.709e-05/0.7626, allocations: 40.59 kB / 1.095 GB, free: 9.996 MB / 0.8419 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.609e-06/0.7626, allocations: 0 / 1.095 GB, free: 9.996 MB / 0.8419 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.014e-05/0.7626, allocations: 0.7812 kB / 1.095 GB, free: 9.996 MB / 0.8419 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.911e-05/0.7627, allocations: 12.05 kB / 1.095 GB, free: 9.992 MB / 0.8419 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.15e-06/0.7628, allocations: 1.375 kB / 1.095 GB, free: 9.992 MB / 0.8419 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001386/0.7629, allocations: 10.98 kB / 1.095 GB, free: 9.988 MB / 0.8419 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.438e-05/0.7629, allocations: 8.156 kB / 1.095 GB, free: 9.984 MB / 0.8419 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 9 (booleanToInteger.y,greaterThreshold.y,speRat.nextEventScaled,speRat.nextEvent,$PRE.speRat.nextEvent,speRat.last,speRat.b,speRat.a,$whenCondition1) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (7): * Single equations (assignments): 6 * 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.0003397/0.7633, allocations: 335 kB / 1.095 GB, free: 9.781 MB / 0.8419 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.302e-05/0.7634, allocations: 69.94 kB / 1.095 GB, free: 9.742 MB / 0.8419 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004693/0.7638, allocations: 298.5 kB / 1.096 GB, free: 9.598 MB / 0.8419 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.086e-06/0.7638, allocations: 0 / 1.096 GB, free: 9.598 MB / 0.8419 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.22e-06/0.7639, allocations: 5.688 kB / 1.096 GB, free: 9.594 MB / 0.8419 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.026e-06/0.7639, allocations: 0 / 1.096 GB, free: 9.594 MB / 0.8419 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000479/0.7644, allocations: 390.2 kB / 1.096 GB, free: 9.328 MB / 0.8419 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.527e-06/0.7644, allocations: 3.938 kB / 1.096 GB, free: 9.324 MB / 0.8419 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.206e-05/0.7644, allocations: 6.594 kB / 1.096 GB, free: 9.324 MB / 0.8419 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.555e-06/0.7644, allocations: 6.047 kB / 1.096 GB, free: 9.32 MB / 0.8419 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.417e-05/0.7644, allocations: 3.516 kB / 1.096 GB, free: 9.32 MB / 0.8419 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.853e-06/0.7644, allocations: 1.312 kB / 1.096 GB, free: 9.32 MB / 0.8419 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.323e-06/0.7645, allocations: 4 kB / 1.096 GB, free: 9.316 MB / 0.8419 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004092/0.7649, allocations: 306.4 kB / 1.096 GB, free: 9.145 MB / 0.8419 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001599/0.765, allocations: 147.5 kB / 1.097 GB, free: 9.008 MB / 0.8419 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.805e-05/0.7651, allocations: 7.281 kB / 1.097 GB, free: 9.004 MB / 0.8419 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001046/0.7652, allocations: 5.656 kB / 1.097 GB, free: 9.004 MB / 0.8419 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.365e-05/0.7653, allocations: 5.078 kB / 1.097 GB, free: 9.004 MB / 0.8419 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.83e-05/0.7653, allocations: 9.328 kB / 1.097 GB, free: 9 MB / 0.8419 GB Notification: Performance of sorting global known variables: time 0.0007695/0.7661, allocations: 0.5922 MB / 1.097 GB, free: 8.766 MB / 0.8419 GB Notification: Performance of sort global known variables: time 4.7e-07/0.7661, allocations: 0 / 1.097 GB, free: 8.766 MB / 0.8419 GB Notification: Performance of remove unused functions: time 0.0005358/0.7666, allocations: 122.9 kB / 1.097 GB, free: 8.754 MB / 0.8419 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 8 ($whenCondition1,speRat.a,speRat.b,speRat.last,speRat.nextEvent,speRat.nextEventScaled,greaterThreshold.y,booleanToInteger.y) * Number of discrete states: 6 (speRat.nextEvent,speRat.last,speRat.nextEventScaled,speRat.b,speRat.a,$whenCondition1) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (6): * Single equations (assignments): 5 * 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 Backend phase and start with SimCode phase: time 0.0003861/0.767, allocations: 194.1 kB / 1.097 GB, free: 8.641 MB / 0.8419 GB Notification: Performance of simCode: created initialization part: time 0.0003416/0.7674, allocations: 209.7 kB / 1.098 GB, free: 8.523 MB / 0.8419 GB Notification: Performance of simCode: created event and clocks part: time 1.893e-06/0.7674, allocations: 0 / 1.098 GB, free: 8.523 MB / 0.8419 GB Notification: Performance of simCode: created simulation system equations: time 0.0001509/0.7675, allocations: 142.8 kB / 1.098 GB, free: 8.43 MB / 0.8419 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005761/0.7681, allocations: 137.1 kB / 1.098 GB, free: 8.379 MB / 0.8419 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001856/0.77, allocations: 1.142 MB / 1.099 GB, free: 7.812 MB / 0.8419 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007213/0.7707, allocations: 0.9737 MB / 1.1 GB, free: 7.055 MB / 0.8419 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.064e-05/0.7708, allocations: 17.2 kB / 1.1 GB, free: 7.051 MB / 0.8419 GB Notification: Performance of SimCode: time 4.9e-07/0.7708, allocations: 1.375 kB / 1.1 GB, free: 7.051 MB / 0.8419 GB Notification: Performance of Templates: time 0.01387/0.7846, allocations: 6.735 MB / 1.107 GB, free: 6.238 MB / 0.8419 GB make -j1 -f Buildings_latest_Buildings.Fluid.DXSystems.Cooling.BaseClasses.Examples.SpeedShift.makefile (rm -f Buildings_latest_Buildings.Fluid.DXSystems.Cooling.BaseClasses.Examples.SpeedShift.pipe ; mkfifo Buildings_latest_Buildings.Fluid.DXSystems.Cooling.BaseClasses.Examples.SpeedShift.pipe ; head -c 1048576 < Buildings_latest_Buildings.Fluid.DXSystems.Cooling.BaseClasses.Examples.SpeedShift.pipe >> ../files/Buildings_latest_Buildings.Fluid.DXSystems.Cooling.BaseClasses.Examples.SpeedShift.sim & ./Buildings_latest_Buildings.Fluid.DXSystems.Cooling.BaseClasses.Examples.SpeedShift -abortSlowSimulation -alarm=400 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Fluid.DXSystems.Cooling.BaseClasses.Examples.SpeedShift.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Fluid.DXSystems.Cooling.BaseClasses.Examples.SpeedShift_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Fluid_DXSystems_Cooling_BaseClasses_Examples_SpeedShift.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Fluid.DXSystems.Cooling.BaseClasses.Examples.SpeedShift.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches