Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_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.0.0-master/package.mo", uses=false) Using package Buildings with version 11.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/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_latest_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_latest_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.005554/0.005554, allocations: 101.7 kB / 15.88 MB, free: 5.867 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.001228/0.001228, allocations: 192.9 kB / 16.79 MB, free: 5.809 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.432/1.432, allocations: 222.9 MB / 240.5 MB, free: 4.562 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/package.mo): time 2.744/2.744, allocations: 461.9 MB / 0.7348 GB, free: 14.14 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001303/0.001303, allocations: 63.97 kB / 0.8991 GB, free: 36.98 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3329/0.3343, allocations: 157.4 MB / 1.053 GB, free: 8.246 MB / 0.8106 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Discrete.Validation.TriggeredMax): time 0.002331/0.3366, allocations: 0.7886 MB / 1.054 GB, free: 7.457 MB / 0.8106 GB Notification: Performance of NFInst.instExpressions: time 0.001654/0.3383, allocations: 1.205 MB / 1.055 GB, free: 6.238 MB / 0.8106 GB Notification: Performance of NFInst.updateImplicitVariability: time 7.448e-05/0.3384, allocations: 3.938 kB / 1.055 GB, free: 6.234 MB / 0.8106 GB Notification: Performance of NFTyping.typeComponents: time 4.641e-05/0.3385, allocations: 0 / 1.055 GB, free: 6.234 MB / 0.8106 GB Notification: Performance of NFTyping.typeBindings: time 8.208e-05/0.3386, allocations: 7.922 kB / 1.055 GB, free: 6.227 MB / 0.8106 GB Notification: Performance of NFTyping.typeClassSections: time 0.00054/0.3391, allocations: 134 kB / 1.055 GB, free: 6.102 MB / 0.8106 GB Notification: Performance of NFFlatten.flatten: time 0.000138/0.3393, allocations: 103.8 kB / 1.055 GB, free: 6 MB / 0.8106 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001058/0.3394, allocations: 23.97 kB / 1.055 GB, free: 5.977 MB / 0.8106 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001108/0.3395, allocations: 31.98 kB / 1.055 GB, free: 5.945 MB / 0.8106 GB Notification: Performance of NFSimplifyModel.simplify: time 8.938e-05/0.3396, allocations: 43.81 kB / 1.055 GB, free: 5.902 MB / 0.8106 GB Notification: Performance of NFPackage.collectConstants: time 2.929e-05/0.3396, allocations: 4 kB / 1.055 GB, free: 5.898 MB / 0.8106 GB Notification: Performance of NFFlatten.collectFunctions: time 8.817e-05/0.3397, allocations: 19.98 kB / 1.055 GB, free: 5.879 MB / 0.8106 GB Notification: Performance of NFScalarize.scalarize: time 2.659e-05/0.3398, allocations: 7.984 kB / 1.055 GB, free: 5.871 MB / 0.8106 GB Notification: Performance of NFVerifyModel.verify: time 7.107e-05/0.3398, allocations: 39.84 kB / 1.055 GB, free: 5.832 MB / 0.8106 GB Notification: Performance of NFConvertDAE.convert: time 0.0001465/0.34, allocations: 75.84 kB / 1.055 GB, free: 5.758 MB / 0.8106 GB Notification: Performance of FrontEnd - DAE generated: time 4.138e-06/0.34, allocations: 0 / 1.055 GB, free: 5.758 MB / 0.8106 GB Notification: Performance of FrontEnd: time 1.022e-06/0.34, allocations: 4 kB / 1.055 GB, free: 5.754 MB / 0.8106 GB Notification: Performance of Transformations before backend: time 6.322e-06/0.34, allocations: 0 / 1.055 GB, free: 5.754 MB / 0.8106 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.0006857/0.3407, allocations: 417.2 kB / 1.056 GB, free: 5.289 MB / 0.8106 GB Notification: Performance of prepare preOptimizeDAE: time 4.303e-05/0.3408, allocations: 11.97 kB / 1.056 GB, free: 5.277 MB / 0.8106 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.101e-05/0.3408, allocations: 8.844 kB / 1.056 GB, free: 5.27 MB / 0.8106 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001203/0.341, allocations: 172.3 kB / 1.056 GB, free: 5.062 MB / 0.8106 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.048e-05/0.341, allocations: 4.375 kB / 1.056 GB, free: 5.059 MB / 0.8106 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.835e-05/0.341, allocations: 12.31 kB / 1.056 GB, free: 5.047 MB / 0.8106 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002133/0.3412, allocations: 70.2 kB / 1.056 GB, free: 4.973 MB / 0.8106 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.536e-06/0.3413, allocations: 192 / 1.056 GB, free: 4.973 MB / 0.8106 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.569e-05/0.3413, allocations: 7.938 kB / 1.056 GB, free: 4.965 MB / 0.8106 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.12e-06/0.3413, allocations: 0 / 1.056 GB, free: 4.965 MB / 0.8106 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001916/0.3415, allocations: 43.89 kB / 1.056 GB, free: 4.922 MB / 0.8106 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005049/0.342, allocations: 328.7 kB / 1.056 GB, free: 4.551 MB / 0.8106 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001727/0.3422, allocations: 50.55 kB / 1.056 GB, free: 4.492 MB / 0.8106 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.000125/0.3423, allocations: 28.92 kB / 1.056 GB, free: 4.461 MB / 0.8106 GB Notification: Performance of preOpt evalFunc (simulation): time 2.256e-05/0.3424, allocations: 3.984 kB / 1.056 GB, free: 4.457 MB / 0.8106 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003583/0.3427, allocations: 91.3 kB / 1.056 GB, free: 4.355 MB / 0.8106 GB Notification: Performance of pre-optimization done (n=7): time 1.753e-06/0.3427, allocations: 0 / 1.056 GB, free: 4.355 MB / 0.8106 GB Notification: Performance of matching and sorting (n=7): time 0.000537/0.3433, allocations: 141.6 kB / 1.057 GB, free: 4.211 MB / 0.8106 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.185e-05/0.3433, allocations: 51.41 kB / 1.057 GB, free: 4.148 MB / 0.8106 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001197/0.3435, allocations: 117.8 kB / 1.057 GB, free: 4.023 MB / 0.8106 GB Notification: Performance of collectPreVariables (initialization): time 3.008e-05/0.3435, allocations: 29.7 kB / 1.057 GB, free: 3.988 MB / 0.8106 GB Notification: Performance of collectInitialEqns (initialization): time 5.979e-05/0.3436, allocations: 96.12 kB / 1.057 GB, free: 3.891 MB / 0.8106 GB Notification: Performance of collectInitialBindings (initialization): time 2.179e-05/0.3436, allocations: 19.66 kB / 1.057 GB, free: 3.871 MB / 0.8106 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.542e-05/0.3437, allocations: 37.7 kB / 1.057 GB, free: 3.828 MB / 0.8106 GB Notification: Performance of setup shared object (initialization): time 0.0001097/0.3438, allocations: 318.8 kB / 1.057 GB, free: 3.508 MB / 0.8106 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001649/0.344, allocations: 47.97 kB / 1.057 GB, free: 3.461 MB / 0.8106 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001698/0.3441, allocations: 75.39 kB / 1.057 GB, free: 3.375 MB / 0.8106 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002764/0.3444, allocations: 133 kB / 1.057 GB, free: 3.227 MB / 0.8106 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.574e-06/0.3444, allocations: 0 / 1.057 GB, free: 3.227 MB / 0.8106 GB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0004515/0.3449, allocations: 195.3 kB / 1.058 GB, free: 3.023 MB / 0.8106 GB Notification: Performance of prepare postOptimizeDAE: time 3.794e-05/0.3449, allocations: 39.41 kB / 1.058 GB, free: 2.98 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.43e-06/0.3449, allocations: 0 / 1.058 GB, free: 2.98 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.51e-05/0.345, allocations: 4 kB / 1.058 GB, free: 2.977 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001041/0.3451, allocations: 16.39 kB / 1.058 GB, free: 2.961 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.394e-06/0.3451, allocations: 0 / 1.058 GB, free: 2.961 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002319/0.3453, allocations: 39.86 kB / 1.058 GB, free: 2.922 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.477e-05/0.3454, allocations: 7.938 kB / 1.058 GB, free: 2.914 MB / 0.8106 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.0001042/0.3455, allocations: 133.7 kB / 1.058 GB, free: 2.773 MB / 0.8106 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.611e-05/0.3455, allocations: 4 kB / 1.058 GB, free: 2.77 MB / 0.8106 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000298/0.3458, allocations: 121.9 kB / 1.058 GB, free: 2.645 MB / 0.8106 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.846e-06/0.3458, allocations: 0 / 1.058 GB, free: 2.645 MB / 0.8106 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.893e-06/0.3458, allocations: 4 kB / 1.058 GB, free: 2.641 MB / 0.8106 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.507e-06/0.3458, allocations: 0 / 1.058 GB, free: 2.641 MB / 0.8106 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00043/0.3463, allocations: 358.5 kB / 1.058 GB, free: 2.234 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.974e-06/0.3463, allocations: 0 / 1.058 GB, free: 2.234 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.653e-05/0.3463, allocations: 11.98 kB / 1.058 GB, free: 2.223 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.106e-06/0.3464, allocations: 0 / 1.058 GB, free: 2.223 MB / 0.8106 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.266e-05/0.3464, allocations: 4 kB / 1.058 GB, free: 2.219 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.03e-05/0.3464, allocations: 0 / 1.058 GB, free: 2.219 MB / 0.8106 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.965e-06/0.3464, allocations: 0 / 1.058 GB, free: 2.219 MB / 0.8106 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003209/0.3467, allocations: 215.3 kB / 1.058 GB, free: 1.992 MB / 0.8106 GB Notification: Performance of postOpt removeConstants (simulation): time 5.084e-05/0.3468, allocations: 85 kB / 1.059 GB, free: 1.891 MB / 0.8106 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.161e-05/0.3468, allocations: 4 kB / 1.059 GB, free: 1.887 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.17e-05/0.3469, allocations: 4 kB / 1.059 GB, free: 1.883 MB / 0.8106 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.166e-05/0.347, allocations: 11.92 kB / 1.059 GB, free: 1.871 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.528e-06/0.347, allocations: 4 kB / 1.059 GB, free: 1.867 MB / 0.8106 GB Notification: Performance of sorting global known variables: time 4.594e-05/0.347, allocations: 87.27 kB / 1.059 GB, free: 1.781 MB / 0.8106 GB Notification: Performance of sort global known variables: time 2.4e-07/0.347, allocations: 4 kB / 1.059 GB, free: 1.777 MB / 0.8106 GB Notification: Performance of remove unused functions: time 0.0002723/0.3473, allocations: 24 kB / 1.059 GB, free: 1.754 MB / 0.8106 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.0001546/0.3475, allocations: 103.2 kB / 1.059 GB, free: 1.645 MB / 0.8106 GB Notification: Performance of simCode: created initialization part: time 0.0003868/0.3479, allocations: 163.3 kB / 1.059 GB, free: 1.473 MB / 0.8106 GB Notification: Performance of simCode: created event and clocks part: time 2.495e-06/0.3479, allocations: 0 / 1.059 GB, free: 1.473 MB / 0.8106 GB Notification: Performance of simCode: created simulation system equations: time 0.0001311/0.348, allocations: 48.03 kB / 1.059 GB, free: 1.426 MB / 0.8106 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003001/0.3483, allocations: 12.27 kB / 1.059 GB, free: 1.414 MB / 0.8106 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004451/0.3488, allocations: 190 kB / 1.059 GB, free: 1.195 MB / 0.8106 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002549/0.349, allocations: 0.6965 MB / 1.06 GB, free: 484 kB / 0.8106 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.599e-05/0.3491, allocations: 15.44 kB / 1.06 GB, free: 468 kB / 0.8106 GB Notification: Performance of SimCode: time 5.11e-07/0.3491, allocations: 0 / 1.06 GB, free: 468 kB / 0.8106 GB Notification: Performance of Templates: time 0.003054/0.3522, allocations: 1.191 MB / 1.061 GB, free: 15.28 MB / 0.8262 GB make -j1 -f Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Validation.TriggeredMax.makefile (rm -f Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Validation.TriggeredMax.pipe ; mkfifo Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Validation.TriggeredMax.pipe ; head -c 1048576 < Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Validation.TriggeredMax.pipe >> ../files/Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Validation.TriggeredMax.sim & ./Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Validation.TriggeredMax -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Validation.TriggeredMax.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Validation.TriggeredMax_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Controls_OBC_CDL_Discrete_Validation_TriggeredMax.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Validation.TriggeredMax.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches