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.2-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.2-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.001187/0.001186, allocations: 100.1 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.001695/0.001695, 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.344/1.344, allocations: 223.2 MB / 239.9 MB, free: 5.434 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.2-maint.9.1.x/package.mo): time 2.38/2.38, allocations: 390.3 MB / 0.6653 GB, free: 2.938 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.0003315/0.0003315, allocations: 16 kB / 0.8146 GB, free: 14.24 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.6686/0.6689, allocations: 142.3 MB / 0.9535 GB, free: 8.102 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Continuous.Validation.Average): time 0.0006811/0.6696, allocations: 420.6 kB / 0.9539 GB, free: 7.789 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.0006307/0.6703, allocations: 0.807 MB / 0.9547 GB, free: 7.125 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 2.79e-05/0.6703, allocations: 0.875 kB / 0.9547 GB, free: 7.125 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 1.24e-05/0.6703, allocations: 0 / 0.9547 GB, free: 7.125 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 5.949e-05/0.6704, allocations: 2.062 kB / 0.9547 GB, free: 7.125 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 4.229e-05/0.6705, allocations: 9.016 kB / 0.9547 GB, free: 7.117 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 5.247e-05/0.6705, allocations: 31.8 kB / 0.9548 GB, free: 7.094 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 8.619e-05/0.6706, allocations: 12.2 kB / 0.9548 GB, free: 7.086 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 5.077e-05/0.6707, allocations: 9.25 kB / 0.9548 GB, free: 7.082 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 4.11e-05/0.6707, allocations: 21.5 kB / 0.9548 GB, free: 7.066 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 1.266e-05/0.6707, allocations: 2.219 kB / 0.9548 GB, free: 7.066 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 7.714e-06/0.6707, allocations: 1.938 kB / 0.9548 GB, free: 7.066 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 1.105e-05/0.6708, allocations: 7.938 kB / 0.9548 GB, free: 7.059 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 1.594e-05/0.6708, allocations: 27.89 kB / 0.9548 GB, free: 7.027 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 4.805e-05/0.6708, allocations: 29.59 kB / 0.9549 GB, free: 7.004 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 2.104e-06/0.6708, allocations: 0.875 kB / 0.9549 GB, free: 7.004 MB / 0.7169 GB Notification: Performance of FrontEnd: time 1.372e-06/0.6708, allocations: 0 / 0.9549 GB, free: 7.004 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 3.607e-06/0.6708, allocations: 0 / 0.9549 GB, free: 7.004 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.0004079/0.6713, allocations: 373.4 kB / 0.9552 GB, free: 6.625 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 3.306e-05/0.6713, allocations: 8.5 kB / 0.9552 GB, free: 6.625 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.717e-05/0.6713, allocations: 10.17 kB / 0.9552 GB, free: 6.617 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 7.674e-05/0.6714, allocations: 165.7 kB / 0.9554 GB, free: 6.418 MB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.115e-05/0.6714, allocations: 1.094 kB / 0.9554 GB, free: 6.418 MB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.18e-05/0.6715, allocations: 2 kB / 0.9554 GB, free: 6.418 MB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002412/0.6717, allocations: 87.8 kB / 0.9555 GB, free: 6.355 MB / 0.7169 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.362e-06/0.6717, allocations: 0 / 0.9555 GB, free: 6.355 MB / 0.7169 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.025e-06/0.6717, allocations: 1.25 kB / 0.9555 GB, free: 6.355 MB / 0.7169 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.29e-06/0.6717, allocations: 3.984 kB / 0.9555 GB, free: 6.352 MB / 0.7169 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003041/0.672, allocations: 86.92 kB / 0.9556 GB, free: 6.32 MB / 0.7169 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002769/0.6723, allocations: 268.3 kB / 0.9558 GB, free: 6.023 MB / 0.7169 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002013/0.6725, allocations: 73.22 kB / 0.9559 GB, free: 5.973 MB / 0.7169 GB Notification: Performance of preOpt evalFunc (simulation): time 1.028e-05/0.6726, allocations: 5.406 kB / 0.9559 GB, free: 5.969 MB / 0.7169 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.44e-05/0.6726, allocations: 30.56 kB / 0.9559 GB, free: 5.93 MB / 0.7169 GB Notification: Performance of pre-optimization done (n=3): time 1.032e-06/0.6726, allocations: 1.438 kB / 0.9559 GB, free: 5.93 MB / 0.7169 GB Notification: Performance of matching and sorting (n=3): time 0.0005365/0.6731, allocations: 165.9 kB / 0.9561 GB, free: 5.844 MB / 0.7169 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.569e-05/0.6732, allocations: 56.53 kB / 0.9561 GB, free: 5.777 MB / 0.7169 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.274e-05/0.6732, allocations: 118.8 kB / 0.9563 GB, free: 5.66 MB / 0.7169 GB Notification: Performance of collectPreVariables (initialization): time 8.987e-06/0.6732, allocations: 25.7 kB / 0.9563 GB, free: 5.629 MB / 0.7169 GB Notification: Performance of collectInitialEqns (initialization): time 2.808e-05/0.6733, allocations: 86.42 kB / 0.9564 GB, free: 5.543 MB / 0.7169 GB Notification: Performance of collectInitialBindings (initialization): time 1.652e-05/0.6733, allocations: 17.09 kB / 0.9564 GB, free: 5.527 MB / 0.7169 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.797e-06/0.6733, allocations: 0 / 0.9564 GB, free: 5.527 MB / 0.7169 GB Notification: Performance of setup shared object (initialization): time 3.803e-05/0.6734, allocations: 316 kB / 0.9567 GB, free: 5.211 MB / 0.7169 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001527/0.6735, allocations: 44 kB / 0.9567 GB, free: 5.195 MB / 0.7169 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001411/0.6737, allocations: 42.77 kB / 0.9568 GB, free: 5.18 MB / 0.7169 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001429/0.6738, allocations: 42.72 kB / 0.9568 GB, free: 5.164 MB / 0.7169 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.442e-06/0.6738, allocations: 0 / 0.9568 GB, free: 5.164 MB / 0.7169 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0003362/0.6742, allocations: 116.4 kB / 0.9569 GB, free: 5.102 MB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 1.31e-05/0.6742, allocations: 5.125 kB / 0.9569 GB, free: 5.102 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.699e-06/0.6742, allocations: 1.156 kB / 0.9569 GB, free: 5.102 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.021e-05/0.6742, allocations: 0 / 0.9569 GB, free: 5.102 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001306/0.6743, allocations: 35.33 kB / 0.957 GB, free: 5.082 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.229e-06/0.6744, allocations: 0 / 0.957 GB, free: 5.082 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.087e-05/0.6744, allocations: 19.98 kB / 0.957 GB, free: 5.074 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.498e-06/0.6745, allocations: 0.9688 kB / 0.957 GB, free: 5.074 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 5.41e-05/0.6745, allocations: 114.3 kB / 0.9571 GB, free: 4.957 MB / 0.7169 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.35e-05/0.6745, allocations: 10.34 kB / 0.9571 GB, free: 4.949 MB / 0.7169 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.025e-05/0.6746, allocations: 7.906 kB / 0.9571 GB, free: 4.938 MB / 0.7169 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.453e-06/0.6746, allocations: 1.5 kB / 0.9571 GB, free: 4.938 MB / 0.7169 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.668e-06/0.6746, allocations: 3.953 kB / 0.9571 GB, free: 4.934 MB / 0.7169 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.314e-06/0.6746, allocations: 0 / 0.9571 GB, free: 4.934 MB / 0.7169 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001174/0.6747, allocations: 170.3 kB / 0.9573 GB, free: 4.727 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.513e-06/0.6747, allocations: 0 / 0.9573 GB, free: 4.727 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001015/0.6748, allocations: 18.67 kB / 0.9573 GB, free: 4.723 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.194e-06/0.6748, allocations: 5.188 kB / 0.9573 GB, free: 4.719 MB / 0.7169 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.663e-06/0.6748, allocations: 0 / 0.9573 GB, free: 4.719 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.374e-06/0.6749, allocations: 1.188 kB / 0.9573 GB, free: 4.719 MB / 0.7169 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.21e-07/0.6749, allocations: 3.938 kB / 0.9573 GB, free: 4.715 MB / 0.7169 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003321/0.6752, allocations: 220 kB / 0.9575 GB, free: 4.543 MB / 0.7169 GB Notification: Performance of postOpt removeConstants (simulation): time 1.708e-05/0.6752, allocations: 81.39 kB / 0.9576 GB, free: 4.445 MB / 0.7169 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.447e-05/0.6752, allocations: 5.438 kB / 0.9576 GB, free: 4.441 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001123/0.6754, allocations: 19.39 kB / 0.9576 GB, free: 4.434 MB / 0.7169 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.764e-05/0.6754, allocations: 6.859 kB / 0.9576 GB, free: 4.43 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.767e-06/0.6754, allocations: 0 / 0.9576 GB, free: 4.43 MB / 0.7169 GB Notification: Performance of sorting global known variables: time 2.401e-05/0.6754, allocations: 85.78 kB / 0.9577 GB, free: 4.352 MB / 0.7169 GB Notification: Performance of sort global known variables: time 1.31e-07/0.6754, allocations: 0 / 0.9577 GB, free: 4.352 MB / 0.7169 GB Notification: Performance of remove unused functions: time 0.0002183/0.6757, allocations: 9.578 kB / 0.9577 GB, free: 4.348 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 (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.0001065/0.6758, allocations: 106.5 kB / 0.9578 GB, free: 4.254 MB / 0.7169 GB Notification: Performance of simCode: created initialization part: time 0.0003297/0.6761, allocations: 93.67 kB / 0.9579 GB, free: 4.219 MB / 0.7169 GB Notification: Performance of simCode: created event and clocks part: time 1.763e-06/0.6761, allocations: 3.938 kB / 0.9579 GB, free: 4.215 MB / 0.7169 GB Notification: Performance of simCode: created simulation system equations: time 0.0001528/0.6763, allocations: 47.12 kB / 0.958 GB, free: 4.199 MB / 0.7169 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002013/0.6765, allocations: 7.875 kB / 0.958 GB, free: 4.195 MB / 0.7169 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002518/0.6767, allocations: 133.6 kB / 0.9581 GB, free: 4.055 MB / 0.7169 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 9.945e-05/0.6769, allocations: 0.6813 MB / 0.9588 GB, free: 3.355 MB / 0.7169 GB Notification: Performance of simCode: alias equations: time 3.109e-05/0.6769, allocations: 1.062 kB / 0.9588 GB, free: 3.355 MB / 0.7169 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.494e-05/0.6769, allocations: 8.594 kB / 0.9588 GB, free: 3.348 MB / 0.7169 GB Notification: Performance of SimCode: time 2.6e-07/0.6769, allocations: 5.188 kB / 0.9588 GB, free: 3.344 MB / 0.7169 GB Notification: Performance of Templates: time 0.002085/0.679, allocations: 0.5215 MB / 0.9593 GB, free: 3.078 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","../files/Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Validation.Average.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches