Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Validation.TriggeredMax.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.1-master/package.mo", uses=false) Using package Buildings with version 11.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-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.Discrete.Validation.TriggeredMax,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|triggeredMax.u|triggeredMax.y|triggeredMax.trigger",fileNamePrefix="Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Validation.TriggeredMax") translateModel(Buildings.Controls.OBC.CDL.Discrete.Validation.TriggeredMax,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|triggeredMax.u|triggeredMax.y|triggeredMax.trigger",fileNamePrefix="Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Validation.TriggeredMax") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001662/0.001662, allocations: 111.3 kB / 15.23 MB, free: 0.6602 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.002025/0.002025, allocations: 193.7 kB / 16.14 MB, free: 6.699 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.46/1.46, allocations: 222.9 MB / 239.8 MB, free: 4.621 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo): time 2.89/2.89, allocations: 461.9 MB / 0.7342 GB, free: 14.97 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001249/0.001249, allocations: 66.61 kB / 0.8984 GB, free: 37.32 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3368/0.3381, allocations: 157.4 MB / 1.052 GB, free: 8.816 MB / 0.8106 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Discrete.Validation.TriggeredMax): time 0.002039/0.3402, allocations: 0.7909 MB / 1.053 GB, free: 8.023 MB / 0.8106 GB Notification: Performance of NFInst.instExpressions: time 0.001612/0.3418, allocations: 1.209 MB / 1.054 GB, free: 6.801 MB / 0.8106 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.792e-05/0.3419, allocations: 0 / 1.054 GB, free: 6.801 MB / 0.8106 GB Notification: Performance of NFTyping.typeComponents: time 3.72e-05/0.3419, allocations: 3.938 kB / 1.054 GB, free: 6.797 MB / 0.8106 GB Notification: Performance of NFTyping.typeBindings: time 6.3e-05/0.342, allocations: 11.92 kB / 1.054 GB, free: 6.785 MB / 0.8106 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004636/0.3425, allocations: 119.1 kB / 1.054 GB, free: 6.672 MB / 0.8106 GB Notification: Performance of NFFlatten.flatten: time 0.0001269/0.3426, allocations: 103.8 kB / 1.054 GB, free: 6.57 MB / 0.8106 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001028/0.3427, allocations: 15.98 kB / 1.054 GB, free: 6.555 MB / 0.8106 GB Notification: Performance of NFEvalConstants.evaluate: time 9.678e-05/0.3428, allocations: 43.84 kB / 1.054 GB, free: 6.512 MB / 0.8106 GB Notification: Performance of NFSimplifyModel.simplify: time 8.649e-05/0.3429, allocations: 47.75 kB / 1.054 GB, free: 6.465 MB / 0.8106 GB Notification: Performance of NFPackage.collectConstants: time 2.763e-05/0.3429, allocations: 8 kB / 1.054 GB, free: 6.457 MB / 0.8106 GB Notification: Performance of NFFlatten.collectFunctions: time 7.598e-05/0.343, allocations: 19.98 kB / 1.054 GB, free: 6.438 MB / 0.8106 GB Notification: Performance of NFScalarize.scalarize: time 2.431e-05/0.3431, allocations: 4 kB / 1.054 GB, free: 6.434 MB / 0.8106 GB Notification: Performance of NFVerifyModel.verify: time 7.178e-05/0.3431, allocations: 43.83 kB / 1.054 GB, free: 6.391 MB / 0.8106 GB Notification: Performance of NFConvertDAE.convert: time 0.0001804/0.3433, allocations: 103.7 kB / 1.055 GB, free: 6.289 MB / 0.8106 GB Notification: Performance of FrontEnd - DAE generated: time 5.33e-06/0.3433, allocations: 0 / 1.055 GB, free: 6.289 MB / 0.8106 GB Notification: Performance of FrontEnd: time 9.62e-07/0.3433, allocations: 0 / 1.055 GB, free: 6.289 MB / 0.8106 GB Notification: Performance of Transformations before backend: time 4.919e-06/0.3433, allocations: 4 kB / 1.055 GB, free: 6.285 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: 7 * Number of variables: 7 Notification: Performance of Generate backend data structure: time 0.000711/0.3441, allocations: 417.2 kB / 1.055 GB, free: 5.82 MB / 0.8106 GB Notification: Performance of prepare preOptimizeDAE: time 5.183e-05/0.3441, allocations: 8.031 kB / 1.055 GB, free: 5.812 MB / 0.8106 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.951e-05/0.3442, allocations: 8.844 kB / 1.055 GB, free: 5.805 MB / 0.8106 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001356/0.3443, allocations: 164.4 kB / 1.055 GB, free: 5.605 MB / 0.8106 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.55e-05/0.3443, allocations: 8.312 kB / 1.055 GB, free: 5.598 MB / 0.8106 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.865e-05/0.3444, allocations: 8.375 kB / 1.055 GB, free: 5.59 MB / 0.8106 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002099/0.3446, allocations: 66.22 kB / 1.055 GB, free: 5.52 MB / 0.8106 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.466e-06/0.3446, allocations: 192 / 1.055 GB, free: 5.52 MB / 0.8106 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.569e-05/0.3446, allocations: 7.938 kB / 1.055 GB, free: 5.512 MB / 0.8106 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.933e-06/0.3446, allocations: 4 kB / 1.055 GB, free: 5.508 MB / 0.8106 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001739/0.3448, allocations: 35.95 kB / 1.055 GB, free: 5.473 MB / 0.8106 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000511/0.3454, allocations: 336.6 kB / 1.056 GB, free: 5.094 MB / 0.8106 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001712/0.3455, allocations: 50.55 kB / 1.056 GB, free: 5.035 MB / 0.8106 GB Notification: Performance of preOpt resolveLoops (simulation): time 9.528e-05/0.3456, allocations: 28.92 kB / 1.056 GB, free: 5.004 MB / 0.8106 GB Notification: Performance of preOpt evalFunc (simulation): time 1.894e-05/0.3457, allocations: 0 / 1.056 GB, free: 5.004 MB / 0.8106 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002658/0.3459, allocations: 87.36 kB / 1.056 GB, free: 4.906 MB / 0.8106 GB Notification: Performance of pre-optimization done (n=7): time 1.382e-06/0.346, allocations: 0 / 1.056 GB, free: 4.906 MB / 0.8106 GB Notification: Performance of matching and sorting (n=7): time 0.0005015/0.3465, allocations: 137.5 kB / 1.056 GB, free: 4.766 MB / 0.8106 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.762e-05/0.3465, allocations: 55.39 kB / 1.056 GB, free: 4.699 MB / 0.8106 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001033/0.3466, allocations: 118.1 kB / 1.056 GB, free: 4.574 MB / 0.8106 GB Notification: Performance of collectPreVariables (initialization): time 2.972e-05/0.3467, allocations: 33.69 kB / 1.056 GB, free: 4.535 MB / 0.8106 GB Notification: Performance of collectInitialEqns (initialization): time 6.374e-05/0.3467, allocations: 88.14 kB / 1.056 GB, free: 4.445 MB / 0.8106 GB Notification: Performance of collectInitialBindings (initialization): time 2.266e-05/0.3468, allocations: 19.81 kB / 1.056 GB, free: 4.426 MB / 0.8106 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.637e-05/0.3468, allocations: 41.64 kB / 1.056 GB, free: 4.379 MB / 0.8106 GB Notification: Performance of setup shared object (initialization): time 0.0001334/0.347, allocations: 318.8 kB / 1.057 GB, free: 4.059 MB / 0.8106 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001629/0.3472, allocations: 47.97 kB / 1.057 GB, free: 4.012 MB / 0.8106 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000174/0.3473, allocations: 79.38 kB / 1.057 GB, free: 3.922 MB / 0.8106 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002782/0.3476, allocations: 141 kB / 1.057 GB, free: 3.766 MB / 0.8106 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.534e-06/0.3476, allocations: 0 / 1.057 GB, free: 3.766 MB / 0.8106 GB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0004326/0.3481, allocations: 195.2 kB / 1.057 GB, free: 3.562 MB / 0.8106 GB Notification: Performance of prepare postOptimizeDAE: time 3.645e-05/0.3481, allocations: 37.77 kB / 1.057 GB, free: 3.52 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.342e-06/0.3481, allocations: 0 / 1.057 GB, free: 3.52 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.329e-05/0.3481, allocations: 7.938 kB / 1.057 GB, free: 3.512 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001001/0.3483, allocations: 11.98 kB / 1.057 GB, free: 3.5 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.723e-06/0.3483, allocations: 0 / 1.057 GB, free: 3.5 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002204/0.3485, allocations: 39.86 kB / 1.057 GB, free: 3.461 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.27e-05/0.3485, allocations: 8 kB / 1.057 GB, free: 3.453 MB / 0.8106 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 4 * Number of states: 0 () * Number of discrete variables: 7 ($whenCondition2,$whenCondition3,booPul.y,$PRE.booPul.y,$whenCondition1,triggeredMax.y,$PRE.triggeredMax.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (9): * Single equations (assignments): 8 * 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 0.0001301/0.3487, allocations: 133.6 kB / 1.057 GB, free: 3.312 MB / 0.8106 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.417e-05/0.3487, allocations: 4 kB / 1.057 GB, free: 3.309 MB / 0.8106 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003249/0.349, allocations: 110 kB / 1.057 GB, free: 3.195 MB / 0.8106 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.755e-06/0.349, allocations: 0 / 1.057 GB, free: 3.195 MB / 0.8106 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.11e-06/0.349, allocations: 0 / 1.057 GB, free: 3.195 MB / 0.8106 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.005e-05/0.349, allocations: 3.984 kB / 1.057 GB, free: 3.191 MB / 0.8106 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004139/0.3495, allocations: 362.8 kB / 1.058 GB, free: 2.781 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.703e-06/0.3495, allocations: 0 / 1.058 GB, free: 2.781 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.041e-05/0.3495, allocations: 11.98 kB / 1.058 GB, free: 2.77 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.793e-06/0.3496, allocations: 0 / 1.058 GB, free: 2.77 MB / 0.8106 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.166e-05/0.3496, allocations: 4 kB / 1.058 GB, free: 2.766 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.766e-06/0.3496, allocations: 3.984 kB / 1.058 GB, free: 2.762 MB / 0.8106 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.51e-07/0.3496, allocations: 0 / 1.058 GB, free: 2.762 MB / 0.8106 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002912/0.3499, allocations: 215.4 kB / 1.058 GB, free: 2.535 MB / 0.8106 GB Notification: Performance of postOpt removeConstants (simulation): time 3.821e-05/0.3499, allocations: 84.95 kB / 1.058 GB, free: 2.434 MB / 0.8106 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.038e-05/0.35, allocations: 4 kB / 1.058 GB, free: 2.43 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.89e-05/0.35, allocations: 7.984 kB / 1.058 GB, free: 2.422 MB / 0.8106 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.206e-05/0.3501, allocations: 7.938 kB / 1.058 GB, free: 2.414 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.067e-06/0.3501, allocations: 7.984 kB / 1.058 GB, free: 2.406 MB / 0.8106 GB Notification: Performance of sorting global known variables: time 4.041e-05/0.3502, allocations: 87.31 kB / 1.058 GB, free: 2.32 MB / 0.8106 GB Notification: Performance of sort global known variables: time 1.71e-07/0.3502, allocations: 8 kB / 1.058 GB, free: 2.312 MB / 0.8106 GB Notification: Performance of remove unused functions: time 0.0002531/0.3504, allocations: 20 kB / 1.058 GB, free: 2.293 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: 5 ($whenCondition2,$whenCondition3,$whenCondition1,triggeredMax.y,booPul.y) * Number of discrete states: 1 (triggeredMax.y) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (7): * Single equations (assignments): 5 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 2 * 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.0001374/0.3506, allocations: 103.2 kB / 1.058 GB, free: 2.184 MB / 0.8106 GB Notification: Performance of simCode: created initialization part: time 0.0003701/0.3509, allocations: 167.3 kB / 1.058 GB, free: 2.008 MB / 0.8106 GB Notification: Performance of simCode: created event and clocks part: time 1.803e-06/0.3509, allocations: 0 / 1.058 GB, free: 2.008 MB / 0.8106 GB Notification: Performance of simCode: created simulation system equations: time 0.0001189/0.3511, allocations: 36.11 kB / 1.058 GB, free: 1.973 MB / 0.8106 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002772/0.3514, allocations: 15.98 kB / 1.058 GB, free: 1.957 MB / 0.8106 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003444/0.3517, allocations: 164.3 kB / 1.059 GB, free: 1.77 MB / 0.8106 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002851/0.352, allocations: 0.6945 MB / 1.059 GB, free: 1.051 MB / 0.8106 GB Notification: Performance of simCode: alias equations: time 3.668e-05/0.3521, allocations: 4 kB / 1.059 GB, free: 1.047 MB / 0.8106 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.465e-05/0.3521, allocations: 7.438 kB / 1.059 GB, free: 1.039 MB / 0.8106 GB Notification: Performance of SimCode: time 3.31e-07/0.3521, allocations: 4 kB / 1.059 GB, free: 1.035 MB / 0.8106 GB Notification: Performance of Templates: time 0.003669/0.3558, allocations: 1.283 MB / 1.06 GB, free: 15.77 MB / 0.8262 GB make -j1 -f Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Validation.TriggeredMax.makefile (rm -f Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Validation.TriggeredMax.pipe ; mkfifo Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Validation.TriggeredMax.pipe ; head -c 1048576 < Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Validation.TriggeredMax.pipe >> ../files/Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Validation.TriggeredMax.sim & ./Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Validation.TriggeredMax -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Validation.TriggeredMax.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Validation.TriggeredMax_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Controls_OBC_CDL_Discrete_Validation_TriggeredMax.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Validation.TriggeredMax.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches