Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_12_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.001506/0.001506, allocations: 103.6 kB / 18.95 MB, free: 2.547 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.002003/0.002003, allocations: 214.8 kB / 22.25 MB, free: 4.867 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.658/1.658, allocations: 230.6 MB / 256 MB, free: 7.816 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.1-maint.12.x/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.1-maint.12.x/package.mo): time 3.468/3.468, allocations: 0.4892 GB / 0.7943 GB, free: 35.56 MB / 0.6231 GB " [Timeout remaining time 176] Using package Buildings with version 12.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.1-maint.12.x/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_12_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_12_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.002194/0.002194, allocations: 66.84 kB / 1.154 GB, free: 25.53 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4866/0.4887, allocations: 176.1 MB / 1.326 GB, free: 1.863 MB / 1.014 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.DXSystems.Cooling.BaseClasses.Examples.SpeedShift): time 0.006121/0.4949, allocations: 2.024 MB / 1.328 GB, free: 15.83 MB / 1.029 GB Notification: Performance of NFInst.instExpressions: time 0.005711/0.5006, allocations: 2.359 MB / 1.33 GB, free: 13.46 MB / 1.029 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004012/0.501, allocations: 4 kB / 1.33 GB, free: 13.46 MB / 1.029 GB Notification: Performance of NFTyping.typeComponents: time 0.001853/0.5028, allocations: 457.9 kB / 1.33 GB, free: 13.01 MB / 1.029 GB Notification: Performance of NFTyping.typeBindings: time 0.0003141/0.5031, allocations: 71.53 kB / 1.33 GB, free: 12.94 MB / 1.029 GB Notification: Performance of NFTyping.typeClassSections: time 0.001313/0.5045, allocations: 282.3 kB / 1.331 GB, free: 12.66 MB / 1.029 GB Notification: Performance of NFFlatten.flatten: time 0.0006486/0.5051, allocations: 322.3 kB / 1.331 GB, free: 12.35 MB / 1.029 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001899/0.5053, allocations: 45.2 kB / 1.331 GB, free: 12.3 MB / 1.029 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002539/0.5056, allocations: 111.5 kB / 1.331 GB, free: 12.19 MB / 1.029 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0003095/0.5059, allocations: 139.2 kB / 1.331 GB, free: 12.05 MB / 1.029 GB Notification: Performance of NFPackage.collectConstants: time 5.282e-05/0.5059, allocations: 15.94 kB / 1.331 GB, free: 12.04 MB / 1.029 GB Notification: Performance of NFFlatten.collectFunctions: time 0.000753/0.5067, allocations: 331.5 kB / 1.332 GB, free: 11.71 MB / 1.029 GB Notification: Performance of NFScalarize.scalarize: time 0.0001906/0.5069, allocations: 107.5 kB / 1.332 GB, free: 11.61 MB / 1.029 GB Notification: Performance of NFVerifyModel.verify: time 0.0002122/0.5071, allocations: 142.9 kB / 1.332 GB, free: 11.46 MB / 1.029 GB Notification: Performance of NFConvertDAE.convert: time 0.001434/0.5085, allocations: 0.8366 MB / 1.333 GB, free: 10.62 MB / 1.029 GB Notification: Performance of FrontEnd - DAE generated: time 5.49e-06/0.5085, allocations: 0 / 1.333 GB, free: 10.62 MB / 1.029 GB Notification: Performance of FrontEnd: time 2.144e-06/0.5085, allocations: 0 / 1.333 GB, free: 10.62 MB / 1.029 GB Notification: Performance of Transformations before backend: time 2.898e-05/0.5085, allocations: 0 / 1.333 GB, free: 10.62 MB / 1.029 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.001742/0.5103, allocations: 0.8235 MB / 1.333 GB, free: 9.762 MB / 1.029 GB Notification: Performance of prepare preOptimizeDAE: time 5.274e-05/0.5103, allocations: 12.03 kB / 1.333 GB, free: 9.75 MB / 1.029 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001675/0.5105, allocations: 68.52 kB / 1.333 GB, free: 9.684 MB / 1.029 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007441/0.5112, allocations: 331.2 kB / 1.334 GB, free: 9.332 MB / 1.029 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.981e-05/0.5113, allocations: 8.375 kB / 1.334 GB, free: 9.324 MB / 1.029 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.789e-05/0.5113, allocations: 12.3 kB / 1.334 GB, free: 9.312 MB / 1.029 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003561/0.5117, allocations: 163.6 kB / 1.334 GB, free: 9.141 MB / 1.029 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.606e-05/0.5117, allocations: 3.984 kB / 1.334 GB, free: 9.137 MB / 1.029 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.371e-05/0.5117, allocations: 8 kB / 1.334 GB, free: 9.129 MB / 1.029 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.288e-05/0.5117, allocations: 0 / 1.334 GB, free: 9.129 MB / 1.029 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002361/0.512, allocations: 121.7 kB / 1.334 GB, free: 9.004 MB / 1.029 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009846/0.5129, allocations: 468.1 kB / 1.335 GB, free: 8.516 MB / 1.029 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002337/0.5132, allocations: 132.2 kB / 1.335 GB, free: 8.371 MB / 1.029 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.000119/0.5133, allocations: 86.67 kB / 1.335 GB, free: 8.277 MB / 1.029 GB Notification: Performance of preOpt evalFunc (simulation): time 4.762e-05/0.5133, allocations: 4 kB / 1.335 GB, free: 8.273 MB / 1.029 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002669/0.5136, allocations: 170.9 kB / 1.335 GB, free: 8.082 MB / 1.029 GB Notification: Performance of pre-optimization done (n=11): time 1.743e-06/0.5136, allocations: 0 / 1.335 GB, free: 8.082 MB / 1.029 GB Notification: Performance of matching and sorting (n=11): time 0.000746/0.5144, allocations: 374.2 kB / 1.335 GB, free: 7.691 MB / 1.029 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.141e-05/0.5144, allocations: 85.09 kB / 1.335 GB, free: 7.59 MB / 1.029 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001366/0.5158, allocations: 0.7581 MB / 1.336 GB, free: 6.82 MB / 1.029 GB Notification: Performance of collectPreVariables (initialization): time 3.329e-05/0.5158, allocations: 25.7 kB / 1.336 GB, free: 6.789 MB / 1.029 GB Notification: Performance of collectInitialEqns (initialization): time 0.0003539/0.5162, allocations: 299.9 kB / 1.336 GB, free: 6.492 MB / 1.029 GB Notification: Performance of collectInitialBindings (initialization): time 4.591e-05/0.5162, allocations: 27.8 kB / 1.336 GB, free: 6.465 MB / 1.029 GB Notification: Performance of simplifyInitialFunctions (initialization): time 8.907e-05/0.5163, allocations: 29.7 kB / 1.336 GB, free: 6.43 MB / 1.029 GB Notification: Performance of setup shared object (initialization): time 0.0001767/0.5165, allocations: 310 kB / 1.337 GB, free: 6.121 MB / 1.029 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000114/0.5166, allocations: 77.67 kB / 1.337 GB, free: 6.039 MB / 1.029 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001016/0.5167, allocations: 85.61 kB / 1.337 GB, free: 5.949 MB / 1.029 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002063/0.5169, allocations: 160.2 kB / 1.337 GB, free: 5.777 MB / 1.029 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.414e-06/0.5169, allocations: 0 / 1.337 GB, free: 5.777 MB / 1.029 GB Notification: Performance of matching and sorting (n=12) (initialization): time 0.0004364/0.5174, allocations: 305 kB / 1.337 GB, free: 5.461 MB / 1.029 GB Notification: Performance of prepare postOptimizeDAE: time 6.074e-05/0.5174, allocations: 45.62 kB / 1.337 GB, free: 5.41 MB / 1.029 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.883e-06/0.5174, allocations: 0 / 1.337 GB, free: 5.41 MB / 1.029 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.856e-05/0.5174, allocations: 0 / 1.337 GB, free: 5.41 MB / 1.029 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.613e-05/0.5175, allocations: 12 kB / 1.337 GB, free: 5.398 MB / 1.029 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.187e-06/0.5175, allocations: 3.938 kB / 1.337 GB, free: 5.395 MB / 1.029 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001477/0.5177, allocations: 11.94 kB / 1.337 GB, free: 5.383 MB / 1.029 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.087e-05/0.5177, allocations: 4 kB / 1.337 GB, free: 5.379 MB / 1.029 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.000428/0.5181, allocations: 343.7 kB / 1.338 GB, free: 5.031 MB / 1.029 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001007/0.5182, allocations: 71.52 kB / 1.338 GB, free: 4.961 MB / 1.029 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005215/0.5188, allocations: 330.4 kB / 1.338 GB, free: 4.613 MB / 1.029 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.419e-06/0.5188, allocations: 0 / 1.338 GB, free: 4.613 MB / 1.029 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.779e-06/0.5188, allocations: 4 kB / 1.338 GB, free: 4.609 MB / 1.029 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.407e-06/0.5188, allocations: 4 kB / 1.338 GB, free: 4.605 MB / 1.029 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004287/0.5192, allocations: 305.1 kB / 1.338 GB, free: 4.277 MB / 1.029 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.677e-06/0.5192, allocations: 128 / 1.338 GB, free: 4.277 MB / 1.029 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.122e-05/0.5193, allocations: 15.94 kB / 1.338 GB, free: 4.262 MB / 1.029 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.42e-06/0.5193, allocations: 3.984 kB / 1.338 GB, free: 4.258 MB / 1.029 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.154e-05/0.5193, allocations: 7.938 kB / 1.338 GB, free: 4.25 MB / 1.029 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.195e-06/0.5193, allocations: 0 / 1.338 GB, free: 4.25 MB / 1.029 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.573e-06/0.5193, allocations: 0 / 1.338 GB, free: 4.25 MB / 1.029 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004872/0.5198, allocations: 340 kB / 1.339 GB, free: 3.887 MB / 1.029 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001611/0.5199, allocations: 67.5 kB / 1.339 GB, free: 3.82 MB / 1.029 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.589e-05/0.52, allocations: 11.92 kB / 1.339 GB, free: 3.809 MB / 1.029 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000109/0.5201, allocations: 8 kB / 1.339 GB, free: 3.801 MB / 1.029 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.698e-05/0.5202, allocations: 11.97 kB / 1.339 GB, free: 3.789 MB / 1.029 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.598e-05/0.5202, allocations: 8 kB / 1.339 GB, free: 3.781 MB / 1.029 GB Notification: Performance of sorting global known variables: time 0.0007994/0.521, allocations: 0.5614 MB / 1.339 GB, free: 3.227 MB / 1.029 GB Notification: Performance of sort global known variables: time 7.1e-08/0.521, allocations: 0 / 1.339 GB, free: 3.227 MB / 1.029 GB Notification: Performance of remove unused functions: time 0.0005477/0.5215, allocations: 127.8 kB / 1.34 GB, free: 3.102 MB / 1.029 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.0005973/0.5221, allocations: 194.9 kB / 1.34 GB, free: 2.902 MB / 1.029 GB Notification: Performance of simCode: created initialization part: time 0.0004413/0.5226, allocations: 242.7 kB / 1.34 GB, free: 2.641 MB / 1.029 GB Notification: Performance of simCode: created event and clocks part: time 2.505e-06/0.5226, allocations: 0 / 1.34 GB, free: 2.641 MB / 1.029 GB Notification: Performance of simCode: created simulation system equations: time 0.0001794/0.5228, allocations: 149.1 kB / 1.34 GB, free: 2.477 MB / 1.029 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006046/0.5234, allocations: 126 kB / 1.34 GB, free: 2.352 MB / 1.029 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002221/0.5256, allocations: 1.117 MB / 1.341 GB, free: 1.199 MB / 1.029 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005163/0.5261, allocations: 374.5 kB / 1.342 GB, free: 0.8086 MB / 1.029 GB Notification: Performance of simCode: alias equations: time 0.0001266/0.5262, allocations: 21.95 kB / 1.342 GB, free: 0.7891 MB / 1.029 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.401e-05/0.5263, allocations: 23.44 kB / 1.342 GB, free: 0.7656 MB / 1.029 GB Notification: Performance of SimCode: time 1.032e-06/0.5263, allocations: 0 / 1.342 GB, free: 0.7656 MB / 1.029 GB Notification: Performance of Templates: time 0.01435/0.5406, allocations: 6.309 MB / 1.348 GB, free: 10.58 MB / 1.045 GB " [Timeout remaining time 299] make -j1 -f Buildings_12_Buildings.Fluid.DXSystems.Cooling.BaseClasses.Examples.SpeedShift.makefile [Timeout 300] (rm -f Buildings_12_Buildings.Fluid.DXSystems.Cooling.BaseClasses.Examples.SpeedShift.pipe ; mkfifo Buildings_12_Buildings.Fluid.DXSystems.Cooling.BaseClasses.Examples.SpeedShift.pipe ; head -c 1048576 < Buildings_12_Buildings.Fluid.DXSystems.Cooling.BaseClasses.Examples.SpeedShift.pipe >> ../files/Buildings_12_Buildings.Fluid.DXSystems.Cooling.BaseClasses.Examples.SpeedShift.sim & ./Buildings_12_Buildings.Fluid.DXSystems.Cooling.BaseClasses.Examples.SpeedShift -abortSlowSimulation -alarm=400 -emit_protected -lv LOG_STATS > Buildings_12_Buildings.Fluid.DXSystems.Cooling.BaseClasses.Examples.SpeedShift.pipe 2>&1) [Timeout 400] diffSimulationResults("Buildings_12_Buildings.Fluid.DXSystems.Cooling.BaseClasses.Examples.SpeedShift_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_12.x/Buildings_Fluid_DXSystems_Cooling_BaseClasses_Examples_SpeedShift.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_12_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: 10.46662108041346]