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.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 12.0.0-master/package.mo", uses=false) Using package Buildings with version 12.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-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.SpeedShift,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,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=5000,variableFilter="time|speShi.y|speShi.speRat",fileNamePrefix="Buildings_latest_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.001418/0.001418, allocations: 108 kB / 15.6 MB, free: 132 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001527/0.001527, allocations: 193.8 kB / 16.53 MB, free: 6.391 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.424/1.424, allocations: 222.9 MB / 240.2 MB, free: 4.375 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo): time 2.892/2.892, allocations: 472.7 MB / 0.7452 GB, free: 4.594 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001246/0.001247, allocations: 76.97 kB / 0.9121 GB, free: 33.37 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3269/0.3282, allocations: 159.9 MB / 1.068 GB, free: 10.37 MB / 0.8262 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.DXSystems.Cooling.BaseClasses.Examples.SpeedShift): time 0.003674/0.3319, allocations: 2.039 MB / 1.07 GB, free: 8.32 MB / 0.8262 GB Notification: Performance of NFInst.instExpressions: time 0.004058/0.336, allocations: 2.604 MB / 1.073 GB, free: 5.703 MB / 0.8262 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.000195/0.3362, allocations: 4 kB / 1.073 GB, free: 5.699 MB / 0.8262 GB Notification: Performance of NFTyping.typeComponents: time 0.00146/0.3377, allocations: 0.5136 MB / 1.073 GB, free: 5.184 MB / 0.8262 GB Notification: Performance of NFTyping.typeBindings: time 0.000243/0.338, allocations: 63.59 kB / 1.073 GB, free: 5.121 MB / 0.8262 GB Notification: Performance of NFTyping.typeClassSections: time 0.001162/0.3391, allocations: 279.3 kB / 1.074 GB, free: 4.848 MB / 0.8262 GB Notification: Performance of NFFlatten.flatten: time 0.0004603/0.3396, allocations: 325.9 kB / 1.074 GB, free: 4.531 MB / 0.8262 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0002035/0.3398, allocations: 97.06 kB / 1.074 GB, free: 4.43 MB / 0.8262 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001712/0.34, allocations: 111.5 kB / 1.074 GB, free: 4.32 MB / 0.8262 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002196/0.3402, allocations: 127.2 kB / 1.074 GB, free: 4.195 MB / 0.8262 GB Notification: Performance of NFPackage.collectConstants: time 4.098e-05/0.3403, allocations: 8 kB / 1.074 GB, free: 4.188 MB / 0.8262 GB Notification: Performance of NFFlatten.collectFunctions: time 0.000602/0.3409, allocations: 319.5 kB / 1.075 GB, free: 3.875 MB / 0.8262 GB Notification: Performance of NFScalarize.scalarize: time 0.0002754/0.3412, allocations: 107.5 kB / 1.075 GB, free: 3.77 MB / 0.8262 GB Notification: Performance of NFVerifyModel.verify: time 0.0002376/0.3414, allocations: 214.5 kB / 1.075 GB, free: 3.559 MB / 0.8262 GB Notification: Performance of NFConvertDAE.convert: time 0.001301/0.3427, allocations: 0.8098 MB / 1.076 GB, free: 2.746 MB / 0.8262 GB Notification: Performance of FrontEnd - DAE generated: time 8.776e-06/0.3427, allocations: 8 kB / 1.076 GB, free: 2.738 MB / 0.8262 GB Notification: Performance of FrontEnd: time 2.696e-06/0.3428, allocations: 0 / 1.076 GB, free: 2.738 MB / 0.8262 GB Notification: Performance of Transformations before backend: time 2.167e-05/0.3428, allocations: 0 / 1.076 GB, free: 2.738 MB / 0.8262 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.001542/0.3443, allocations: 0.8681 MB / 1.077 GB, free: 1.812 MB / 0.8262 GB Notification: Performance of prepare preOptimizeDAE: time 4.557e-05/0.3444, allocations: 8.031 kB / 1.077 GB, free: 1.805 MB / 0.8262 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001205/0.3445, allocations: 68.09 kB / 1.077 GB, free: 1.738 MB / 0.8262 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004378/0.345, allocations: 388.3 kB / 1.077 GB, free: 1.32 MB / 0.8262 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.705e-05/0.345, allocations: 4.375 kB / 1.077 GB, free: 1.316 MB / 0.8262 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.085e-05/0.345, allocations: 8.375 kB / 1.077 GB, free: 1.309 MB / 0.8262 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002472/0.3453, allocations: 134.9 kB / 1.077 GB, free: 1.172 MB / 0.8262 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.466e-06/0.3453, allocations: 0 / 1.077 GB, free: 1.172 MB / 0.8262 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.67e-05/0.3453, allocations: 4 kB / 1.077 GB, free: 1.168 MB / 0.8262 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.404e-06/0.3453, allocations: 4 kB / 1.077 GB, free: 1.164 MB / 0.8262 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001617/0.3455, allocations: 95.94 kB / 1.077 GB, free: 1.07 MB / 0.8262 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009084/0.3464, allocations: 0.547 MB / 1.078 GB, free: 484 kB / 0.8262 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001838/0.3466, allocations: 114.5 kB / 1.078 GB, free: 360 kB / 0.8262 GB Notification: Performance of preOpt resolveLoops (simulation): time 8.63e-05/0.3467, allocations: 56.98 kB / 1.078 GB, free: 300 kB / 0.8262 GB Notification: Performance of preOpt evalFunc (simulation): time 4.709e-05/0.3468, allocations: 16.17 kB / 1.078 GB, free: 284 kB / 0.8262 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003238/0.3471, allocations: 133 kB / 1.078 GB, free: 132 kB / 0.8262 GB Notification: Performance of pre-optimization done (n=11): time 1.984e-06/0.3471, allocations: 0 / 1.078 GB, free: 132 kB / 0.8262 GB Notification: Performance of matching and sorting (n=11): time 0.0005522/0.3477, allocations: 306.5 kB / 1.078 GB, free: 15.81 MB / 0.8419 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.737e-05/0.3477, allocations: 93.05 kB / 1.078 GB, free: 15.7 MB / 0.8419 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001176/0.3489, allocations: 0.7896 MB / 1.079 GB, free: 14.91 MB / 0.8419 GB Notification: Performance of collectPreVariables (initialization): time 2.242e-05/0.3489, allocations: 25.7 kB / 1.079 GB, free: 14.88 MB / 0.8419 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002662/0.3492, allocations: 292.2 kB / 1.079 GB, free: 14.59 MB / 0.8419 GB Notification: Performance of collectInitialBindings (initialization): time 3.998e-05/0.3493, allocations: 27.64 kB / 1.08 GB, free: 14.56 MB / 0.8419 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.671e-05/0.3493, allocations: 21.72 kB / 1.08 GB, free: 14.53 MB / 0.8419 GB Notification: Performance of setup shared object (initialization): time 0.0001394/0.3495, allocations: 318 kB / 1.08 GB, free: 14.21 MB / 0.8419 GB Notification: Performance of preBalanceInitialSystem (initialization): time 7.363e-05/0.3496, allocations: 43.98 kB / 1.08 GB, free: 14.17 MB / 0.8419 GB Notification: Performance of partitionIndependentBlocks (initialization): time 6.691e-05/0.3496, allocations: 51.97 kB / 1.08 GB, free: 14.12 MB / 0.8419 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002074/0.3499, allocations: 156.7 kB / 1.08 GB, free: 13.95 MB / 0.8419 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.194e-06/0.3499, allocations: 0 / 1.08 GB, free: 13.95 MB / 0.8419 GB Notification: Performance of matching and sorting (n=12) (initialization): time 0.0003505/0.3502, allocations: 274.2 kB / 1.08 GB, free: 13.67 MB / 0.8419 GB Notification: Performance of prepare postOptimizeDAE: time 4.657e-05/0.3503, allocations: 37.7 kB / 1.08 GB, free: 13.63 MB / 0.8419 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.454e-06/0.3503, allocations: 160 / 1.08 GB, free: 13.63 MB / 0.8419 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.397e-05/0.3503, allocations: 0 / 1.08 GB, free: 13.63 MB / 0.8419 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.727e-05/0.3504, allocations: 11.98 kB / 1.08 GB, free: 13.62 MB / 0.8419 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.976e-06/0.3504, allocations: 3.984 kB / 1.08 GB, free: 13.61 MB / 0.8419 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001332/0.3506, allocations: 11.94 kB / 1.08 GB, free: 13.6 MB / 0.8419 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.198e-05/0.3506, allocations: 8 kB / 1.08 GB, free: 13.59 MB / 0.8419 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.0003642/0.351, allocations: 342.5 kB / 1.081 GB, free: 13.25 MB / 0.8419 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.373e-05/0.3511, allocations: 67.09 kB / 1.081 GB, free: 13.18 MB / 0.8419 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004465/0.3515, allocations: 300.9 kB / 1.081 GB, free: 12.87 MB / 0.8419 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.857e-06/0.3515, allocations: 0 / 1.081 GB, free: 12.87 MB / 0.8419 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.104e-06/0.3515, allocations: 128 / 1.081 GB, free: 12.87 MB / 0.8419 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.807e-06/0.3515, allocations: 3.938 kB / 1.081 GB, free: 12.87 MB / 0.8419 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004315/0.352, allocations: 385.4 kB / 1.081 GB, free: 12.44 MB / 0.8419 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.767e-06/0.352, allocations: 7.938 kB / 1.081 GB, free: 12.43 MB / 0.8419 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.821e-05/0.352, allocations: 4 kB / 1.081 GB, free: 12.43 MB / 0.8419 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.805e-06/0.352, allocations: 0 / 1.081 GB, free: 12.43 MB / 0.8419 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.217e-05/0.3521, allocations: 11.98 kB / 1.081 GB, free: 12.42 MB / 0.8419 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.843e-06/0.3521, allocations: 0 / 1.081 GB, free: 12.42 MB / 0.8419 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.813e-06/0.3521, allocations: 0 / 1.081 GB, free: 12.42 MB / 0.8419 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003752/0.3525, allocations: 306 kB / 1.082 GB, free: 12.09 MB / 0.8419 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001562/0.3526, allocations: 148.2 kB / 1.082 GB, free: 11.93 MB / 0.8419 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.14e-05/0.3527, allocations: 4 kB / 1.082 GB, free: 11.93 MB / 0.8419 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001111/0.3528, allocations: 12 kB / 1.082 GB, free: 11.91 MB / 0.8419 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.209e-05/0.3529, allocations: 7.984 kB / 1.082 GB, free: 11.91 MB / 0.8419 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.466e-05/0.3529, allocations: 7.938 kB / 1.082 GB, free: 11.9 MB / 0.8419 GB Notification: Performance of sorting global known variables: time 0.0007443/0.3537, allocations: 0.5809 MB / 1.083 GB, free: 11.32 MB / 0.8419 GB Notification: Performance of sort global known variables: time 1.51e-07/0.3537, allocations: 0 / 1.083 GB, free: 11.32 MB / 0.8419 GB Notification: Performance of remove unused functions: time 0.0004703/0.3541, allocations: 124 kB / 1.083 GB, free: 11.2 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: 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.000497/0.3546, allocations: 199.6 kB / 1.083 GB, free: 11 MB / 0.8419 GB Notification: Performance of simCode: created initialization part: time 0.000358/0.355, allocations: 215.3 kB / 1.083 GB, free: 10.77 MB / 0.8419 GB Notification: Performance of simCode: created event and clocks part: time 2.515e-06/0.355, allocations: 0 / 1.083 GB, free: 10.77 MB / 0.8419 GB Notification: Performance of simCode: created simulation system equations: time 0.0001543/0.3552, allocations: 147.4 kB / 1.083 GB, free: 10.62 MB / 0.8419 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006518/0.3559, allocations: 125.5 kB / 1.083 GB, free: 10.5 MB / 0.8419 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0019/0.3578, allocations: 1.077 MB / 1.084 GB, free: 9.387 MB / 0.8419 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007403/0.3585, allocations: 0.9743 MB / 1.085 GB, free: 8.387 MB / 0.8419 GB Notification: Performance of simCode: alias equations: time 0.0001062/0.3586, allocations: 21.95 kB / 1.085 GB, free: 8.367 MB / 0.8419 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.52e-05/0.3587, allocations: 19.44 kB / 1.085 GB, free: 8.348 MB / 0.8419 GB Notification: Performance of SimCode: time 2.6e-07/0.3587, allocations: 0 / 1.085 GB, free: 8.348 MB / 0.8419 GB Notification: Performance of Templates: time 0.01273/0.3714, allocations: 5.558 MB / 1.091 GB, free: 2.883 MB / 0.8419 GB make -j1 -f Buildings_latest_Buildings.Fluid.DXSystems.Cooling.BaseClasses.Examples.SpeedShift.makefile (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=480 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Fluid.DXSystems.Cooling.BaseClasses.Examples.SpeedShift.pipe 2>&1) 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) Reference file matches