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.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.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.001837/0.001837, allocations: 104.6 kB / 16.35 MB, free: 5.828 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.002172/0.002172, allocations: 193.2 kB / 17.29 MB, free: 5.484 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.42/1.42, allocations: 222.9 MB / 241 MB, free: 15.08 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/package.mo): time 2.504/2.504, allocations: 442.6 MB / 0.7165 GB, free: 14.63 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001463/0.001463, allocations: 56.66 kB / 0.8773 GB, free: 10.93 MB / 0.6544 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3603/0.3617, allocations: 153 MB / 1.027 GB, free: 2.008 MB / 0.795 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Discrete.Validation.TriggeredMax): time 0.00217/0.364, allocations: 0.7425 MB / 1.027 GB, free: 1.273 MB / 0.795 GB Notification: Performance of NFInst.instExpressions: time 0.001604/0.3656, allocations: 1.186 MB / 1.029 GB, free: 72 kB / 0.795 GB Notification: Performance of NFInst.updateImplicitVariability: time 6.434e-05/0.3657, allocations: 8 kB / 1.029 GB, free: 64 kB / 0.795 GB Notification: Performance of NFTyping.typeComponents: time 3.735e-05/0.3658, allocations: 3.938 kB / 1.029 GB, free: 60 kB / 0.795 GB Notification: Performance of NFTyping.typeBindings: time 7.868e-05/0.3658, allocations: 7.922 kB / 1.029 GB, free: 52 kB / 0.795 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005983/0.3664, allocations: 143.6 kB / 1.029 GB, free: 15.91 MB / 0.8106 GB Notification: Performance of NFFlatten.flatten: time 0.000194/0.3666, allocations: 119.8 kB / 1.029 GB, free: 15.79 MB / 0.8106 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001288/0.3668, allocations: 15.98 kB / 1.029 GB, free: 15.78 MB / 0.8106 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001109/0.3669, allocations: 43.91 kB / 1.029 GB, free: 15.73 MB / 0.8106 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001102/0.367, allocations: 55.8 kB / 1.029 GB, free: 15.68 MB / 0.8106 GB Notification: Performance of NFPackage.collectConstants: time 3.108e-05/0.3671, allocations: 12 kB / 1.029 GB, free: 15.67 MB / 0.8106 GB Notification: Performance of NFFlatten.collectFunctions: time 8.499e-05/0.3671, allocations: 16 kB / 1.029 GB, free: 15.65 MB / 0.8106 GB Notification: Performance of NFScalarize.scalarize: time 2.804e-05/0.3672, allocations: 15.98 kB / 1.029 GB, free: 15.64 MB / 0.8106 GB Notification: Performance of NFVerifyModel.verify: time 7.25e-05/0.3673, allocations: 47.83 kB / 1.029 GB, free: 15.59 MB / 0.8106 GB Notification: Performance of NFConvertDAE.convert: time 0.0002057/0.3675, allocations: 111.6 kB / 1.029 GB, free: 15.48 MB / 0.8106 GB Notification: Performance of FrontEnd - DAE generated: time 4.849e-06/0.3675, allocations: 0 / 1.029 GB, free: 15.48 MB / 0.8106 GB Notification: Performance of FrontEnd: time 1.873e-06/0.3675, allocations: 0 / 1.029 GB, free: 15.48 MB / 0.8106 GB Notification: Performance of Transformations before backend: time 6.212e-06/0.3675, allocations: 0 / 1.029 GB, free: 15.48 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.0006238/0.3681, allocations: 404.9 kB / 1.03 GB, free: 15.03 MB / 0.8106 GB Notification: Performance of prepare preOptimizeDAE: time 4.554e-05/0.3682, allocations: 8.031 kB / 1.03 GB, free: 15.02 MB / 0.8106 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.718e-05/0.3683, allocations: 12.84 kB / 1.03 GB, free: 15.01 MB / 0.8106 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000133/0.3684, allocations: 168.4 kB / 1.03 GB, free: 14.81 MB / 0.8106 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.722e-05/0.3684, allocations: 8.375 kB / 1.03 GB, free: 14.8 MB / 0.8106 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.699e-05/0.3685, allocations: 8.375 kB / 1.03 GB, free: 14.79 MB / 0.8106 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002014/0.3687, allocations: 62.22 kB / 1.03 GB, free: 14.73 MB / 0.8106 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.606e-06/0.3687, allocations: 192 / 1.03 GB, free: 14.73 MB / 0.8106 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.389e-05/0.3687, allocations: 11.88 kB / 1.03 GB, free: 14.71 MB / 0.8106 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.939e-06/0.3687, allocations: 0 / 1.03 GB, free: 14.71 MB / 0.8106 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001813/0.3689, allocations: 43.95 kB / 1.03 GB, free: 14.67 MB / 0.8106 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004917/0.3694, allocations: 328.6 kB / 1.03 GB, free: 14.3 MB / 0.8106 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001591/0.3696, allocations: 54.55 kB / 1.03 GB, free: 14.24 MB / 0.8106 GB Notification: Performance of preOpt resolveLoops (simulation): time 9.349e-05/0.3697, allocations: 32.81 kB / 1.03 GB, free: 14.2 MB / 0.8106 GB Notification: Performance of preOpt evalFunc (simulation): time 3.671e-05/0.3697, allocations: 3.984 kB / 1.03 GB, free: 14.2 MB / 0.8106 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002629/0.37, allocations: 83.38 kB / 1.03 GB, free: 14.11 MB / 0.8106 GB Notification: Performance of pre-optimization done (n=7): time 3.777e-06/0.37, allocations: 3.984 kB / 1.03 GB, free: 14.1 MB / 0.8106 GB Notification: Performance of matching and sorting (n=7): time 0.0004422/0.3705, allocations: 141.6 kB / 1.03 GB, free: 13.96 MB / 0.8106 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.268e-05/0.3705, allocations: 55.34 kB / 1.031 GB, free: 13.89 MB / 0.8106 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.016e-05/0.3706, allocations: 117.8 kB / 1.031 GB, free: 13.77 MB / 0.8106 GB Notification: Performance of collectPreVariables (initialization): time 3.015e-05/0.3707, allocations: 33.7 kB / 1.031 GB, free: 13.73 MB / 0.8106 GB Notification: Performance of collectInitialEqns (initialization): time 6.552e-05/0.3708, allocations: 96.03 kB / 1.031 GB, free: 13.63 MB / 0.8106 GB Notification: Performance of collectInitialBindings (initialization): time 2.284e-05/0.3708, allocations: 15.81 kB / 1.031 GB, free: 13.61 MB / 0.8106 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.846e-05/0.3709, allocations: 29.7 kB / 1.031 GB, free: 13.58 MB / 0.8106 GB Notification: Performance of setup shared object (initialization): time 0.000171/0.371, allocations: 326.8 kB / 1.031 GB, free: 13.25 MB / 0.8106 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001517/0.3712, allocations: 43.97 kB / 1.031 GB, free: 13.21 MB / 0.8106 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001726/0.3714, allocations: 87.27 kB / 1.031 GB, free: 13.11 MB / 0.8106 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002612/0.3716, allocations: 125 kB / 1.031 GB, free: 12.97 MB / 0.8106 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.485e-06/0.3716, allocations: 0 / 1.031 GB, free: 12.97 MB / 0.8106 GB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0004247/0.3721, allocations: 199.2 kB / 1.032 GB, free: 12.76 MB / 0.8106 GB Notification: Performance of prepare postOptimizeDAE: time 5.131e-05/0.3721, allocations: 41.69 kB / 1.032 GB, free: 12.71 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.32e-06/0.3721, allocations: 0 / 1.032 GB, free: 12.71 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.668e-05/0.3722, allocations: 4 kB / 1.032 GB, free: 12.71 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.86e-05/0.3723, allocations: 15.92 kB / 1.032 GB, free: 12.7 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.384e-06/0.3723, allocations: 0 / 1.032 GB, free: 12.7 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002008/0.3725, allocations: 39.92 kB / 1.032 GB, free: 12.66 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.463e-05/0.3725, allocations: 12 kB / 1.032 GB, free: 12.64 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 9.909e-05/0.3726, allocations: 125.7 kB / 1.032 GB, free: 12.51 MB / 0.8106 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.503e-05/0.3727, allocations: 4 kB / 1.032 GB, free: 12.51 MB / 0.8106 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003065/0.373, allocations: 118.2 kB / 1.032 GB, free: 12.39 MB / 0.8106 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.767e-06/0.373, allocations: 0 / 1.032 GB, free: 12.39 MB / 0.8106 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.398e-06/0.373, allocations: 0 / 1.032 GB, free: 12.39 MB / 0.8106 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.717e-06/0.373, allocations: 8 kB / 1.032 GB, free: 12.38 MB / 0.8106 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00043/0.3734, allocations: 362.9 kB / 1.032 GB, free: 11.97 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.914e-06/0.3735, allocations: 0 / 1.032 GB, free: 11.97 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.191e-05/0.3735, allocations: 15.92 kB / 1.032 GB, free: 11.95 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.755e-06/0.3735, allocations: 0 / 1.032 GB, free: 11.95 MB / 0.8106 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.896e-06/0.3735, allocations: 4 kB / 1.032 GB, free: 11.95 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.733e-06/0.3735, allocations: 3.938 kB / 1.032 GB, free: 11.95 MB / 0.8106 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.142e-06/0.3736, allocations: 0 / 1.032 GB, free: 11.95 MB / 0.8106 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002998/0.3739, allocations: 207.4 kB / 1.032 GB, free: 11.73 MB / 0.8106 GB Notification: Performance of postOpt removeConstants (simulation): time 3.798e-05/0.3739, allocations: 81.02 kB / 1.033 GB, free: 11.63 MB / 0.8106 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.094e-05/0.3739, allocations: 7.984 kB / 1.033 GB, free: 11.62 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.356e-05/0.374, allocations: 4 kB / 1.033 GB, free: 11.62 MB / 0.8106 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.335e-05/0.3741, allocations: 11.92 kB / 1.033 GB, free: 11.61 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.047e-05/0.3741, allocations: 4 kB / 1.033 GB, free: 11.6 MB / 0.8106 GB Notification: Performance of sorting global known variables: time 5.571e-05/0.3742, allocations: 95.27 kB / 1.033 GB, free: 11.51 MB / 0.8106 GB Notification: Performance of sort global known variables: time 1.3e-07/0.3742, allocations: 0 / 1.033 GB, free: 11.51 MB / 0.8106 GB Notification: Performance of remove unused functions: time 0.0002665/0.3744, allocations: 20 kB / 1.033 GB, free: 11.49 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.0001588/0.3746, allocations: 103.2 kB / 1.033 GB, free: 11.38 MB / 0.8106 GB Notification: Performance of simCode: created initialization part: time 0.0003863/0.375, allocations: 171.2 kB / 1.033 GB, free: 11.2 MB / 0.8106 GB Notification: Performance of simCode: created event and clocks part: time 4.629e-06/0.375, allocations: 4.125 kB / 1.033 GB, free: 11.2 MB / 0.8106 GB Notification: Performance of simCode: created simulation system equations: time 0.000122/0.3751, allocations: 39.97 kB / 1.033 GB, free: 11.16 MB / 0.8106 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003005/0.3754, allocations: 7.984 kB / 1.033 GB, free: 11.15 MB / 0.8106 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003828/0.3758, allocations: 158.7 kB / 1.033 GB, free: 10.96 MB / 0.8106 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002955/0.3761, allocations: 0.6846 MB / 1.034 GB, free: 10.25 MB / 0.8106 GB Notification: Performance of simCode: alias equations: time 3.619e-05/0.3762, allocations: 7.984 kB / 1.034 GB, free: 10.25 MB / 0.8106 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.741e-05/0.3762, allocations: 11.44 kB / 1.034 GB, free: 10.23 MB / 0.8106 GB Notification: Performance of SimCode: time 2.31e-07/0.3762, allocations: 0 / 1.034 GB, free: 10.23 MB / 0.8106 GB Notification: Performance of Templates: time 0.004745/0.381, allocations: 1.4 MB / 1.035 GB, free: 8.852 MB / 0.8106 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 -s gbode -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/jenkins1/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