Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Validation.Cos.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.Cos,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|cos1.u|cos1.y",fileNamePrefix="Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Validation.Cos") translateModel(Buildings.Controls.OBC.CDL.Reals.Validation.Cos,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|cos1.u|cos1.y",fileNamePrefix="Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Validation.Cos") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001104/0.001104, allocations: 100.1 kB / 15.88 MB, free: 12 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.001237/0.001237, allocations: 200.7 kB / 16.79 MB, free: 6.809 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.391/1.391, allocations: 222.9 MB / 240.5 MB, free: 4.531 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/package.mo): time 2.745/2.745, allocations: 461.9 MB / 0.7348 GB, free: 14.21 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001344/0.001344, allocations: 64.98 kB / 0.8991 GB, free: 36.91 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3553/0.3567, allocations: 157.4 MB / 1.053 GB, free: 8.324 MB / 0.8106 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Reals.Validation.Cos): time 0.002326/0.359, allocations: 0.7339 MB / 1.053 GB, free: 7.586 MB / 0.8106 GB Notification: Performance of NFInst.instExpressions: time 0.000986/0.3601, allocations: 0.8157 MB / 1.054 GB, free: 6.758 MB / 0.8106 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.544e-05/0.3601, allocations: 0 / 1.054 GB, free: 6.758 MB / 0.8106 GB Notification: Performance of NFTyping.typeComponents: time 3.422e-05/0.3602, allocations: 0 / 1.054 GB, free: 6.758 MB / 0.8106 GB Notification: Performance of NFTyping.typeBindings: time 6.125e-05/0.3602, allocations: 3.938 kB / 1.054 GB, free: 6.754 MB / 0.8106 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001555/0.3604, allocations: 4 kB / 1.054 GB, free: 6.75 MB / 0.8106 GB Notification: Performance of NFFlatten.flatten: time 7.25e-05/0.3605, allocations: 23.97 kB / 1.054 GB, free: 6.727 MB / 0.8106 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001086/0.3606, allocations: 4 kB / 1.054 GB, free: 6.723 MB / 0.8106 GB Notification: Performance of NFEvalConstants.evaluate: time 7.628e-05/0.3607, allocations: 15.86 kB / 1.054 GB, free: 6.707 MB / 0.8106 GB Notification: Performance of NFSimplifyModel.simplify: time 3.953e-05/0.3607, allocations: 12 kB / 1.054 GB, free: 6.695 MB / 0.8106 GB Notification: Performance of NFPackage.collectConstants: time 1.873e-05/0.3608, allocations: 0 / 1.054 GB, free: 6.695 MB / 0.8106 GB Notification: Performance of NFFlatten.collectFunctions: time 1.041e-05/0.3608, allocations: 4 kB / 1.054 GB, free: 6.691 MB / 0.8106 GB Notification: Performance of NFScalarize.scalarize: time 2.035e-05/0.3608, allocations: 7.922 kB / 1.054 GB, free: 6.684 MB / 0.8106 GB Notification: Performance of NFVerifyModel.verify: time 3e-05/0.3608, allocations: 4 kB / 1.054 GB, free: 6.68 MB / 0.8106 GB Notification: Performance of NFConvertDAE.convert: time 6.358e-05/0.3609, allocations: 19.91 kB / 1.054 GB, free: 6.66 MB / 0.8106 GB Notification: Performance of FrontEnd - DAE generated: time 3.927e-06/0.3609, allocations: 0 / 1.054 GB, free: 6.66 MB / 0.8106 GB Notification: Performance of FrontEnd: time 8.71e-07/0.3609, allocations: 4 kB / 1.054 GB, free: 6.656 MB / 0.8106 GB Notification: Performance of Transformations before backend: time 4.709e-06/0.3609, allocations: 0 / 1.054 GB, free: 6.656 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: 3 * Number of variables: 3 Notification: Performance of Generate backend data structure: time 0.0004632/0.3614, allocations: 339.7 kB / 1.055 GB, free: 6.273 MB / 0.8106 GB Notification: Performance of prepare preOptimizeDAE: time 4.577e-05/0.3615, allocations: 11.97 kB / 1.055 GB, free: 6.262 MB / 0.8106 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.59e-05/0.3615, allocations: 8.844 kB / 1.055 GB, free: 6.254 MB / 0.8106 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001292/0.3616, allocations: 160.4 kB / 1.055 GB, free: 6.059 MB / 0.8106 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.356e-05/0.3617, allocations: 4.359 kB / 1.055 GB, free: 6.055 MB / 0.8106 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.065e-05/0.3617, allocations: 384 / 1.055 GB, free: 6.055 MB / 0.8106 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001984/0.3619, allocations: 46.25 kB / 1.055 GB, free: 6.004 MB / 0.8106 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.848e-06/0.3619, allocations: 192 / 1.055 GB, free: 6.004 MB / 0.8106 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.394e-05/0.3619, allocations: 3.938 kB / 1.055 GB, free: 6 MB / 0.8106 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.235e-06/0.3619, allocations: 11.94 kB / 1.055 GB, free: 5.988 MB / 0.8106 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001809/0.3621, allocations: 35.94 kB / 1.055 GB, free: 5.953 MB / 0.8106 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003586/0.3625, allocations: 248.9 kB / 1.055 GB, free: 5.66 MB / 0.8106 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001415/0.3626, allocations: 38.53 kB / 1.055 GB, free: 5.613 MB / 0.8106 GB Notification: Performance of preOpt resolveLoops (simulation): time 9.227e-05/0.3627, allocations: 28.91 kB / 1.055 GB, free: 5.582 MB / 0.8106 GB Notification: Performance of preOpt evalFunc (simulation): time 1.853e-05/0.3628, allocations: 0 / 1.055 GB, free: 5.582 MB / 0.8106 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.923e-05/0.3628, allocations: 34.5 kB / 1.055 GB, free: 5.539 MB / 0.8106 GB Notification: Performance of pre-optimization done (n=2): time 8.92e-07/0.3628, allocations: 0 / 1.055 GB, free: 5.539 MB / 0.8106 GB Notification: Performance of matching and sorting (n=2): time 0.0003644/0.3632, allocations: 85.58 kB / 1.055 GB, free: 5.449 MB / 0.8106 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.567e-05/0.3632, allocations: 55.53 kB / 1.055 GB, free: 5.383 MB / 0.8106 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.913e-05/0.3633, allocations: 101.8 kB / 1.056 GB, free: 5.273 MB / 0.8106 GB Notification: Performance of collectPreVariables (initialization): time 1.31e-05/0.3633, allocations: 29.7 kB / 1.056 GB, free: 5.238 MB / 0.8106 GB Notification: Performance of collectInitialEqns (initialization): time 3.991e-05/0.3634, allocations: 80.14 kB / 1.056 GB, free: 5.156 MB / 0.8106 GB Notification: Performance of collectInitialBindings (initialization): time 1.996e-05/0.3634, allocations: 3.906 kB / 1.056 GB, free: 5.152 MB / 0.8106 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.453e-05/0.3635, allocations: 17.72 kB / 1.056 GB, free: 5.129 MB / 0.8106 GB Notification: Performance of setup shared object (initialization): time 0.0001078/0.3636, allocations: 310.8 kB / 1.056 GB, free: 4.816 MB / 0.8106 GB Notification: Performance of preBalanceInitialSystem (initialization): time 8.861e-05/0.3637, allocations: 23.97 kB / 1.056 GB, free: 4.793 MB / 0.8106 GB Notification: Performance of partitionIndependentBlocks (initialization): time 7.613e-05/0.3637, allocations: 15.98 kB / 1.056 GB, free: 4.777 MB / 0.8106 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001463/0.3639, allocations: 36.77 kB / 1.056 GB, free: 4.738 MB / 0.8106 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.813e-06/0.3639, allocations: 0 / 1.056 GB, free: 4.738 MB / 0.8106 GB Notification: Performance of matching and sorting (n=2) (initialization): time 0.0001982/0.3641, allocations: 73.59 kB / 1.056 GB, free: 4.66 MB / 0.8106 GB Notification: Performance of prepare postOptimizeDAE: time 1.524e-05/0.3641, allocations: 8 kB / 1.056 GB, free: 4.652 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.452e-06/0.3641, allocations: 0 / 1.056 GB, free: 4.652 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.624e-05/0.3642, allocations: 3.938 kB / 1.056 GB, free: 4.648 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.309e-05/0.3643, allocations: 11.98 kB / 1.056 GB, free: 4.637 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.891e-06/0.3643, allocations: 0 / 1.056 GB, free: 4.637 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.265e-05/0.3643, allocations: 11.98 kB / 1.056 GB, free: 4.625 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.571e-06/0.3643, allocations: 0 / 1.056 GB, free: 4.625 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 (2): * Single equations (assignments): 2 * 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 7.778e-05/0.3644, allocations: 113.8 kB / 1.056 GB, free: 4.504 MB / 0.8106 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.505e-05/0.3645, allocations: 4 kB / 1.056 GB, free: 4.5 MB / 0.8106 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002226/0.3647, allocations: 72.72 kB / 1.056 GB, free: 4.426 MB / 0.8106 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.109e-06/0.3647, allocations: 4 kB / 1.056 GB, free: 4.422 MB / 0.8106 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.629e-06/0.3647, allocations: 0 / 1.056 GB, free: 4.422 MB / 0.8106 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.186e-06/0.3647, allocations: 0 / 1.056 GB, free: 4.422 MB / 0.8106 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001671/0.3649, allocations: 161.6 kB / 1.056 GB, free: 4.215 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.303e-06/0.3649, allocations: 0 / 1.056 GB, free: 4.215 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.909e-05/0.365, allocations: 4 kB / 1.056 GB, free: 4.211 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.656e-06/0.365, allocations: 8.031 kB / 1.056 GB, free: 4.203 MB / 0.8106 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.285e-06/0.365, allocations: 3.984 kB / 1.056 GB, free: 4.199 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.705e-06/0.365, allocations: 4 kB / 1.057 GB, free: 4.195 MB / 0.8106 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.192e-06/0.365, allocations: 0 / 1.057 GB, free: 4.195 MB / 0.8106 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002419/0.3652, allocations: 163.4 kB / 1.057 GB, free: 4.02 MB / 0.8106 GB Notification: Performance of postOpt removeConstants (simulation): time 3.537e-05/0.3653, allocations: 81.11 kB / 1.057 GB, free: 3.922 MB / 0.8106 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.293e-05/0.3653, allocations: 4.031 kB / 1.057 GB, free: 3.918 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.52e-05/0.3654, allocations: 4 kB / 1.057 GB, free: 3.914 MB / 0.8106 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.585e-05/0.3654, allocations: 3.984 kB / 1.057 GB, free: 3.91 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.346e-06/0.3654, allocations: 4 kB / 1.057 GB, free: 3.906 MB / 0.8106 GB Notification: Performance of sorting global known variables: time 4.025e-05/0.3655, allocations: 75.28 kB / 1.057 GB, free: 3.832 MB / 0.8106 GB Notification: Performance of sort global known variables: time 1.7e-07/0.3655, allocations: 4 kB / 1.057 GB, free: 3.828 MB / 0.8106 GB Notification: Performance of remove unused functions: time 0.0002156/0.3657, allocations: 3.938 kB / 1.057 GB, free: 3.824 MB / 0.8106 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 (2): * Single equations (assignments): 2 * 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.0001463/0.3659, allocations: 111.2 kB / 1.057 GB, free: 3.703 MB / 0.8106 GB Notification: Performance of simCode: created initialization part: time 0.0002194/0.3661, allocations: 35.95 kB / 1.057 GB, free: 3.668 MB / 0.8106 GB Notification: Performance of simCode: created event and clocks part: time 1.983e-06/0.3661, allocations: 0 / 1.057 GB, free: 3.668 MB / 0.8106 GB Notification: Performance of simCode: created simulation system equations: time 8.905e-05/0.3662, allocations: 19.92 kB / 1.057 GB, free: 3.648 MB / 0.8106 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002977/0.3665, allocations: 7.938 kB / 1.057 GB, free: 3.641 MB / 0.8106 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000316/0.3668, allocations: 149.8 kB / 1.057 GB, free: 3.461 MB / 0.8106 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002578/0.3671, allocations: 0.6731 MB / 1.058 GB, free: 2.762 MB / 0.8106 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.171e-05/0.3671, allocations: 11.44 kB / 1.058 GB, free: 2.754 MB / 0.8106 GB Notification: Performance of SimCode: time 2.9e-07/0.3671, allocations: 0 / 1.058 GB, free: 2.754 MB / 0.8106 GB Notification: Performance of Templates: time 0.002178/0.3693, allocations: 0.5338 MB / 1.058 GB, free: 2.223 MB / 0.8106 GB make -j1 -f Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Validation.Cos.makefile (rm -f Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Validation.Cos.pipe ; mkfifo Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Validation.Cos.pipe ; head -c 1048576 < Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Validation.Cos.pipe >> ../files/Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Validation.Cos.sim & ./Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Validation.Cos -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Validation.Cos.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Validation.Cos_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Controls_OBC_CDL_Reals_Validation_Cos.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Validation.Cos.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches