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.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001518/0.001518, allocations: 113.9 kB / 18.94 MB, free: 2.953 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.002004/0.002004, allocations: 189.1 kB / 22.23 MB, free: 5.137 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.571/1.571, allocations: 225.6 MB / 251 MB, free: 13.04 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.1-maint.12.x/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.1-maint.12.x/package.mo): time 3.369/3.369, allocations: 496 MB / 0.7835 GB, free: 33.78 MB / 0.6231 GB " [Timeout remaining time 176] Using package Buildings with version 12.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.1-maint.12.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=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: Performance of FrontEnd - loaded program: time 0.002067/0.002067, allocations: 64.39 kB / 1.138 GB, free: 33.8 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.5134/0.5155, allocations: 173.6 MB / 1.307 GB, free: 1.785 MB / 0.9981 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.DXSystems.Cooling.BaseClasses.Examples.SpeedShift): time 0.004483/0.52, allocations: 2.061 MB / 1.309 GB, free: 15.71 MB / 1.014 GB Notification: Performance of NFInst.instExpressions: time 0.004432/0.5244, allocations: 2.635 MB / 1.312 GB, free: 13.07 MB / 1.014 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001644/0.5246, allocations: 0 / 1.312 GB, free: 13.07 MB / 1.014 GB Notification: Performance of NFTyping.typeComponents: time 0.001534/0.5261, allocations: 0.5133 MB / 1.312 GB, free: 12.55 MB / 1.014 GB Notification: Performance of NFTyping.typeBindings: time 0.0001668/0.5263, allocations: 71.53 kB / 1.312 GB, free: 12.48 MB / 1.014 GB Notification: Performance of NFTyping.typeClassSections: time 0.00118/0.5275, allocations: 284.5 kB / 1.313 GB, free: 12.2 MB / 1.014 GB Notification: Performance of NFFlatten.flatten: time 0.0005314/0.528, allocations: 321.6 kB / 1.313 GB, free: 11.89 MB / 1.014 GB Notification: Performance of NFFlatten.resolveConnections: time 0.000174/0.5282, allocations: 49.2 kB / 1.313 GB, free: 11.84 MB / 1.014 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001537/0.5283, allocations: 119.5 kB / 1.313 GB, free: 11.72 MB / 1.014 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002349/0.5286, allocations: 139.2 kB / 1.313 GB, free: 11.58 MB / 1.014 GB Notification: Performance of NFPackage.collectConstants: time 2.921e-05/0.5286, allocations: 8 kB / 1.313 GB, free: 11.57 MB / 1.014 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0006258/0.5292, allocations: 359.5 kB / 1.314 GB, free: 11.22 MB / 1.014 GB Notification: Performance of NFScalarize.scalarize: time 0.0001352/0.5294, allocations: 107.5 kB / 1.314 GB, free: 11.12 MB / 1.014 GB Notification: Performance of NFVerifyModel.verify: time 0.0002296/0.5296, allocations: 214.5 kB / 1.314 GB, free: 10.91 MB / 1.014 GB Notification: Performance of NFConvertDAE.convert: time 0.001161/0.5307, allocations: 0.8288 MB / 1.315 GB, free: 10.07 MB / 1.014 GB Notification: Performance of FrontEnd - DAE generated: time 4.939e-06/0.5308, allocations: 0 / 1.315 GB, free: 10.07 MB / 1.014 GB Notification: Performance of FrontEnd: time 1.773e-06/0.5308, allocations: 0 / 1.315 GB, free: 10.07 MB / 1.014 GB Notification: Performance of Transformations before backend: time 9.347e-06/0.5308, allocations: 3.938 kB / 1.315 GB, free: 10.07 MB / 1.014 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.001314/0.5321, allocations: 0.8197 MB / 1.316 GB, free: 9.211 MB / 1.014 GB Notification: Performance of prepare preOptimizeDAE: time 5.318e-05/0.5321, allocations: 8.031 kB / 1.316 GB, free: 9.203 MB / 1.014 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001291/0.5323, allocations: 72.47 kB / 1.316 GB, free: 9.133 MB / 1.014 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00074/0.533, allocations: 323.2 kB / 1.316 GB, free: 8.789 MB / 1.014 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.493e-05/0.533, allocations: 8.375 kB / 1.316 GB, free: 8.781 MB / 1.014 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.11e-05/0.5331, allocations: 16.31 kB / 1.316 GB, free: 8.766 MB / 1.014 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002839/0.5333, allocations: 125.9 kB / 1.316 GB, free: 8.637 MB / 1.014 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.815e-05/0.5334, allocations: 0 / 1.316 GB, free: 8.637 MB / 1.014 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.5e-05/0.5334, allocations: 11.98 kB / 1.316 GB, free: 8.625 MB / 1.014 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.263e-06/0.5334, allocations: 0 / 1.316 GB, free: 8.625 MB / 1.014 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000193/0.5336, allocations: 101 kB / 1.316 GB, free: 8.527 MB / 1.014 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009573/0.5345, allocations: 0.5266 MB / 1.317 GB, free: 7.957 MB / 1.014 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000185/0.5347, allocations: 90.56 kB / 1.317 GB, free: 7.859 MB / 1.014 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001088/0.5348, allocations: 60.91 kB / 1.317 GB, free: 7.797 MB / 1.014 GB Notification: Performance of preOpt evalFunc (simulation): time 4.705e-05/0.5349, allocations: 8.188 kB / 1.317 GB, free: 7.789 MB / 1.014 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002265/0.5351, allocations: 137 kB / 1.317 GB, free: 7.637 MB / 1.014 GB Notification: Performance of pre-optimization done (n=11): time 1.162e-06/0.5351, allocations: 0 / 1.317 GB, free: 7.637 MB / 1.014 GB Notification: Performance of matching and sorting (n=11): time 0.0006564/0.5358, allocations: 306.9 kB / 1.317 GB, free: 7.324 MB / 1.014 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.433e-05/0.5358, allocations: 81.11 kB / 1.317 GB, free: 7.227 MB / 1.014 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00111/0.5369, allocations: 0.8012 MB / 1.318 GB, free: 6.418 MB / 1.014 GB Notification: Performance of collectPreVariables (initialization): time 2.777e-05/0.537, allocations: 29.7 kB / 1.318 GB, free: 6.383 MB / 1.014 GB Notification: Performance of collectInitialEqns (initialization): time 0.0003705/0.5373, allocations: 288.3 kB / 1.319 GB, free: 6.098 MB / 1.014 GB Notification: Performance of collectInitialBindings (initialization): time 4.343e-05/0.5374, allocations: 31.69 kB / 1.319 GB, free: 6.066 MB / 1.014 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.607e-05/0.5375, allocations: 33.69 kB / 1.319 GB, free: 6.027 MB / 1.014 GB Notification: Performance of setup shared object (initialization): time 0.0001821/0.5376, allocations: 310 kB / 1.319 GB, free: 5.719 MB / 1.014 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001374/0.5378, allocations: 47.97 kB / 1.319 GB, free: 5.672 MB / 1.014 GB Notification: Performance of partitionIndependentBlocks (initialization): time 7.553e-05/0.5379, allocations: 40.31 kB / 1.319 GB, free: 5.633 MB / 1.014 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002042/0.5381, allocations: 164.3 kB / 1.319 GB, free: 5.457 MB / 1.014 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.984e-06/0.5381, allocations: 0 / 1.319 GB, free: 5.457 MB / 1.014 GB Notification: Performance of matching and sorting (n=12) (initialization): time 0.0004/0.5385, allocations: 266.9 kB / 1.319 GB, free: 5.184 MB / 1.014 GB Notification: Performance of prepare postOptimizeDAE: time 5.91e-05/0.5385, allocations: 45.69 kB / 1.319 GB, free: 5.133 MB / 1.014 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.052e-06/0.5385, allocations: 0 / 1.319 GB, free: 5.133 MB / 1.014 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.813e-05/0.5385, allocations: 0 / 1.319 GB, free: 5.133 MB / 1.014 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.598e-05/0.5386, allocations: 11.94 kB / 1.319 GB, free: 5.121 MB / 1.014 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.185e-06/0.5386, allocations: 0 / 1.319 GB, free: 5.121 MB / 1.014 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001308/0.5388, allocations: 19.81 kB / 1.319 GB, free: 5.102 MB / 1.014 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.818e-05/0.5388, allocations: 4 kB / 1.319 GB, free: 5.098 MB / 1.014 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.0004066/0.5392, allocations: 339.3 kB / 1.32 GB, free: 4.75 MB / 1.014 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.559e-05/0.5393, allocations: 71.52 kB / 1.32 GB, free: 4.68 MB / 1.014 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005075/0.5398, allocations: 297.1 kB / 1.32 GB, free: 4.371 MB / 1.014 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.118e-06/0.5398, allocations: 3.938 kB / 1.32 GB, free: 4.367 MB / 1.014 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.491e-06/0.5398, allocations: 0 / 1.32 GB, free: 4.367 MB / 1.014 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.057e-06/0.5398, allocations: 0 / 1.32 GB, free: 4.367 MB / 1.014 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004718/0.5403, allocations: 352.5 kB / 1.32 GB, free: 3.98 MB / 1.014 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.677e-06/0.5403, allocations: 3.938 kB / 1.32 GB, free: 3.977 MB / 1.014 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.888e-05/0.5403, allocations: 7.984 kB / 1.32 GB, free: 3.969 MB / 1.014 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.194e-06/0.5403, allocations: 0 / 1.32 GB, free: 3.969 MB / 1.014 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.77e-05/0.5404, allocations: 8 kB / 1.32 GB, free: 3.961 MB / 1.014 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.754e-06/0.5404, allocations: 0 / 1.32 GB, free: 3.961 MB / 1.014 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.092e-06/0.5404, allocations: 7.938 kB / 1.32 GB, free: 3.953 MB / 1.014 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007085/0.5411, allocations: 322.2 kB / 1.321 GB, free: 3.613 MB / 1.014 GB Notification: Performance of postOpt removeConstants (simulation): time 0.00014/0.5412, allocations: 71.44 kB / 1.321 GB, free: 3.543 MB / 1.014 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.414e-05/0.5413, allocations: 4 kB / 1.321 GB, free: 3.539 MB / 1.014 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001128/0.5414, allocations: 11.98 kB / 1.321 GB, free: 3.527 MB / 1.014 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.005e-05/0.5414, allocations: 4 kB / 1.321 GB, free: 3.523 MB / 1.014 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.333e-05/0.5414, allocations: 8.125 kB / 1.321 GB, free: 3.516 MB / 1.014 GB Notification: Performance of sorting global known variables: time 0.0009474/0.5424, allocations: 0.5926 MB / 1.321 GB, free: 2.93 MB / 1.014 GB Notification: Performance of sort global known variables: time 8e-08/0.5424, allocations: 0 / 1.321 GB, free: 2.93 MB / 1.014 GB Notification: Performance of remove unused functions: time 0.0004763/0.5429, allocations: 119.9 kB / 1.322 GB, free: 2.812 MB / 1.014 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.000409/0.5433, allocations: 183.8 kB / 1.322 GB, free: 2.625 MB / 1.014 GB Notification: Performance of simCode: created initialization part: time 0.0003311/0.5436, allocations: 183.3 kB / 1.322 GB, free: 2.434 MB / 1.014 GB Notification: Performance of simCode: created event and clocks part: time 2.685e-06/0.5436, allocations: 0 / 1.322 GB, free: 2.434 MB / 1.014 GB Notification: Performance of simCode: created simulation system equations: time 0.0001514/0.5438, allocations: 119.3 kB / 1.322 GB, free: 2.305 MB / 1.014 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005683/0.5443, allocations: 131 kB / 1.322 GB, free: 2.18 MB / 1.014 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001875/0.5462, allocations: 1.101 MB / 1.323 GB, free: 1.051 MB / 1.014 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000879/0.5471, allocations: 0.9782 MB / 1.324 GB, free: 48 kB / 1.014 GB Notification: Performance of simCode: alias equations: time 0.0001082/0.5472, allocations: 25.95 kB / 1.324 GB, free: 24 kB / 1.014 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.053e-05/0.5472, allocations: 19.38 kB / 1.324 GB, free: 4 kB / 1.014 GB Notification: Performance of SimCode: time 1.062e-06/0.5472, allocations: 4 kB / 1.324 GB, free: 0 / 1.014 GB Notification: Performance of Templates: time 0.01401/0.5612, allocations: 5.622 MB / 1.33 GB, free: 10.48 MB / 1.029 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.20095997210592]