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.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001878/0.001878, allocations: 102.1 kB / 19.7 MB, free: 2.254 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.002502/0.002502, allocations: 219.5 kB / 23.01 MB, free: 4.609 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.507/1.507, allocations: 230.6 MB / 256.8 MB, free: 8.043 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings master/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings master/package.mo): time 3.31/3.31, allocations: 0.505 GB / 0.8108 GB, free: 22.03 MB / 0.6231 GB " [Timeout remaining time 176] Using package Buildings with version 13.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings master/package.mo) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: translateModel(Buildings.Fluid.DXSystems.Cooling.BaseClasses.Examples.SpeedShift,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,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=2500,variableFilter="time|speShi.y|speShi.speRat",fileNamePrefix="Buildings_latest_Buildings.Fluid.DXSystems.Cooling.BaseClasses.Examples.SpeedShift") [Timeout 300] "Notification: Buildings requested package Modelica of version 4.0.0. Modelica 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.002056/0.002056, allocations: 67.02 kB / 1.178 GB, free: 16.9 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3878/0.3899, allocations: 180.2 MB / 1.354 GB, free: 7.914 MB / 1.045 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.DXSystems.Cooling.BaseClasses.Examples.SpeedShift): time 0.003768/0.3937, allocations: 2.094 MB / 1.356 GB, free: 5.809 MB / 1.045 GB Notification: Performance of NFInst.instExpressions: time 0.003909/0.3976, allocations: 2.663 MB / 1.359 GB, free: 3.133 MB / 1.045 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.00012/0.3977, allocations: 0 / 1.359 GB, free: 3.133 MB / 1.045 GB Notification: Performance of NFTyping.typeComponents: time 0.001307/0.399, allocations: 0.5056 MB / 1.359 GB, free: 2.625 MB / 1.045 GB Notification: Performance of NFTyping.typeBindings: time 0.0001492/0.3992, allocations: 71.53 kB / 1.359 GB, free: 2.555 MB / 1.045 GB Notification: Performance of NFTyping.typeClassSections: time 0.0009045/0.4001, allocations: 279.3 kB / 1.36 GB, free: 2.281 MB / 1.045 GB Notification: Performance of NFFlatten.flatten: time 0.0004587/0.4005, allocations: 324.7 kB / 1.36 GB, free: 1.965 MB / 1.045 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001568/0.4007, allocations: 53.17 kB / 1.36 GB, free: 1.91 MB / 1.045 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001451/0.4008, allocations: 107.5 kB / 1.36 GB, free: 1.805 MB / 1.045 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002329/0.4011, allocations: 147.2 kB / 1.36 GB, free: 1.66 MB / 1.045 GB Notification: Performance of NFPackage.collectConstants: time 3.024e-05/0.4011, allocations: 8 kB / 1.36 GB, free: 1.652 MB / 1.045 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0005876/0.4017, allocations: 347.5 kB / 1.361 GB, free: 1.312 MB / 1.045 GB Notification: Performance of NFScalarize.scalarize: time 0.0001377/0.4018, allocations: 123.4 kB / 1.361 GB, free: 1.191 MB / 1.045 GB Notification: Performance of NFVerifyModel.verify: time 0.000215/0.402, allocations: 210.5 kB / 1.361 GB, free: 0.9844 MB / 1.045 GB Notification: Performance of NFConvertDAE.convert: time 0.001034/0.4031, allocations: 0.8249 MB / 1.362 GB, free: 160 kB / 1.045 GB Notification: Performance of FrontEnd - DAE generated: time 4.738e-06/0.4031, allocations: 0 / 1.362 GB, free: 160 kB / 1.045 GB Notification: Performance of FrontEnd: time 1.673e-06/0.4031, allocations: 0 / 1.362 GB, free: 160 kB / 1.045 GB Notification: Performance of Transformations before backend: time 9.999e-06/0.4031, allocations: 0 / 1.362 GB, free: 160 kB / 1.045 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.001309/0.4044, allocations: 0.8199 MB / 1.362 GB, free: 15.29 MB / 1.061 GB Notification: Performance of prepare preOptimizeDAE: time 4.261e-05/0.4044, allocations: 15.97 kB / 1.362 GB, free: 15.28 MB / 1.061 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001086/0.4045, allocations: 68.5 kB / 1.363 GB, free: 15.21 MB / 1.061 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005846/0.4051, allocations: 335.1 kB / 1.363 GB, free: 14.86 MB / 1.061 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.072e-05/0.4051, allocations: 12.12 kB / 1.363 GB, free: 14.85 MB / 1.061 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.153e-05/0.4052, allocations: 8.375 kB / 1.363 GB, free: 14.84 MB / 1.061 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002679/0.4054, allocations: 130.9 kB / 1.363 GB, free: 14.71 MB / 1.061 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.028e-05/0.4054, allocations: 0 / 1.363 GB, free: 14.71 MB / 1.061 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.437e-05/0.4055, allocations: 0 / 1.363 GB, free: 14.71 MB / 1.061 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.659e-06/0.4055, allocations: 0 / 1.363 GB, free: 14.71 MB / 1.061 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001699/0.4056, allocations: 95.95 kB / 1.363 GB, free: 14.61 MB / 1.061 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008637/0.4065, allocations: 0.5228 MB / 1.364 GB, free: 14.05 MB / 1.061 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001926/0.4067, allocations: 98.45 kB / 1.364 GB, free: 13.94 MB / 1.061 GB Notification: Performance of preOpt resolveLoops (simulation): time 8.557e-05/0.4068, allocations: 48.98 kB / 1.364 GB, free: 13.89 MB / 1.061 GB Notification: Performance of preOpt evalFunc (simulation): time 4.046e-05/0.4068, allocations: 8.172 kB / 1.364 GB, free: 13.88 MB / 1.061 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002138/0.407, allocations: 137 kB / 1.364 GB, free: 13.73 MB / 1.061 GB Notification: Performance of pre-optimization done (n=11): time 1.352e-06/0.407, allocations: 0 / 1.364 GB, free: 13.73 MB / 1.061 GB Notification: Performance of matching and sorting (n=11): time 0.0005223/0.4076, allocations: 314.8 kB / 1.364 GB, free: 13.41 MB / 1.061 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.202e-05/0.4076, allocations: 85.14 kB / 1.364 GB, free: 13.31 MB / 1.061 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009946/0.4086, allocations: 0.7973 MB / 1.365 GB, free: 12.5 MB / 1.061 GB Notification: Performance of collectPreVariables (initialization): time 2.214e-05/0.4086, allocations: 29.64 kB / 1.365 GB, free: 12.46 MB / 1.061 GB Notification: Performance of collectInitialEqns (initialization): time 0.0003021/0.4089, allocations: 288.3 kB / 1.365 GB, free: 12.18 MB / 1.061 GB Notification: Performance of collectInitialBindings (initialization): time 5.496e-05/0.409, allocations: 35.72 kB / 1.365 GB, free: 12.14 MB / 1.061 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.416e-05/0.4091, allocations: 21.72 kB / 1.365 GB, free: 12.12 MB / 1.061 GB Notification: Performance of setup shared object (initialization): time 0.0001674/0.4092, allocations: 318 kB / 1.366 GB, free: 11.8 MB / 1.061 GB Notification: Performance of preBalanceInitialSystem (initialization): time 8.107e-05/0.4093, allocations: 43.98 kB / 1.366 GB, free: 11.76 MB / 1.061 GB Notification: Performance of partitionIndependentBlocks (initialization): time 8.273e-05/0.4094, allocations: 47.97 kB / 1.366 GB, free: 11.71 MB / 1.061 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002947/0.4097, allocations: 160.2 kB / 1.366 GB, free: 11.54 MB / 1.061 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.673e-06/0.4097, allocations: 0 / 1.366 GB, free: 11.54 MB / 1.061 GB Notification: Performance of matching and sorting (n=12) (initialization): time 0.0003643/0.41, allocations: 271.2 kB / 1.366 GB, free: 11.26 MB / 1.061 GB Notification: Performance of prepare postOptimizeDAE: time 5.544e-05/0.4101, allocations: 37.7 kB / 1.366 GB, free: 11.22 MB / 1.061 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.761e-06/0.4101, allocations: 0 / 1.366 GB, free: 11.22 MB / 1.061 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.665e-05/0.4101, allocations: 0 / 1.366 GB, free: 11.22 MB / 1.061 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.838e-05/0.4102, allocations: 11.98 kB / 1.366 GB, free: 11.21 MB / 1.061 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.572e-06/0.4102, allocations: 160 / 1.366 GB, free: 11.21 MB / 1.061 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001269/0.4103, allocations: 19.89 kB / 1.366 GB, free: 11.19 MB / 1.061 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.826e-05/0.4104, allocations: 4 kB / 1.366 GB, free: 11.18 MB / 1.061 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.000391/0.4108, allocations: 345.3 kB / 1.367 GB, free: 10.83 MB / 1.061 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.137e-05/0.4108, allocations: 67.52 kB / 1.367 GB, free: 10.77 MB / 1.061 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004733/0.4113, allocations: 312.8 kB / 1.367 GB, free: 10.44 MB / 1.061 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.012e-06/0.4113, allocations: 4 kB / 1.367 GB, free: 10.44 MB / 1.061 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.606e-06/0.4113, allocations: 0 / 1.367 GB, free: 10.44 MB / 1.061 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.437e-06/0.4113, allocations: 0 / 1.367 GB, free: 10.44 MB / 1.061 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004154/0.4117, allocations: 352.5 kB / 1.367 GB, free: 10.05 MB / 1.061 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.516e-06/0.4117, allocations: 3.938 kB / 1.367 GB, free: 10.05 MB / 1.061 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.008e-05/0.4118, allocations: 8 kB / 1.367 GB, free: 10.04 MB / 1.061 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.124e-06/0.4118, allocations: 0 / 1.367 GB, free: 10.04 MB / 1.061 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.705e-05/0.4118, allocations: 8 kB / 1.367 GB, free: 10.03 MB / 1.061 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.12e-06/0.4118, allocations: 7.969 kB / 1.367 GB, free: 10.02 MB / 1.061 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.21e-07/0.4118, allocations: 0 / 1.367 GB, free: 10.02 MB / 1.061 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004062/0.4122, allocations: 306.3 kB / 1.368 GB, free: 9.699 MB / 1.061 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001551/0.4124, allocations: 87.42 kB / 1.368 GB, free: 9.613 MB / 1.061 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.428e-05/0.4124, allocations: 4 kB / 1.368 GB, free: 9.609 MB / 1.061 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001049/0.4125, allocations: 15.88 kB / 1.368 GB, free: 9.594 MB / 1.061 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.334e-05/0.4126, allocations: 3.984 kB / 1.368 GB, free: 9.59 MB / 1.061 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.512e-05/0.4126, allocations: 4 kB / 1.368 GB, free: 9.586 MB / 1.061 GB Notification: Performance of sorting global known variables: time 0.0007471/0.4133, allocations: 0.5848 MB / 1.368 GB, free: 9.008 MB / 1.061 GB Notification: Performance of sort global known variables: time 1.01e-07/0.4133, allocations: 3.938 kB / 1.368 GB, free: 9.004 MB / 1.061 GB Notification: Performance of remove unused functions: time 0.0004675/0.4138, allocations: 123.9 kB / 1.368 GB, free: 8.883 MB / 1.061 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.0004054/0.4142, allocations: 187 kB / 1.369 GB, free: 8.691 MB / 1.061 GB Notification: Performance of simCode: created initialization part: time 0.0002989/0.4145, allocations: 175.5 kB / 1.369 GB, free: 8.508 MB / 1.061 GB Notification: Performance of simCode: created event and clocks part: time 1.222e-05/0.4145, allocations: 4 kB / 1.369 GB, free: 8.504 MB / 1.061 GB Notification: Performance of simCode: created simulation system equations: time 0.0001468/0.4147, allocations: 123.3 kB / 1.369 GB, free: 8.371 MB / 1.061 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005426/0.4152, allocations: 124.5 kB / 1.369 GB, free: 8.25 MB / 1.061 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001747/0.417, allocations: 1.141 MB / 1.37 GB, free: 7.07 MB / 1.061 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007025/0.4177, allocations: 0.9743 MB / 1.371 GB, free: 6.07 MB / 1.061 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.209e-05/0.4177, allocations: 15.44 kB / 1.371 GB, free: 6.055 MB / 1.061 GB Notification: Performance of SimCode: time 5.71e-07/0.4177, allocations: 4 kB / 1.371 GB, free: 6.051 MB / 1.061 GB Notification: Performance of Templates: time 0.01147/0.4292, allocations: 6.761 MB / 1.378 GB, free: 15.33 MB / 1.076 GB " [Timeout remaining time 300] make -j1 -f Buildings_latest_Buildings.Fluid.DXSystems.Cooling.BaseClasses.Examples.SpeedShift.makefile [Timeout 300] (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=800 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Fluid.DXSystems.Cooling.BaseClasses.Examples.SpeedShift.pipe 2>&1) [Timeout 800] 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) [Timeout 300] "" [Timeout remaining time 300] Reference file matches [Calling sys.exit(0), Time elapsed: 13.037831681984244]