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.0-master/package.mo", uses=false) Using package Buildings with version 11.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.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.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.0009862/0.0009864, allocations: 99.7 kB / 15.05 MB, free: 1.105 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.001021/0.001021, allocations: 177.3 kB / 15.95 MB, free: 216 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.463/1.463, allocations: 223.2 MB / 239.9 MB, free: 5.418 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/package.mo): time 2.761/2.761, allocations: 436.5 MB / 0.7104 GB, free: 7.852 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.0003857/0.0003858, allocations: 12 kB / 0.8708 GB, free: 4.773 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.8632/0.8636, allocations: 153.7 MB / 1.021 GB, free: 1.121 MB / 0.7637 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Reals.Validation.MultiMax): time 0.0009028/0.8645, allocations: 386.3 kB / 1.021 GB, free: 0.7461 MB / 0.7637 GB Notification: Performance of NFInst.instExpressions: time 0.0001213/0.8647, allocations: 7.938 kB / 1.021 GB, free: 0.7383 MB / 0.7637 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.536e-05/0.8647, allocations: 3.938 kB / 1.021 GB, free: 0.7344 MB / 0.7637 GB Notification: Performance of NFTyping.typeComponents: time 9.204e-05/0.8648, allocations: 8 kB / 1.021 GB, free: 0.7266 MB / 0.7637 GB Notification: Performance of NFTyping.typeBindings: time 2.594e-05/0.8648, allocations: 0 / 1.021 GB, free: 0.7266 MB / 0.7637 GB Notification: Performance of NFTyping.typeClassSections: time 6.998e-05/0.8649, allocations: 0 / 1.021 GB, free: 0.7266 MB / 0.7637 GB Notification: Performance of NFFlatten.flatten: time 7.886e-05/0.865, allocations: 19.97 kB / 1.021 GB, free: 0.707 MB / 0.7637 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001312/0.8651, allocations: 27.98 kB / 1.021 GB, free: 0.6797 MB / 0.7637 GB Notification: Performance of NFEvalConstants.evaluate: time 2.195e-05/0.8652, allocations: 7.938 kB / 1.021 GB, free: 0.6719 MB / 0.7637 GB Notification: Performance of NFSimplifyModel.simplify: time 2.95e-05/0.8652, allocations: 11.92 kB / 1.021 GB, free: 0.6602 MB / 0.7637 GB Notification: Performance of NFPackage.collectConstants: time 1.42e-05/0.8652, allocations: 0 / 1.021 GB, free: 0.6602 MB / 0.7637 GB Notification: Performance of NFFlatten.collectFunctions: time 1.106e-05/0.8652, allocations: 0 / 1.021 GB, free: 0.6602 MB / 0.7637 GB Notification: Performance of NFScalarize.scalarize: time 2.295e-05/0.8653, allocations: 7.938 kB / 1.021 GB, free: 0.6523 MB / 0.7637 GB Notification: Performance of NFVerifyModel.verify: time 2.801e-05/0.8653, allocations: 33.7 kB / 1.021 GB, free: 0.6133 MB / 0.7637 GB Notification: Performance of NFConvertDAE.convert: time 6.065e-05/0.8654, allocations: 31.92 kB / 1.021 GB, free: 0.582 MB / 0.7637 GB Notification: Performance of FrontEnd - DAE generated: time 3.958e-06/0.8654, allocations: 4 kB / 1.021 GB, free: 0.5781 MB / 0.7637 GB Notification: Performance of FrontEnd: time 2.194e-06/0.8654, allocations: 0 / 1.021 GB, free: 0.5781 MB / 0.7637 GB Notification: Performance of Transformations before backend: time 4.448e-06/0.8654, allocations: 4 kB / 1.021 GB, free: 0.5742 MB / 0.7637 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.0003284/0.8657, allocations: 333.2 kB / 1.022 GB, free: 208 kB / 0.7637 GB Notification: Performance of prepare preOptimizeDAE: time 4.127e-05/0.8658, allocations: 15.97 kB / 1.022 GB, free: 192 kB / 0.7637 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.912e-05/0.8658, allocations: 8 kB / 1.022 GB, free: 184 kB / 0.7637 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001848/0.866, allocations: 178.9 kB / 1.022 GB, free: 15.96 MB / 0.7794 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.33e-05/0.866, allocations: 11.94 kB / 1.022 GB, free: 15.95 MB / 0.7794 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.403e-05/0.8661, allocations: 8 kB / 1.022 GB, free: 15.95 MB / 0.7794 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001597/0.8662, allocations: 81.61 kB / 1.022 GB, free: 15.86 MB / 0.7794 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.396e-06/0.8662, allocations: 0 / 1.022 GB, free: 15.86 MB / 0.7794 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.189e-05/0.8663, allocations: 0 / 1.022 GB, free: 15.86 MB / 0.7794 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.231e-06/0.8663, allocations: 0 / 1.022 GB, free: 15.86 MB / 0.7794 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 7.7e-05/0.8663, allocations: 47.97 kB / 1.022 GB, free: 15.81 MB / 0.7794 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004826/0.8668, allocations: 491.1 kB / 1.022 GB, free: 15.28 MB / 0.7794 GB Notification: Performance of preOpt comSubExp (simulation): time 8.286e-05/0.8669, allocations: 169.1 kB / 1.023 GB, free: 15.11 MB / 0.7794 GB Notification: Performance of preOpt evalFunc (simulation): time 2.63e-05/0.867, allocations: 83.16 kB / 1.023 GB, free: 15.02 MB / 0.7794 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.977e-05/0.867, allocations: 105.8 kB / 1.023 GB, free: 14.91 MB / 0.7794 GB Notification: Performance of pre-optimization done (n=0): time 1.052e-06/0.867, allocations: 0 / 1.023 GB, free: 14.91 MB / 0.7794 GB Notification: Performance of matching and sorting (n=0): time 7.21e-05/0.8671, allocations: 33.69 kB / 1.023 GB, free: 14.87 MB / 0.7794 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.07e-05/0.8671, allocations: 126.7 kB / 1.023 GB, free: 14.73 MB / 0.7794 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000165/0.8673, allocations: 183.9 kB / 1.023 GB, free: 14.54 MB / 0.7794 GB Notification: Performance of collectPreVariables (initialization): time 1.073e-05/0.8673, allocations: 25.7 kB / 1.023 GB, free: 14.51 MB / 0.7794 GB Notification: Performance of collectInitialEqns (initialization): time 5.662e-05/0.8674, allocations: 92.14 kB / 1.023 GB, free: 14.42 MB / 0.7794 GB Notification: Performance of collectInitialBindings (initialization): time 2.274e-06/0.8674, allocations: 0 / 1.023 GB, free: 14.42 MB / 0.7794 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.665e-06/0.8674, allocations: 0 / 1.023 GB, free: 14.42 MB / 0.7794 GB Notification: Performance of setup shared object (initialization): time 0.0001018/0.8675, allocations: 318.9 kB / 1.024 GB, free: 14.1 MB / 0.7794 GB Notification: Performance of preBalanceInitialSystem (initialization): time 1.673e-05/0.8675, allocations: 15.92 kB / 1.024 GB, free: 14.08 MB / 0.7794 GB Notification: Performance of partitionIndependentBlocks (initialization): time 1.26e-05/0.8676, allocations: 7.938 kB / 1.024 GB, free: 14.07 MB / 0.7794 GB Notification: Performance of analyzeInitialSystem (initialization): time 2.788e-05/0.8676, allocations: 16.05 kB / 1.024 GB, free: 14.06 MB / 0.7794 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.573e-06/0.8676, allocations: 0 / 1.024 GB, free: 14.06 MB / 0.7794 GB Notification: Performance of matching and sorting (n=1) (initialization): time 0.0001106/0.8677, allocations: 49.59 kB / 1.024 GB, free: 14 MB / 0.7794 GB Notification: Performance of prepare postOptimizeDAE: time 1.538e-05/0.8677, allocations: 8 kB / 1.024 GB, free: 14 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.578e-06/0.8678, allocations: 0 / 1.024 GB, free: 14 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.326e-05/0.8678, allocations: 0 / 1.024 GB, free: 14 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.302e-05/0.8678, allocations: 0 / 1.024 GB, free: 14 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.22e-06/0.8678, allocations: 4 kB / 1.024 GB, free: 13.99 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.365e-05/0.8679, allocations: 4 kB / 1.024 GB, free: 13.99 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.231e-05/0.8679, allocations: 7.938 kB / 1.024 GB, free: 13.98 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: 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001012/0.868, allocations: 195 kB / 1.024 GB, free: 13.78 MB / 0.7794 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.312e-05/0.8681, allocations: 116.8 kB / 1.024 GB, free: 13.66 MB / 0.7794 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.209e-05/0.8681, allocations: 112.9 kB / 1.024 GB, free: 13.54 MB / 0.7794 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.297e-05/0.8682, allocations: 180.2 kB / 1.024 GB, free: 13.36 MB / 0.7794 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.991e-05/0.8683, allocations: 180.3 kB / 1.024 GB, free: 13.18 MB / 0.7794 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.489e-05/0.8683, allocations: 184.2 kB / 1.025 GB, free: 12.99 MB / 0.7794 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002152/0.8685, allocations: 429.1 kB / 1.025 GB, free: 12.51 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.856e-05/0.8686, allocations: 101 kB / 1.025 GB, free: 12.41 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.407e-05/0.8686, allocations: 104.9 kB / 1.025 GB, free: 12.3 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.101e-05/0.8687, allocations: 180.3 kB / 1.025 GB, free: 12.11 MB / 0.7794 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.885e-05/0.8687, allocations: 180.3 kB / 1.026 GB, free: 11.93 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.598e-05/0.8688, allocations: 188.2 kB / 1.026 GB, free: 11.74 MB / 0.7794 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.128e-05/0.8689, allocations: 184.2 kB / 1.026 GB, free: 11.55 MB / 0.7794 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001372/0.869, allocations: 315.6 kB / 1.026 GB, free: 11.22 MB / 0.7794 GB Notification: Performance of postOpt removeConstants (simulation): time 8.563e-05/0.8691, allocations: 186.1 kB / 1.026 GB, free: 11.01 MB / 0.7794 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.257e-05/0.8692, allocations: 184.2 kB / 1.027 GB, free: 10.82 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.864e-05/0.8693, allocations: 105 kB / 1.027 GB, free: 10.71 MB / 0.7794 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.028e-05/0.8693, allocations: 180.2 kB / 1.027 GB, free: 10.53 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.182e-05/0.8694, allocations: 105 kB / 1.027 GB, free: 10.42 MB / 0.7794 GB Notification: Performance of sorting global known variables: time 9.275e-05/0.8695, allocations: 133.1 kB / 1.027 GB, free: 10.29 MB / 0.7794 GB Notification: Performance of sort global known variables: time 1.5e-07/0.8695, allocations: 0 / 1.027 GB, free: 10.29 MB / 0.7794 GB Notification: Performance of remove unused functions: time 0.0002109/0.8697, allocations: 8 kB / 1.027 GB, free: 10.29 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: 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 (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.0001549/0.8698, allocations: 178.5 kB / 1.027 GB, free: 10.1 MB / 0.7794 GB Notification: Performance of simCode: created initialization part: time 7.004e-05/0.8699, allocations: 12.34 kB / 1.027 GB, free: 10.09 MB / 0.7794 GB Notification: Performance of simCode: created event and clocks part: time 3.186e-06/0.8699, allocations: 3.938 kB / 1.027 GB, free: 10.08 MB / 0.7794 GB Notification: Performance of simCode: created simulation system equations: time 1.382e-06/0.8699, allocations: 3.938 kB / 1.027 GB, free: 10.08 MB / 0.7794 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003628/0.8703, allocations: 0.5341 MB / 1.028 GB, free: 9.539 MB / 0.7794 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002541/0.8706, allocations: 210 kB / 1.028 GB, free: 9.305 MB / 0.7794 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002351/0.8708, allocations: 0.6965 MB / 1.029 GB, free: 8.582 MB / 0.7794 GB Notification: Performance of simCode: alias equations: time 2.889e-05/0.8708, allocations: 15.88 kB / 1.029 GB, free: 8.566 MB / 0.7794 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.323e-05/0.8709, allocations: 15.44 kB / 1.029 GB, free: 8.551 MB / 0.7794 GB Notification: Performance of SimCode: time 2e-07/0.8709, allocations: 0 / 1.029 GB, free: 8.551 MB / 0.7794 GB Notification: Performance of Templates: time 0.00234/0.8732, allocations: 430.3 kB / 1.029 GB, free: 8.133 MB / 0.7794 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","../files/Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Validation.MultiMax.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches