Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_Buildings.Controls.OBC.CDL.Utilities.Validation.Assert.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 12.0.0-master/package.mo", uses=false) Using package Buildings with version 12.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.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.Utilities.Validation.Assert,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|assert.u",fileNamePrefix="Buildings_latest_Buildings.Controls.OBC.CDL.Utilities.Validation.Assert") translateModel(Buildings.Controls.OBC.CDL.Utilities.Validation.Assert,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|assert.u",fileNamePrefix="Buildings_latest_Buildings.Controls.OBC.CDL.Utilities.Validation.Assert") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001641/0.001641, allocations: 115.3 kB / 15.34 MB, free: 0.5156 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.001565/0.001565, allocations: 192.4 kB / 16.25 MB, free: 6.637 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.458/1.458, allocations: 222.9 MB / 239.9 MB, free: 4.539 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo): time 2.928/2.928, allocations: 482.4 MB / 0.7543 GB, free: 11.14 MB / 0.6075 GB Notification: Performance of FrontEnd - loaded program: time 0.002665/0.002665, allocations: 66.36 kB / 0.9233 GB, free: 29.65 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3324/0.3351, allocations: 162.2 MB / 1.082 GB, free: 13.58 MB / 0.8419 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Utilities.Validation.Assert): time 0.001943/0.3371, allocations: 0.6485 MB / 1.082 GB, free: 12.93 MB / 0.8419 GB Notification: Performance of NFInst.instExpressions: time 0.001389/0.3385, allocations: 1.108 MB / 1.083 GB, free: 11.81 MB / 0.8419 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.478e-05/0.3385, allocations: 0 / 1.083 GB, free: 11.81 MB / 0.8419 GB Notification: Performance of NFTyping.typeComponents: time 2.88e-05/0.3386, allocations: 8 kB / 1.083 GB, free: 11.8 MB / 0.8419 GB Notification: Performance of NFTyping.typeBindings: time 5.917e-05/0.3386, allocations: 7.922 kB / 1.083 GB, free: 11.79 MB / 0.8419 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004431/0.3391, allocations: 106 kB / 1.084 GB, free: 11.7 MB / 0.8419 GB Notification: Performance of NFFlatten.flatten: time 0.0001439/0.3392, allocations: 99.77 kB / 1.084 GB, free: 11.6 MB / 0.8419 GB Notification: Performance of NFFlatten.resolveConnections: time 8.18e-05/0.3393, allocations: 4 kB / 1.084 GB, free: 11.59 MB / 0.8419 GB Notification: Performance of NFEvalConstants.evaluate: time 6.651e-05/0.3394, allocations: 35.97 kB / 1.084 GB, free: 11.56 MB / 0.8419 GB Notification: Performance of NFSimplifyModel.simplify: time 6.845e-05/0.3395, allocations: 23.89 kB / 1.084 GB, free: 11.54 MB / 0.8419 GB Notification: Performance of NFPackage.collectConstants: time 2.165e-05/0.3395, allocations: 8 kB / 1.084 GB, free: 11.53 MB / 0.8419 GB Notification: Performance of NFFlatten.collectFunctions: time 7.571e-05/0.3396, allocations: 23.98 kB / 1.084 GB, free: 11.5 MB / 0.8419 GB Notification: Performance of NFScalarize.scalarize: time 1.715e-05/0.3396, allocations: 4 kB / 1.084 GB, free: 11.5 MB / 0.8419 GB Notification: Performance of NFVerifyModel.verify: time 5.183e-05/0.3397, allocations: 27.92 kB / 1.084 GB, free: 11.47 MB / 0.8419 GB Notification: Performance of NFConvertDAE.convert: time 0.0001424/0.3398, allocations: 83.78 kB / 1.084 GB, free: 11.39 MB / 0.8419 GB Notification: Performance of FrontEnd - DAE generated: time 5.911e-06/0.3398, allocations: 4 kB / 1.084 GB, free: 11.39 MB / 0.8419 GB Notification: Performance of FrontEnd: time 1.212e-06/0.3398, allocations: 4 kB / 1.084 GB, free: 11.38 MB / 0.8419 GB Notification: Performance of Transformations before backend: time 4.509e-06/0.3398, allocations: 0 / 1.084 GB, free: 11.38 MB / 0.8419 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 2 * Number of variables: 2 Notification: Performance of Generate backend data structure: time 0.0004834/0.3403, allocations: 373.4 kB / 1.084 GB, free: 10.96 MB / 0.8419 GB Notification: Performance of prepare preOptimizeDAE: time 3.356e-05/0.3404, allocations: 8.031 kB / 1.084 GB, free: 10.95 MB / 0.8419 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.507e-05/0.3404, allocations: 4.938 kB / 1.084 GB, free: 10.95 MB / 0.8419 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001179/0.3405, allocations: 168.3 kB / 1.084 GB, free: 10.75 MB / 0.8419 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.002e-05/0.3406, allocations: 8.375 kB / 1.084 GB, free: 10.74 MB / 0.8419 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.327e-05/0.3406, allocations: 12.3 kB / 1.084 GB, free: 10.73 MB / 0.8419 GB Notification: Performance of preOpt clockPartitioning (simulation): time 8.891e-05/0.3407, allocations: 34.27 kB / 1.084 GB, free: 10.69 MB / 0.8419 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.845e-06/0.3407, allocations: 192 / 1.084 GB, free: 10.69 MB / 0.8419 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.174e-05/0.3407, allocations: 7.938 kB / 1.084 GB, free: 10.68 MB / 0.8419 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.678e-06/0.3407, allocations: 0 / 1.084 GB, free: 10.68 MB / 0.8419 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.433e-05/0.3408, allocations: 11.98 kB / 1.084 GB, free: 10.67 MB / 0.8419 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003767/0.3411, allocations: 276.9 kB / 1.085 GB, free: 10.35 MB / 0.8419 GB Notification: Performance of preOpt comSubExp (simulation): time 4.748e-05/0.3412, allocations: 30.45 kB / 1.085 GB, free: 10.31 MB / 0.8419 GB Notification: Performance of preOpt resolveLoops (simulation): time 1.876e-05/0.3412, allocations: 12.86 kB / 1.085 GB, free: 10.29 MB / 0.8419 GB Notification: Performance of preOpt evalFunc (simulation): time 7.694e-06/0.3412, allocations: 0 / 1.085 GB, free: 10.29 MB / 0.8419 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001428/0.3414, allocations: 63.45 kB / 1.085 GB, free: 10.22 MB / 0.8419 GB Notification: Performance of pre-optimization done (n=3): time 1.233e-06/0.3414, allocations: 0 / 1.085 GB, free: 10.22 MB / 0.8419 GB Notification: Performance of matching and sorting (n=3): time 0.0001773/0.3416, allocations: 73.55 kB / 1.085 GB, free: 10.14 MB / 0.8419 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.641e-05/0.3416, allocations: 55.39 kB / 1.085 GB, free: 10.07 MB / 0.8419 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.828e-05/0.3417, allocations: 101.9 kB / 1.085 GB, free: 9.965 MB / 0.8419 GB Notification: Performance of collectPreVariables (initialization): time 2.854e-05/0.3418, allocations: 33.7 kB / 1.085 GB, free: 9.926 MB / 0.8419 GB Notification: Performance of collectInitialEqns (initialization): time 5.824e-05/0.3418, allocations: 92.03 kB / 1.085 GB, free: 9.832 MB / 0.8419 GB Notification: Performance of collectInitialBindings (initialization): time 7.034e-06/0.3418, allocations: 0 / 1.085 GB, free: 9.832 MB / 0.8419 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.804e-05/0.3419, allocations: 33.7 kB / 1.085 GB, free: 9.793 MB / 0.8419 GB Notification: Performance of setup shared object (initialization): time 0.0001353/0.342, allocations: 318.8 kB / 1.086 GB, free: 9.473 MB / 0.8419 GB Notification: Performance of preBalanceInitialSystem (initialization): time 6.836e-05/0.3421, allocations: 27.92 kB / 1.086 GB, free: 9.445 MB / 0.8419 GB Notification: Performance of partitionIndependentBlocks (initialization): time 8.165e-05/0.3422, allocations: 54.55 kB / 1.086 GB, free: 9.383 MB / 0.8419 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001097/0.3423, allocations: 84.2 kB / 1.086 GB, free: 9.285 MB / 0.8419 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.506e-06/0.3423, allocations: 3.938 kB / 1.086 GB, free: 9.281 MB / 0.8419 GB Notification: Performance of matching and sorting (n=6) (initialization): time 0.0002339/0.3426, allocations: 143.2 kB / 1.086 GB, free: 9.129 MB / 0.8419 GB Notification: Performance of prepare postOptimizeDAE: time 4.086e-05/0.3426, allocations: 33.7 kB / 1.086 GB, free: 9.09 MB / 0.8419 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.02e-06/0.3426, allocations: 0 / 1.086 GB, free: 9.09 MB / 0.8419 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.598e-05/0.3427, allocations: 4 kB / 1.086 GB, free: 9.086 MB / 0.8419 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.662e-05/0.3427, allocations: 0 / 1.086 GB, free: 9.086 MB / 0.8419 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.589e-06/0.3427, allocations: 4.094 kB / 1.086 GB, free: 9.082 MB / 0.8419 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002105/0.3429, allocations: 35.89 kB / 1.086 GB, free: 9.047 MB / 0.8419 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.017e-05/0.3429, allocations: 8 kB / 1.086 GB, free: 9.039 MB / 0.8419 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 3 * Number of states: 0 () * Number of discrete variables: 4 (booPul.y,$PRE.booPul.y,$whenCondition1,$whenCondition2) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (4): * Single equations (assignments): 3 * Array equations: 0 * Algorithm blocks: 1 * 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 9.293e-05/0.343, allocations: 117.8 kB / 1.086 GB, free: 8.914 MB / 0.8419 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.806e-06/0.343, allocations: 0 / 1.086 GB, free: 8.914 MB / 0.8419 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.555e-05/0.3431, allocations: 11.89 kB / 1.086 GB, free: 8.898 MB / 0.8419 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.322e-06/0.3431, allocations: 4 kB / 1.086 GB, free: 8.895 MB / 0.8419 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.134e-06/0.3431, allocations: 4 kB / 1.086 GB, free: 8.891 MB / 0.8419 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.495e-06/0.3431, allocations: 3.938 kB / 1.086 GB, free: 8.887 MB / 0.8419 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001257/0.3432, allocations: 157.6 kB / 1.086 GB, free: 8.684 MB / 0.8419 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.82e-07/0.3432, allocations: 0 / 1.086 GB, free: 8.684 MB / 0.8419 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.253e-06/0.3432, allocations: 4 kB / 1.086 GB, free: 8.68 MB / 0.8419 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.413e-06/0.3433, allocations: 0 / 1.086 GB, free: 8.68 MB / 0.8419 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.834e-06/0.3433, allocations: 3.984 kB / 1.086 GB, free: 8.676 MB / 0.8419 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.02e-07/0.3433, allocations: 0 / 1.086 GB, free: 8.676 MB / 0.8419 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.42e-07/0.3433, allocations: 320 / 1.086 GB, free: 8.676 MB / 0.8419 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001105/0.3434, allocations: 88.97 kB / 1.086 GB, free: 8.57 MB / 0.8419 GB Notification: Performance of postOpt removeConstants (simulation): time 4.006e-05/0.3434, allocations: 77.11 kB / 1.086 GB, free: 8.477 MB / 0.8419 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.256e-05/0.3435, allocations: 4 kB / 1.086 GB, free: 8.473 MB / 0.8419 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.42e-05/0.3435, allocations: 0 / 1.086 GB, free: 8.473 MB / 0.8419 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.43e-05/0.3435, allocations: 7.984 kB / 1.086 GB, free: 8.465 MB / 0.8419 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.719e-06/0.3435, allocations: 0 / 1.086 GB, free: 8.465 MB / 0.8419 GB Notification: Performance of sorting global known variables: time 5.097e-05/0.3436, allocations: 83.28 kB / 1.086 GB, free: 8.383 MB / 0.8419 GB Notification: Performance of sort global known variables: time 1.3e-07/0.3436, allocations: 3.938 kB / 1.086 GB, free: 8.379 MB / 0.8419 GB Notification: Performance of remove unused functions: time 0.0002054/0.3438, allocations: 16 kB / 1.086 GB, free: 8.363 MB / 0.8419 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 3 ($whenCondition1,$whenCondition2,booPul.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (3): * Single equations (assignments): 2 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 1 * 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.0001539/0.3439, allocations: 117.8 kB / 1.087 GB, free: 8.242 MB / 0.8419 GB Notification: Performance of simCode: created initialization part: time 0.0002049/0.3442, allocations: 115.3 kB / 1.087 GB, free: 8.117 MB / 0.8419 GB Notification: Performance of simCode: created event and clocks part: time 2.074e-06/0.3442, allocations: 4 kB / 1.087 GB, free: 8.113 MB / 0.8419 GB Notification: Performance of simCode: created simulation system equations: time 2.781e-05/0.3442, allocations: 11.94 kB / 1.087 GB, free: 8.102 MB / 0.8419 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001917/0.3444, allocations: 17.81 kB / 1.087 GB, free: 8.086 MB / 0.8419 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000264/0.3447, allocations: 130.6 kB / 1.087 GB, free: 7.93 MB / 0.8419 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002829/0.345, allocations: 0.6845 MB / 1.088 GB, free: 7.219 MB / 0.8419 GB Notification: Performance of simCode: alias equations: time 1.683e-05/0.345, allocations: 0 / 1.088 GB, free: 7.219 MB / 0.8419 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.576e-05/0.345, allocations: 11.44 kB / 1.088 GB, free: 7.207 MB / 0.8419 GB Notification: Performance of SimCode: time 2.1e-07/0.345, allocations: 0 / 1.088 GB, free: 7.207 MB / 0.8419 GB Notification: Performance of Templates: time 0.003643/0.3487, allocations: 1.06 MB / 1.089 GB, free: 6.16 MB / 0.8419 GB make -j1 -f Buildings_latest_Buildings.Controls.OBC.CDL.Utilities.Validation.Assert.makefile (rm -f Buildings_latest_Buildings.Controls.OBC.CDL.Utilities.Validation.Assert.pipe ; mkfifo Buildings_latest_Buildings.Controls.OBC.CDL.Utilities.Validation.Assert.pipe ; head -c 1048576 < Buildings_latest_Buildings.Controls.OBC.CDL.Utilities.Validation.Assert.pipe >> ../files/Buildings_latest_Buildings.Controls.OBC.CDL.Utilities.Validation.Assert.sim & ./Buildings_latest_Buildings.Controls.OBC.CDL.Utilities.Validation.Assert -abortSlowSimulation -alarm=400 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Controls.OBC.CDL.Utilities.Validation.Assert.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Controls.OBC.CDL.Utilities.Validation.Assert_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Controls_OBC_CDL_Utilities_Validation_Assert.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Controls.OBC.CDL.Utilities.Validation.Assert.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches