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.009825/0.009824, allocations: 102.5 kB / 15.73 MB, free: 5.961 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.001446/0.001446, allocations: 190 kB / 16.67 MB, free: 5.883 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.473/1.473, allocations: 222.9 MB / 240.4 MB, free: 4.168 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.461/2.461, allocations: 390.2 MB / 0.6648 GB, free: 196 kB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.001331/0.001331, allocations: 70.47 kB / 0.9508 GB, free: 5.605 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3608/0.3621, allocations: 140.4 MB / 1.088 GB, free: 1.547 MB / 0.8419 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredMax): time 0.002255/0.3645, allocations: 0.7287 MB / 1.089 GB, free: 0.8125 MB / 0.8419 GB Notification: Performance of NFInst.instExpressions: time 0.001733/0.3662, allocations: 1.192 MB / 1.09 GB, free: 15.61 MB / 0.8575 GB Notification: Performance of NFInst.updateImplicitVariability: time 6.502e-05/0.3663, allocations: 0 / 1.09 GB, free: 15.61 MB / 0.8575 GB Notification: Performance of NFTyping.typeComponents: time 3.877e-05/0.3663, allocations: 3.938 kB / 1.09 GB, free: 15.6 MB / 0.8575 GB Notification: Performance of NFTyping.typeBindings: time 8.643e-05/0.3664, allocations: 7.922 kB / 1.09 GB, free: 15.59 MB / 0.8575 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005784/0.367, allocations: 155.5 kB / 1.09 GB, free: 15.45 MB / 0.8575 GB Notification: Performance of NFFlatten.flatten: time 0.0002582/0.3673, allocations: 115.8 kB / 1.09 GB, free: 15.33 MB / 0.8575 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001074/0.3674, allocations: 19.97 kB / 1.09 GB, free: 15.31 MB / 0.8575 GB Notification: Performance of NFEvalConstants.evaluate: time 9.29e-05/0.3675, allocations: 39.92 kB / 1.09 GB, free: 15.27 MB / 0.8575 GB Notification: Performance of NFSimplifyModel.simplify: time 0.000106/0.3676, allocations: 51.8 kB / 1.09 GB, free: 15.22 MB / 0.8575 GB Notification: Performance of NFPackage.collectConstants: time 2.493e-05/0.3676, allocations: 12 kB / 1.09 GB, free: 15.21 MB / 0.8575 GB Notification: Performance of NFFlatten.collectFunctions: time 7.431e-05/0.3677, allocations: 23.98 kB / 1.09 GB, free: 15.19 MB / 0.8575 GB Notification: Performance of NFScalarize.scalarize: time 2.667e-05/0.3678, allocations: 11.98 kB / 1.09 GB, free: 15.18 MB / 0.8575 GB Notification: Performance of NFVerifyModel.verify: time 7.56e-05/0.3678, allocations: 39.86 kB / 1.09 GB, free: 15.14 MB / 0.8575 GB Notification: Performance of NFConvertDAE.convert: time 0.0001761/0.368, allocations: 115.6 kB / 1.09 GB, free: 15.02 MB / 0.8575 GB Notification: Performance of FrontEnd - DAE generated: time 8.035e-06/0.368, allocations: 4 kB / 1.09 GB, free: 15.02 MB / 0.8575 GB Notification: Performance of FrontEnd: time 2.064e-06/0.368, allocations: 0 / 1.09 GB, free: 15.02 MB / 0.8575 GB Notification: Performance of Transformations before backend: time 6.062e-06/0.3681, allocations: 4 kB / 1.09 GB, free: 15.02 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.0006387/0.3687, allocations: 410.7 kB / 1.091 GB, free: 14.56 MB / 0.8575 GB Notification: Performance of prepare preOptimizeDAE: time 4.004e-05/0.3687, allocations: 12.03 kB / 1.091 GB, free: 14.55 MB / 0.8575 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.215e-05/0.3688, allocations: 8.844 kB / 1.091 GB, free: 14.54 MB / 0.8575 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000146/0.369, allocations: 160.4 kB / 1.091 GB, free: 14.34 MB / 0.8575 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.088e-05/0.369, allocations: 4.375 kB / 1.091 GB, free: 14.34 MB / 0.8575 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.95e-05/0.369, allocations: 12.38 kB / 1.091 GB, free: 14.33 MB / 0.8575 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001934/0.3692, allocations: 66.22 kB / 1.091 GB, free: 14.26 MB / 0.8575 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.887e-06/0.3692, allocations: 4.188 kB / 1.091 GB, free: 14.25 MB / 0.8575 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.455e-05/0.3692, allocations: 7.922 kB / 1.091 GB, free: 14.25 MB / 0.8575 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.733e-06/0.3693, allocations: 0 / 1.091 GB, free: 14.25 MB / 0.8575 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001761/0.3694, allocations: 39.91 kB / 1.091 GB, free: 14.21 MB / 0.8575 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005398/0.37, allocations: 328.6 kB / 1.091 GB, free: 13.84 MB / 0.8575 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001584/0.3702, allocations: 54.55 kB / 1.091 GB, free: 13.77 MB / 0.8575 GB Notification: Performance of preOpt resolveLoops (simulation): time 9.772e-05/0.3703, allocations: 24.94 kB / 1.091 GB, free: 13.75 MB / 0.8575 GB Notification: Performance of preOpt evalFunc (simulation): time 2.111e-05/0.3703, allocations: 8 kB / 1.091 GB, free: 13.74 MB / 0.8575 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002805/0.3706, allocations: 87.36 kB / 1.092 GB, free: 13.64 MB / 0.8575 GB Notification: Performance of pre-optimization done (n=7): time 1.282e-06/0.3706, allocations: 4 kB / 1.092 GB, free: 13.64 MB / 0.8575 GB Notification: Performance of matching and sorting (n=7): time 0.0004459/0.371, allocations: 129.5 kB / 1.092 GB, free: 13.5 MB / 0.8575 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001265/0.3712, allocations: 55.41 kB / 1.092 GB, free: 13.44 MB / 0.8575 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.21e-05/0.3713, allocations: 117.8 kB / 1.092 GB, free: 13.31 MB / 0.8575 GB Notification: Performance of collectPreVariables (initialization): time 3.051e-05/0.3713, allocations: 29.7 kB / 1.092 GB, free: 13.28 MB / 0.8575 GB Notification: Performance of collectInitialEqns (initialization): time 6.933e-05/0.3714, allocations: 92.05 kB / 1.092 GB, free: 13.18 MB / 0.8575 GB Notification: Performance of collectInitialBindings (initialization): time 2.243e-05/0.3714, allocations: 19.8 kB / 1.092 GB, free: 13.16 MB / 0.8575 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.765e-05/0.3715, allocations: 41.69 kB / 1.092 GB, free: 13.12 MB / 0.8575 GB Notification: Performance of setup shared object (initialization): time 0.0001281/0.3716, allocations: 318.8 kB / 1.092 GB, free: 12.8 MB / 0.8575 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001583/0.3718, allocations: 51.95 kB / 1.092 GB, free: 12.75 MB / 0.8575 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001625/0.372, allocations: 79.7 kB / 1.092 GB, free: 12.66 MB / 0.8575 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002671/0.3722, allocations: 129 kB / 1.093 GB, free: 12.51 MB / 0.8575 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.268e-06/0.3722, allocations: 4 kB / 1.093 GB, free: 12.51 MB / 0.8575 GB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0004006/0.3727, allocations: 191.3 kB / 1.093 GB, free: 12.31 MB / 0.8575 GB Notification: Performance of prepare postOptimizeDAE: time 3.821e-05/0.3727, allocations: 33.8 kB / 1.093 GB, free: 12.27 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.743e-06/0.3727, allocations: 12 kB / 1.093 GB, free: 12.26 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.704e-05/0.3727, allocations: 3.984 kB / 1.093 GB, free: 12.25 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.849e-05/0.3728, allocations: 15.94 kB / 1.093 GB, free: 12.24 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.184e-06/0.3729, allocations: 0 / 1.093 GB, free: 12.24 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001998/0.3731, allocations: 35.86 kB / 1.093 GB, free: 12.2 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.111e-05/0.3731, allocations: 8 kB / 1.093 GB, free: 12.2 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 0.0001118/0.3732, allocations: 129.7 kB / 1.093 GB, free: 12.06 MB / 0.8575 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.402e-05/0.3732, allocations: 8 kB / 1.093 GB, free: 12.05 MB / 0.8575 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002839/0.3735, allocations: 114 kB / 1.093 GB, free: 11.93 MB / 0.8575 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.748e-06/0.3735, allocations: 4 kB / 1.093 GB, free: 11.93 MB / 0.8575 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.58e-06/0.3735, allocations: 0 / 1.093 GB, free: 11.93 MB / 0.8575 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.308e-06/0.3736, allocations: 3.984 kB / 1.093 GB, free: 11.93 MB / 0.8575 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004183/0.374, allocations: 362.4 kB / 1.093 GB, free: 11.52 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.715e-06/0.374, allocations: 3.984 kB / 1.093 GB, free: 11.51 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.766e-05/0.374, allocations: 4 kB / 1.093 GB, free: 11.51 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.458e-06/0.3741, allocations: 7.938 kB / 1.093 GB, free: 11.5 MB / 0.8575 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.043e-05/0.3741, allocations: 3.984 kB / 1.093 GB, free: 11.5 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.253e-06/0.3741, allocations: 0 / 1.093 GB, free: 11.5 MB / 0.8575 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.31e-07/0.3741, allocations: 0 / 1.093 GB, free: 11.5 MB / 0.8575 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003579/0.3745, allocations: 207.9 kB / 1.094 GB, free: 11.28 MB / 0.8575 GB Notification: Performance of postOpt removeConstants (simulation): time 3.88e-05/0.3745, allocations: 81.02 kB / 1.094 GB, free: 11.18 MB / 0.8575 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.916e-05/0.3745, allocations: 4 kB / 1.094 GB, free: 11.18 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.371e-05/0.3746, allocations: 7.984 kB / 1.094 GB, free: 11.17 MB / 0.8575 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.526e-05/0.3747, allocations: 3.938 kB / 1.094 GB, free: 11.16 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.036e-05/0.3747, allocations: 11.98 kB / 1.094 GB, free: 11.15 MB / 0.8575 GB Notification: Performance of sorting global known variables: time 5.312e-05/0.3747, allocations: 83.28 kB / 1.094 GB, free: 11.07 MB / 0.8575 GB Notification: Performance of sort global known variables: time 1.2e-07/0.3747, allocations: 0 / 1.094 GB, free: 11.07 MB / 0.8575 GB Notification: Performance of remove unused functions: time 0.0002474/0.375, allocations: 24 kB / 1.094 GB, free: 11.05 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.0001485/0.3752, allocations: 115.2 kB / 1.094 GB, free: 10.93 MB / 0.8575 GB Notification: Performance of simCode: created initialization part: time 0.000382/0.3755, allocations: 167.5 kB / 1.094 GB, free: 10.75 MB / 0.8575 GB Notification: Performance of simCode: created event and clocks part: time 3.066e-06/0.3756, allocations: 4 kB / 1.094 GB, free: 10.75 MB / 0.8575 GB Notification: Performance of simCode: created simulation system equations: time 0.0001136/0.3757, allocations: 32 kB / 1.094 GB, free: 10.71 MB / 0.8575 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002718/0.376, allocations: 28.19 kB / 1.094 GB, free: 10.69 MB / 0.8575 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003591/0.3763, allocations: 154.2 kB / 1.094 GB, free: 10.51 MB / 0.8575 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003497/0.3767, allocations: 0.6885 MB / 1.095 GB, free: 9.793 MB / 0.8575 GB Notification: Performance of simCode: alias equations: time 3.122e-05/0.3767, allocations: 7.75 kB / 1.095 GB, free: 9.785 MB / 0.8575 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.385e-05/0.3768, allocations: 11.44 kB / 1.095 GB, free: 9.773 MB / 0.8575 GB Notification: Performance of SimCode: time 2.21e-07/0.3768, allocations: 0 / 1.095 GB, free: 9.773 MB / 0.8575 GB Notification: Performance of Templates: time 0.004169/0.3809, allocations: 1.4 MB / 1.096 GB, free: 8.387 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