Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_10_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 10.1.1-maint.10.0.x/package.mo", uses=false) Using package Buildings with version 10.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.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_10_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_10_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.001218/0.001218, 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.001337/0.001337, 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.338/1.338, 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 10.1.1-maint.10.0.x/package.mo): time 2.463/2.463, allocations: 437 MB / 0.711 GB, free: 4.461 MB / 0.5762 GB Notification: Performance of FrontEnd - loaded program: time 0.001448/0.001448, allocations: 67.48 kB / 0.8699 GB, free: 2.156 MB / 0.6387 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2722/0.2736, allocations: 151.6 MB / 1.018 GB, free: 10.61 MB / 0.795 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredMax): time 0.002105/0.2758, allocations: 0.723 MB / 1.019 GB, free: 9.879 MB / 0.795 GB Notification: Performance of NFInst.instExpressions: time 0.001505/0.2773, allocations: 1.188 MB / 1.02 GB, free: 8.676 MB / 0.795 GB Notification: Performance of NFInst.updateImplicitVariability: time 6.152e-05/0.2774, allocations: 4 kB / 1.02 GB, free: 8.672 MB / 0.795 GB Notification: Performance of NFTyping.typeComponents: time 3.033e-05/0.2775, allocations: 3.938 kB / 1.02 GB, free: 8.668 MB / 0.795 GB Notification: Performance of NFTyping.typeBindings: time 7.393e-05/0.2775, allocations: 7.938 kB / 1.02 GB, free: 8.66 MB / 0.795 GB Notification: Performance of NFTyping.typeClassSections: time 0.0006123/0.2782, allocations: 146 kB / 1.02 GB, free: 8.52 MB / 0.795 GB Notification: Performance of NFFlatten.flatten: time 0.0001876/0.2784, allocations: 115.8 kB / 1.02 GB, free: 8.406 MB / 0.795 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001189/0.2785, allocations: 23.97 kB / 1.02 GB, free: 8.383 MB / 0.795 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001095/0.2786, allocations: 47.89 kB / 1.02 GB, free: 8.336 MB / 0.795 GB Notification: Performance of NFSimplifyModel.simplify: time 8.631e-05/0.2787, allocations: 43.83 kB / 1.02 GB, free: 8.293 MB / 0.795 GB Notification: Performance of NFPackage.collectConstants: time 2.782e-05/0.2787, allocations: 12 kB / 1.02 GB, free: 8.281 MB / 0.795 GB Notification: Performance of NFFlatten.collectFunctions: time 8.268e-05/0.2788, allocations: 23.98 kB / 1.02 GB, free: 8.258 MB / 0.795 GB Notification: Performance of NFScalarize.scalarize: time 2.525e-05/0.2788, allocations: 7.984 kB / 1.02 GB, free: 8.25 MB / 0.795 GB Notification: Performance of NFVerifyModel.verify: time 7.006e-05/0.2789, allocations: 43.84 kB / 1.02 GB, free: 8.207 MB / 0.795 GB Notification: Performance of NFConvertDAE.convert: time 0.0001731/0.2791, allocations: 103.8 kB / 1.02 GB, free: 8.105 MB / 0.795 GB Notification: Performance of FrontEnd - DAE generated: time 3.967e-06/0.2791, allocations: 4 kB / 1.02 GB, free: 8.102 MB / 0.795 GB Notification: Performance of FrontEnd: time 1.222e-06/0.2791, allocations: 0 / 1.02 GB, free: 8.102 MB / 0.795 GB Notification: Performance of Transformations before backend: time 6.202e-06/0.2791, allocations: 0 / 1.02 GB, free: 8.102 MB / 0.795 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.00063/0.2798, allocations: 413.1 kB / 1.021 GB, free: 7.641 MB / 0.795 GB Notification: Performance of prepare preOptimizeDAE: time 3.767e-05/0.2798, allocations: 12.03 kB / 1.021 GB, free: 7.629 MB / 0.795 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.195e-05/0.2799, allocations: 8.844 kB / 1.021 GB, free: 7.621 MB / 0.795 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001415/0.28, allocations: 176.4 kB / 1.021 GB, free: 7.41 MB / 0.795 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.574e-05/0.2801, allocations: 8.312 kB / 1.021 GB, free: 7.402 MB / 0.795 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.683e-05/0.2801, allocations: 4.375 kB / 1.021 GB, free: 7.398 MB / 0.795 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000218/0.2803, allocations: 66.22 kB / 1.021 GB, free: 7.328 MB / 0.795 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.706e-06/0.2803, allocations: 192 / 1.021 GB, free: 7.328 MB / 0.795 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.407e-05/0.2803, allocations: 3.938 kB / 1.021 GB, free: 7.324 MB / 0.795 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.099e-06/0.2804, allocations: 3.938 kB / 1.021 GB, free: 7.32 MB / 0.795 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001935/0.2806, allocations: 51.89 kB / 1.021 GB, free: 7.27 MB / 0.795 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004797/0.281, allocations: 320.7 kB / 1.021 GB, free: 6.906 MB / 0.795 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001622/0.2812, allocations: 54.55 kB / 1.021 GB, free: 6.844 MB / 0.795 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001039/0.2813, allocations: 36.92 kB / 1.021 GB, free: 6.805 MB / 0.795 GB Notification: Performance of preOpt evalFunc (simulation): time 2.062e-05/0.2814, allocations: 0 / 1.021 GB, free: 6.805 MB / 0.795 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002073/0.2816, allocations: 91.36 kB / 1.022 GB, free: 6.703 MB / 0.795 GB Notification: Performance of pre-optimization done (n=7): time 1.433e-06/0.2816, allocations: 0 / 1.022 GB, free: 6.703 MB / 0.795 GB Notification: Performance of matching and sorting (n=7): time 0.0004483/0.282, allocations: 137.5 kB / 1.022 GB, free: 6.562 MB / 0.795 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.584e-05/0.2821, allocations: 51.41 kB / 1.022 GB, free: 6.5 MB / 0.795 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.801e-05/0.2822, allocations: 113.8 kB / 1.022 GB, free: 6.379 MB / 0.795 GB Notification: Performance of collectPreVariables (initialization): time 2.599e-05/0.2822, allocations: 33.7 kB / 1.022 GB, free: 6.34 MB / 0.795 GB Notification: Performance of collectInitialEqns (initialization): time 6.541e-05/0.2823, allocations: 92.12 kB / 1.022 GB, free: 6.246 MB / 0.795 GB Notification: Performance of collectInitialBindings (initialization): time 2.31e-05/0.2823, allocations: 11.72 kB / 1.022 GB, free: 6.234 MB / 0.795 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.192e-05/0.2824, allocations: 41.64 kB / 1.022 GB, free: 6.188 MB / 0.795 GB Notification: Performance of setup shared object (initialization): time 9.498e-05/0.2825, allocations: 326.8 kB / 1.022 GB, free: 5.859 MB / 0.795 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001631/0.2827, allocations: 47.97 kB / 1.022 GB, free: 5.812 MB / 0.795 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001678/0.2828, allocations: 75.39 kB / 1.022 GB, free: 5.727 MB / 0.795 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002718/0.2831, allocations: 133 kB / 1.023 GB, free: 5.578 MB / 0.795 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.318e-06/0.2831, allocations: 4 kB / 1.023 GB, free: 5.574 MB / 0.795 GB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0004347/0.2836, allocations: 191.2 kB / 1.023 GB, free: 5.375 MB / 0.795 GB Notification: Performance of prepare postOptimizeDAE: time 4.089e-05/0.2836, allocations: 37.7 kB / 1.023 GB, free: 5.332 MB / 0.795 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.713e-06/0.2836, allocations: 0 / 1.023 GB, free: 5.332 MB / 0.795 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.552e-05/0.2836, allocations: 0 / 1.023 GB, free: 5.332 MB / 0.795 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001002/0.2838, allocations: 23.98 kB / 1.023 GB, free: 5.309 MB / 0.795 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.841e-06/0.2838, allocations: 0 / 1.023 GB, free: 5.309 MB / 0.795 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002282/0.284, allocations: 35.86 kB / 1.023 GB, free: 5.273 MB / 0.795 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.12e-05/0.284, allocations: 11.94 kB / 1.023 GB, free: 5.262 MB / 0.795 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.0001001/0.2841, allocations: 133.5 kB / 1.023 GB, free: 5.125 MB / 0.795 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.672e-05/0.2842, allocations: 4 kB / 1.023 GB, free: 5.121 MB / 0.795 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003165/0.2845, allocations: 118.2 kB / 1.023 GB, free: 4.996 MB / 0.795 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.236e-06/0.2845, allocations: 0 / 1.023 GB, free: 4.996 MB / 0.795 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.248e-06/0.2845, allocations: 0 / 1.023 GB, free: 4.996 MB / 0.795 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.739e-06/0.2845, allocations: 8.016 kB / 1.023 GB, free: 4.988 MB / 0.795 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004111/0.2849, allocations: 362.5 kB / 1.023 GB, free: 4.578 MB / 0.795 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.053e-06/0.2849, allocations: 0 / 1.023 GB, free: 4.578 MB / 0.795 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.941e-05/0.285, allocations: 19.98 kB / 1.024 GB, free: 4.559 MB / 0.795 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.166e-06/0.285, allocations: 0 / 1.024 GB, free: 4.559 MB / 0.795 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.059e-05/0.285, allocations: 0 / 1.024 GB, free: 4.559 MB / 0.795 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.296e-06/0.285, allocations: 4 kB / 1.024 GB, free: 4.555 MB / 0.795 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.193e-06/0.2851, allocations: 0 / 1.024 GB, free: 4.555 MB / 0.795 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003037/0.2854, allocations: 207.3 kB / 1.024 GB, free: 4.336 MB / 0.795 GB Notification: Performance of postOpt removeConstants (simulation): time 4.01e-05/0.2854, allocations: 85 kB / 1.024 GB, free: 4.234 MB / 0.795 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.937e-05/0.2854, allocations: 4 kB / 1.024 GB, free: 4.23 MB / 0.795 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.294e-05/0.2855, allocations: 7.984 kB / 1.024 GB, free: 4.223 MB / 0.795 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.201e-05/0.2856, allocations: 11.94 kB / 1.024 GB, free: 4.211 MB / 0.795 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.035e-06/0.2856, allocations: 4 kB / 1.024 GB, free: 4.207 MB / 0.795 GB Notification: Performance of sorting global known variables: time 4.206e-05/0.2856, allocations: 87.27 kB / 1.024 GB, free: 4.121 MB / 0.795 GB Notification: Performance of sort global known variables: time 2.81e-07/0.2856, allocations: 0 / 1.024 GB, free: 4.121 MB / 0.795 GB Notification: Performance of remove unused functions: time 0.0002717/0.2859, allocations: 20 kB / 1.024 GB, free: 4.102 MB / 0.795 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.0001384/0.2861, allocations: 111.2 kB / 1.024 GB, free: 3.984 MB / 0.795 GB Notification: Performance of simCode: created initialization part: time 0.0003993/0.2865, allocations: 171.3 kB / 1.024 GB, free: 3.805 MB / 0.795 GB Notification: Performance of simCode: created event and clocks part: time 2.534e-06/0.2865, allocations: 0 / 1.024 GB, free: 3.805 MB / 0.795 GB Notification: Performance of simCode: created simulation system equations: time 0.0001289/0.2866, allocations: 43.91 kB / 1.024 GB, free: 3.762 MB / 0.795 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002842/0.2869, allocations: 11.98 kB / 1.024 GB, free: 3.75 MB / 0.795 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003879/0.2873, allocations: 180.5 kB / 1.024 GB, free: 3.539 MB / 0.795 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002211/0.2875, allocations: 0.6899 MB / 1.025 GB, free: 2.824 MB / 0.795 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.003e-05/0.2876, allocations: 15.72 kB / 1.025 GB, free: 2.812 MB / 0.795 GB Notification: Performance of SimCode: time 1.9e-07/0.2876, allocations: 0 / 1.025 GB, free: 2.812 MB / 0.795 GB Notification: Performance of Templates: time 0.00303/0.2906, allocations: 1.202 MB / 1.026 GB, free: 1.625 MB / 0.795 GB make -j1 -f Buildings_10_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredMax.makefile (rm -f Buildings_10_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredMax.pipe ; mkfifo Buildings_10_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredMax.pipe ; head -c 1048576 < Buildings_10_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredMax.pipe >> ../files/Buildings_10_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredMax.sim & ./Buildings_10_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredMax -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_10_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredMax.pipe 2>&1) diffSimulationResults("Buildings_10_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredMax_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_10.0.x/Buildings_Controls_OBC_CDL_Discrete_Examples_TriggeredMax.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_10_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredMax.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches