Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Validation.MultiMax.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.Controls.OBC.CDL.Reals.Validation.MultiMax,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|con.1..y|con.2..y|con.3..y|con.4..y|con.5..y|maxVal.y",fileNamePrefix="Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Validation.MultiMax") translateModel(Buildings.Controls.OBC.CDL.Reals.Validation.MultiMax,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|con.1..y|con.2..y|con.3..y|con.4..y|con.5..y|maxVal.y",fileNamePrefix="Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Validation.MultiMax") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009532/0.0009532, allocations: 91.84 kB / 15.36 MB, free: 0.7383 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.006752/0.006752, allocations: 170 kB / 16.26 MB, free: 6.613 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.458/1.458, allocations: 223.3 MB / 240.3 MB, free: 5.344 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo): time 2.829/2.829, allocations: 462.7 MB / 0.7364 GB, free: 228 kB / 0.5762 GB Notification: Performance of FrontEnd - loaded program: time 0.0004028/0.0004028, allocations: 14.41 kB / 0.9028 GB, free: 36.67 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3514/0.3518, allocations: 159.6 MB / 1.059 GB, free: 5.379 MB / 0.8106 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Reals.Validation.MultiMax): time 0.0008186/0.3526, allocations: 380.6 kB / 1.059 GB, free: 5.012 MB / 0.8106 GB Notification: Performance of NFInst.instExpressions: time 0.0001293/0.3528, allocations: 23.91 kB / 1.059 GB, free: 4.988 MB / 0.8106 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.387e-05/0.3528, allocations: 0 / 1.059 GB, free: 4.988 MB / 0.8106 GB Notification: Performance of NFTyping.typeComponents: time 8.81e-05/0.3529, allocations: 0 / 1.059 GB, free: 4.988 MB / 0.8106 GB Notification: Performance of NFTyping.typeBindings: time 3.62e-05/0.353, allocations: 0 / 1.059 GB, free: 4.988 MB / 0.8106 GB Notification: Performance of NFTyping.typeClassSections: time 6.97e-05/0.353, allocations: 4 kB / 1.059 GB, free: 4.984 MB / 0.8106 GB Notification: Performance of NFFlatten.flatten: time 7.355e-05/0.3531, allocations: 27.86 kB / 1.059 GB, free: 4.957 MB / 0.8106 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001344/0.3533, allocations: 31.98 kB / 1.059 GB, free: 4.926 MB / 0.8106 GB Notification: Performance of NFEvalConstants.evaluate: time 2.057e-05/0.3533, allocations: 7.938 kB / 1.059 GB, free: 4.918 MB / 0.8106 GB Notification: Performance of NFSimplifyModel.simplify: time 3.338e-05/0.3533, allocations: 11.94 kB / 1.059 GB, free: 4.906 MB / 0.8106 GB Notification: Performance of NFPackage.collectConstants: time 1.315e-05/0.3534, allocations: 0 / 1.059 GB, free: 4.906 MB / 0.8106 GB Notification: Performance of NFFlatten.collectFunctions: time 9.708e-06/0.3534, allocations: 0 / 1.059 GB, free: 4.906 MB / 0.8106 GB Notification: Performance of NFScalarize.scalarize: time 3.073e-05/0.3534, allocations: 11.92 kB / 1.059 GB, free: 4.895 MB / 0.8106 GB Notification: Performance of NFVerifyModel.verify: time 3.842e-05/0.3534, allocations: 49.56 kB / 1.059 GB, free: 4.84 MB / 0.8106 GB Notification: Performance of NFConvertDAE.convert: time 7.231e-05/0.3535, allocations: 39.88 kB / 1.059 GB, free: 4.801 MB / 0.8106 GB Notification: Performance of FrontEnd - DAE generated: time 3.266e-06/0.3535, allocations: 0 / 1.059 GB, free: 4.801 MB / 0.8106 GB Notification: Performance of FrontEnd: time 1.402e-06/0.3535, allocations: 0 / 1.059 GB, free: 4.801 MB / 0.8106 GB Notification: Performance of Transformations before backend: time 3.206e-06/0.3535, allocations: 0 / 1.059 GB, free: 4.801 MB / 0.8106 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 11 * Number of variables: 11 Notification: Performance of Generate backend data structure: time 0.0002976/0.3539, allocations: 343.6 kB / 1.06 GB, free: 4.414 MB / 0.8106 GB Notification: Performance of prepare preOptimizeDAE: time 3.455e-05/0.3539, allocations: 12.03 kB / 1.06 GB, free: 4.402 MB / 0.8106 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.839e-05/0.3539, allocations: 4.922 kB / 1.06 GB, free: 4.398 MB / 0.8106 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001483/0.3541, allocations: 176.2 kB / 1.06 GB, free: 4.188 MB / 0.8106 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.424e-05/0.3541, allocations: 12.38 kB / 1.06 GB, free: 4.176 MB / 0.8106 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.293e-05/0.3541, allocations: 4.375 kB / 1.06 GB, free: 4.172 MB / 0.8106 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001466/0.3543, allocations: 74.22 kB / 1.06 GB, free: 4.094 MB / 0.8106 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.802e-06/0.3543, allocations: 192 / 1.06 GB, free: 4.094 MB / 0.8106 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.119e-05/0.3543, allocations: 7.922 kB / 1.06 GB, free: 4.086 MB / 0.8106 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.242e-06/0.3543, allocations: 4 kB / 1.06 GB, free: 4.082 MB / 0.8106 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 7.856e-05/0.3544, allocations: 47.97 kB / 1.06 GB, free: 4.035 MB / 0.8106 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004918/0.3549, allocations: 495 kB / 1.06 GB, free: 3.5 MB / 0.8106 GB Notification: Performance of preOpt comSubExp (simulation): time 7.307e-05/0.355, allocations: 173.1 kB / 1.061 GB, free: 3.32 MB / 0.8106 GB Notification: Performance of preOpt resolveLoops (simulation): time 2.951e-05/0.355, allocations: 80.14 kB / 1.061 GB, free: 3.238 MB / 0.8106 GB Notification: Performance of preOpt evalFunc (simulation): time 2.045e-05/0.355, allocations: 79.28 kB / 1.061 GB, free: 3.16 MB / 0.8106 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.292e-05/0.3551, allocations: 105.8 kB / 1.061 GB, free: 3.047 MB / 0.8106 GB Notification: Performance of pre-optimization done (n=0): time 9.82e-07/0.3551, allocations: 0 / 1.061 GB, free: 3.047 MB / 0.8106 GB Notification: Performance of matching and sorting (n=0): time 6.51e-05/0.3552, allocations: 45.64 kB / 1.061 GB, free: 2.996 MB / 0.8106 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.367e-05/0.3552, allocations: 130.7 kB / 1.061 GB, free: 2.855 MB / 0.8106 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001496/0.3554, allocations: 169.7 kB / 1.061 GB, free: 2.68 MB / 0.8106 GB Notification: Performance of collectPreVariables (initialization): time 9.828e-06/0.3554, allocations: 25.7 kB / 1.061 GB, free: 2.648 MB / 0.8106 GB Notification: Performance of collectInitialEqns (initialization): time 5.281e-05/0.3555, allocations: 92.14 kB / 1.061 GB, free: 2.555 MB / 0.8106 GB Notification: Performance of collectInitialBindings (initialization): time 2.725e-06/0.3555, allocations: 3.938 kB / 1.061 GB, free: 2.551 MB / 0.8106 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.054e-05/0.3555, allocations: 13.72 kB / 1.061 GB, free: 2.531 MB / 0.8106 GB Notification: Performance of setup shared object (initialization): time 9.792e-05/0.3556, allocations: 318.8 kB / 1.062 GB, free: 2.211 MB / 0.8106 GB Notification: Performance of preBalanceInitialSystem (initialization): time 1.622e-05/0.3556, allocations: 11.98 kB / 1.062 GB, free: 2.199 MB / 0.8106 GB Notification: Performance of partitionIndependentBlocks (initialization): time 1.101e-05/0.3556, allocations: 4 kB / 1.062 GB, free: 2.195 MB / 0.8106 GB Notification: Performance of analyzeInitialSystem (initialization): time 3.754e-05/0.3557, allocations: 20.84 kB / 1.062 GB, free: 2.172 MB / 0.8106 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.843e-06/0.3557, allocations: 0 / 1.062 GB, free: 2.172 MB / 0.8106 GB Notification: Performance of matching and sorting (n=1) (initialization): time 0.0001129/0.3558, allocations: 49.59 kB / 1.062 GB, free: 2.117 MB / 0.8106 GB Notification: Performance of prepare postOptimizeDAE: time 1.306e-05/0.3558, allocations: 9.656 kB / 1.062 GB, free: 2.109 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.468e-06/0.3558, allocations: 4 kB / 1.062 GB, free: 2.105 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.006e-05/0.3559, allocations: 0 / 1.062 GB, free: 2.105 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.587e-05/0.3559, allocations: 4.094 kB / 1.062 GB, free: 2.102 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.452e-06/0.3559, allocations: 7.875 kB / 1.062 GB, free: 2.094 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.739e-05/0.356, allocations: 15.83 kB / 1.062 GB, free: 2.078 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.015e-05/0.356, allocations: 4 kB / 1.062 GB, free: 2.074 MB / 0.8106 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (1): * Single equations (assignments): 1 * 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 9.494e-05/0.3561, allocations: 189.1 kB / 1.062 GB, free: 1.879 MB / 0.8106 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.054e-05/0.3562, allocations: 109 kB / 1.062 GB, free: 1.766 MB / 0.8106 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.152e-05/0.3562, allocations: 108.9 kB / 1.062 GB, free: 1.652 MB / 0.8106 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.347e-05/0.3563, allocations: 184.2 kB / 1.062 GB, free: 1.465 MB / 0.8106 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.911e-05/0.3563, allocations: 184.2 kB / 1.062 GB, free: 1.277 MB / 0.8106 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.936e-05/0.3564, allocations: 188.2 kB / 1.063 GB, free: 1.086 MB / 0.8106 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002318/0.3566, allocations: 413.2 kB / 1.063 GB, free: 0.625 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.509e-05/0.3567, allocations: 101 kB / 1.063 GB, free: 0.5195 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.641e-05/0.3567, allocations: 108.9 kB / 1.063 GB, free: 416 kB / 0.8106 GB Notification: Performance of postOpt tearingSystem (simulation): time 6.358e-05/0.3568, allocations: 188.3 kB / 1.063 GB, free: 220 kB / 0.8106 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.297e-05/0.3569, allocations: 184.3 kB / 1.064 GB, free: 28 kB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.859e-05/0.3569, allocations: 180.4 kB / 1.064 GB, free: 15.84 MB / 0.8262 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.01e-05/0.357, allocations: 184.1 kB / 1.064 GB, free: 15.66 MB / 0.8262 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001277/0.3571, allocations: 315.8 kB / 1.064 GB, free: 15.32 MB / 0.8262 GB Notification: Performance of postOpt removeConstants (simulation): time 9.037e-05/0.3572, allocations: 197.9 kB / 1.064 GB, free: 15.11 MB / 0.8262 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.216e-05/0.3573, allocations: 176.3 kB / 1.065 GB, free: 14.93 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.502e-05/0.3574, allocations: 112.9 kB / 1.065 GB, free: 14.81 MB / 0.8262 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.512e-05/0.3575, allocations: 184.2 kB / 1.065 GB, free: 14.62 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.262e-05/0.3575, allocations: 101 kB / 1.065 GB, free: 14.52 MB / 0.8262 GB Notification: Performance of sorting global known variables: time 9.448e-05/0.3576, allocations: 135.2 kB / 1.065 GB, free: 14.38 MB / 0.8262 GB Notification: Performance of sort global known variables: time 1.1e-07/0.3576, allocations: 4 kB / 1.065 GB, free: 14.38 MB / 0.8262 GB Notification: Performance of remove unused functions: time 0.0002154/0.3578, allocations: 4 kB / 1.065 GB, free: 14.38 MB / 0.8262 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (0): * Single equations (assignments): 0 * 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 Backend phase and start with SimCode phase: time 0.0001574/0.358, allocations: 174.5 kB / 1.065 GB, free: 14.2 MB / 0.8262 GB Notification: Performance of simCode: created initialization part: time 6.035e-05/0.3581, allocations: 8 kB / 1.065 GB, free: 14.19 MB / 0.8262 GB Notification: Performance of simCode: created event and clocks part: time 1.904e-06/0.3581, allocations: 0 / 1.065 GB, free: 14.19 MB / 0.8262 GB Notification: Performance of simCode: created simulation system equations: time 1.543e-06/0.3581, allocations: 64 / 1.065 GB, free: 14.19 MB / 0.8262 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004588/0.3585, allocations: 0.5323 MB / 1.066 GB, free: 13.65 MB / 0.8262 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002695/0.3588, allocations: 221.9 kB / 1.066 GB, free: 13.41 MB / 0.8262 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000242/0.3591, allocations: 0.6926 MB / 1.067 GB, free: 12.69 MB / 0.8262 GB Notification: Performance of simCode: alias equations: time 2.369e-05/0.3591, allocations: 4 kB / 1.067 GB, free: 12.68 MB / 0.8262 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.088e-05/0.3591, allocations: 11.44 kB / 1.067 GB, free: 12.67 MB / 0.8262 GB Notification: Performance of SimCode: time 3.4e-07/0.3591, allocations: 0 / 1.067 GB, free: 12.67 MB / 0.8262 GB Notification: Performance of Templates: time 0.002394/0.3615, allocations: 453.3 kB / 1.067 GB, free: 12.23 MB / 0.8262 GB make -j1 -f Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Validation.MultiMax.makefile (rm -f Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Validation.MultiMax.pipe ; mkfifo Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Validation.MultiMax.pipe ; head -c 1048576 < Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Validation.MultiMax.pipe >> ../files/Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Validation.MultiMax.sim & ./Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Validation.MultiMax -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Validation.MultiMax.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Validation.MultiMax_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Controls_OBC_CDL_Reals_Validation_MultiMax.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Validation.MultiMax.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches