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.0009695/0.0009695, allocations: 91.45 kB / 16.02 MB, free: 80 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001121/0.001121, allocations: 181.3 kB / 16.92 MB, free: 6.926 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.536/1.536, allocations: 223.3 MB / 241 MB, free: 5.316 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/package.mo): time 2.952/2.952, allocations: 462.6 MB / 0.737 GB, free: 15.59 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.0004194/0.0004196, allocations: 8.156 kB / 0.9034 GB, free: 36.53 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3812/0.3817, allocations: 159.6 MB / 1.059 GB, free: 4.969 MB / 0.8106 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Discrete.Validation.TriggeredMax): time 0.001196/0.3829, allocations: 462.8 kB / 1.06 GB, free: 4.52 MB / 0.8106 GB Notification: Performance of NFInst.instExpressions: time 0.001988/0.385, allocations: 1.198 MB / 1.061 GB, free: 3.309 MB / 0.8106 GB Notification: Performance of NFInst.updateImplicitVariability: time 6.025e-05/0.3851, allocations: 0 / 1.061 GB, free: 3.309 MB / 0.8106 GB Notification: Performance of NFTyping.typeComponents: time 2.251e-05/0.3851, allocations: 0 / 1.061 GB, free: 3.309 MB / 0.8106 GB Notification: Performance of NFTyping.typeBindings: time 9.14e-05/0.3852, allocations: 7.938 kB / 1.061 GB, free: 3.301 MB / 0.8106 GB Notification: Performance of NFTyping.typeClassSections: time 0.000604/0.3858, allocations: 122.9 kB / 1.061 GB, free: 3.184 MB / 0.8106 GB Notification: Performance of NFFlatten.flatten: time 0.0001788/0.386, allocations: 107.8 kB / 1.061 GB, free: 3.078 MB / 0.8106 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001004/0.3861, allocations: 11.98 kB / 1.061 GB, free: 3.066 MB / 0.8106 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001235/0.3862, allocations: 39.91 kB / 1.061 GB, free: 3.027 MB / 0.8106 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001029/0.3863, allocations: 43.81 kB / 1.061 GB, free: 2.984 MB / 0.8106 GB Notification: Performance of NFPackage.collectConstants: time 2.634e-05/0.3864, allocations: 4 kB / 1.061 GB, free: 2.98 MB / 0.8106 GB Notification: Performance of NFFlatten.collectFunctions: time 7.971e-05/0.3865, allocations: 19.94 kB / 1.061 GB, free: 2.961 MB / 0.8106 GB Notification: Performance of NFScalarize.scalarize: time 2.718e-05/0.3865, allocations: 7.984 kB / 1.061 GB, free: 2.953 MB / 0.8106 GB Notification: Performance of NFVerifyModel.verify: time 9.455e-05/0.3866, allocations: 69.53 kB / 1.061 GB, free: 2.879 MB / 0.8106 GB Notification: Performance of NFConvertDAE.convert: time 0.0001383/0.3867, allocations: 75.78 kB / 1.061 GB, free: 2.805 MB / 0.8106 GB Notification: Performance of FrontEnd - DAE generated: time 4.799e-06/0.3867, allocations: 0 / 1.061 GB, free: 2.805 MB / 0.8106 GB Notification: Performance of FrontEnd: time 2.535e-06/0.3868, allocations: 0 / 1.061 GB, free: 2.805 MB / 0.8106 GB Notification: Performance of Transformations before backend: time 5.29e-06/0.3868, allocations: 0 / 1.061 GB, free: 2.805 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.0006289/0.3874, allocations: 401.2 kB / 1.062 GB, free: 2.355 MB / 0.8106 GB Notification: Performance of prepare preOptimizeDAE: time 4.835e-05/0.3875, allocations: 11.97 kB / 1.062 GB, free: 2.344 MB / 0.8106 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.56e-05/0.3875, allocations: 8.938 kB / 1.062 GB, free: 2.336 MB / 0.8106 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001415/0.3877, allocations: 168.3 kB / 1.062 GB, free: 2.133 MB / 0.8106 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.657e-05/0.3877, allocations: 12.38 kB / 1.062 GB, free: 2.121 MB / 0.8106 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.747e-05/0.3877, allocations: 8.375 kB / 1.062 GB, free: 2.113 MB / 0.8106 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002223/0.388, allocations: 74.16 kB / 1.062 GB, free: 2.035 MB / 0.8106 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.924e-06/0.388, allocations: 192 / 1.062 GB, free: 2.035 MB / 0.8106 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.275e-05/0.388, allocations: 3.938 kB / 1.062 GB, free: 2.031 MB / 0.8106 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.429e-06/0.388, allocations: 0 / 1.062 GB, free: 2.031 MB / 0.8106 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000212/0.3882, allocations: 55.95 kB / 1.062 GB, free: 1.977 MB / 0.8106 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000586/0.3888, allocations: 324.7 kB / 1.062 GB, free: 1.609 MB / 0.8106 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001779/0.389, allocations: 58.48 kB / 1.062 GB, free: 1.543 MB / 0.8106 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001189/0.3891, allocations: 32.94 kB / 1.063 GB, free: 1.508 MB / 0.8106 GB Notification: Performance of preOpt evalFunc (simulation): time 1.788e-05/0.3892, allocations: 7.984 kB / 1.063 GB, free: 1.5 MB / 0.8106 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002544/0.3894, allocations: 99.41 kB / 1.063 GB, free: 1.391 MB / 0.8106 GB Notification: Performance of pre-optimization done (n=7): time 1.453e-06/0.3894, allocations: 3.938 kB / 1.063 GB, free: 1.387 MB / 0.8106 GB Notification: Performance of matching and sorting (n=7): time 0.0004835/0.3899, allocations: 157.5 kB / 1.063 GB, free: 1.227 MB / 0.8106 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.766e-05/0.39, allocations: 55.41 kB / 1.063 GB, free: 1.16 MB / 0.8106 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001024/0.3901, allocations: 113.8 kB / 1.063 GB, free: 1.039 MB / 0.8106 GB Notification: Performance of collectPreVariables (initialization): time 3.095e-05/0.3901, allocations: 29.7 kB / 1.063 GB, free: 1.004 MB / 0.8106 GB Notification: Performance of collectInitialEqns (initialization): time 6.165e-05/0.3902, allocations: 92.12 kB / 1.063 GB, free: 0.9102 MB / 0.8106 GB Notification: Performance of collectInitialBindings (initialization): time 1.954e-05/0.3902, allocations: 11.81 kB / 1.063 GB, free: 0.8984 MB / 0.8106 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.84e-05/0.3903, allocations: 17.72 kB / 1.063 GB, free: 0.875 MB / 0.8106 GB Notification: Performance of setup shared object (initialization): time 0.0001337/0.3904, allocations: 331.1 kB / 1.063 GB, free: 0.543 MB / 0.8106 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001624/0.3906, allocations: 47.97 kB / 1.063 GB, free: 0.4961 MB / 0.8106 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001694/0.3908, allocations: 91.33 kB / 1.064 GB, free: 404 kB / 0.8106 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002888/0.391, allocations: 141 kB / 1.064 GB, free: 244 kB / 0.8106 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.294e-06/0.3911, allocations: 4 kB / 1.064 GB, free: 240 kB / 0.8106 GB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0004903/0.3916, allocations: 207.2 kB / 1.064 GB, free: 20 kB / 0.8106 GB Notification: Performance of prepare postOptimizeDAE: time 6.518e-05/0.3916, allocations: 33.7 kB / 1.064 GB, free: 15.98 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.017e-06/0.3916, allocations: 4 kB / 1.064 GB, free: 15.98 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.16e-05/0.3917, allocations: 3.938 kB / 1.064 GB, free: 15.97 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001058/0.3918, allocations: 20.05 kB / 1.064 GB, free: 15.95 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.084e-06/0.3918, allocations: 0 / 1.064 GB, free: 15.95 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002384/0.392, allocations: 43.95 kB / 1.064 GB, free: 15.91 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.506e-05/0.3921, allocations: 16 kB / 1.064 GB, free: 15.89 MB / 0.8262 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.0001126/0.3922, allocations: 129 kB / 1.064 GB, free: 15.76 MB / 0.8262 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.652e-05/0.3922, allocations: 11.91 kB / 1.064 GB, free: 15.75 MB / 0.8262 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003444/0.3926, allocations: 122 kB / 1.064 GB, free: 15.62 MB / 0.8262 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.522e-06/0.3926, allocations: 4 kB / 1.064 GB, free: 15.62 MB / 0.8262 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.398e-06/0.3926, allocations: 0 / 1.064 GB, free: 15.62 MB / 0.8262 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.646e-06/0.3926, allocations: 0 / 1.064 GB, free: 15.62 MB / 0.8262 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004705/0.3931, allocations: 366.5 kB / 1.065 GB, free: 15.21 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.455e-06/0.3931, allocations: 4 kB / 1.065 GB, free: 15.2 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.528e-05/0.3932, allocations: 23.92 kB / 1.065 GB, free: 15.18 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.775e-06/0.3932, allocations: 0 / 1.065 GB, free: 15.18 MB / 0.8262 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.154e-05/0.3932, allocations: 0 / 1.065 GB, free: 15.18 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.084e-06/0.3932, allocations: 3.938 kB / 1.065 GB, free: 15.18 MB / 0.8262 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.254e-06/0.3932, allocations: 0 / 1.065 GB, free: 15.18 MB / 0.8262 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003484/0.3936, allocations: 219.3 kB / 1.065 GB, free: 14.95 MB / 0.8262 GB Notification: Performance of postOpt removeConstants (simulation): time 4.819e-05/0.3936, allocations: 81.09 kB / 1.065 GB, free: 14.85 MB / 0.8262 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.789e-05/0.3937, allocations: 0 / 1.065 GB, free: 14.85 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.663e-05/0.3938, allocations: 15.98 kB / 1.065 GB, free: 14.83 MB / 0.8262 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.933e-05/0.3938, allocations: 7.938 kB / 1.065 GB, free: 14.82 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.074e-06/0.3938, allocations: 4 kB / 1.065 GB, free: 14.82 MB / 0.8262 GB Notification: Performance of sorting global known variables: time 4.864e-05/0.3939, allocations: 91.27 kB / 1.065 GB, free: 14.73 MB / 0.8262 GB Notification: Performance of sort global known variables: time 3.216e-06/0.3939, allocations: 0 / 1.065 GB, free: 14.73 MB / 0.8262 GB Notification: Performance of remove unused functions: time 0.0002823/0.3942, allocations: 27.84 kB / 1.065 GB, free: 14.7 MB / 0.8262 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.0001714/0.3944, allocations: 114.6 kB / 1.065 GB, free: 14.59 MB / 0.8262 GB Notification: Performance of simCode: created initialization part: time 0.0004282/0.3948, allocations: 179.3 kB / 1.065 GB, free: 14.4 MB / 0.8262 GB Notification: Performance of simCode: created event and clocks part: time 2.374e-06/0.3948, allocations: 0 / 1.065 GB, free: 14.4 MB / 0.8262 GB Notification: Performance of simCode: created simulation system equations: time 0.0001343/0.3949, allocations: 43.97 kB / 1.065 GB, free: 14.36 MB / 0.8262 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002929/0.3952, allocations: 12.16 kB / 1.065 GB, free: 14.34 MB / 0.8262 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004059/0.3957, allocations: 202.3 kB / 1.066 GB, free: 14.11 MB / 0.8262 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003128/0.396, allocations: 0.6895 MB / 1.066 GB, free: 13.39 MB / 0.8262 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.723e-05/0.396, allocations: 11.44 kB / 1.066 GB, free: 13.38 MB / 0.8262 GB Notification: Performance of SimCode: time 3.11e-07/0.396, allocations: 0 / 1.066 GB, free: 13.38 MB / 0.8262 GB Notification: Performance of Templates: time 0.003314/0.3993, allocations: 1.194 MB / 1.067 GB, free: 12.2 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