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.001329/0.001329, allocations: 86.25 kB / 15.06 MB, free: 1.09 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.002122/0.002122, allocations: 168.7 kB / 15.95 MB, free: 204 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.504/1.504, allocations: 223.3 MB / 240 MB, free: 5.43 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/package.mo): time 2.988/2.988, allocations: 462.6 MB / 0.736 GB, free: 15.77 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.00039/0.00039, allocations: 11.06 kB / 0.9021 GB, free: 36.67 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3752/0.3756, allocations: 159.6 MB / 1.058 GB, free: 5.352 MB / 0.8106 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Discrete.Validation.TriggeredMax): time 0.001035/0.3767, allocations: 451 kB / 1.058 GB, free: 4.914 MB / 0.8106 GB Notification: Performance of NFInst.instExpressions: time 0.001616/0.3783, allocations: 1.167 MB / 1.06 GB, free: 3.734 MB / 0.8106 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.106e-05/0.3784, allocations: 0 / 1.06 GB, free: 3.734 MB / 0.8106 GB Notification: Performance of NFTyping.typeComponents: time 2.189e-05/0.3784, allocations: 3.938 kB / 1.06 GB, free: 3.73 MB / 0.8106 GB Notification: Performance of NFTyping.typeBindings: time 6.853e-05/0.3785, allocations: 7.938 kB / 1.06 GB, free: 3.723 MB / 0.8106 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005317/0.379, allocations: 122 kB / 1.06 GB, free: 3.605 MB / 0.8106 GB Notification: Performance of NFFlatten.flatten: time 0.000136/0.3792, allocations: 95.81 kB / 1.06 GB, free: 3.512 MB / 0.8106 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001027/0.3793, allocations: 11.98 kB / 1.06 GB, free: 3.5 MB / 0.8106 GB Notification: Performance of NFEvalConstants.evaluate: time 9.958e-05/0.3794, allocations: 39.91 kB / 1.06 GB, free: 3.461 MB / 0.8106 GB Notification: Performance of NFSimplifyModel.simplify: time 8.197e-05/0.3795, allocations: 35.88 kB / 1.06 GB, free: 3.426 MB / 0.8106 GB Notification: Performance of NFPackage.collectConstants: time 3.127e-05/0.3795, allocations: 8 kB / 1.06 GB, free: 3.418 MB / 0.8106 GB Notification: Performance of NFFlatten.collectFunctions: time 7.168e-05/0.3796, allocations: 15.98 kB / 1.06 GB, free: 3.402 MB / 0.8106 GB Notification: Performance of NFScalarize.scalarize: time 2.042e-05/0.3796, allocations: 11.88 kB / 1.06 GB, free: 3.391 MB / 0.8106 GB Notification: Performance of NFVerifyModel.verify: time 5.822e-05/0.3797, allocations: 37.7 kB / 1.06 GB, free: 3.348 MB / 0.8106 GB Notification: Performance of NFConvertDAE.convert: time 0.0001324/0.3798, allocations: 71.81 kB / 1.06 GB, free: 3.277 MB / 0.8106 GB Notification: Performance of FrontEnd - DAE generated: time 6.723e-06/0.3798, allocations: 4 kB / 1.06 GB, free: 3.273 MB / 0.8106 GB Notification: Performance of FrontEnd: time 1.713e-06/0.3798, allocations: 0 / 1.06 GB, free: 3.273 MB / 0.8106 GB Notification: Performance of Transformations before backend: time 5.34e-06/0.3798, allocations: 4 kB / 1.06 GB, free: 3.27 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.0007402/0.3806, allocations: 393.1 kB / 1.06 GB, free: 2.832 MB / 0.8106 GB Notification: Performance of prepare preOptimizeDAE: time 4.935e-05/0.3807, allocations: 12.03 kB / 1.06 GB, free: 2.82 MB / 0.8106 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.067e-05/0.3807, allocations: 8 kB / 1.06 GB, free: 2.812 MB / 0.8106 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001617/0.3809, allocations: 174.9 kB / 1.061 GB, free: 2.602 MB / 0.8106 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.076e-05/0.3809, allocations: 4 kB / 1.061 GB, free: 2.598 MB / 0.8106 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.243e-05/0.3809, allocations: 15.95 kB / 1.061 GB, free: 2.582 MB / 0.8106 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002211/0.3812, allocations: 69.66 kB / 1.061 GB, free: 2.508 MB / 0.8106 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.095e-05/0.3812, allocations: 3.984 kB / 1.061 GB, free: 2.504 MB / 0.8106 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.429e-05/0.3812, allocations: 0 / 1.061 GB, free: 2.504 MB / 0.8106 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.45e-06/0.3812, allocations: 0 / 1.061 GB, free: 2.504 MB / 0.8106 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001953/0.3814, allocations: 59.94 kB / 1.061 GB, free: 2.445 MB / 0.8106 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000539/0.382, allocations: 328.7 kB / 1.061 GB, free: 2.074 MB / 0.8106 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001665/0.3821, allocations: 58.55 kB / 1.061 GB, free: 2.008 MB / 0.8106 GB Notification: Performance of preOpt resolveLoops (simulation): time 9.475e-05/0.3823, allocations: 32.94 kB / 1.061 GB, free: 1.973 MB / 0.8106 GB Notification: Performance of preOpt evalFunc (simulation): time 1.978e-05/0.3823, allocations: 0 / 1.061 GB, free: 1.973 MB / 0.8106 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002432/0.3825, allocations: 95.27 kB / 1.061 GB, free: 1.867 MB / 0.8106 GB Notification: Performance of pre-optimization done (n=7): time 3.276e-06/0.3825, allocations: 0 / 1.061 GB, free: 1.867 MB / 0.8106 GB Notification: Performance of matching and sorting (n=7): time 0.000539/0.3831, allocations: 153.6 kB / 1.061 GB, free: 1.711 MB / 0.8106 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.805e-05/0.3831, allocations: 59.39 kB / 1.061 GB, free: 1.641 MB / 0.8106 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000174/0.3833, allocations: 109.8 kB / 1.062 GB, free: 1.523 MB / 0.8106 GB Notification: Performance of collectPreVariables (initialization): time 2.582e-05/0.3834, allocations: 29.7 kB / 1.062 GB, free: 1.488 MB / 0.8106 GB Notification: Performance of collectInitialEqns (initialization): time 7.17e-05/0.3834, allocations: 96.17 kB / 1.062 GB, free: 1.387 MB / 0.8106 GB Notification: Performance of collectInitialBindings (initialization): time 2.475e-05/0.3835, allocations: 19.8 kB / 1.062 GB, free: 1.367 MB / 0.8106 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.174e-05/0.3835, allocations: 0 / 1.062 GB, free: 1.367 MB / 0.8106 GB Notification: Performance of setup shared object (initialization): time 0.0002078/0.3837, allocations: 326.8 kB / 1.062 GB, free: 1.039 MB / 0.8106 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001536/0.3839, allocations: 51.95 kB / 1.062 GB, free: 0.9883 MB / 0.8106 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00016/0.384, allocations: 83.28 kB / 1.062 GB, free: 0.8945 MB / 0.8106 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001894/0.3842, allocations: 85.67 kB / 1.062 GB, free: 0.8047 MB / 0.8106 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.324e-06/0.3842, allocations: 0 / 1.062 GB, free: 0.8047 MB / 0.8106 GB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0004323/0.3847, allocations: 207.2 kB / 1.062 GB, free: 0.5898 MB / 0.8106 GB Notification: Performance of prepare postOptimizeDAE: time 4.92e-05/0.3847, allocations: 41.69 kB / 1.062 GB, free: 0.543 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.093e-06/0.3847, allocations: 0 / 1.062 GB, free: 0.543 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.48e-05/0.3848, allocations: 0 / 1.062 GB, free: 0.543 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001073/0.3849, allocations: 20.39 kB / 1.062 GB, free: 0.5234 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.746e-06/0.3849, allocations: 4 kB / 1.062 GB, free: 0.5195 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002098/0.3851, allocations: 43.98 kB / 1.063 GB, free: 488 kB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.945e-05/0.3851, allocations: 8 kB / 1.063 GB, free: 480 kB / 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,$whenCondition1,$PRE.booPul.y,booPul.y,$PRE.triggeredMax.y,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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001345/0.3853, allocations: 127.7 kB / 1.063 GB, free: 344 kB / 0.8106 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.345e-05/0.3853, allocations: 7.844 kB / 1.063 GB, free: 336 kB / 0.8106 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00034/0.3856, allocations: 134 kB / 1.063 GB, free: 196 kB / 0.8106 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.192e-06/0.3857, allocations: 3.984 kB / 1.063 GB, free: 192 kB / 0.8106 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.552e-06/0.3857, allocations: 0 / 1.063 GB, free: 192 kB / 0.8106 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.849e-06/0.3857, allocations: 0 / 1.063 GB, free: 192 kB / 0.8106 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004951/0.3862, allocations: 370.5 kB / 1.063 GB, free: 15.77 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.188e-06/0.3862, allocations: 4 kB / 1.063 GB, free: 15.77 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.352e-05/0.3863, allocations: 11.98 kB / 1.063 GB, free: 15.75 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.274e-06/0.3863, allocations: 0 / 1.063 GB, free: 15.75 MB / 0.8262 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.37e-05/0.3863, allocations: 8 kB / 1.063 GB, free: 15.75 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.452e-06/0.3863, allocations: 0 / 1.063 GB, free: 15.75 MB / 0.8262 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.238e-06/0.3863, allocations: 7.938 kB / 1.063 GB, free: 15.74 MB / 0.8262 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003369/0.3867, allocations: 223.3 kB / 1.063 GB, free: 15.5 MB / 0.8262 GB Notification: Performance of postOpt removeConstants (simulation): time 4.934e-05/0.3867, allocations: 77.11 kB / 1.063 GB, free: 15.41 MB / 0.8262 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.209e-05/0.3867, allocations: 3.984 kB / 1.063 GB, free: 15.41 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.319e-05/0.3868, allocations: 8 kB / 1.063 GB, free: 15.4 MB / 0.8262 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.378e-05/0.3869, allocations: 11.98 kB / 1.063 GB, free: 15.39 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.903e-06/0.3869, allocations: 0 / 1.063 GB, free: 15.39 MB / 0.8262 GB Notification: Performance of sorting global known variables: time 5.372e-05/0.387, allocations: 91.27 kB / 1.064 GB, free: 15.3 MB / 0.8262 GB Notification: Performance of sort global known variables: time 1.4e-07/0.387, allocations: 0 / 1.064 GB, free: 15.3 MB / 0.8262 GB Notification: Performance of remove unused functions: time 0.0002638/0.3872, allocations: 20 kB / 1.064 GB, free: 15.28 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.000179/0.3874, allocations: 115.2 kB / 1.064 GB, free: 15.16 MB / 0.8262 GB Notification: Performance of simCode: created initialization part: time 0.0003992/0.3878, allocations: 175.3 kB / 1.064 GB, free: 14.97 MB / 0.8262 GB Notification: Performance of simCode: created event and clocks part: time 2.214e-06/0.3878, allocations: 0 / 1.064 GB, free: 14.97 MB / 0.8262 GB Notification: Performance of simCode: created simulation system equations: time 0.0001273/0.388, allocations: 52.03 kB / 1.064 GB, free: 14.92 MB / 0.8262 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002805/0.3883, allocations: 14.61 kB / 1.064 GB, free: 14.91 MB / 0.8262 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000386/0.3887, allocations: 176.8 kB / 1.064 GB, free: 14.71 MB / 0.8262 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003153/0.389, allocations: 0.6848 MB / 1.065 GB, free: 14 MB / 0.8262 GB Notification: Performance of simCode: alias equations: time 3.216e-05/0.389, allocations: 4.188 kB / 1.065 GB, free: 13.99 MB / 0.8262 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.368e-05/0.3891, allocations: 15.38 kB / 1.065 GB, free: 13.98 MB / 0.8262 GB Notification: Performance of SimCode: time 2.61e-07/0.3891, allocations: 0 / 1.065 GB, free: 13.98 MB / 0.8262 GB Notification: Performance of Templates: time 0.003971/0.393, allocations: 1.228 MB / 1.066 GB, free: 12.77 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/jenkins/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