Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_9_Buildings.Fluid.HeatExchangers.DXCoils.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 9.1.3-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-maint.9.1.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.HeatExchangers.DXCoils.BaseClasses.Examples.SpeedShift,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|speShi.y|speShi.speRat",fileNamePrefix="Buildings_9_Buildings.Fluid.HeatExchangers.DXCoils.BaseClasses.Examples.SpeedShift") translateModel(Buildings.Fluid.HeatExchangers.DXCoils.BaseClasses.Examples.SpeedShift,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|speShi.y|speShi.speRat",fileNamePrefix="Buildings_9_Buildings.Fluid.HeatExchangers.DXCoils.BaseClasses.Examples.SpeedShift") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.006744/0.006744, allocations: 101.1 kB / 15.73 MB, free: 6.051 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.0015/0.0015, allocations: 199.3 kB / 16.68 MB, free: 5.977 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.393/1.393, allocations: 222.9 MB / 240.4 MB, free: 4.316 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-maint.9.1.x/package.mo): time 2.374/2.374, allocations: 390.2 MB / 0.6648 GB, free: 156 kB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.001348/0.001348, allocations: 63.72 kB / 0.9509 GB, free: 5.555 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2747/0.276, allocations: 140.4 MB / 1.088 GB, free: 1.473 MB / 0.8419 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.HeatExchangers.DXCoils.BaseClasses.Examples.SpeedShift): time 0.003279/0.2794, allocations: 1.981 MB / 1.09 GB, free: 15.47 MB / 0.8575 GB Notification: Performance of NFInst.instExpressions: time 0.003698/0.2831, allocations: 2.5 MB / 1.092 GB, free: 12.96 MB / 0.8575 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.000235/0.2834, allocations: 7.938 kB / 1.092 GB, free: 12.95 MB / 0.8575 GB Notification: Performance of NFTyping.typeComponents: time 0.001374/0.2848, allocations: 473.9 kB / 1.093 GB, free: 12.49 MB / 0.8575 GB Notification: Performance of NFTyping.typeBindings: time 0.0001947/0.2851, allocations: 67.59 kB / 1.093 GB, free: 12.42 MB / 0.8575 GB Notification: Performance of NFTyping.typeClassSections: time 0.001061/0.2861, allocations: 269.5 kB / 1.093 GB, free: 12.16 MB / 0.8575 GB Notification: Performance of NFFlatten.flatten: time 0.0004814/0.2866, allocations: 314.5 kB / 1.093 GB, free: 11.85 MB / 0.8575 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001988/0.2868, allocations: 88.7 kB / 1.094 GB, free: 11.77 MB / 0.8575 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001957/0.287, allocations: 107.5 kB / 1.094 GB, free: 11.66 MB / 0.8575 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002015/0.2872, allocations: 123.3 kB / 1.094 GB, free: 11.54 MB / 0.8575 GB Notification: Performance of NFPackage.collectConstants: time 4.443e-05/0.2873, allocations: 11.98 kB / 1.094 GB, free: 11.53 MB / 0.8575 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0005327/0.2878, allocations: 319.5 kB / 1.094 GB, free: 11.21 MB / 0.8575 GB Notification: Performance of NFScalarize.scalarize: time 0.0001195/0.288, allocations: 103.5 kB / 1.094 GB, free: 11.11 MB / 0.8575 GB Notification: Performance of NFVerifyModel.verify: time 0.0002101/0.2882, allocations: 202.6 kB / 1.094 GB, free: 10.91 MB / 0.8575 GB Notification: Performance of NFConvertDAE.convert: time 0.000971/0.2892, allocations: 0.7788 MB / 1.095 GB, free: 10.13 MB / 0.8575 GB Notification: Performance of FrontEnd - DAE generated: time 8.125e-06/0.2892, allocations: 3.984 kB / 1.095 GB, free: 10.13 MB / 0.8575 GB Notification: Performance of FrontEnd: time 1.623e-06/0.2892, allocations: 4 kB / 1.095 GB, free: 10.12 MB / 0.8575 GB Notification: Performance of Transformations before backend: time 1.628e-05/0.2892, allocations: 0 / 1.095 GB, free: 10.12 MB / 0.8575 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.001394/0.2906, allocations: 0.8371 MB / 1.096 GB, free: 9.23 MB / 0.8575 GB Notification: Performance of prepare preOptimizeDAE: time 4.094e-05/0.2907, allocations: 8.031 kB / 1.096 GB, free: 9.223 MB / 0.8575 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001139/0.2908, allocations: 72.16 kB / 1.096 GB, free: 9.152 MB / 0.8575 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004909/0.2913, allocations: 364.4 kB / 1.096 GB, free: 8.758 MB / 0.8575 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.312e-05/0.2913, allocations: 8.375 kB / 1.096 GB, free: 8.75 MB / 0.8575 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.775e-05/0.2914, allocations: 7.938 kB / 1.096 GB, free: 8.742 MB / 0.8575 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002612/0.2916, allocations: 130.8 kB / 1.096 GB, free: 8.609 MB / 0.8575 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.119e-05/0.2916, allocations: 0 / 1.096 GB, free: 8.609 MB / 0.8575 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.603e-05/0.2917, allocations: 0 / 1.096 GB, free: 8.609 MB / 0.8575 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.606e-06/0.2917, allocations: 4 kB / 1.096 GB, free: 8.605 MB / 0.8575 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001671/0.2918, allocations: 95.94 kB / 1.097 GB, free: 8.512 MB / 0.8575 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008709/0.2927, allocations: 0.5356 MB / 1.097 GB, free: 7.926 MB / 0.8575 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000178/0.2929, allocations: 114.4 kB / 1.097 GB, free: 7.805 MB / 0.8575 GB Notification: Performance of preOpt resolveLoops (simulation): time 8.782e-05/0.293, allocations: 60.97 kB / 1.097 GB, free: 7.742 MB / 0.8575 GB Notification: Performance of preOpt evalFunc (simulation): time 4.28e-05/0.2931, allocations: 4 kB / 1.097 GB, free: 7.738 MB / 0.8575 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002005/0.2933, allocations: 133 kB / 1.097 GB, free: 7.59 MB / 0.8575 GB Notification: Performance of pre-optimization done (n=11): time 1.653e-06/0.2933, allocations: 4 kB / 1.097 GB, free: 7.586 MB / 0.8575 GB Notification: Performance of matching and sorting (n=11): time 0.0005086/0.2938, allocations: 310.5 kB / 1.098 GB, free: 7.27 MB / 0.8575 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.857e-05/0.2939, allocations: 81.11 kB / 1.098 GB, free: 7.172 MB / 0.8575 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009698/0.2948, allocations: 0.7581 MB / 1.099 GB, free: 6.402 MB / 0.8575 GB Notification: Performance of collectPreVariables (initialization): time 1.943e-05/0.2949, allocations: 25.7 kB / 1.099 GB, free: 6.371 MB / 0.8575 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002671/0.2951, allocations: 280.2 kB / 1.099 GB, free: 6.094 MB / 0.8575 GB Notification: Performance of collectInitialBindings (initialization): time 3.729e-05/0.2952, allocations: 23.66 kB / 1.099 GB, free: 6.07 MB / 0.8575 GB Notification: Performance of simplifyInitialFunctions (initialization): time 8.391e-05/0.2953, allocations: 29.7 kB / 1.099 GB, free: 6.035 MB / 0.8575 GB Notification: Performance of setup shared object (initialization): time 0.0001169/0.2954, allocations: 314 kB / 1.099 GB, free: 5.723 MB / 0.8575 GB Notification: Performance of preBalanceInitialSystem (initialization): time 8.173e-05/0.2955, allocations: 51.97 kB / 1.099 GB, free: 5.672 MB / 0.8575 GB Notification: Performance of partitionIndependentBlocks (initialization): time 6.946e-05/0.2956, allocations: 47.97 kB / 1.099 GB, free: 5.625 MB / 0.8575 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001836/0.2958, allocations: 164.5 kB / 1.099 GB, free: 5.449 MB / 0.8575 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.374e-06/0.2958, allocations: 0 / 1.099 GB, free: 5.449 MB / 0.8575 GB Notification: Performance of matching and sorting (n=12) (initialization): time 0.0003368/0.2961, allocations: 262.5 kB / 1.1 GB, free: 5.18 MB / 0.8575 GB Notification: Performance of prepare postOptimizeDAE: time 4.408e-05/0.2962, allocations: 41.69 kB / 1.1 GB, free: 5.133 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.771e-06/0.2962, allocations: 0 / 1.1 GB, free: 5.133 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.848e-05/0.2962, allocations: 0 / 1.1 GB, free: 5.133 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.615e-05/0.2963, allocations: 8 kB / 1.1 GB, free: 5.125 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.353e-06/0.2963, allocations: 7.938 kB / 1.1 GB, free: 5.117 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001308/0.2964, allocations: 19.83 kB / 1.1 GB, free: 5.098 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.428e-05/0.2965, allocations: 4 kB / 1.1 GB, free: 5.094 MB / 0.8575 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.0003206/0.2968, allocations: 335.3 kB / 1.1 GB, free: 4.75 MB / 0.8575 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.795e-05/0.2969, allocations: 59.25 kB / 1.1 GB, free: 4.691 MB / 0.8575 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000426/0.2973, allocations: 292.6 kB / 1.1 GB, free: 4.391 MB / 0.8575 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.055e-06/0.2973, allocations: 4.125 kB / 1.1 GB, free: 4.387 MB / 0.8575 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.853e-06/0.2973, allocations: 4 kB / 1.1 GB, free: 4.383 MB / 0.8575 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.148e-06/0.2974, allocations: 0 / 1.1 GB, free: 4.383 MB / 0.8575 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000365/0.2977, allocations: 377.4 kB / 1.101 GB, free: 3.965 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.913e-06/0.2977, allocations: 0 / 1.101 GB, free: 3.965 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.16e-05/0.2978, allocations: 4 kB / 1.101 GB, free: 3.961 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.701e-06/0.2978, allocations: 4 kB / 1.101 GB, free: 3.957 MB / 0.8575 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.603e-05/0.2978, allocations: 0 / 1.101 GB, free: 3.957 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.664e-06/0.2978, allocations: 0 / 1.101 GB, free: 3.957 MB / 0.8575 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.523e-06/0.2978, allocations: 4 kB / 1.101 GB, free: 3.953 MB / 0.8575 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004093/0.2982, allocations: 317.7 kB / 1.101 GB, free: 3.617 MB / 0.8575 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001419/0.2984, allocations: 148.3 kB / 1.101 GB, free: 3.453 MB / 0.8575 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.276e-05/0.2985, allocations: 3.984 kB / 1.101 GB, free: 3.449 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001036/0.2986, allocations: 4 kB / 1.101 GB, free: 3.445 MB / 0.8575 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.462e-05/0.2986, allocations: 11.98 kB / 1.101 GB, free: 3.434 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.516e-05/0.2987, allocations: 4 kB / 1.101 GB, free: 3.43 MB / 0.8575 GB Notification: Performance of sorting global known variables: time 0.0006582/0.2993, allocations: 0.5614 MB / 1.102 GB, free: 2.871 MB / 0.8575 GB Notification: Performance of sort global known variables: time 2.1e-07/0.2993, allocations: 0 / 1.102 GB, free: 2.871 MB / 0.8575 GB Notification: Performance of remove unused functions: time 0.0004576/0.2998, allocations: 119.9 kB / 1.102 GB, free: 2.754 MB / 0.8575 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.0004659/0.3003, allocations: 199.2 kB / 1.102 GB, free: 2.547 MB / 0.8575 GB Notification: Performance of simCode: created initialization part: time 0.0003107/0.3006, allocations: 207.3 kB / 1.102 GB, free: 2.332 MB / 0.8575 GB Notification: Performance of simCode: created event and clocks part: time 2.295e-06/0.3006, allocations: 0 / 1.102 GB, free: 2.332 MB / 0.8575 GB Notification: Performance of simCode: created simulation system equations: time 0.000151/0.3007, allocations: 147.4 kB / 1.102 GB, free: 2.176 MB / 0.8575 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004919/0.3013, allocations: 102.9 kB / 1.103 GB, free: 2.078 MB / 0.8575 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0016/0.3029, allocations: 1.016 MB / 1.104 GB, free: 1.031 MB / 0.8575 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005862/0.3035, allocations: 0.9621 MB / 1.104 GB, free: 44 kB / 0.8575 GB Notification: Performance of simCode: alias equations: time 8.728e-05/0.3036, allocations: 29.48 kB / 1.104 GB, free: 12 kB / 0.8575 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.243e-05/0.3036, allocations: 15.44 kB / 1.105 GB, free: 16 MB / 0.8731 GB Notification: Performance of SimCode: time 2.1e-07/0.3036, allocations: 0 / 1.105 GB, free: 16 MB / 0.8731 GB Notification: Performance of Templates: time 0.01081/0.3144, allocations: 5.181 MB / 1.11 GB, free: 10.91 MB / 0.8731 GB make -j1 -f Buildings_9_Buildings.Fluid.HeatExchangers.DXCoils.BaseClasses.Examples.SpeedShift.makefile (rm -f Buildings_9_Buildings.Fluid.HeatExchangers.DXCoils.BaseClasses.Examples.SpeedShift.pipe ; mkfifo Buildings_9_Buildings.Fluid.HeatExchangers.DXCoils.BaseClasses.Examples.SpeedShift.pipe ; head -c 1048576 < Buildings_9_Buildings.Fluid.HeatExchangers.DXCoils.BaseClasses.Examples.SpeedShift.pipe >> ../files/Buildings_9_Buildings.Fluid.HeatExchangers.DXCoils.BaseClasses.Examples.SpeedShift.sim & ./Buildings_9_Buildings.Fluid.HeatExchangers.DXCoils.BaseClasses.Examples.SpeedShift -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_9_Buildings.Fluid.HeatExchangers.DXCoils.BaseClasses.Examples.SpeedShift.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Fluid.HeatExchangers.DXCoils.BaseClasses.Examples.SpeedShift_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Fluid_HeatExchangers_DXCoils_BaseClasses_Examples_SpeedShift.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_Buildings.Fluid.HeatExchangers.DXCoils.BaseClasses.Examples.SpeedShift.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches