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 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.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.001312/0.001312, allocations: 105.6 kB / 16.41 MB, free: 6.512 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.001294/0.001294, allocations: 187 kB / 17.34 MB, free: 5.742 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.476/1.476, allocations: 222.9 MB / 241 MB, free: 15.14 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo): time 2.652/2.652, allocations: 461.9 MB / 0.7355 GB, free: 11.04 MB / 0.6075 GB Notification: Performance of FrontEnd - loaded program: time 0.001529/0.001529, allocations: 63.91 kB / 1.055 GB, free: 7.629 MB / 0.8262 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.9521/0.9536, allocations: 157.4 MB / 1.208 GB, free: 13.57 MB / 0.9356 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.DXSystems.Cooling.BaseClasses.Examples.SpeedShift): time 0.003967/0.9576, allocations: 2.049 MB / 1.21 GB, free: 11.51 MB / 0.9356 GB Notification: Performance of NFInst.instExpressions: time 0.003817/0.9615, allocations: 2.592 MB / 1.213 GB, free: 8.906 MB / 0.9356 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001805/0.9617, allocations: 0 / 1.213 GB, free: 8.906 MB / 0.9356 GB Notification: Performance of NFTyping.typeComponents: time 0.001507/0.9632, allocations: 0.5188 MB / 1.213 GB, free: 8.391 MB / 0.9356 GB Notification: Performance of NFTyping.typeBindings: time 0.0002369/0.9635, allocations: 67.59 kB / 1.214 GB, free: 8.324 MB / 0.9356 GB Notification: Performance of NFTyping.typeClassSections: time 0.001045/0.9646, allocations: 279.3 kB / 1.214 GB, free: 8.051 MB / 0.9356 GB Notification: Performance of NFFlatten.flatten: time 0.000553/0.9651, allocations: 325.9 kB / 1.214 GB, free: 7.734 MB / 0.9356 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0002066/0.9653, allocations: 101 kB / 1.214 GB, free: 7.633 MB / 0.9356 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001897/0.9655, allocations: 111.4 kB / 1.214 GB, free: 7.523 MB / 0.9356 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002504/0.9658, allocations: 127.2 kB / 1.214 GB, free: 7.398 MB / 0.9356 GB Notification: Performance of NFPackage.collectConstants: time 4.313e-05/0.9658, allocations: 8 kB / 1.214 GB, free: 7.391 MB / 0.9356 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0005985/0.9665, allocations: 327.5 kB / 1.215 GB, free: 7.07 MB / 0.9356 GB Notification: Performance of NFScalarize.scalarize: time 0.00014/0.9666, allocations: 99.55 kB / 1.215 GB, free: 6.973 MB / 0.9356 GB Notification: Performance of NFVerifyModel.verify: time 0.000232/0.9668, allocations: 214.5 kB / 1.215 GB, free: 6.762 MB / 0.9356 GB Notification: Performance of NFConvertDAE.convert: time 0.001063/0.9679, allocations: 0.8216 MB / 1.216 GB, free: 5.938 MB / 0.9356 GB Notification: Performance of FrontEnd - DAE generated: time 4.789e-06/0.9679, allocations: 0 / 1.216 GB, free: 5.938 MB / 0.9356 GB Notification: Performance of FrontEnd: time 2.254e-06/0.9679, allocations: 0 / 1.216 GB, free: 5.938 MB / 0.9356 GB Notification: Performance of Transformations before backend: time 2.157e-05/0.968, allocations: 3.938 kB / 1.216 GB, free: 5.934 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: 22 * Number of variables: 22 Notification: Performance of Generate backend data structure: time 0.001401/0.9694, allocations: 0.8643 MB / 1.217 GB, free: 5.012 MB / 0.9356 GB Notification: Performance of prepare preOptimizeDAE: time 4.507e-05/0.9694, allocations: 8.031 kB / 1.217 GB, free: 5.004 MB / 0.9356 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001366/0.9696, allocations: 76.09 kB / 1.217 GB, free: 4.93 MB / 0.9356 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005789/0.9702, allocations: 392.2 kB / 1.217 GB, free: 4.508 MB / 0.9356 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.987e-05/0.9702, allocations: 8.375 kB / 1.217 GB, free: 4.5 MB / 0.9356 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.39e-05/0.9702, allocations: 12.38 kB / 1.217 GB, free: 4.488 MB / 0.9356 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000251/0.9705, allocations: 125.9 kB / 1.217 GB, free: 4.359 MB / 0.9356 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.143e-05/0.9705, allocations: 0 / 1.217 GB, free: 4.359 MB / 0.9356 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.953e-05/0.9705, allocations: 4 kB / 1.217 GB, free: 4.355 MB / 0.9356 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.019e-06/0.9705, allocations: 0 / 1.217 GB, free: 4.355 MB / 0.9356 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001748/0.9707, allocations: 99.89 kB / 1.217 GB, free: 4.258 MB / 0.9356 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008738/0.9716, allocations: 0.551 MB / 1.218 GB, free: 3.656 MB / 0.9356 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001708/0.9718, allocations: 110.5 kB / 1.218 GB, free: 3.539 MB / 0.9356 GB Notification: Performance of preOpt resolveLoops (simulation): time 8.614e-05/0.9719, allocations: 60.97 kB / 1.218 GB, free: 3.477 MB / 0.9356 GB Notification: Performance of preOpt evalFunc (simulation): time 4.343e-05/0.9719, allocations: 4.188 kB / 1.218 GB, free: 3.473 MB / 0.9356 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001985/0.9721, allocations: 141 kB / 1.218 GB, free: 3.316 MB / 0.9356 GB Notification: Performance of pre-optimization done (n=11): time 1.954e-06/0.9721, allocations: 0 / 1.218 GB, free: 3.316 MB / 0.9356 GB Notification: Performance of matching and sorting (n=11): time 0.0005157/0.9727, allocations: 314.4 kB / 1.219 GB, free: 2.996 MB / 0.9356 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.86e-05/0.9727, allocations: 81.11 kB / 1.219 GB, free: 2.898 MB / 0.9356 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000976/0.9737, allocations: 0.7896 MB / 1.219 GB, free: 2.102 MB / 0.9356 GB Notification: Performance of collectPreVariables (initialization): time 2.658e-05/0.9738, allocations: 33.7 kB / 1.219 GB, free: 2.062 MB / 0.9356 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002537/0.974, allocations: 288.2 kB / 1.22 GB, free: 1.777 MB / 0.9356 GB Notification: Performance of collectInitialBindings (initialization): time 4.34e-05/0.9741, allocations: 23.66 kB / 1.22 GB, free: 1.754 MB / 0.9356 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.94e-05/0.9741, allocations: 29.7 kB / 1.22 GB, free: 1.719 MB / 0.9356 GB Notification: Performance of setup shared object (initialization): time 0.0001135/0.9743, allocations: 318 kB / 1.22 GB, free: 1.402 MB / 0.9356 GB Notification: Performance of preBalanceInitialSystem (initialization): time 7.294e-05/0.9743, allocations: 39.98 kB / 1.22 GB, free: 1.363 MB / 0.9356 GB Notification: Performance of partitionIndependentBlocks (initialization): time 6.703e-05/0.9744, allocations: 47.97 kB / 1.22 GB, free: 1.316 MB / 0.9356 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001735/0.9746, allocations: 160.6 kB / 1.22 GB, free: 1.145 MB / 0.9356 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.204e-06/0.9746, allocations: 0 / 1.22 GB, free: 1.145 MB / 0.9356 GB Notification: Performance of matching and sorting (n=12) (initialization): time 0.000367/0.975, allocations: 274.3 kB / 1.221 GB, free: 0.8633 MB / 0.9356 GB Notification: Performance of prepare postOptimizeDAE: time 5.317e-05/0.975, allocations: 41.69 kB / 1.221 GB, free: 0.8164 MB / 0.9356 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.312e-06/0.9751, allocations: 0 / 1.221 GB, free: 0.8164 MB / 0.9356 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.935e-05/0.9751, allocations: 0 / 1.221 GB, free: 0.8164 MB / 0.9356 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.014e-05/0.9752, allocations: 12 kB / 1.221 GB, free: 0.8047 MB / 0.9356 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.066e-06/0.9752, allocations: 0 / 1.221 GB, free: 0.8047 MB / 0.9356 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000147/0.9753, allocations: 7.984 kB / 1.221 GB, free: 0.7969 MB / 0.9356 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.356e-05/0.9754, allocations: 4 kB / 1.221 GB, free: 0.793 MB / 0.9356 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.0003613/0.9757, allocations: 336.9 kB / 1.221 GB, free: 460 kB / 0.9356 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.873e-05/0.9758, allocations: 71.09 kB / 1.221 GB, free: 388 kB / 0.9356 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004411/0.9763, allocations: 304.9 kB / 1.221 GB, free: 60 kB / 0.9356 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.557e-06/0.9763, allocations: 4 kB / 1.221 GB, free: 56 kB / 0.9356 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.562e-06/0.9763, allocations: 4 kB / 1.221 GB, free: 52 kB / 0.9356 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.864e-06/0.9763, allocations: 3.984 kB / 1.221 GB, free: 48 kB / 0.9356 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004247/0.9767, allocations: 381.3 kB / 1.222 GB, free: 15.62 MB / 0.9512 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.037e-06/0.9768, allocations: 3.938 kB / 1.222 GB, free: 15.62 MB / 0.9512 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.435e-05/0.9768, allocations: 8.125 kB / 1.222 GB, free: 15.61 MB / 0.9512 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.306e-06/0.9768, allocations: 0 / 1.222 GB, free: 15.61 MB / 0.9512 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.771e-05/0.9769, allocations: 8 kB / 1.222 GB, free: 15.61 MB / 0.9512 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.204e-06/0.9769, allocations: 0 / 1.222 GB, free: 15.61 MB / 0.9512 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.292e-06/0.9769, allocations: 0 / 1.222 GB, free: 15.61 MB / 0.9512 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003914/0.9773, allocations: 310 kB / 1.222 GB, free: 15.28 MB / 0.9512 GB Notification: Performance of postOpt removeConstants (simulation): time 0.000161/0.9774, allocations: 152.2 kB / 1.222 GB, free: 15.11 MB / 0.9512 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.777e-05/0.9775, allocations: 4 kB / 1.222 GB, free: 15.11 MB / 0.9512 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001097/0.9776, allocations: 4 kB / 1.222 GB, free: 15.1 MB / 0.9512 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.575e-05/0.9777, allocations: 11.98 kB / 1.222 GB, free: 15.09 MB / 0.9512 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.641e-05/0.9777, allocations: 4 kB / 1.222 GB, free: 15.09 MB / 0.9512 GB Notification: Performance of sorting global known variables: time 0.0007173/0.9784, allocations: 0.5887 MB / 1.223 GB, free: 14.5 MB / 0.9512 GB Notification: Performance of sort global known variables: time 2.31e-07/0.9784, allocations: 0 / 1.223 GB, free: 14.5 MB / 0.9512 GB Notification: Performance of remove unused functions: time 0.0004954/0.9789, allocations: 128 kB / 1.223 GB, free: 14.38 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: 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.0004807/0.9794, allocations: 187.2 kB / 1.223 GB, free: 14.18 MB / 0.9512 GB Notification: Performance of simCode: created initialization part: time 0.0003208/0.9798, allocations: 207.3 kB / 1.223 GB, free: 13.97 MB / 0.9512 GB Notification: Performance of simCode: created event and clocks part: time 2.505e-06/0.9798, allocations: 0 / 1.223 GB, free: 13.97 MB / 0.9512 GB Notification: Performance of simCode: created simulation system equations: time 0.0001455/0.9799, allocations: 147.4 kB / 1.223 GB, free: 13.81 MB / 0.9512 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005833/0.9805, allocations: 129.6 kB / 1.224 GB, free: 13.69 MB / 0.9512 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001718/0.9823, allocations: 1.122 MB / 1.225 GB, free: 12.53 MB / 0.9512 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005861/0.9829, allocations: 0.9743 MB / 1.226 GB, free: 11.53 MB / 0.9512 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.661e-05/0.9829, allocations: 19.44 kB / 1.226 GB, free: 11.51 MB / 0.9512 GB Notification: Performance of SimCode: time 4.21e-07/0.9829, allocations: 3.938 kB / 1.226 GB, free: 11.5 MB / 0.9512 GB Notification: Performance of Templates: time 0.01167/0.9946, allocations: 6.735 MB / 1.232 GB, free: 4.832 MB / 0.9512 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=480 -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