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.001681/0.001681, allocations: 103.8 kB / 16.27 MB, free: 6.039 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.001679/0.001678, allocations: 191.8 kB / 17.2 MB, free: 5.672 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.424/1.424, allocations: 222.9 MB / 240.9 MB, free: 15.22 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.615/2.615, allocations: 437.1 MB / 0.711 GB, free: 4.5 MB / 0.5762 GB Notification: Performance of FrontEnd - loaded program: time 0.001836/0.001836, allocations: 63 kB / 0.8699 GB, free: 2.223 MB / 0.6387 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3223/0.3241, allocations: 151.6 MB / 1.018 GB, free: 10.67 MB / 0.795 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredMax): time 0.00245/0.3266, allocations: 0.7308 MB / 1.019 GB, free: 9.934 MB / 0.795 GB Notification: Performance of NFInst.instExpressions: time 0.001781/0.3284, allocations: 1.188 MB / 1.02 GB, free: 8.73 MB / 0.795 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.345e-05/0.3285, allocations: 0 / 1.02 GB, free: 8.73 MB / 0.795 GB Notification: Performance of NFTyping.typeComponents: time 3.438e-05/0.3286, allocations: 3.938 kB / 1.02 GB, free: 8.727 MB / 0.795 GB Notification: Performance of NFTyping.typeBindings: time 8.368e-05/0.3287, allocations: 7.875 kB / 1.02 GB, free: 8.719 MB / 0.795 GB Notification: Performance of NFTyping.typeClassSections: time 0.000532/0.3292, allocations: 138.9 kB / 1.02 GB, free: 8.586 MB / 0.795 GB Notification: Performance of NFFlatten.flatten: time 0.000169/0.3294, allocations: 123.8 kB / 1.02 GB, free: 8.465 MB / 0.795 GB Notification: Performance of NFFlatten.resolveConnections: time 0.000106/0.3295, allocations: 11.98 kB / 1.02 GB, free: 8.453 MB / 0.795 GB Notification: Performance of NFEvalConstants.evaluate: time 8.937e-05/0.3296, allocations: 47.91 kB / 1.02 GB, free: 8.406 MB / 0.795 GB Notification: Performance of NFSimplifyModel.simplify: time 8.007e-05/0.3297, allocations: 39.83 kB / 1.02 GB, free: 8.367 MB / 0.795 GB Notification: Performance of NFPackage.collectConstants: time 2.879e-05/0.3297, allocations: 12 kB / 1.02 GB, free: 8.355 MB / 0.795 GB Notification: Performance of NFFlatten.collectFunctions: time 7.459e-05/0.3298, allocations: 23.98 kB / 1.02 GB, free: 8.332 MB / 0.795 GB Notification: Performance of NFScalarize.scalarize: time 2.727e-05/0.3298, allocations: 19.97 kB / 1.02 GB, free: 8.312 MB / 0.795 GB Notification: Performance of NFVerifyModel.verify: time 7.533e-05/0.3299, allocations: 39.84 kB / 1.02 GB, free: 8.273 MB / 0.795 GB Notification: Performance of NFConvertDAE.convert: time 0.0001852/0.3301, allocations: 107.7 kB / 1.02 GB, free: 8.168 MB / 0.795 GB Notification: Performance of FrontEnd - DAE generated: time 4.379e-06/0.3301, allocations: 0 / 1.02 GB, free: 8.168 MB / 0.795 GB Notification: Performance of FrontEnd: time 1.192e-06/0.3301, allocations: 0 / 1.02 GB, free: 8.168 MB / 0.795 GB Notification: Performance of Transformations before backend: time 8.836e-06/0.3301, allocations: 0 / 1.02 GB, free: 8.168 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.0006741/0.3308, allocations: 413.2 kB / 1.021 GB, free: 7.707 MB / 0.795 GB Notification: Performance of prepare preOptimizeDAE: time 3.598e-05/0.3309, allocations: 8.625 kB / 1.021 GB, free: 7.699 MB / 0.795 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.149e-05/0.3309, allocations: 12.84 kB / 1.021 GB, free: 7.688 MB / 0.795 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001527/0.3311, allocations: 180.2 kB / 1.021 GB, free: 7.473 MB / 0.795 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.714e-05/0.3311, allocations: 4.375 kB / 1.021 GB, free: 7.469 MB / 0.795 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.062e-05/0.3311, allocations: 12.38 kB / 1.021 GB, free: 7.457 MB / 0.795 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001974/0.3313, allocations: 58.22 kB / 1.021 GB, free: 7.395 MB / 0.795 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.716e-06/0.3314, allocations: 192 / 1.021 GB, free: 7.395 MB / 0.795 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.589e-05/0.3314, allocations: 7.938 kB / 1.021 GB, free: 7.387 MB / 0.795 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.831e-06/0.3314, allocations: 4 kB / 1.021 GB, free: 7.383 MB / 0.795 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001901/0.3316, allocations: 47.88 kB / 1.021 GB, free: 7.336 MB / 0.795 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005125/0.3321, allocations: 324.7 kB / 1.021 GB, free: 6.969 MB / 0.795 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001659/0.3323, allocations: 50.55 kB / 1.021 GB, free: 6.91 MB / 0.795 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001079/0.3324, allocations: 28.94 kB / 1.022 GB, free: 6.879 MB / 0.795 GB Notification: Performance of preOpt evalFunc (simulation): time 2.217e-05/0.3324, allocations: 7.938 kB / 1.022 GB, free: 6.871 MB / 0.795 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002568/0.3327, allocations: 87.36 kB / 1.022 GB, free: 6.773 MB / 0.795 GB Notification: Performance of pre-optimization done (n=7): time 1.503e-06/0.3327, allocations: 0 / 1.022 GB, free: 6.773 MB / 0.795 GB Notification: Performance of matching and sorting (n=7): time 0.0004587/0.3332, allocations: 141.6 kB / 1.022 GB, free: 6.629 MB / 0.795 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.55e-05/0.3332, allocations: 59.41 kB / 1.022 GB, free: 6.559 MB / 0.795 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001071/0.3333, allocations: 117.7 kB / 1.022 GB, free: 6.434 MB / 0.795 GB Notification: Performance of collectPreVariables (initialization): time 3.008e-05/0.3334, allocations: 29.7 kB / 1.022 GB, free: 6.398 MB / 0.795 GB Notification: Performance of collectInitialEqns (initialization): time 7.701e-05/0.3335, allocations: 88.14 kB / 1.022 GB, free: 6.309 MB / 0.795 GB Notification: Performance of collectInitialBindings (initialization): time 2.454e-05/0.3335, allocations: 19.8 kB / 1.022 GB, free: 6.289 MB / 0.795 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.574e-05/0.3336, allocations: 33.7 kB / 1.022 GB, free: 6.25 MB / 0.795 GB Notification: Performance of setup shared object (initialization): time 0.0001593/0.3337, allocations: 322.8 kB / 1.022 GB, free: 5.926 MB / 0.795 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001715/0.3339, allocations: 47.97 kB / 1.022 GB, free: 5.879 MB / 0.795 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001747/0.3341, allocations: 75.39 kB / 1.022 GB, free: 5.793 MB / 0.795 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000287/0.3344, allocations: 129 kB / 1.023 GB, free: 5.648 MB / 0.795 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.215e-06/0.3344, allocations: 4 kB / 1.023 GB, free: 5.645 MB / 0.795 GB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0004446/0.3349, allocations: 195.2 kB / 1.023 GB, free: 5.441 MB / 0.795 GB Notification: Performance of prepare postOptimizeDAE: time 5.315e-05/0.3349, allocations: 37.69 kB / 1.023 GB, free: 5.398 MB / 0.795 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.37e-06/0.3349, allocations: 0 / 1.023 GB, free: 5.398 MB / 0.795 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.814e-05/0.335, allocations: 4 kB / 1.023 GB, free: 5.395 MB / 0.795 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001069/0.3351, allocations: 16.39 kB / 1.023 GB, free: 5.379 MB / 0.795 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.245e-06/0.3351, allocations: 0 / 1.023 GB, free: 5.379 MB / 0.795 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002284/0.3353, allocations: 47.86 kB / 1.023 GB, free: 5.332 MB / 0.795 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.05e-05/0.3353, allocations: 11.94 kB / 1.023 GB, free: 5.32 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.0001164/0.3355, allocations: 121.7 kB / 1.023 GB, free: 5.191 MB / 0.795 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.434e-05/0.3355, allocations: 4 kB / 1.023 GB, free: 5.188 MB / 0.795 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003325/0.3358, allocations: 122.2 kB / 1.023 GB, free: 5.059 MB / 0.795 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.065e-06/0.3358, allocations: 4 kB / 1.023 GB, free: 5.055 MB / 0.795 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.993e-06/0.3358, allocations: 4 kB / 1.023 GB, free: 5.051 MB / 0.795 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.537e-06/0.3359, allocations: 0 / 1.023 GB, free: 5.051 MB / 0.795 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004913/0.3364, allocations: 362.5 kB / 1.024 GB, free: 4.641 MB / 0.795 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.363e-06/0.3364, allocations: 0 / 1.024 GB, free: 4.641 MB / 0.795 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.275e-05/0.3364, allocations: 7.984 kB / 1.024 GB, free: 4.633 MB / 0.795 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.104e-06/0.3364, allocations: 3.938 kB / 1.024 GB, free: 4.629 MB / 0.795 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.025e-05/0.3365, allocations: 8 kB / 1.024 GB, free: 4.621 MB / 0.795 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.797e-06/0.3365, allocations: 4 kB / 1.024 GB, free: 4.617 MB / 0.795 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.51e-07/0.3365, allocations: 0 / 1.024 GB, free: 4.617 MB / 0.795 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003363/0.3368, allocations: 203.3 kB / 1.024 GB, free: 4.402 MB / 0.795 GB Notification: Performance of postOpt removeConstants (simulation): time 5.428e-05/0.3369, allocations: 85.02 kB / 1.024 GB, free: 4.301 MB / 0.795 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.294e-05/0.3369, allocations: 7.984 kB / 1.024 GB, free: 4.293 MB / 0.795 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.705e-05/0.337, allocations: 8 kB / 1.024 GB, free: 4.285 MB / 0.795 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.794e-05/0.3371, allocations: 7.922 kB / 1.024 GB, free: 4.277 MB / 0.795 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.426e-06/0.3371, allocations: 4 kB / 1.024 GB, free: 4.273 MB / 0.795 GB Notification: Performance of sorting global known variables: time 7.065e-05/0.3371, allocations: 91.27 kB / 1.024 GB, free: 4.184 MB / 0.795 GB Notification: Performance of sort global known variables: time 1.1e-07/0.3371, allocations: 0 / 1.024 GB, free: 4.184 MB / 0.795 GB Notification: Performance of remove unused functions: time 0.0002534/0.3374, allocations: 24 kB / 1.024 GB, free: 4.16 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.0001576/0.3376, allocations: 99.19 kB / 1.024 GB, free: 4.055 MB / 0.795 GB Notification: Performance of simCode: created initialization part: time 0.0004303/0.338, allocations: 183.5 kB / 1.024 GB, free: 3.863 MB / 0.795 GB Notification: Performance of simCode: created event and clocks part: time 2.685e-06/0.338, allocations: 0 / 1.024 GB, free: 3.863 MB / 0.795 GB Notification: Performance of simCode: created simulation system equations: time 0.000127/0.3382, allocations: 35.95 kB / 1.024 GB, free: 3.828 MB / 0.795 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002737/0.3384, allocations: 20.41 kB / 1.024 GB, free: 3.809 MB / 0.795 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003989/0.3388, allocations: 180.5 kB / 1.024 GB, free: 3.598 MB / 0.795 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000352/0.3392, allocations: 0.6846 MB / 1.025 GB, free: 2.887 MB / 0.795 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.279e-05/0.3392, allocations: 15.42 kB / 1.025 GB, free: 2.875 MB / 0.795 GB Notification: Performance of SimCode: time 2.41e-07/0.3392, allocations: 3.938 kB / 1.025 GB, free: 2.871 MB / 0.795 GB Notification: Performance of Templates: time 0.003295/0.3425, allocations: 1.2 MB / 1.026 GB, free: 1.688 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=400 -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