Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_9_Buildings.Controls.OBC.CDL.Continuous.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 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.Controls.OBC.CDL.Continuous.Validation.Average,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|avg1.u1|avg1.u2|avg1.y",fileNamePrefix="Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Validation.Average") translateModel(Buildings.Controls.OBC.CDL.Continuous.Validation.Average,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|avg1.u1|avg1.u2|avg1.y",fileNamePrefix="Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Validation.Average") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001084/0.001084, allocations: 97.64 kB / 15.36 MB, free: 0.7344 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.007365/0.007366, allocations: 170.1 kB / 16.27 MB, free: 6.66 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.559/1.559, allocations: 223.3 MB / 240.3 MB, free: 5.332 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.545/2.545, allocations: 390.9 MB / 0.6663 GB, free: 2.32 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.0004078/0.0004079, allocations: 12 kB / 0.816 GB, free: 13.22 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.9685/0.969, allocations: 142.4 MB / 0.9551 GB, free: 7.715 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Continuous.Validation.Average): time 0.001205/0.9702, allocations: 445.2 kB / 0.9555 GB, free: 7.379 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.0009549/0.9712, allocations: 0.7963 MB / 0.9563 GB, free: 6.727 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.909e-05/0.9713, allocations: 1.312 kB / 0.9563 GB, free: 6.727 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 2.067e-05/0.9713, allocations: 0 / 0.9563 GB, free: 6.727 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 7.654e-05/0.9714, allocations: 3.938 kB / 0.9563 GB, free: 6.723 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 6.081e-05/0.9714, allocations: 14.64 kB / 0.9563 GB, free: 6.711 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 8.399e-05/0.9715, allocations: 40.25 kB / 0.9563 GB, free: 6.688 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001203/0.9717, allocations: 11.81 kB / 0.9563 GB, free: 6.68 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 7.833e-05/0.9718, allocations: 18.95 kB / 0.9563 GB, free: 6.668 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 4.986e-05/0.9718, allocations: 24.19 kB / 0.9564 GB, free: 6.648 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 2.062e-05/0.9718, allocations: 1.469 kB / 0.9564 GB, free: 6.648 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 1.024e-05/0.9719, allocations: 2.938 kB / 0.9564 GB, free: 6.648 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 1.814e-05/0.9719, allocations: 7.938 kB / 0.9564 GB, free: 6.641 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 3.48e-05/0.9719, allocations: 41.72 kB / 0.9564 GB, free: 6.598 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 7.91e-05/0.972, allocations: 34.11 kB / 0.9565 GB, free: 6.57 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 3.646e-06/0.972, allocations: 1.094 kB / 0.9565 GB, free: 6.57 MB / 0.7169 GB Notification: Performance of FrontEnd: time 1.893e-06/0.972, allocations: 4 kB / 0.9565 GB, free: 6.566 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 4.538e-06/0.972, allocations: 0 / 0.9565 GB, free: 6.566 MB / 0.7169 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.0005442/0.9726, allocations: 369.4 kB / 0.9568 GB, free: 6.188 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 5.315e-05/0.9726, allocations: 9.156 kB / 0.9568 GB, free: 6.188 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.831e-05/0.9727, allocations: 11.16 kB / 0.9568 GB, free: 6.18 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001237/0.9728, allocations: 166.5 kB / 0.957 GB, free: 5.98 MB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.926e-05/0.9728, allocations: 1.406 kB / 0.957 GB, free: 5.98 MB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.383e-05/0.9729, allocations: 1.844 kB / 0.957 GB, free: 5.98 MB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002756/0.9731, allocations: 77.81 kB / 0.9571 GB, free: 5.93 MB / 0.7169 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.09e-05/0.9732, allocations: 8.172 kB / 0.9571 GB, free: 5.922 MB / 0.7169 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.329e-05/0.9732, allocations: 3.938 kB / 0.9571 GB, free: 5.918 MB / 0.7169 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.735e-06/0.9732, allocations: 1.531 kB / 0.9571 GB, free: 5.918 MB / 0.7169 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003114/0.9735, allocations: 94.42 kB / 0.9572 GB, free: 5.879 MB / 0.7169 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003732/0.9739, allocations: 263.2 kB / 0.9574 GB, free: 5.586 MB / 0.7169 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002228/0.9741, allocations: 75.12 kB / 0.9575 GB, free: 5.535 MB / 0.7169 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001666/0.9743, allocations: 44.39 kB / 0.9575 GB, free: 5.516 MB / 0.7169 GB Notification: Performance of preOpt evalFunc (simulation): time 1.754e-05/0.9743, allocations: 5.156 kB / 0.9575 GB, free: 5.512 MB / 0.7169 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.988e-05/0.9743, allocations: 34.5 kB / 0.9576 GB, free: 5.469 MB / 0.7169 GB Notification: Performance of pre-optimization done (n=3): time 1.312e-06/0.9744, allocations: 1.094 kB / 0.9576 GB, free: 5.469 MB / 0.7169 GB Notification: Performance of matching and sorting (n=3): time 0.0006239/0.975, allocations: 159.2 kB / 0.9577 GB, free: 5.391 MB / 0.7169 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.03e-05/0.975, allocations: 51.41 kB / 0.9578 GB, free: 5.328 MB / 0.7169 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.932e-05/0.9751, allocations: 115.7 kB / 0.9579 GB, free: 5.215 MB / 0.7169 GB Notification: Performance of collectPreVariables (initialization): time 1.228e-05/0.9751, allocations: 27.2 kB / 0.9579 GB, free: 5.184 MB / 0.7169 GB Notification: Performance of collectInitialEqns (initialization): time 4.335e-05/0.9752, allocations: 89.2 kB / 0.958 GB, free: 5.094 MB / 0.7169 GB Notification: Performance of collectInitialBindings (initialization): time 2.522e-05/0.9752, allocations: 17.08 kB / 0.958 GB, free: 5.078 MB / 0.7169 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.2e-05/0.9752, allocations: 11.19 kB / 0.958 GB, free: 5.062 MB / 0.7169 GB Notification: Performance of setup shared object (initialization): time 6.56e-05/0.9753, allocations: 312.4 kB / 0.9583 GB, free: 4.75 MB / 0.7169 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000154/0.9755, allocations: 41.59 kB / 0.9584 GB, free: 4.734 MB / 0.7169 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001418/0.9756, allocations: 44.67 kB / 0.9584 GB, free: 4.719 MB / 0.7169 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003081/0.9759, allocations: 94.41 kB / 0.9585 GB, free: 4.676 MB / 0.7169 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.19e-06/0.9759, allocations: 7.938 kB / 0.9585 GB, free: 4.668 MB / 0.7169 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0005234/0.9765, allocations: 117 kB / 0.9586 GB, free: 4.605 MB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 2.329e-05/0.9765, allocations: 4.906 kB / 0.9586 GB, free: 4.605 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.343e-06/0.9765, allocations: 3.938 kB / 0.9586 GB, free: 4.602 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.93e-05/0.9766, allocations: 0 / 0.9586 GB, free: 4.602 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001501/0.9767, allocations: 19.14 kB / 0.9586 GB, free: 4.598 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.55e-06/0.9767, allocations: 1.406 kB / 0.9586 GB, free: 4.598 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.036e-05/0.9768, allocations: 27.56 kB / 0.9587 GB, free: 4.582 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.578e-06/0.9768, allocations: 1.188 kB / 0.9587 GB, free: 4.582 MB / 0.7169 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.472e-05/0.9769, allocations: 115.3 kB / 0.9588 GB, free: 4.461 MB / 0.7169 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.573e-05/0.977, allocations: 5.375 kB / 0.9588 GB, free: 4.457 MB / 0.7169 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.685e-05/0.977, allocations: 9.094 kB / 0.9588 GB, free: 4.445 MB / 0.7169 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.773e-06/0.977, allocations: 1.25 kB / 0.9588 GB, free: 4.445 MB / 0.7169 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.692e-06/0.977, allocations: 0 / 0.9588 GB, free: 4.445 MB / 0.7169 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.978e-06/0.977, allocations: 1.125 kB / 0.9588 GB, free: 4.445 MB / 0.7169 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001543/0.9772, allocations: 176.6 kB / 0.959 GB, free: 4.23 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.544e-06/0.9772, allocations: 1.156 kB / 0.959 GB, free: 4.23 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001035/0.9773, allocations: 18.61 kB / 0.959 GB, free: 4.227 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.224e-06/0.9773, allocations: 3.938 kB / 0.959 GB, free: 4.223 MB / 0.7169 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.119e-05/0.9773, allocations: 4.844 kB / 0.959 GB, free: 4.219 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.214e-06/0.9773, allocations: 1.312 kB / 0.959 GB, free: 4.219 MB / 0.7169 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.02e-07/0.9773, allocations: 0 / 0.959 GB, free: 4.219 MB / 0.7169 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004004/0.9777, allocations: 227.3 kB / 0.9592 GB, free: 4.039 MB / 0.7169 GB Notification: Performance of postOpt removeConstants (simulation): time 2.885e-05/0.9778, allocations: 82.36 kB / 0.9593 GB, free: 3.941 MB / 0.7169 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.608e-05/0.9778, allocations: 1.25 kB / 0.9593 GB, free: 3.941 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001077/0.9779, allocations: 14.95 kB / 0.9593 GB, free: 3.938 MB / 0.7169 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.763e-05/0.978, allocations: 10.58 kB / 0.9593 GB, free: 3.93 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.857e-06/0.978, allocations: 1.281 kB / 0.9593 GB, free: 3.93 MB / 0.7169 GB Notification: Performance of sorting global known variables: time 3.277e-05/0.978, allocations: 85.53 kB / 0.9594 GB, free: 3.852 MB / 0.7169 GB Notification: Performance of sort global known variables: time 1.2e-07/0.978, allocations: 4 kB / 0.9594 GB, free: 3.848 MB / 0.7169 GB Notification: Performance of remove unused functions: time 0.0002106/0.9782, allocations: 5.938 kB / 0.9594 GB, free: 3.848 MB / 0.7169 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.0001376/0.9784, allocations: 97.88 kB / 0.9595 GB, free: 3.762 MB / 0.7169 GB Notification: Performance of simCode: created initialization part: time 0.0004041/0.9788, allocations: 95.16 kB / 0.9596 GB, free: 3.727 MB / 0.7169 GB Notification: Performance of simCode: created event and clocks part: time 2.144e-06/0.9788, allocations: 0 / 0.9596 GB, free: 3.727 MB / 0.7169 GB Notification: Performance of simCode: created simulation system equations: time 0.0001652/0.979, allocations: 46.22 kB / 0.9596 GB, free: 3.711 MB / 0.7169 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003218/0.9793, allocations: 12.56 kB / 0.9596 GB, free: 3.703 MB / 0.7169 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000328/0.9796, allocations: 134.7 kB / 0.9598 GB, free: 3.562 MB / 0.7169 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001431/0.9798, allocations: 0.692 MB / 0.9604 GB, free: 2.852 MB / 0.7169 GB Notification: Performance of simCode: alias equations: time 3.45e-05/0.9798, allocations: 1.469 kB / 0.9604 GB, free: 2.852 MB / 0.7169 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.286e-05/0.9799, allocations: 8.812 kB / 0.9605 GB, free: 2.844 MB / 0.7169 GB Notification: Performance of SimCode: time 5.71e-07/0.9799, allocations: 0 / 0.9605 GB, free: 2.844 MB / 0.7169 GB Notification: Performance of Templates: time 0.003587/0.9835, allocations: 0.5434 MB / 0.961 GB, free: 2.566 MB / 0.7169 GB make -j1 -f Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Validation.Average.makefile (rm -f Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Validation.Average.pipe ; mkfifo Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Validation.Average.pipe ; head -c 1048576 < Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Validation.Average.pipe >> ../files/Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Validation.Average.sim & ./Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Validation.Average -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Validation.Average.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Validation.Average_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Controls_OBC_CDL_Continuous_Validation_Average.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Validation.Average.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches