Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_9_Buildings.Controls.OBC.CDL.Discrete.Examples.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 9.1.3-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-maint.9.1.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.Examples.TriggeredMax,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|triggeredMax.u|triggeredMax.y|triggeredMax.trigger",fileNamePrefix="Buildings_9_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredMax") translateModel(Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredMax,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|triggeredMax.u|triggeredMax.y|triggeredMax.trigger",fileNamePrefix="Buildings_9_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredMax") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.007527/0.007527, allocations: 102 kB / 15.73 MB, free: 6.035 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.00145/0.00145, allocations: 187.9 kB / 16.67 MB, free: 5.969 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.471/1.471, allocations: 222.9 MB / 240.4 MB, free: 4.309 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-maint.9.1.x/package.mo): time 2.544/2.544, allocations: 390.2 MB / 0.6648 GB, free: 180 kB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.001268/0.001268, allocations: 68 kB / 0.9508 GB, free: 5.621 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3741/0.3754, allocations: 140.4 MB / 1.088 GB, free: 1.5 MB / 0.8419 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredMax): time 0.001958/0.3774, allocations: 0.7161 MB / 1.089 GB, free: 0.7812 MB / 0.8419 GB Notification: Performance of NFInst.instExpressions: time 0.001522/0.379, allocations: 1.196 MB / 1.09 GB, free: 15.57 MB / 0.8575 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.719e-05/0.379, allocations: 0 / 1.09 GB, free: 15.57 MB / 0.8575 GB Notification: Performance of NFTyping.typeComponents: time 3.607e-05/0.3791, allocations: 3.938 kB / 1.09 GB, free: 15.57 MB / 0.8575 GB Notification: Performance of NFTyping.typeBindings: time 8.066e-05/0.3792, allocations: 15.86 kB / 1.09 GB, free: 15.55 MB / 0.8575 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005524/0.3797, allocations: 149 kB / 1.09 GB, free: 15.41 MB / 0.8575 GB Notification: Performance of NFFlatten.flatten: time 0.0001632/0.3799, allocations: 115.8 kB / 1.09 GB, free: 15.3 MB / 0.8575 GB Notification: Performance of NFFlatten.resolveConnections: time 9.7e-05/0.38, allocations: 12 kB / 1.09 GB, free: 15.29 MB / 0.8575 GB Notification: Performance of NFEvalConstants.evaluate: time 8.861e-05/0.3801, allocations: 51.89 kB / 1.09 GB, free: 15.23 MB / 0.8575 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001127/0.3802, allocations: 47.81 kB / 1.09 GB, free: 15.19 MB / 0.8575 GB Notification: Performance of NFPackage.collectConstants: time 2.489e-05/0.3802, allocations: 8 kB / 1.09 GB, free: 15.18 MB / 0.8575 GB Notification: Performance of NFFlatten.collectFunctions: time 7.143e-05/0.3803, allocations: 31.92 kB / 1.09 GB, free: 15.15 MB / 0.8575 GB Notification: Performance of NFScalarize.scalarize: time 2.479e-05/0.3804, allocations: 15.97 kB / 1.09 GB, free: 15.13 MB / 0.8575 GB Notification: Performance of NFVerifyModel.verify: time 6.567e-05/0.3804, allocations: 35.86 kB / 1.09 GB, free: 15.1 MB / 0.8575 GB Notification: Performance of NFConvertDAE.convert: time 0.0001732/0.3806, allocations: 107.7 kB / 1.09 GB, free: 14.99 MB / 0.8575 GB Notification: Performance of FrontEnd - DAE generated: time 6.232e-06/0.3806, allocations: 4 kB / 1.09 GB, free: 14.99 MB / 0.8575 GB Notification: Performance of FrontEnd: time 3.537e-06/0.3806, allocations: 0 / 1.09 GB, free: 14.99 MB / 0.8575 GB Notification: Performance of Transformations before backend: time 5.63e-06/0.3806, allocations: 3.938 kB / 1.09 GB, free: 14.98 MB / 0.8575 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.0006417/0.3813, allocations: 409 kB / 1.091 GB, free: 14.53 MB / 0.8575 GB Notification: Performance of prepare preOptimizeDAE: time 4.017e-05/0.3813, allocations: 12.03 kB / 1.091 GB, free: 14.52 MB / 0.8575 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.005e-05/0.3814, allocations: 16.78 kB / 1.091 GB, free: 14.5 MB / 0.8575 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001394/0.3815, allocations: 164.4 kB / 1.091 GB, free: 14.3 MB / 0.8575 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.578e-05/0.3815, allocations: 4.375 kB / 1.091 GB, free: 14.3 MB / 0.8575 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.63e-05/0.3816, allocations: 8.312 kB / 1.091 GB, free: 14.29 MB / 0.8575 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001967/0.3818, allocations: 66.22 kB / 1.091 GB, free: 14.22 MB / 0.8575 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.576e-06/0.3818, allocations: 192 / 1.091 GB, free: 14.22 MB / 0.8575 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.356e-05/0.3818, allocations: 3.938 kB / 1.091 GB, free: 14.21 MB / 0.8575 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.499e-06/0.3818, allocations: 0 / 1.091 GB, free: 14.21 MB / 0.8575 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001723/0.382, allocations: 47.95 kB / 1.091 GB, free: 14.17 MB / 0.8575 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004781/0.3825, allocations: 328.6 kB / 1.091 GB, free: 13.8 MB / 0.8575 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001479/0.3826, allocations: 50.5 kB / 1.091 GB, free: 13.74 MB / 0.8575 GB Notification: Performance of preOpt resolveLoops (simulation): time 8.762e-05/0.3827, allocations: 32.92 kB / 1.091 GB, free: 13.7 MB / 0.8575 GB Notification: Performance of preOpt evalFunc (simulation): time 1.787e-05/0.3828, allocations: 4 kB / 1.091 GB, free: 13.7 MB / 0.8575 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001958/0.383, allocations: 87.42 kB / 1.092 GB, free: 13.6 MB / 0.8575 GB Notification: Performance of pre-optimization done (n=7): time 1.593e-06/0.383, allocations: 0 / 1.092 GB, free: 13.6 MB / 0.8575 GB Notification: Performance of matching and sorting (n=7): time 0.0004159/0.3834, allocations: 137.7 kB / 1.092 GB, free: 13.46 MB / 0.8575 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.672e-05/0.3834, allocations: 55.41 kB / 1.092 GB, free: 13.39 MB / 0.8575 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.002e-05/0.3835, allocations: 117.8 kB / 1.092 GB, free: 13.27 MB / 0.8575 GB Notification: Performance of collectPreVariables (initialization): time 2.266e-05/0.3836, allocations: 25.7 kB / 1.092 GB, free: 13.24 MB / 0.8575 GB Notification: Performance of collectInitialEqns (initialization): time 5.497e-05/0.3836, allocations: 92.05 kB / 1.092 GB, free: 13.14 MB / 0.8575 GB Notification: Performance of collectInitialBindings (initialization): time 1.884e-05/0.3837, allocations: 15.81 kB / 1.092 GB, free: 13.13 MB / 0.8575 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.42e-05/0.3837, allocations: 37.69 kB / 1.092 GB, free: 13.09 MB / 0.8575 GB Notification: Performance of setup shared object (initialization): time 0.0001192/0.3839, allocations: 318.8 kB / 1.092 GB, free: 12.77 MB / 0.8575 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000147/0.384, allocations: 55.95 kB / 1.092 GB, free: 12.71 MB / 0.8575 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001502/0.3842, allocations: 75.34 kB / 1.092 GB, free: 12.62 MB / 0.8575 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.00024/0.3844, allocations: 137 kB / 1.093 GB, free: 12.47 MB / 0.8575 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.104e-06/0.3844, allocations: 4.469 kB / 1.093 GB, free: 12.47 MB / 0.8575 GB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0003956/0.3848, allocations: 195.2 kB / 1.093 GB, free: 12.27 MB / 0.8575 GB Notification: Performance of prepare postOptimizeDAE: time 3.927e-05/0.3849, allocations: 41.64 kB / 1.093 GB, free: 12.22 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.909e-06/0.3849, allocations: 80 / 1.093 GB, free: 12.22 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.771e-05/0.3849, allocations: 0 / 1.093 GB, free: 12.22 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.442e-05/0.385, allocations: 15.92 kB / 1.093 GB, free: 12.2 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.444e-06/0.385, allocations: 7.984 kB / 1.093 GB, free: 12.2 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001772/0.3852, allocations: 39.92 kB / 1.093 GB, free: 12.16 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.183e-05/0.3853, allocations: 8 kB / 1.093 GB, free: 12.15 MB / 0.8575 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.719e-05/0.3854, allocations: 133.6 kB / 1.093 GB, free: 12.01 MB / 0.8575 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.106e-05/0.3854, allocations: 0 / 1.093 GB, free: 12.01 MB / 0.8575 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002718/0.3857, allocations: 110 kB / 1.093 GB, free: 11.89 MB / 0.8575 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.926e-06/0.3857, allocations: 4.094 kB / 1.093 GB, free: 11.89 MB / 0.8575 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.661e-06/0.3857, allocations: 3.984 kB / 1.093 GB, free: 11.89 MB / 0.8575 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.356e-06/0.3857, allocations: 0 / 1.093 GB, free: 11.89 MB / 0.8575 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004017/0.3861, allocations: 366.3 kB / 1.093 GB, free: 11.47 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.373e-06/0.3861, allocations: 0 / 1.093 GB, free: 11.47 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.792e-05/0.3862, allocations: 15.98 kB / 1.093 GB, free: 11.46 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.813e-06/0.3862, allocations: 0 / 1.093 GB, free: 11.46 MB / 0.8575 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.757e-06/0.3862, allocations: 0 / 1.093 GB, free: 11.46 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.455e-06/0.3862, allocations: 7.984 kB / 1.093 GB, free: 11.45 MB / 0.8575 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.072e-05/0.3862, allocations: 4 kB / 1.093 GB, free: 11.45 MB / 0.8575 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002633/0.3865, allocations: 195.4 kB / 1.094 GB, free: 11.24 MB / 0.8575 GB Notification: Performance of postOpt removeConstants (simulation): time 5.041e-05/0.3865, allocations: 85.02 kB / 1.094 GB, free: 11.14 MB / 0.8575 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.734e-05/0.3866, allocations: 0 / 1.094 GB, free: 11.14 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.268e-05/0.3867, allocations: 7.984 kB / 1.094 GB, free: 11.13 MB / 0.8575 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.532e-05/0.3867, allocations: 19.88 kB / 1.094 GB, free: 11.11 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.593e-06/0.3867, allocations: 0 / 1.094 GB, free: 11.11 MB / 0.8575 GB Notification: Performance of sorting global known variables: time 4.849e-05/0.3868, allocations: 91.27 kB / 1.094 GB, free: 11.02 MB / 0.8575 GB Notification: Performance of sort global known variables: time 1.1e-07/0.3868, allocations: 0 / 1.094 GB, free: 11.02 MB / 0.8575 GB Notification: Performance of remove unused functions: time 0.0002478/0.387, allocations: 20 kB / 1.094 GB, free: 11 MB / 0.8575 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.0001574/0.3872, allocations: 107.2 kB / 1.094 GB, free: 10.89 MB / 0.8575 GB Notification: Performance of simCode: created initialization part: time 0.0003634/0.3876, allocations: 175.2 kB / 1.094 GB, free: 10.7 MB / 0.8575 GB Notification: Performance of simCode: created event and clocks part: time 1.983e-06/0.3876, allocations: 0 / 1.094 GB, free: 10.7 MB / 0.8575 GB Notification: Performance of simCode: created simulation system equations: time 0.0001215/0.3877, allocations: 32.27 kB / 1.094 GB, free: 10.67 MB / 0.8575 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002761/0.388, allocations: 21.33 kB / 1.094 GB, free: 10.65 MB / 0.8575 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003523/0.3883, allocations: 166 kB / 1.094 GB, free: 10.46 MB / 0.8575 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002604/0.3886, allocations: 0.6886 MB / 1.095 GB, free: 9.746 MB / 0.8575 GB Notification: Performance of simCode: alias equations: time 2.956e-05/0.3887, allocations: 7.75 kB / 1.095 GB, free: 9.738 MB / 0.8575 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.507e-05/0.3887, allocations: 11.44 kB / 1.095 GB, free: 9.727 MB / 0.8575 GB Notification: Performance of SimCode: time 2.6e-07/0.3887, allocations: 0 / 1.095 GB, free: 9.727 MB / 0.8575 GB Notification: Performance of Templates: time 0.00396/0.3927, allocations: 1.399 MB / 1.096 GB, free: 8.344 MB / 0.8575 GB make -j1 -f Buildings_9_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredMax.makefile (rm -f Buildings_9_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredMax.pipe ; mkfifo Buildings_9_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredMax.pipe ; head -c 1048576 < Buildings_9_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredMax.pipe >> ../files/Buildings_9_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredMax.sim & ./Buildings_9_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredMax -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_9_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredMax.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredMax_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Controls_OBC_CDL_Discrete_Examples_TriggeredMax.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredMax.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches