Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_10_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 10.1.1-maint.10.0.x/package.mo", uses=false) Using package Buildings with version 10.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.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.DXSystems.Cooling.BaseClasses.Examples.SpeedShift,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|speShi.y|speShi.speRat",fileNamePrefix="Buildings_10_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_10_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.001156/0.001156, allocations: 104.3 kB / 16.4 MB, free: 6.516 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.00235/0.00235, allocations: 189.7 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.432/1.432, allocations: 222.9 MB / 241 MB, free: 15.15 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.x/package.mo): time 2.43/2.43, allocations: 437 MB / 0.7112 GB, free: 4.355 MB / 0.5762 GB Notification: Performance of FrontEnd - loaded program: time 0.001581/0.001581, allocations: 68.36 kB / 1.019 GB, free: 9.355 MB / 0.795 GB Notification: Performance of FrontEnd - Absyn->SCode: time 1.011/1.013, allocations: 151.6 MB / 1.167 GB, free: 3.832 MB / 0.8887 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.DXSystems.Cooling.BaseClasses.Examples.SpeedShift): time 0.003644/1.016, allocations: 2.05 MB / 1.169 GB, free: 1.77 MB / 0.8887 GB Notification: Performance of NFInst.instExpressions: time 0.003756/1.02, allocations: 2.601 MB / 1.172 GB, free: 15.15 MB / 0.9044 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001665/1.02, allocations: 3.938 kB / 1.172 GB, free: 15.15 MB / 0.9044 GB Notification: Performance of NFTyping.typeComponents: time 0.001391/1.022, allocations: 0.5111 MB / 1.172 GB, free: 14.64 MB / 0.9044 GB Notification: Performance of NFTyping.typeBindings: time 0.0001932/1.022, allocations: 63.59 kB / 1.172 GB, free: 14.58 MB / 0.9044 GB Notification: Performance of NFTyping.typeClassSections: time 0.0009459/1.023, allocations: 273.3 kB / 1.173 GB, free: 14.31 MB / 0.9044 GB Notification: Performance of NFFlatten.flatten: time 0.0004888/1.023, allocations: 334.3 kB / 1.173 GB, free: 13.98 MB / 0.9044 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001907/1.023, allocations: 93.05 kB / 1.173 GB, free: 13.89 MB / 0.9044 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001756/1.024, allocations: 107.5 kB / 1.173 GB, free: 13.79 MB / 0.9044 GB Notification: Performance of NFSimplifyModel.simplify: time 0.000226/1.024, allocations: 131.2 kB / 1.173 GB, free: 13.66 MB / 0.9044 GB Notification: Performance of NFPackage.collectConstants: time 4.142e-05/1.024, allocations: 8 kB / 1.173 GB, free: 13.65 MB / 0.9044 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0005694/1.025, allocations: 323.5 kB / 1.174 GB, free: 13.33 MB / 0.9044 GB Notification: Performance of NFScalarize.scalarize: time 0.0001224/1.025, allocations: 103.5 kB / 1.174 GB, free: 13.23 MB / 0.9044 GB Notification: Performance of NFVerifyModel.verify: time 0.0002122/1.025, allocations: 218.5 kB / 1.174 GB, free: 13.02 MB / 0.9044 GB Notification: Performance of NFConvertDAE.convert: time 0.001009/1.026, allocations: 0.8254 MB / 1.175 GB, free: 12.19 MB / 0.9044 GB Notification: Performance of FrontEnd - DAE generated: time 4.749e-06/1.026, allocations: 0 / 1.175 GB, free: 12.19 MB / 0.9044 GB Notification: Performance of FrontEnd: time 1.553e-06/1.026, allocations: 0 / 1.175 GB, free: 12.19 MB / 0.9044 GB Notification: Performance of Transformations before backend: time 1.786e-05/1.026, allocations: 0 / 1.175 GB, free: 12.19 MB / 0.9044 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.001282/1.027, allocations: 0.872 MB / 1.176 GB, free: 11.26 MB / 0.9044 GB Notification: Performance of prepare preOptimizeDAE: time 3.869e-05/1.027, allocations: 8.031 kB / 1.176 GB, free: 11.25 MB / 0.9044 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001076/1.027, allocations: 68.09 kB / 1.176 GB, free: 11.18 MB / 0.9044 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005681/1.028, allocations: 384.3 kB / 1.176 GB, free: 10.77 MB / 0.9044 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.081e-05/1.028, allocations: 12.38 kB / 1.176 GB, free: 10.75 MB / 0.9044 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.163e-05/1.028, allocations: 8.375 kB / 1.176 GB, free: 10.75 MB / 0.9044 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002418/1.028, allocations: 130.5 kB / 1.176 GB, free: 10.61 MB / 0.9044 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.366e-06/1.028, allocations: 0 / 1.176 GB, free: 10.61 MB / 0.9044 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.713e-05/1.028, allocations: 4 kB / 1.176 GB, free: 10.61 MB / 0.9044 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.53e-06/1.028, allocations: 0 / 1.176 GB, free: 10.61 MB / 0.9044 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001695/1.029, allocations: 99.94 kB / 1.176 GB, free: 10.51 MB / 0.9044 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008699/1.029, allocations: 0.547 MB / 1.177 GB, free: 9.914 MB / 0.9044 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001753/1.03, allocations: 110.5 kB / 1.177 GB, free: 9.797 MB / 0.9044 GB Notification: Performance of preOpt resolveLoops (simulation): time 9.003e-05/1.03, allocations: 64.97 kB / 1.177 GB, free: 9.73 MB / 0.9044 GB Notification: Performance of preOpt evalFunc (simulation): time 4.456e-05/1.03, allocations: 4.188 kB / 1.177 GB, free: 9.727 MB / 0.9044 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002055/1.03, allocations: 137 kB / 1.177 GB, free: 9.574 MB / 0.9044 GB Notification: Performance of pre-optimization done (n=11): time 1.392e-06/1.03, allocations: 0 / 1.177 GB, free: 9.574 MB / 0.9044 GB Notification: Performance of matching and sorting (n=11): time 0.0005139/1.03, allocations: 314.4 kB / 1.177 GB, free: 9.254 MB / 0.9044 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.472e-05/1.031, allocations: 89.11 kB / 1.178 GB, free: 9.148 MB / 0.9044 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000968/1.032, allocations: 0.7896 MB / 1.178 GB, free: 8.352 MB / 0.9044 GB Notification: Performance of collectPreVariables (initialization): time 2.279e-05/1.032, allocations: 29.7 kB / 1.178 GB, free: 8.316 MB / 0.9044 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002661/1.032, allocations: 288.2 kB / 1.179 GB, free: 8.031 MB / 0.9044 GB Notification: Performance of collectInitialBindings (initialization): time 3.799e-05/1.032, allocations: 23.66 kB / 1.179 GB, free: 8.008 MB / 0.9044 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.818e-05/1.032, allocations: 37.69 kB / 1.179 GB, free: 7.965 MB / 0.9044 GB Notification: Performance of setup shared object (initialization): time 0.0001175/1.032, allocations: 306 kB / 1.179 GB, free: 7.66 MB / 0.9044 GB Notification: Performance of preBalanceInitialSystem (initialization): time 8.136e-05/1.032, allocations: 51.97 kB / 1.179 GB, free: 7.609 MB / 0.9044 GB Notification: Performance of partitionIndependentBlocks (initialization): time 7.928e-05/1.032, allocations: 47.97 kB / 1.179 GB, free: 7.562 MB / 0.9044 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001722/1.032, allocations: 156.6 kB / 1.179 GB, free: 7.395 MB / 0.9044 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.264e-06/1.032, allocations: 0 / 1.179 GB, free: 7.395 MB / 0.9044 GB Notification: Performance of matching and sorting (n=12) (initialization): time 0.0003541/1.033, allocations: 278.3 kB / 1.179 GB, free: 7.109 MB / 0.9044 GB Notification: Performance of prepare postOptimizeDAE: time 4.252e-05/1.033, allocations: 37.69 kB / 1.179 GB, free: 7.066 MB / 0.9044 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.501e-06/1.033, allocations: 0 / 1.179 GB, free: 7.066 MB / 0.9044 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.43e-05/1.033, allocations: 0 / 1.179 GB, free: 7.066 MB / 0.9044 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.219e-05/1.033, allocations: 8 kB / 1.179 GB, free: 7.059 MB / 0.9044 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.231e-06/1.033, allocations: 0 / 1.179 GB, free: 7.059 MB / 0.9044 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001394/1.033, allocations: 11.98 kB / 1.179 GB, free: 7.047 MB / 0.9044 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.253e-05/1.033, allocations: 8 kB / 1.18 GB, free: 7.039 MB / 0.9044 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.0003335/1.034, allocations: 339.3 kB / 1.18 GB, free: 6.691 MB / 0.9044 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.851e-05/1.034, allocations: 71.09 kB / 1.18 GB, free: 6.621 MB / 0.9044 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000442/1.034, allocations: 297 kB / 1.18 GB, free: 6.312 MB / 0.9044 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.078e-06/1.034, allocations: 128 / 1.18 GB, free: 6.312 MB / 0.9044 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.971e-06/1.034, allocations: 4 kB / 1.18 GB, free: 6.309 MB / 0.9044 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.687e-06/1.034, allocations: 0 / 1.18 GB, free: 6.309 MB / 0.9044 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004181/1.035, allocations: 385.3 kB / 1.181 GB, free: 5.883 MB / 0.9044 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.757e-06/1.035, allocations: 7.938 kB / 1.181 GB, free: 5.875 MB / 0.9044 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.573e-05/1.035, allocations: 11.98 kB / 1.181 GB, free: 5.863 MB / 0.9044 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.926e-06/1.035, allocations: 0 / 1.181 GB, free: 5.863 MB / 0.9044 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.439e-05/1.035, allocations: 4 kB / 1.181 GB, free: 5.859 MB / 0.9044 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.513e-06/1.035, allocations: 0 / 1.181 GB, free: 5.859 MB / 0.9044 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.653e-06/1.035, allocations: 0 / 1.181 GB, free: 5.859 MB / 0.9044 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000383/1.035, allocations: 306 kB / 1.181 GB, free: 5.535 MB / 0.9044 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001799/1.035, allocations: 148.1 kB / 1.181 GB, free: 5.371 MB / 0.9044 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.836e-05/1.035, allocations: 12 kB / 1.181 GB, free: 5.359 MB / 0.9044 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001152/1.035, allocations: 7.984 kB / 1.181 GB, free: 5.352 MB / 0.9044 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.72e-05/1.035, allocations: 4 kB / 1.181 GB, free: 5.348 MB / 0.9044 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.691e-05/1.035, allocations: 11.97 kB / 1.181 GB, free: 5.336 MB / 0.9044 GB Notification: Performance of sorting global known variables: time 0.0007165/1.036, allocations: 0.5887 MB / 1.182 GB, free: 4.754 MB / 0.9044 GB Notification: Performance of sort global known variables: time 3.2e-07/1.036, allocations: 0 / 1.182 GB, free: 4.754 MB / 0.9044 GB Notification: Performance of remove unused functions: time 0.0004352/1.037, allocations: 120 kB / 1.182 GB, free: 4.637 MB / 0.9044 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.0004451/1.037, allocations: 187.2 kB / 1.182 GB, free: 4.445 MB / 0.9044 GB Notification: Performance of simCode: created initialization part: time 0.0003122/1.037, allocations: 211.3 kB / 1.182 GB, free: 4.227 MB / 0.9044 GB Notification: Performance of simCode: created event and clocks part: time 2.685e-06/1.037, allocations: 0 / 1.182 GB, free: 4.227 MB / 0.9044 GB Notification: Performance of simCode: created simulation system equations: time 0.0001543/1.038, allocations: 143.4 kB / 1.182 GB, free: 4.074 MB / 0.9044 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005639/1.038, allocations: 133.1 kB / 1.182 GB, free: 3.949 MB / 0.9044 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001685/1.04, allocations: 1.126 MB / 1.183 GB, free: 2.789 MB / 0.9044 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005742/1.04, allocations: 0.9781 MB / 1.184 GB, free: 1.785 MB / 0.9044 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.209e-05/1.04, allocations: 19.44 kB / 1.184 GB, free: 1.766 MB / 0.9044 GB Notification: Performance of SimCode: time 4.61e-07/1.04, allocations: 0 / 1.184 GB, free: 1.766 MB / 0.9044 GB Notification: Performance of Templates: time 0.01083/1.051, allocations: 6.747 MB / 1.191 GB, free: 11.08 MB / 0.92 GB make -j1 -f Buildings_10_Buildings.Fluid.DXSystems.Cooling.BaseClasses.Examples.SpeedShift.makefile (rm -f Buildings_10_Buildings.Fluid.DXSystems.Cooling.BaseClasses.Examples.SpeedShift.pipe ; mkfifo Buildings_10_Buildings.Fluid.DXSystems.Cooling.BaseClasses.Examples.SpeedShift.pipe ; head -c 1048576 < Buildings_10_Buildings.Fluid.DXSystems.Cooling.BaseClasses.Examples.SpeedShift.pipe >> ../files/Buildings_10_Buildings.Fluid.DXSystems.Cooling.BaseClasses.Examples.SpeedShift.sim & ./Buildings_10_Buildings.Fluid.DXSystems.Cooling.BaseClasses.Examples.SpeedShift -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_10_Buildings.Fluid.DXSystems.Cooling.BaseClasses.Examples.SpeedShift.pipe 2>&1) diffSimulationResults("Buildings_10_Buildings.Fluid.DXSystems.Cooling.BaseClasses.Examples.SpeedShift_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_10.0.x/Buildings_Fluid_DXSystems_Cooling_BaseClasses_Examples_SpeedShift.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_10_Buildings.Fluid.DXSystems.Cooling.BaseClasses.Examples.SpeedShift.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches