Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_10_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) 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 10.1.0-maint.10.0.x/package.mo", uses=false) Using package Buildings with version 10.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.0-maint.10.0.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=5000,variableFilter="time|speShi.y|speShi.speRat",fileNamePrefix="Buildings_10_Buildings.Fluid.DXSystems.Cooling.BaseClasses.Examples.SpeedShift") translateModel(Buildings.Fluid.DXSystems.Cooling.BaseClasses.Examples.SpeedShift,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|speShi.y|speShi.speRat",fileNamePrefix="Buildings_10_Buildings.Fluid.DXSystems.Cooling.BaseClasses.Examples.SpeedShift") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009823/0.0009826, allocations: 91.84 kB / 15.06 MB, free: 1.098 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.001378/0.001378, allocations: 172.7 kB / 15.95 MB, free: 208 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.51/1.51, allocations: 223.3 MB / 240 MB, free: 5.418 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.0-maint.10.0.x/package.mo): time 2.794/2.794, allocations: 437.7 MB / 0.7117 GB, free: 7.094 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.0006149/0.000615, allocations: 8 kB / 0.8722 GB, free: 3.684 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7923/0.793, allocations: 153.8 MB / 1.022 GB, free: 48 kB / 0.7637 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.DXSystems.Cooling.BaseClasses.Examples.SpeedShift): time 0.003173/0.7962, allocations: 1.717 MB / 1.024 GB, free: 14.32 MB / 0.7794 GB Notification: Performance of NFInst.instExpressions: time 0.004572/0.8008, allocations: 2.362 MB / 1.026 GB, free: 11.95 MB / 0.7794 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002573/0.8011, allocations: 3.938 kB / 1.026 GB, free: 11.94 MB / 0.7794 GB Notification: Performance of NFTyping.typeComponents: time 0.001515/0.8027, allocations: 0.4921 MB / 1.027 GB, free: 11.45 MB / 0.7794 GB Notification: Performance of NFTyping.typeBindings: time 0.0002428/0.8029, allocations: 63.66 kB / 1.027 GB, free: 11.39 MB / 0.7794 GB Notification: Performance of NFTyping.typeClassSections: time 0.001017/0.8039, allocations: 195.6 kB / 1.027 GB, free: 11.2 MB / 0.7794 GB Notification: Performance of NFFlatten.flatten: time 0.0005384/0.8045, allocations: 298.4 kB / 1.027 GB, free: 10.9 MB / 0.7794 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0002254/0.8047, allocations: 89.05 kB / 1.027 GB, free: 10.81 MB / 0.7794 GB Notification: Performance of NFEvalConstants.evaluate: time 0.00025/0.805, allocations: 99.53 kB / 1.028 GB, free: 10.71 MB / 0.7794 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002567/0.8053, allocations: 131.3 kB / 1.028 GB, free: 10.59 MB / 0.7794 GB Notification: Performance of NFPackage.collectConstants: time 4.207e-05/0.8053, allocations: 7.938 kB / 1.028 GB, free: 10.58 MB / 0.7794 GB Notification: Performance of NFFlatten.collectFunctions: time 0.000713/0.806, allocations: 283.6 kB / 1.028 GB, free: 10.3 MB / 0.7794 GB Notification: Performance of NFScalarize.scalarize: time 0.0001771/0.8062, allocations: 107.5 kB / 1.028 GB, free: 10.2 MB / 0.7794 GB Notification: Performance of NFVerifyModel.verify: time 0.0001616/0.8064, allocations: 121.4 kB / 1.028 GB, free: 10.07 MB / 0.7794 GB Notification: Performance of NFConvertDAE.convert: time 0.0008668/0.8073, allocations: 0.6157 MB / 1.029 GB, free: 9.453 MB / 0.7794 GB Notification: Performance of FrontEnd - DAE generated: time 6.201e-06/0.8073, allocations: 4 kB / 1.029 GB, free: 9.449 MB / 0.7794 GB Notification: Performance of FrontEnd: time 2.505e-06/0.8073, allocations: 0 / 1.029 GB, free: 9.449 MB / 0.7794 GB Notification: Performance of Transformations before backend: time 1.735e-05/0.8073, allocations: 0 / 1.029 GB, free: 9.449 MB / 0.7794 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.001538/0.8089, allocations: 0.7985 MB / 1.03 GB, free: 8.594 MB / 0.7794 GB Notification: Performance of prepare preOptimizeDAE: time 5.23e-05/0.8089, allocations: 12.56 kB / 1.03 GB, free: 8.582 MB / 0.7794 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001215/0.809, allocations: 59.25 kB / 1.03 GB, free: 8.523 MB / 0.7794 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006862/0.8097, allocations: 359.6 kB / 1.03 GB, free: 8.133 MB / 0.7794 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.418e-05/0.8098, allocations: 8 kB / 1.03 GB, free: 8.125 MB / 0.7794 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.302e-05/0.8098, allocations: 15.95 kB / 1.03 GB, free: 8.109 MB / 0.7794 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002618/0.8101, allocations: 122.2 kB / 1.03 GB, free: 7.984 MB / 0.7794 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.488e-06/0.8101, allocations: 0 / 1.03 GB, free: 7.984 MB / 0.7794 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.844e-05/0.8101, allocations: 4 kB / 1.03 GB, free: 7.98 MB / 0.7794 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.446e-06/0.8101, allocations: 4 kB / 1.03 GB, free: 7.977 MB / 0.7794 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001795/0.8103, allocations: 104 kB / 1.03 GB, free: 7.875 MB / 0.7794 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008711/0.8112, allocations: 0.5513 MB / 1.031 GB, free: 7.273 MB / 0.7794 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001811/0.8114, allocations: 110.5 kB / 1.031 GB, free: 7.156 MB / 0.7794 GB Notification: Performance of preOpt resolveLoops (simulation): time 9.558e-05/0.8115, allocations: 60.98 kB / 1.031 GB, free: 7.094 MB / 0.7794 GB Notification: Performance of preOpt evalFunc (simulation): time 5.095e-05/0.8116, allocations: 7.984 kB / 1.031 GB, free: 7.086 MB / 0.7794 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002717/0.8118, allocations: 129.1 kB / 1.031 GB, free: 6.941 MB / 0.7794 GB Notification: Performance of pre-optimization done (n=11): time 1.734e-06/0.8118, allocations: 0 / 1.031 GB, free: 6.941 MB / 0.7794 GB Notification: Performance of matching and sorting (n=11): time 0.0005411/0.8124, allocations: 314.7 kB / 1.031 GB, free: 6.621 MB / 0.7794 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001698/0.8126, allocations: 85.11 kB / 1.031 GB, free: 6.52 MB / 0.7794 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001182/0.8138, allocations: 0.7856 MB / 1.032 GB, free: 5.727 MB / 0.7794 GB Notification: Performance of collectPreVariables (initialization): time 2.16e-05/0.8138, allocations: 29.7 kB / 1.032 GB, free: 5.691 MB / 0.7794 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002843/0.8141, allocations: 288.2 kB / 1.033 GB, free: 5.406 MB / 0.7794 GB Notification: Performance of collectInitialBindings (initialization): time 3.596e-05/0.8141, allocations: 19.72 kB / 1.033 GB, free: 5.387 MB / 0.7794 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.871e-06/0.8141, allocations: 0 / 1.033 GB, free: 5.387 MB / 0.7794 GB Notification: Performance of setup shared object (initialization): time 0.0001437/0.8143, allocations: 314 kB / 1.033 GB, free: 5.074 MB / 0.7794 GB Notification: Performance of preBalanceInitialSystem (initialization): time 8.27e-05/0.8144, allocations: 51.97 kB / 1.033 GB, free: 5.023 MB / 0.7794 GB Notification: Performance of partitionIndependentBlocks (initialization): time 7.355e-05/0.8145, allocations: 51.91 kB / 1.033 GB, free: 4.973 MB / 0.7794 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001111/0.8146, allocations: 73.67 kB / 1.033 GB, free: 4.895 MB / 0.7794 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.765e-06/0.8146, allocations: 0 / 1.033 GB, free: 4.895 MB / 0.7794 GB Notification: Performance of matching and sorting (n=12) (initialization): time 0.0004098/0.815, allocations: 270.4 kB / 1.033 GB, free: 4.617 MB / 0.7794 GB Notification: Performance of prepare postOptimizeDAE: time 5.36e-05/0.8151, allocations: 33.7 kB / 1.033 GB, free: 4.578 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.382e-06/0.8151, allocations: 0 / 1.033 GB, free: 4.578 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.988e-05/0.8151, allocations: 3.984 kB / 1.033 GB, free: 4.574 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.858e-05/0.8152, allocations: 11.94 kB / 1.033 GB, free: 4.562 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.103e-05/0.8152, allocations: 3.953 kB / 1.033 GB, free: 4.559 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001422/0.8154, allocations: 19.94 kB / 1.033 GB, free: 4.539 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.423e-05/0.8154, allocations: 4 kB / 1.033 GB, free: 4.535 MB / 0.7794 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 ($whenCondition1,speRat.a,speRat.b,speRat.last,$PRE.speRat.nextEvent,speRat.nextEvent,speRat.nextEventScaled,greaterThreshold.y,booleanToInteger.y) * 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0004778/0.8159, allocations: 335.4 kB / 1.034 GB, free: 4.191 MB / 0.7794 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.11e-05/0.816, allocations: 67.16 kB / 1.034 GB, free: 4.125 MB / 0.7794 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005241/0.8165, allocations: 293.1 kB / 1.034 GB, free: 3.82 MB / 0.7794 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.899e-06/0.8165, allocations: 0 / 1.034 GB, free: 3.82 MB / 0.7794 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.405e-05/0.8166, allocations: 8 kB / 1.034 GB, free: 3.812 MB / 0.7794 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.213e-06/0.8166, allocations: 7.891 kB / 1.034 GB, free: 3.805 MB / 0.7794 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006099/0.8172, allocations: 385.4 kB / 1.034 GB, free: 3.379 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.959e-06/0.8173, allocations: 0 / 1.034 GB, free: 3.379 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.833e-05/0.8173, allocations: 4 kB / 1.034 GB, free: 3.375 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (simulation): time 8.105e-06/0.8173, allocations: 4 kB / 1.034 GB, free: 3.371 MB / 0.7794 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.271e-05/0.8174, allocations: 3.984 kB / 1.034 GB, free: 3.367 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.046e-06/0.8174, allocations: 0 / 1.034 GB, free: 3.367 MB / 0.7794 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.948e-06/0.8174, allocations: 4 kB / 1.034 GB, free: 3.363 MB / 0.7794 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005365/0.8179, allocations: 313.8 kB / 1.035 GB, free: 3.031 MB / 0.7794 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002009/0.8181, allocations: 140.3 kB / 1.035 GB, free: 2.875 MB / 0.7794 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.235e-05/0.8182, allocations: 12 kB / 1.035 GB, free: 2.863 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001103/0.8183, allocations: 4 kB / 1.035 GB, free: 2.859 MB / 0.7794 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.197e-05/0.8184, allocations: 7.984 kB / 1.035 GB, free: 2.852 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.466e-05/0.8184, allocations: 4 kB / 1.035 GB, free: 2.848 MB / 0.7794 GB Notification: Performance of sorting global known variables: time 0.0008435/0.8193, allocations: 0.5809 MB / 1.035 GB, free: 2.27 MB / 0.7794 GB Notification: Performance of sort global known variables: time 1.1e-07/0.8193, allocations: 0 / 1.035 GB, free: 2.27 MB / 0.7794 GB Notification: Performance of remove unused functions: time 0.0005322/0.8198, allocations: 124 kB / 1.036 GB, free: 2.148 MB / 0.7794 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0005561/0.8204, allocations: 207 kB / 1.036 GB, free: 1.934 MB / 0.7794 GB Notification: Performance of simCode: created initialization part: time 0.0003725/0.8208, allocations: 199.3 kB / 1.036 GB, free: 1.727 MB / 0.7794 GB Notification: Performance of simCode: created event and clocks part: time 6.352e-06/0.8208, allocations: 0 / 1.036 GB, free: 1.727 MB / 0.7794 GB Notification: Performance of simCode: created simulation system equations: time 0.0001707/0.821, allocations: 147.3 kB / 1.036 GB, free: 1.57 MB / 0.7794 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007328/0.8217, allocations: 118.9 kB / 1.036 GB, free: 1.457 MB / 0.7794 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002026/0.8237, allocations: 1.151 MB / 1.037 GB, free: 284 kB / 0.7794 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007876/0.8245, allocations: 0.9822 MB / 1.038 GB, free: 15.27 MB / 0.795 GB Notification: Performance of simCode: alias equations: time 0.0001362/0.8247, allocations: 29.94 kB / 1.038 GB, free: 15.24 MB / 0.795 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.722e-05/0.8247, allocations: 15.44 kB / 1.038 GB, free: 15.23 MB / 0.795 GB Notification: Performance of SimCode: time 7.72e-07/0.8247, allocations: 0 / 1.038 GB, free: 15.23 MB / 0.795 GB Notification: Performance of Templates: time 0.01215/0.8369, allocations: 5.209 MB / 1.043 GB, free: 10.13 MB / 0.795 GB make -j1 -f Buildings_10_Buildings.Fluid.DXSystems.Cooling.BaseClasses.Examples.SpeedShift.makefile (rm -f Buildings_10_Buildings.Fluid.DXSystems.Cooling.BaseClasses.Examples.SpeedShift.pipe ; mkfifo Buildings_10_Buildings.Fluid.DXSystems.Cooling.BaseClasses.Examples.SpeedShift.pipe ; head -c 1048576 < Buildings_10_Buildings.Fluid.DXSystems.Cooling.BaseClasses.Examples.SpeedShift.pipe >> ../files/Buildings_10_Buildings.Fluid.DXSystems.Cooling.BaseClasses.Examples.SpeedShift.sim & ./Buildings_10_Buildings.Fluid.DXSystems.Cooling.BaseClasses.Examples.SpeedShift -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_10_Buildings.Fluid.DXSystems.Cooling.BaseClasses.Examples.SpeedShift.pipe 2>&1) diffSimulationResults("Buildings_10_Buildings.Fluid.DXSystems.Cooling.BaseClasses.Examples.SpeedShift_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_10.0.x/Buildings_Fluid_DXSystems_Cooling_BaseClasses_Examples_SpeedShift.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_10_Buildings.Fluid.DXSystems.Cooling.BaseClasses.Examples.SpeedShift.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches