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.002248/0.002248, allocations: 80.3 kB / 19.18 MB, free: 2.516 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.002114/0.002114, allocations: 159.3 kB / 22.45 MB, free: 5.375 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.666/1.666, allocations: 177.1 MB / 202.8 MB, free: 9.168 MB / 190.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.004/3.004, allocations: 389 MB / 0.633 GB, free: 0.9766 MB / 0.5919 GB " [Timeout remaining time 176] Using package Buildings with version 13.0.1 (/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: Performance of FrontEnd - loaded program: time 1.904e-06/1.904e-06, allocations: 0 / 1 GB, free: 7.254 MB / 0.9512 GB Notification: Performance of FrontEnd - Absyn->SCode: time 2.99e-05/3.18e-05, allocations: 2.281 kB / 1 GB, free: 7.25 MB / 0.9512 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.DXSystems.Cooling.BaseClasses.Examples.SpeedShift): time 0.004007/0.004039, allocations: 2.027 MB / 1.002 GB, free: 5.215 MB / 0.9512 GB Notification: Performance of NFInst.instExpressions: time 0.003935/0.007974, allocations: 2.366 MB / 1.004 GB, free: 2.836 MB / 0.9512 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001406/0.008115, allocations: 7.875 kB / 1.004 GB, free: 2.828 MB / 0.9512 GB Notification: Performance of NFTyping.typeComponents: time 0.001502/0.009617, allocations: 469.7 kB / 1.005 GB, free: 2.367 MB / 0.9512 GB Notification: Performance of NFTyping.typeBindings: time 0.0001527/0.00977, allocations: 75.53 kB / 1.005 GB, free: 2.293 MB / 0.9512 GB Notification: Performance of NFTyping.typeClassSections: time 0.001029/0.0108, allocations: 275.5 kB / 1.005 GB, free: 2.027 MB / 0.9512 GB Notification: Performance of NFFlatten.flatten: time 0.0006216/0.01142, allocations: 334.2 kB / 1.006 GB, free: 1.699 MB / 0.9512 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001861/0.01161, allocations: 57.22 kB / 1.006 GB, free: 1.637 MB / 0.9512 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002215/0.01183, allocations: 151.5 kB / 1.006 GB, free: 1.488 MB / 0.9512 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002311/0.01206, allocations: 107.7 kB / 1.006 GB, free: 1.383 MB / 0.9512 GB Notification: Performance of NFPackage.collectConstants: time 4.311e-05/0.0121, allocations: 8 kB / 1.006 GB, free: 1.375 MB / 0.9512 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0006457/0.01275, allocations: 331.5 kB / 1.006 GB, free: 1.051 MB / 0.9512 GB Notification: Performance of NFScalarize.scalarize: time 0.000165/0.01291, allocations: 107.5 kB / 1.006 GB, free: 0.9453 MB / 0.9512 GB Notification: Performance of NFVerifyModel.verify: time 0.0001649/0.01308, allocations: 99.59 kB / 1.006 GB, free: 0.8477 MB / 0.9512 GB Notification: Performance of NFConvertDAE.convert: time 0.001202/0.01428, allocations: 0.8528 MB / 1.007 GB, free: 15.99 MB / 0.9669 GB Notification: Performance of FrontEnd - DAE generated: time 5.49e-06/0.01429, allocations: 0 / 1.007 GB, free: 15.99 MB / 0.9669 GB Notification: Performance of FrontEnd: time 1.233e-06/0.01429, allocations: 4 kB / 1.007 GB, free: 15.99 MB / 0.9669 GB Notification: Performance of Transformations before backend: time 9.207e-06/0.0143, allocations: 4 kB / 1.007 GB, free: 15.98 MB / 0.9669 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.001297/0.01559, allocations: 0.8197 MB / 1.008 GB, free: 15.12 MB / 0.9669 GB Notification: Performance of prepare preOptimizeDAE: time 4.724e-05/0.01564, allocations: 8.031 kB / 1.008 GB, free: 15.12 MB / 0.9669 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001073/0.01575, allocations: 68.52 kB / 1.008 GB, free: 15.05 MB / 0.9669 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005508/0.0163, allocations: 326.4 kB / 1.008 GB, free: 14.7 MB / 0.9669 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.382e-05/0.01632, allocations: 8.375 kB / 1.008 GB, free: 14.7 MB / 0.9669 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.551e-05/0.01635, allocations: 8.375 kB / 1.008 GB, free: 14.69 MB / 0.9669 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003057/0.01665, allocations: 160.4 kB / 1.009 GB, free: 14.52 MB / 0.9669 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.797e-05/0.01667, allocations: 7.875 kB / 1.009 GB, free: 14.51 MB / 0.9669 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.86e-05/0.01669, allocations: 4 kB / 1.009 GB, free: 14.51 MB / 0.9669 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.316e-06/0.0167, allocations: 8 kB / 1.009 GB, free: 14.5 MB / 0.9669 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002065/0.01691, allocations: 125.6 kB / 1.009 GB, free: 14.37 MB / 0.9669 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008506/0.01776, allocations: 472.1 kB / 1.009 GB, free: 13.88 MB / 0.9669 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002369/0.01799, allocations: 128.2 kB / 1.009 GB, free: 13.74 MB / 0.9669 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001157/0.01811, allocations: 86.67 kB / 1.009 GB, free: 13.64 MB / 0.9669 GB Notification: Performance of preOpt evalFunc (simulation): time 4.385e-05/0.01815, allocations: 4 kB / 1.009 GB, free: 13.64 MB / 0.9669 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000269/0.01842, allocations: 166.8 kB / 1.01 GB, free: 13.45 MB / 0.9669 GB Notification: Performance of pre-optimization done (n=11): time 1.232e-06/0.01842, allocations: 0 / 1.01 GB, free: 13.45 MB / 0.9669 GB Notification: Performance of matching and sorting (n=11): time 0.0006099/0.01903, allocations: 378.4 kB / 1.01 GB, free: 13.06 MB / 0.9669 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.392e-05/0.01911, allocations: 89.11 kB / 1.01 GB, free: 12.95 MB / 0.9669 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001032/0.02014, allocations: 0.7543 MB / 1.011 GB, free: 12.19 MB / 0.9669 GB Notification: Performance of collectPreVariables (initialization): time 2.958e-05/0.02017, allocations: 25.7 kB / 1.011 GB, free: 12.16 MB / 0.9669 GB Notification: Performance of collectInitialEqns (initialization): time 0.0003632/0.02053, allocations: 303.9 kB / 1.011 GB, free: 11.86 MB / 0.9669 GB Notification: Performance of collectInitialBindings (initialization): time 4.405e-05/0.02058, allocations: 27.78 kB / 1.011 GB, free: 11.83 MB / 0.9669 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.11e-05/0.02065, allocations: 29.7 kB / 1.011 GB, free: 11.79 MB / 0.9669 GB Notification: Performance of setup shared object (initialization): time 0.0002225/0.02087, allocations: 310 kB / 1.011 GB, free: 11.48 MB / 0.9669 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001204/0.02099, allocations: 77.67 kB / 1.011 GB, free: 11.4 MB / 0.9669 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001042/0.02109, allocations: 78 kB / 1.012 GB, free: 11.32 MB / 0.9669 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002312/0.02133, allocations: 168.2 kB / 1.012 GB, free: 11.14 MB / 0.9669 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.094e-06/0.02133, allocations: 8 kB / 1.012 GB, free: 11.13 MB / 0.9669 GB Notification: Performance of matching and sorting (n=12) (initialization): time 0.000444/0.02177, allocations: 304.6 kB / 1.012 GB, free: 10.82 MB / 0.9669 GB Notification: Performance of prepare postOptimizeDAE: time 7.327e-05/0.02184, allocations: 37.69 kB / 1.012 GB, free: 10.77 MB / 0.9669 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.931e-06/0.02185, allocations: 0 / 1.012 GB, free: 10.77 MB / 0.9669 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.235e-05/0.02187, allocations: 3.938 kB / 1.012 GB, free: 10.77 MB / 0.9669 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.639e-05/0.02196, allocations: 8 kB / 1.012 GB, free: 10.76 MB / 0.9669 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.851e-06/0.02196, allocations: 0 / 1.012 GB, free: 10.76 MB / 0.9669 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001248/0.02209, allocations: 8.062 kB / 1.012 GB, free: 10.75 MB / 0.9669 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.378e-05/0.02212, allocations: 8 kB / 1.012 GB, free: 10.75 MB / 0.9669 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.0004266/0.02255, allocations: 335.9 kB / 1.012 GB, free: 10.4 MB / 0.9669 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.78e-05/0.02265, allocations: 67.58 kB / 1.012 GB, free: 10.34 MB / 0.9669 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005789/0.02323, allocations: 338.4 kB / 1.013 GB, free: 9.984 MB / 0.9669 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.769e-06/0.02323, allocations: 3.938 kB / 1.013 GB, free: 9.98 MB / 0.9669 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.639e-06/0.02324, allocations: 0 / 1.013 GB, free: 9.98 MB / 0.9669 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.091e-06/0.02324, allocations: 3.984 kB / 1.013 GB, free: 9.977 MB / 0.9669 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000399/0.02364, allocations: 313 kB / 1.013 GB, free: 9.641 MB / 0.9669 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.122e-06/0.02364, allocations: 0 / 1.013 GB, free: 9.641 MB / 0.9669 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.376e-05/0.02369, allocations: 8 kB / 1.013 GB, free: 9.633 MB / 0.9669 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.104e-06/0.02369, allocations: 0 / 1.013 GB, free: 9.633 MB / 0.9669 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.057e-05/0.02371, allocations: 11.98 kB / 1.013 GB, free: 9.621 MB / 0.9669 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.633e-06/0.02371, allocations: 0 / 1.013 GB, free: 9.621 MB / 0.9669 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.816e-06/0.02371, allocations: 7.938 kB / 1.013 GB, free: 9.613 MB / 0.9669 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004486/0.02416, allocations: 340 kB / 1.013 GB, free: 9.25 MB / 0.9669 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001259/0.02429, allocations: 71.44 kB / 1.013 GB, free: 9.18 MB / 0.9669 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.456e-05/0.02434, allocations: 4 kB / 1.013 GB, free: 9.176 MB / 0.9669 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001126/0.02445, allocations: 11.98 kB / 1.014 GB, free: 9.164 MB / 0.9669 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.915e-05/0.02451, allocations: 7.938 kB / 1.014 GB, free: 9.156 MB / 0.9669 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.687e-05/0.02453, allocations: 7.984 kB / 1.014 GB, free: 9.148 MB / 0.9669 GB Notification: Performance of sorting global known variables: time 0.0007274/0.02526, allocations: 0.5575 MB / 1.014 GB, free: 8.598 MB / 0.9669 GB Notification: Performance of sort global known variables: time 8.1e-08/0.02526, allocations: 0 / 1.014 GB, free: 8.598 MB / 0.9669 GB Notification: Performance of remove unused functions: time 0.0004265/0.02568, allocations: 131.8 kB / 1.014 GB, free: 8.469 MB / 0.9669 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.0004491/0.02613, allocations: 202.6 kB / 1.014 GB, free: 8.266 MB / 0.9669 GB Notification: Performance of simCode: created initialization part: time 0.0003654/0.0265, allocations: 250.7 kB / 1.015 GB, free: 7.996 MB / 0.9669 GB Notification: Performance of simCode: created event and clocks part: time 2.164e-06/0.0265, allocations: 0 / 1.015 GB, free: 7.996 MB / 0.9669 GB Notification: Performance of simCode: created simulation system equations: time 0.000168/0.02667, allocations: 141.1 kB / 1.015 GB, free: 7.84 MB / 0.9669 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005828/0.02725, allocations: 120.9 kB / 1.015 GB, free: 7.723 MB / 0.9669 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001816/0.02907, allocations: 1.097 MB / 1.016 GB, free: 6.59 MB / 0.9669 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004782/0.02955, allocations: 382.5 kB / 1.016 GB, free: 6.191 MB / 0.9669 GB Notification: Performance of simCode: alias equations: time 8.791e-05/0.02963, allocations: 29.89 kB / 1.016 GB, free: 6.16 MB / 0.9669 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.159e-05/0.02968, allocations: 20.48 kB / 1.016 GB, free: 6.137 MB / 0.9669 GB Notification: Performance of SimCode: time 3.11e-07/0.02968, allocations: 0 / 1.016 GB, free: 6.137 MB / 0.9669 GB Notification: Performance of Templates: time 0.0129/0.04257, allocations: 5.566 MB / 1.022 GB, free: 0.6797 MB / 0.9669 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/jenkins/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: 9.103604152798653]