Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_Buildings.Fluid.DXSystems.Cooling.BaseClasses.Examples.SpeedSelect.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 11.0.1-master/package.mo", uses=false) Using package Buildings with version 11.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/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.SpeedSelect,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|speSel.speRat",fileNamePrefix="Buildings_latest_Buildings.Fluid.DXSystems.Cooling.BaseClasses.Examples.SpeedSelect") translateModel(Buildings.Fluid.DXSystems.Cooling.BaseClasses.Examples.SpeedSelect,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|speSel.speRat",fileNamePrefix="Buildings_latest_Buildings.Fluid.DXSystems.Cooling.BaseClasses.Examples.SpeedSelect") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.00122/0.00122, allocations: 105.6 kB / 15.98 MB, free: 6.336 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.001184/0.001184, allocations: 194.7 kB / 16.91 MB, free: 6.188 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.382/1.382, allocations: 222.9 MB / 240.6 MB, free: 15.41 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo): time 2.768/2.768, allocations: 469.4 MB / 0.7423 GB, free: 3.801 MB / 0.6075 GB Notification: Performance of FrontEnd - loaded program: time 0.001498/0.001498, allocations: 67.36 kB / 0.9083 GB, free: 14.48 MB / 0.6856 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3586/0.3602, allocations: 159.1 MB / 1.064 GB, free: 15.38 MB / 0.8419 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.DXSystems.Cooling.BaseClasses.Examples.SpeedSelect): time 0.004444/0.3646, allocations: 2.211 MB / 1.066 GB, free: 13.14 MB / 0.8419 GB Notification: Performance of NFInst.instExpressions: time 0.003817/0.3685, allocations: 2.601 MB / 1.068 GB, free: 10.53 MB / 0.8419 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002231/0.3687, allocations: 4 kB / 1.068 GB, free: 10.53 MB / 0.8419 GB Notification: Performance of NFTyping.typeComponents: time 0.001679/0.3705, allocations: 0.541 MB / 1.069 GB, free: 9.984 MB / 0.8419 GB Notification: Performance of NFTyping.typeBindings: time 0.0003849/0.3709, allocations: 107.5 kB / 1.069 GB, free: 9.879 MB / 0.8419 GB Notification: Performance of NFTyping.typeClassSections: time 0.0007746/0.3717, allocations: 217.4 kB / 1.069 GB, free: 9.672 MB / 0.8419 GB Notification: Performance of NFFlatten.flatten: time 0.0007975/0.3725, allocations: 402.2 kB / 1.07 GB, free: 9.277 MB / 0.8419 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0002185/0.3727, allocations: 65.08 kB / 1.07 GB, free: 9.207 MB / 0.8419 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0003219/0.373, allocations: 135.3 kB / 1.07 GB, free: 9.074 MB / 0.8419 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0003756/0.3734, allocations: 155.2 kB / 1.07 GB, free: 8.922 MB / 0.8419 GB Notification: Performance of NFPackage.collectConstants: time 6.916e-05/0.3735, allocations: 11.94 kB / 1.07 GB, free: 8.91 MB / 0.8419 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0002786/0.3738, allocations: 55.97 kB / 1.07 GB, free: 8.855 MB / 0.8419 GB Notification: Performance of NFScalarize.scalarize: time 0.0002642/0.3741, allocations: 139.4 kB / 1.07 GB, free: 8.719 MB / 0.8419 GB Notification: Performance of NFVerifyModel.verify: time 0.0003756/0.3745, allocations: 230.4 kB / 1.07 GB, free: 8.492 MB / 0.8419 GB Notification: Performance of NFConvertDAE.convert: time 0.0008969/0.3754, allocations: 0.5807 MB / 1.071 GB, free: 7.91 MB / 0.8419 GB Notification: Performance of FrontEnd - DAE generated: time 6.322e-06/0.3754, allocations: 4 kB / 1.071 GB, free: 7.906 MB / 0.8419 GB Notification: Performance of FrontEnd: time 4.108e-06/0.3754, allocations: 0 / 1.071 GB, free: 7.906 MB / 0.8419 GB Notification: Performance of Transformations before backend: time 2.674e-05/0.3755, allocations: 3.938 kB / 1.071 GB, free: 7.902 MB / 0.8419 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 9 * Number of variables: 9 Notification: Performance of Generate backend data structure: time 0.00196/0.3774, allocations: 0.8989 MB / 1.072 GB, free: 6.945 MB / 0.8419 GB Notification: Performance of prepare preOptimizeDAE: time 5.773e-05/0.3775, allocations: 12.03 kB / 1.072 GB, free: 6.934 MB / 0.8419 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002174/0.3777, allocations: 76.08 kB / 1.072 GB, free: 6.859 MB / 0.8419 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008865/0.3786, allocations: 456 kB / 1.072 GB, free: 6.375 MB / 0.8419 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.841e-05/0.3787, allocations: 8.375 kB / 1.072 GB, free: 6.367 MB / 0.8419 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.899e-05/0.3787, allocations: 8.062 kB / 1.072 GB, free: 6.359 MB / 0.8419 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003236/0.3791, allocations: 100.2 kB / 1.073 GB, free: 6.246 MB / 0.8419 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.107e-05/0.3791, allocations: 0 / 1.073 GB, free: 6.246 MB / 0.8419 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.098e-05/0.3791, allocations: 0 / 1.073 GB, free: 6.246 MB / 0.8419 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.096e-05/0.3791, allocations: 4 kB / 1.073 GB, free: 6.242 MB / 0.8419 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001588/0.3793, allocations: 47.91 kB / 1.073 GB, free: 6.195 MB / 0.8419 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009138/0.3802, allocations: 0.524 MB / 1.073 GB, free: 5.621 MB / 0.8419 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0004056/0.3806, allocations: 102.7 kB / 1.073 GB, free: 5.512 MB / 0.8419 GB Notification: Performance of preOpt resolveLoops (simulation): time 8.964e-05/0.3807, allocations: 32.84 kB / 1.073 GB, free: 5.477 MB / 0.8419 GB Notification: Performance of preOpt evalFunc (simulation): time 2.733e-05/0.3808, allocations: 4 kB / 1.073 GB, free: 5.473 MB / 0.8419 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001992/0.381, allocations: 83.38 kB / 1.073 GB, free: 5.379 MB / 0.8419 GB Notification: Performance of pre-optimization done (n=7): time 1.573e-06/0.381, allocations: 0 / 1.073 GB, free: 5.379 MB / 0.8419 GB Notification: Performance of matching and sorting (n=7): time 0.000461/0.3815, allocations: 192.8 kB / 1.073 GB, free: 5.184 MB / 0.8419 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.251e-05/0.3815, allocations: 110.7 kB / 1.074 GB, free: 5.051 MB / 0.8419 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001189/0.3827, allocations: 0.9187 MB / 1.074 GB, free: 4.121 MB / 0.8419 GB Notification: Performance of collectPreVariables (initialization): time 2.464e-05/0.3828, allocations: 33.7 kB / 1.074 GB, free: 4.082 MB / 0.8419 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002773/0.3831, allocations: 320 kB / 1.075 GB, free: 3.766 MB / 0.8419 GB Notification: Performance of collectInitialBindings (initialization): time 3.269e-05/0.3831, allocations: 19.75 kB / 1.075 GB, free: 3.746 MB / 0.8419 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.393e-05/0.3832, allocations: 25.7 kB / 1.075 GB, free: 3.715 MB / 0.8419 GB Notification: Performance of setup shared object (initialization): time 0.0001265/0.3833, allocations: 313.9 kB / 1.075 GB, free: 3.402 MB / 0.8419 GB Notification: Performance of preBalanceInitialSystem (initialization): time 8.002e-05/0.3834, allocations: 27.98 kB / 1.075 GB, free: 3.375 MB / 0.8419 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001073/0.3835, allocations: 76.27 kB / 1.075 GB, free: 3.285 MB / 0.8419 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000148/0.3836, allocations: 69.64 kB / 1.075 GB, free: 3.211 MB / 0.8419 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.324e-06/0.3837, allocations: 0 / 1.075 GB, free: 3.211 MB / 0.8419 GB Notification: Performance of matching and sorting (n=9) (initialization): time 0.0003239/0.384, allocations: 168.7 kB / 1.075 GB, free: 3.039 MB / 0.8419 GB Notification: Performance of prepare postOptimizeDAE: time 1.923e-05/0.384, allocations: 8 kB / 1.075 GB, free: 3.031 MB / 0.8419 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.871e-06/0.384, allocations: 0 / 1.075 GB, free: 3.031 MB / 0.8419 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.487e-05/0.384, allocations: 0 / 1.075 GB, free: 3.031 MB / 0.8419 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.945e-05/0.3841, allocations: 19.92 kB / 1.075 GB, free: 3.012 MB / 0.8419 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.464e-06/0.3842, allocations: 4.031 kB / 1.075 GB, free: 3.008 MB / 0.8419 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001406/0.3843, allocations: 7.938 kB / 1.076 GB, free: 3 MB / 0.8419 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.032e-05/0.3843, allocations: 4 kB / 1.076 GB, free: 2.996 MB / 0.8419 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 2 * Number of states: 0 () * Number of discrete variables: 6 ($PRE.sta.combiTimeTable.nextTimeEvent,$whenCondition1,sta.combiTimeTable.nextTimeEventScaled,$PRE.sta.combiTimeTable.nextTimeEventScaled,sta.combiTimeTable.nextTimeEvent,sta.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (9): * Single equations (assignments): 9 * Array equations: 0 * Algorithm blocks: 0 * 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.0003322/0.3847, allocations: 321.8 kB / 1.076 GB, free: 2.672 MB / 0.8419 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.849e-05/0.3847, allocations: 67.16 kB / 1.076 GB, free: 2.605 MB / 0.8419 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001223/0.3849, allocations: 82.34 kB / 1.076 GB, free: 2.52 MB / 0.8419 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.254e-06/0.3849, allocations: 0 / 1.076 GB, free: 2.52 MB / 0.8419 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.159e-06/0.3849, allocations: 0 / 1.076 GB, free: 2.52 MB / 0.8419 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.969e-06/0.3849, allocations: 3.938 kB / 1.076 GB, free: 2.516 MB / 0.8419 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004385/0.3853, allocations: 401.4 kB / 1.076 GB, free: 2.074 MB / 0.8419 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.665e-06/0.3854, allocations: 0 / 1.076 GB, free: 2.074 MB / 0.8419 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.143e-05/0.3854, allocations: 8 kB / 1.076 GB, free: 2.066 MB / 0.8419 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.875e-06/0.3854, allocations: 0 / 1.076 GB, free: 2.066 MB / 0.8419 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.331e-05/0.3854, allocations: 4 kB / 1.076 GB, free: 2.062 MB / 0.8419 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.877e-06/0.3854, allocations: 3.938 kB / 1.076 GB, free: 2.059 MB / 0.8419 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.334e-06/0.3855, allocations: 3.984 kB / 1.076 GB, free: 2.055 MB / 0.8419 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003129/0.3858, allocations: 196.5 kB / 1.077 GB, free: 1.844 MB / 0.8419 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001401/0.3859, allocations: 148.2 kB / 1.077 GB, free: 1.68 MB / 0.8419 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.061e-05/0.386, allocations: 4 kB / 1.077 GB, free: 1.676 MB / 0.8419 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001292/0.3861, allocations: 7.984 kB / 1.077 GB, free: 1.668 MB / 0.8419 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.796e-05/0.3862, allocations: 11.94 kB / 1.077 GB, free: 1.656 MB / 0.8419 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.322e-05/0.3862, allocations: 11.92 kB / 1.077 GB, free: 1.645 MB / 0.8419 GB Notification: Performance of sorting global known variables: time 0.0008365/0.3871, allocations: 0.6747 MB / 1.077 GB, free: 0.9766 MB / 0.8419 GB Notification: Performance of sort global known variables: time 2.31e-07/0.3871, allocations: 0 / 1.077 GB, free: 0.9766 MB / 0.8419 GB Notification: Performance of remove unused functions: time 0.0003165/0.3874, allocations: 63.98 kB / 1.077 GB, free: 0.9141 MB / 0.8419 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 4 ($whenCondition1,sta.y,sta.combiTimeTable.nextTimeEvent,sta.combiTimeTable.nextTimeEventScaled) * Number of discrete states: 2 (sta.combiTimeTable.nextTimeEventScaled,sta.combiTimeTable.nextTimeEvent) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (7): * Single equations (assignments): 5 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 2 * 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.001071/0.3885, allocations: 425.3 kB / 1.078 GB, free: 0.6484 MB / 0.8419 GB Notification: Performance of simCode: created initialization part: time 0.0002473/0.3887, allocations: 79.89 kB / 1.078 GB, free: 0.5703 MB / 0.8419 GB Notification: Performance of simCode: created event and clocks part: time 2.765e-06/0.3887, allocations: 0 / 1.078 GB, free: 0.5703 MB / 0.8419 GB Notification: Performance of simCode: created simulation system equations: time 9.679e-05/0.3888, allocations: 35.92 kB / 1.078 GB, free: 0.5352 MB / 0.8419 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007429/0.3896, allocations: 166.1 kB / 1.078 GB, free: 388 kB / 0.8419 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.498/0.8876, allocations: 1.322 MB / 1.079 GB, free: 22.29 MB / 0.8419 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000549/0.8882, allocations: 0.992 MB / 1.08 GB, free: 21.59 MB / 0.8419 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001003/0.8883, allocations: 28.02 kB / 1.08 GB, free: 21.59 MB / 0.8419 GB Notification: Performance of SimCode: time 1.222e-06/0.8883, allocations: 0.5625 kB / 1.08 GB, free: 21.59 MB / 0.8419 GB Notification: Performance of Templates: time 0.01475/0.9031, allocations: 7.135 MB / 1.087 GB, free: 21 MB / 0.8419 GB make -j1 -f Buildings_latest_Buildings.Fluid.DXSystems.Cooling.BaseClasses.Examples.SpeedSelect.makefile (rm -f Buildings_latest_Buildings.Fluid.DXSystems.Cooling.BaseClasses.Examples.SpeedSelect.pipe ; mkfifo Buildings_latest_Buildings.Fluid.DXSystems.Cooling.BaseClasses.Examples.SpeedSelect.pipe ; head -c 1048576 < Buildings_latest_Buildings.Fluid.DXSystems.Cooling.BaseClasses.Examples.SpeedSelect.pipe >> ../files/Buildings_latest_Buildings.Fluid.DXSystems.Cooling.BaseClasses.Examples.SpeedSelect.sim & ./Buildings_latest_Buildings.Fluid.DXSystems.Cooling.BaseClasses.Examples.SpeedSelect -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Fluid.DXSystems.Cooling.BaseClasses.Examples.SpeedSelect.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Fluid.DXSystems.Cooling.BaseClasses.Examples.SpeedSelect_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Fluid_DXSystems_Cooling_BaseClasses_Examples_SpeedSelect.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Fluid.DXSystems.Cooling.BaseClasses.Examples.SpeedSelect.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches