Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_11_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.1.0-maint.11.x/package.mo", uses=false) Using package Buildings with version 11.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.0-maint.11.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.Discrete.Validation.TriggeredMax,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|triggeredMax.u|triggeredMax.y|triggeredMax.trigger",fileNamePrefix="Buildings_11_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_11_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.001769/0.001768, allocations: 101.1 kB / 16.27 MB, free: 6.414 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.002478/0.002479, allocations: 190.3 kB / 17.2 MB, free: 5.953 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.467/1.467, allocations: 222.9 MB / 240.9 MB, free: 15.23 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.0-maint.11.x/package.mo): time 2.79/2.79, allocations: 469.8 MB / 0.743 GB, free: 3.391 MB / 0.6075 GB Notification: Performance of FrontEnd - loaded program: time 0.001907/0.001907, allocations: 60.28 kB / 0.9092 GB, free: 13.88 MB / 0.6856 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3468/0.3488, allocations: 159.2 MB / 1.065 GB, free: 14.75 MB / 0.8419 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Discrete.Validation.TriggeredMax): time 0.002143/0.3509, allocations: 0.7162 MB / 1.065 GB, free: 14.03 MB / 0.8419 GB Notification: Performance of NFInst.instExpressions: time 0.001679/0.3526, allocations: 1.201 MB / 1.067 GB, free: 12.81 MB / 0.8419 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.077e-05/0.3527, allocations: 0 / 1.067 GB, free: 12.81 MB / 0.8419 GB Notification: Performance of NFTyping.typeComponents: time 3.389e-05/0.3528, allocations: 3.938 kB / 1.067 GB, free: 12.81 MB / 0.8419 GB Notification: Performance of NFTyping.typeBindings: time 6.827e-05/0.3528, allocations: 7.875 kB / 1.067 GB, free: 12.8 MB / 0.8419 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005251/0.3534, allocations: 134.8 kB / 1.067 GB, free: 12.67 MB / 0.8419 GB Notification: Performance of NFFlatten.flatten: time 0.0001737/0.3536, allocations: 119.8 kB / 1.067 GB, free: 12.55 MB / 0.8419 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001079/0.3537, allocations: 19.98 kB / 1.067 GB, free: 12.54 MB / 0.8419 GB Notification: Performance of NFEvalConstants.evaluate: time 9.297e-05/0.3538, allocations: 47.89 kB / 1.067 GB, free: 12.49 MB / 0.8419 GB Notification: Performance of NFSimplifyModel.simplify: time 8.669e-05/0.3539, allocations: 43.83 kB / 1.067 GB, free: 12.45 MB / 0.8419 GB Notification: Performance of NFPackage.collectConstants: time 2.668e-05/0.3539, allocations: 8 kB / 1.067 GB, free: 12.44 MB / 0.8419 GB Notification: Performance of NFFlatten.collectFunctions: time 8.249e-05/0.354, allocations: 27.98 kB / 1.067 GB, free: 12.41 MB / 0.8419 GB Notification: Performance of NFScalarize.scalarize: time 2.448e-05/0.354, allocations: 11.98 kB / 1.067 GB, free: 12.4 MB / 0.8419 GB Notification: Performance of NFVerifyModel.verify: time 7.226e-05/0.3541, allocations: 43.78 kB / 1.067 GB, free: 12.36 MB / 0.8419 GB Notification: Performance of NFConvertDAE.convert: time 0.0002307/0.3543, allocations: 103.8 kB / 1.067 GB, free: 12.25 MB / 0.8419 GB Notification: Performance of FrontEnd - DAE generated: time 7.264e-06/0.3544, allocations: 3.984 kB / 1.067 GB, free: 12.25 MB / 0.8419 GB Notification: Performance of FrontEnd: time 1.272e-06/0.3544, allocations: 0 / 1.067 GB, free: 12.25 MB / 0.8419 GB Notification: Performance of Transformations before backend: time 5.861e-06/0.3544, allocations: 0 / 1.067 GB, free: 12.25 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: 7 * Number of variables: 7 Notification: Performance of Generate backend data structure: time 0.0007437/0.3551, allocations: 405.3 kB / 1.067 GB, free: 11.8 MB / 0.8419 GB Notification: Performance of prepare preOptimizeDAE: time 4.356e-05/0.3552, allocations: 8.625 kB / 1.067 GB, free: 11.79 MB / 0.8419 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.619e-05/0.3552, allocations: 16.77 kB / 1.067 GB, free: 11.77 MB / 0.8419 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001812/0.3554, allocations: 176.3 kB / 1.068 GB, free: 11.56 MB / 0.8419 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.61e-05/0.3554, allocations: 4.375 kB / 1.068 GB, free: 11.56 MB / 0.8419 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.208e-05/0.3555, allocations: 4.375 kB / 1.068 GB, free: 11.55 MB / 0.8419 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002123/0.3557, allocations: 70.2 kB / 1.068 GB, free: 11.48 MB / 0.8419 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.318e-06/0.3557, allocations: 192 / 1.068 GB, free: 11.48 MB / 0.8419 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.636e-05/0.3557, allocations: 3.938 kB / 1.068 GB, free: 11.48 MB / 0.8419 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.919e-06/0.3557, allocations: 3.938 kB / 1.068 GB, free: 11.47 MB / 0.8419 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002179/0.356, allocations: 47.95 kB / 1.068 GB, free: 11.43 MB / 0.8419 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005751/0.3565, allocations: 324.7 kB / 1.068 GB, free: 11.06 MB / 0.8419 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001723/0.3567, allocations: 50.55 kB / 1.068 GB, free: 11 MB / 0.8419 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001087/0.3568, allocations: 36.86 kB / 1.068 GB, free: 10.96 MB / 0.8419 GB Notification: Performance of preOpt evalFunc (simulation): time 2.648e-05/0.3569, allocations: 4 kB / 1.068 GB, free: 10.96 MB / 0.8419 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002916/0.3572, allocations: 87.42 kB / 1.068 GB, free: 10.86 MB / 0.8419 GB Notification: Performance of pre-optimization done (n=7): time 1.383e-06/0.3572, allocations: 0 / 1.068 GB, free: 10.86 MB / 0.8419 GB Notification: Performance of matching and sorting (n=7): time 0.0004736/0.3577, allocations: 133.5 kB / 1.068 GB, free: 10.72 MB / 0.8419 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.244e-05/0.3577, allocations: 55.41 kB / 1.068 GB, free: 10.66 MB / 0.8419 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001079/0.3579, allocations: 121.7 kB / 1.069 GB, free: 10.53 MB / 0.8419 GB Notification: Performance of collectPreVariables (initialization): time 3.244e-05/0.3579, allocations: 29.7 kB / 1.069 GB, free: 10.49 MB / 0.8419 GB Notification: Performance of collectInitialEqns (initialization): time 8.665e-05/0.358, allocations: 96.03 kB / 1.069 GB, free: 10.39 MB / 0.8419 GB Notification: Performance of collectInitialBindings (initialization): time 2.202e-05/0.358, allocations: 11.81 kB / 1.069 GB, free: 10.38 MB / 0.8419 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.718e-05/0.3581, allocations: 33.7 kB / 1.069 GB, free: 10.34 MB / 0.8419 GB Notification: Performance of setup shared object (initialization): time 0.0001791/0.3583, allocations: 322.8 kB / 1.069 GB, free: 10.02 MB / 0.8419 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002304/0.3585, allocations: 51.97 kB / 1.069 GB, free: 9.969 MB / 0.8419 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001743/0.3587, allocations: 75.39 kB / 1.069 GB, free: 9.883 MB / 0.8419 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003715/0.3591, allocations: 137 kB / 1.069 GB, free: 9.73 MB / 0.8419 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.455e-06/0.3591, allocations: 4 kB / 1.069 GB, free: 9.727 MB / 0.8419 GB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0004983/0.3596, allocations: 191.2 kB / 1.069 GB, free: 9.527 MB / 0.8419 GB Notification: Performance of prepare postOptimizeDAE: time 5.263e-05/0.3597, allocations: 37.7 kB / 1.069 GB, free: 9.484 MB / 0.8419 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.512e-06/0.3597, allocations: 480 / 1.069 GB, free: 9.484 MB / 0.8419 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.755e-05/0.3597, allocations: 4 kB / 1.069 GB, free: 9.48 MB / 0.8419 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001271/0.3598, allocations: 15.92 kB / 1.07 GB, free: 9.465 MB / 0.8419 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.372e-06/0.3598, allocations: 3.938 kB / 1.07 GB, free: 9.461 MB / 0.8419 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002265/0.3601, allocations: 43.86 kB / 1.07 GB, free: 9.418 MB / 0.8419 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.366e-05/0.3601, allocations: 8 kB / 1.07 GB, free: 9.41 MB / 0.8419 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.0001341/0.3603, allocations: 130.4 kB / 1.07 GB, free: 9.273 MB / 0.8419 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.543e-05/0.3603, allocations: 4 kB / 1.07 GB, free: 9.27 MB / 0.8419 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003147/0.3606, allocations: 113.9 kB / 1.07 GB, free: 9.152 MB / 0.8419 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.406e-06/0.3606, allocations: 4 kB / 1.07 GB, free: 9.148 MB / 0.8419 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.012e-06/0.3606, allocations: 0 / 1.07 GB, free: 9.148 MB / 0.8419 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.246e-06/0.3606, allocations: 0 / 1.07 GB, free: 9.148 MB / 0.8419 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000607/0.3612, allocations: 366.4 kB / 1.07 GB, free: 8.734 MB / 0.8419 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.663e-06/0.3613, allocations: 0 / 1.07 GB, free: 8.734 MB / 0.8419 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.652e-05/0.3613, allocations: 15.92 kB / 1.07 GB, free: 8.719 MB / 0.8419 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.324e-06/0.3613, allocations: 0 / 1.07 GB, free: 8.719 MB / 0.8419 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.839e-06/0.3614, allocations: 4 kB / 1.07 GB, free: 8.715 MB / 0.8419 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.403e-06/0.3614, allocations: 4 kB / 1.07 GB, free: 8.711 MB / 0.8419 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.516e-06/0.3614, allocations: 3.984 kB / 1.07 GB, free: 8.707 MB / 0.8419 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003283/0.3617, allocations: 199.4 kB / 1.07 GB, free: 8.496 MB / 0.8419 GB Notification: Performance of postOpt removeConstants (simulation): time 5.67e-05/0.3618, allocations: 81.02 kB / 1.07 GB, free: 8.398 MB / 0.8419 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.012e-05/0.3618, allocations: 0 / 1.07 GB, free: 8.398 MB / 0.8419 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.311e-05/0.3619, allocations: 15.98 kB / 1.07 GB, free: 8.383 MB / 0.8419 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.626e-05/0.3619, allocations: 7.938 kB / 1.07 GB, free: 8.375 MB / 0.8419 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.024e-05/0.362, allocations: 4 kB / 1.07 GB, free: 8.371 MB / 0.8419 GB Notification: Performance of sorting global known variables: time 6.901e-05/0.362, allocations: 87.27 kB / 1.071 GB, free: 8.285 MB / 0.8419 GB Notification: Performance of sort global known variables: time 1.2e-07/0.362, allocations: 0 / 1.071 GB, free: 8.285 MB / 0.8419 GB Notification: Performance of remove unused functions: time 0.0002754/0.3623, allocations: 24 kB / 1.071 GB, free: 8.262 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: 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.0001778/0.3625, allocations: 107.2 kB / 1.071 GB, free: 8.148 MB / 0.8419 GB Notification: Performance of simCode: created initialization part: time 0.0004227/0.3629, allocations: 175.3 kB / 1.071 GB, free: 7.965 MB / 0.8419 GB Notification: Performance of simCode: created event and clocks part: time 1.964e-06/0.3629, allocations: 0 / 1.071 GB, free: 7.965 MB / 0.8419 GB Notification: Performance of simCode: created simulation system equations: time 0.0001246/0.3631, allocations: 39.97 kB / 1.071 GB, free: 7.926 MB / 0.8419 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002942/0.3634, allocations: 26.84 kB / 1.071 GB, free: 7.902 MB / 0.8419 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004352/0.3638, allocations: 184.4 kB / 1.071 GB, free: 7.691 MB / 0.8419 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004883/0.3643, allocations: 0.6885 MB / 1.072 GB, free: 6.977 MB / 0.8419 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.995e-05/0.3644, allocations: 15.38 kB / 1.072 GB, free: 6.961 MB / 0.8419 GB Notification: Performance of SimCode: time 2.114e-06/0.3644, allocations: 0 / 1.072 GB, free: 6.961 MB / 0.8419 GB Notification: Performance of Templates: time 0.003658/0.368, allocations: 1.192 MB / 1.073 GB, free: 5.777 MB / 0.8419 GB make -j1 -f Buildings_11_Buildings.Controls.OBC.CDL.Discrete.Validation.TriggeredMax.makefile (rm -f Buildings_11_Buildings.Controls.OBC.CDL.Discrete.Validation.TriggeredMax.pipe ; mkfifo Buildings_11_Buildings.Controls.OBC.CDL.Discrete.Validation.TriggeredMax.pipe ; head -c 1048576 < Buildings_11_Buildings.Controls.OBC.CDL.Discrete.Validation.TriggeredMax.pipe >> ../files/Buildings_11_Buildings.Controls.OBC.CDL.Discrete.Validation.TriggeredMax.sim & ./Buildings_11_Buildings.Controls.OBC.CDL.Discrete.Validation.TriggeredMax -abortSlowSimulation -alarm=400 -emit_protected -lv LOG_STATS > Buildings_11_Buildings.Controls.OBC.CDL.Discrete.Validation.TriggeredMax.pipe 2>&1) diffSimulationResults("Buildings_11_Buildings.Controls.OBC.CDL.Discrete.Validation.TriggeredMax_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_11.x/Buildings_Controls_OBC_CDL_Discrete_Validation_TriggeredMax.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_11_Buildings.Controls.OBC.CDL.Discrete.Validation.TriggeredMax.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches