Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_10_Buildings.Controls.OBC.CDL.Reals.Validation.Average.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.1-maint.10.0.x/package.mo", uses=false) Using package Buildings with version 10.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-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.Controls.OBC.CDL.Reals.Validation.Average,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|avg1.u1|avg1.u2|avg1.y",fileNamePrefix="Buildings_10_Buildings.Controls.OBC.CDL.Reals.Validation.Average") translateModel(Buildings.Controls.OBC.CDL.Reals.Validation.Average,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|avg1.u1|avg1.u2|avg1.y",fileNamePrefix="Buildings_10_Buildings.Controls.OBC.CDL.Reals.Validation.Average") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.00154/0.00154, 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.001631/0.001631, 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.387/1.387, allocations: 222.9 MB / 240.2 MB, free: 4.387 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.x/package.mo): time 2.596/2.596, allocations: 437 MB / 0.7103 GB, free: 5.074 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.001493/0.001493, allocations: 67.91 kB / 0.8692 GB, free: 4.617 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7347/0.7362, allocations: 151.6 MB / 1.017 GB, free: 2.457 MB / 0.7637 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Reals.Validation.Average): time 0.002762/0.739, allocations: 0.7057 MB / 1.018 GB, free: 1.75 MB / 0.7637 GB Notification: Performance of NFInst.instExpressions: time 0.00117/0.7402, allocations: 0.8001 MB / 1.019 GB, free: 0.9375 MB / 0.7637 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.307e-05/0.7403, allocations: 0 / 1.019 GB, free: 0.9375 MB / 0.7637 GB Notification: Performance of NFTyping.typeComponents: time 3.814e-05/0.7404, allocations: 7.922 kB / 1.019 GB, free: 0.9297 MB / 0.7637 GB Notification: Performance of NFTyping.typeBindings: time 7.666e-05/0.7405, allocations: 7.922 kB / 1.019 GB, free: 0.9219 MB / 0.7637 GB Notification: Performance of NFTyping.typeClassSections: time 7.864e-05/0.7406, allocations: 11.98 kB / 1.019 GB, free: 0.9102 MB / 0.7637 GB Notification: Performance of NFFlatten.flatten: time 0.0001/0.7407, allocations: 39.92 kB / 1.019 GB, free: 0.8711 MB / 0.7637 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001388/0.7408, allocations: 19.86 kB / 1.019 GB, free: 0.8516 MB / 0.7637 GB Notification: Performance of NFEvalConstants.evaluate: time 8.145e-05/0.7409, allocations: 15.98 kB / 1.019 GB, free: 0.8359 MB / 0.7637 GB Notification: Performance of NFSimplifyModel.simplify: time 4.908e-05/0.741, allocations: 19.92 kB / 1.019 GB, free: 0.8164 MB / 0.7637 GB Notification: Performance of NFPackage.collectConstants: time 1.787e-05/0.741, allocations: 4 kB / 1.019 GB, free: 0.8125 MB / 0.7637 GB Notification: Performance of NFFlatten.collectFunctions: time 1.231e-05/0.741, allocations: 4 kB / 1.019 GB, free: 0.8086 MB / 0.7637 GB Notification: Performance of NFScalarize.scalarize: time 2.483e-05/0.741, allocations: 15.92 kB / 1.019 GB, free: 0.793 MB / 0.7637 GB Notification: Performance of NFVerifyModel.verify: time 3.514e-05/0.7411, allocations: 11.94 kB / 1.019 GB, free: 0.7812 MB / 0.7637 GB Notification: Performance of NFConvertDAE.convert: time 9.59e-05/0.7412, allocations: 43.86 kB / 1.019 GB, free: 0.7383 MB / 0.7637 GB Notification: Performance of FrontEnd - DAE generated: time 5.531e-06/0.7412, allocations: 0 / 1.019 GB, free: 0.7383 MB / 0.7637 GB Notification: Performance of FrontEnd: time 1.853e-06/0.7412, allocations: 0 / 1.019 GB, free: 0.7383 MB / 0.7637 GB Notification: Performance of Transformations before backend: time 8.105e-06/0.7412, allocations: 0 / 1.019 GB, free: 0.7383 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: 5 * Number of variables: 5 Notification: Performance of Generate backend data structure: time 0.0006101/0.7418, allocations: 377.2 kB / 1.019 GB, free: 328 kB / 0.7637 GB Notification: Performance of prepare preOptimizeDAE: time 4.334e-05/0.7419, allocations: 12.03 kB / 1.019 GB, free: 316 kB / 0.7637 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.869e-05/0.7419, allocations: 0.9375 kB / 1.019 GB, free: 316 kB / 0.7637 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001496/0.7421, allocations: 168.3 kB / 1.019 GB, free: 108 kB / 0.7637 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.205e-05/0.7421, allocations: 384 / 1.019 GB, free: 108 kB / 0.7637 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.051e-05/0.7421, allocations: 384 / 1.019 GB, free: 108 kB / 0.7637 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002608/0.7424, allocations: 78.14 kB / 1.02 GB, free: 24 kB / 0.7637 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.617e-06/0.7424, allocations: 4.188 kB / 1.02 GB, free: 20 kB / 0.7637 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.309e-05/0.7424, allocations: 3.938 kB / 1.02 GB, free: 16 kB / 0.7637 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.08e-06/0.7424, allocations: 0 / 1.02 GB, free: 16 kB / 0.7637 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003145/0.7427, allocations: 63.92 kB / 1.02 GB, free: 15.95 MB / 0.7794 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004002/0.7431, allocations: 261 kB / 1.02 GB, free: 15.65 MB / 0.7794 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002004/0.7434, allocations: 62.41 kB / 1.02 GB, free: 15.58 MB / 0.7794 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001599/0.7435, allocations: 40.92 kB / 1.02 GB, free: 15.54 MB / 0.7794 GB Notification: Performance of preOpt evalFunc (simulation): time 1.393e-05/0.7436, allocations: 0 / 1.02 GB, free: 15.54 MB / 0.7794 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.778e-05/0.7436, allocations: 42.48 kB / 1.02 GB, free: 15.48 MB / 0.7794 GB Notification: Performance of pre-optimization done (n=3): time 9.02e-07/0.7436, allocations: 4 kB / 1.02 GB, free: 15.48 MB / 0.7794 GB Notification: Performance of matching and sorting (n=3): time 0.000547/0.7441, allocations: 125.5 kB / 1.02 GB, free: 15.35 MB / 0.7794 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.493e-05/0.7442, allocations: 51.41 kB / 1.02 GB, free: 15.29 MB / 0.7794 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.359e-05/0.7443, allocations: 113.8 kB / 1.02 GB, free: 15.17 MB / 0.7794 GB Notification: Performance of collectPreVariables (initialization): time 1.564e-05/0.7443, allocations: 29.7 kB / 1.02 GB, free: 15.13 MB / 0.7794 GB Notification: Performance of collectInitialEqns (initialization): time 5.875e-05/0.7444, allocations: 88.12 kB / 1.02 GB, free: 15.04 MB / 0.7794 GB Notification: Performance of collectInitialBindings (initialization): time 2.361e-05/0.7444, allocations: 11.84 kB / 1.02 GB, free: 15.03 MB / 0.7794 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.757e-05/0.7445, allocations: 17.66 kB / 1.02 GB, free: 15.01 MB / 0.7794 GB Notification: Performance of setup shared object (initialization): time 0.0001164/0.7446, allocations: 314.8 kB / 1.021 GB, free: 14.69 MB / 0.7794 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000146/0.7447, allocations: 31.95 kB / 1.021 GB, free: 14.66 MB / 0.7794 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000134/0.7449, allocations: 31.97 kB / 1.021 GB, free: 14.63 MB / 0.7794 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002855/0.7452, allocations: 73.05 kB / 1.021 GB, free: 14.55 MB / 0.7794 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.178e-06/0.7452, allocations: 3.938 kB / 1.021 GB, free: 14.55 MB / 0.7794 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.000327/0.7455, allocations: 101.5 kB / 1.021 GB, free: 14.45 MB / 0.7794 GB Notification: Performance of prepare postOptimizeDAE: time 1.443e-05/0.7455, allocations: 4 kB / 1.021 GB, free: 14.44 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.741e-06/0.7456, allocations: 0 / 1.021 GB, free: 14.44 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.608e-05/0.7456, allocations: 4 kB / 1.021 GB, free: 14.44 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001367/0.7457, allocations: 19.91 kB / 1.021 GB, free: 14.42 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.55e-06/0.7457, allocations: 0 / 1.021 GB, free: 14.42 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.042e-05/0.7458, allocations: 15.98 kB / 1.021 GB, free: 14.4 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.913e-06/0.7458, allocations: 3.938 kB / 1.021 GB, free: 14.4 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 (3): * Single equations (assignments): 3 * 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 8.788e-05/0.7459, allocations: 117.8 kB / 1.021 GB, free: 14.27 MB / 0.7794 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.695e-05/0.746, allocations: 0 / 1.021 GB, free: 14.27 MB / 0.7794 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.755e-05/0.746, allocations: 11.91 kB / 1.021 GB, free: 14.26 MB / 0.7794 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.084e-06/0.746, allocations: 0 / 1.021 GB, free: 14.26 MB / 0.7794 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.042e-06/0.746, allocations: 4 kB / 1.021 GB, free: 14.25 MB / 0.7794 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.747e-06/0.746, allocations: 3.984 kB / 1.021 GB, free: 14.25 MB / 0.7794 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001891/0.7462, allocations: 173.6 kB / 1.021 GB, free: 14.03 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.034e-06/0.7462, allocations: 0 / 1.021 GB, free: 14.03 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.595e-05/0.7463, allocations: 11.98 kB / 1.021 GB, free: 14.02 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.465e-06/0.7463, allocations: 8 kB / 1.021 GB, free: 14.01 MB / 0.7794 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.363e-06/0.7464, allocations: 0 / 1.021 GB, free: 14.01 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.252e-06/0.7464, allocations: 0 / 1.021 GB, free: 14.01 MB / 0.7794 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.082e-06/0.7464, allocations: 0 / 1.021 GB, free: 14.01 MB / 0.7794 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003838/0.7468, allocations: 203.2 kB / 1.022 GB, free: 13.8 MB / 0.7794 GB Notification: Performance of postOpt removeConstants (simulation): time 4.072e-05/0.7468, allocations: 81.11 kB / 1.022 GB, free: 13.7 MB / 0.7794 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.704e-05/0.7468, allocations: 4 kB / 1.022 GB, free: 13.7 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001044/0.7469, allocations: 7.984 kB / 1.022 GB, free: 13.69 MB / 0.7794 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.465e-05/0.747, allocations: 7.984 kB / 1.022 GB, free: 13.68 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.858e-06/0.747, allocations: 0 / 1.022 GB, free: 13.68 MB / 0.7794 GB Notification: Performance of sorting global known variables: time 5.529e-05/0.7471, allocations: 87.28 kB / 1.022 GB, free: 13.59 MB / 0.7794 GB Notification: Performance of sort global known variables: time 1.31e-07/0.7471, allocations: 3.938 kB / 1.022 GB, free: 13.59 MB / 0.7794 GB Notification: Performance of remove unused functions: time 0.0002183/0.7473, allocations: 4 kB / 1.022 GB, free: 13.59 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 (3): * Single equations (assignments): 3 * 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.0001406/0.7474, allocations: 107.2 kB / 1.022 GB, free: 13.47 MB / 0.7794 GB Notification: Performance of simCode: created initialization part: time 0.000343/0.7478, allocations: 71.92 kB / 1.022 GB, free: 13.4 MB / 0.7794 GB Notification: Performance of simCode: created event and clocks part: time 2.044e-06/0.7478, allocations: 0 / 1.022 GB, free: 13.4 MB / 0.7794 GB Notification: Performance of simCode: created simulation system equations: time 0.0001473/0.748, allocations: 35.91 kB / 1.022 GB, free: 13.36 MB / 0.7794 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003246/0.7483, allocations: 15.92 kB / 1.022 GB, free: 13.35 MB / 0.7794 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003696/0.7487, allocations: 132 kB / 1.022 GB, free: 13.2 MB / 0.7794 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002609/0.7489, allocations: 0.6768 MB / 1.023 GB, free: 12.49 MB / 0.7794 GB Notification: Performance of simCode: alias equations: time 3.696e-05/0.749, allocations: 8 kB / 1.023 GB, free: 12.48 MB / 0.7794 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.126e-05/0.749, allocations: 7.438 kB / 1.023 GB, free: 12.48 MB / 0.7794 GB Notification: Performance of SimCode: time 2.5e-07/0.749, allocations: 0 / 1.023 GB, free: 12.48 MB / 0.7794 GB Notification: Performance of Templates: time 0.002861/0.7519, allocations: 0.6794 MB / 1.023 GB, free: 11.8 MB / 0.7794 GB make -j1 -f Buildings_10_Buildings.Controls.OBC.CDL.Reals.Validation.Average.makefile (rm -f Buildings_10_Buildings.Controls.OBC.CDL.Reals.Validation.Average.pipe ; mkfifo Buildings_10_Buildings.Controls.OBC.CDL.Reals.Validation.Average.pipe ; head -c 1048576 < Buildings_10_Buildings.Controls.OBC.CDL.Reals.Validation.Average.pipe >> ../files/Buildings_10_Buildings.Controls.OBC.CDL.Reals.Validation.Average.sim & ./Buildings_10_Buildings.Controls.OBC.CDL.Reals.Validation.Average -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_10_Buildings.Controls.OBC.CDL.Reals.Validation.Average.pipe 2>&1) diffSimulationResults("Buildings_10_Buildings.Controls.OBC.CDL.Reals.Validation.Average_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_10.0.x/Buildings_Controls_OBC_CDL_Reals_Validation_Average.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_10_Buildings.Controls.OBC.CDL.Reals.Validation.Average.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches