Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_11_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.1.0-maint.11.x/package.mo", uses=false) Using package Buildings with version 11.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.0-maint.11.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.Validation.TriggeredMax,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|triggeredMax.u|triggeredMax.y|triggeredMax.trigger",fileNamePrefix="Buildings_11_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_11_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.007811/0.007811, allocations: 102.3 kB / 15.73 MB, free: 6.496 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.001745/0.001745, allocations: 197.7 kB / 16.68 MB, free: 6.375 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.412/1.412, allocations: 222.9 MB / 240.4 MB, free: 4.316 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.0-maint.11.x/package.mo): time 2.78/2.78, allocations: 469.8 MB / 0.7425 GB, free: 7.316 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001499/0.001499, allocations: 72.11 kB / 1.065 GB, free: 13.02 MB / 0.8262 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3754/0.3769, allocations: 159.1 MB / 1.221 GB, free: 13.77 MB / 0.9825 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Discrete.Validation.TriggeredMax): time 0.001915/0.3788, allocations: 0.7262 MB / 1.221 GB, free: 13.05 MB / 0.9825 GB Notification: Performance of NFInst.instExpressions: time 0.001537/0.3803, allocations: 1.19 MB / 1.222 GB, free: 11.84 MB / 0.9825 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.606e-05/0.3804, allocations: 0 / 1.222 GB, free: 11.84 MB / 0.9825 GB Notification: Performance of NFTyping.typeComponents: time 3.448e-05/0.3804, allocations: 3.938 kB / 1.222 GB, free: 11.84 MB / 0.9825 GB Notification: Performance of NFTyping.typeBindings: time 7.441e-05/0.3805, allocations: 23.8 kB / 1.222 GB, free: 11.82 MB / 0.9825 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005164/0.381, allocations: 143.5 kB / 1.223 GB, free: 11.68 MB / 0.9825 GB Notification: Performance of NFFlatten.flatten: time 0.000192/0.3812, allocations: 119.8 kB / 1.223 GB, free: 11.56 MB / 0.9825 GB Notification: Performance of NFFlatten.resolveConnections: time 9.612e-05/0.3813, allocations: 8 kB / 1.223 GB, free: 11.55 MB / 0.9825 GB Notification: Performance of NFEvalConstants.evaluate: time 8.965e-05/0.3814, allocations: 43.91 kB / 1.223 GB, free: 11.51 MB / 0.9825 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001002/0.3815, allocations: 51.8 kB / 1.223 GB, free: 11.46 MB / 0.9825 GB Notification: Performance of NFPackage.collectConstants: time 2.637e-05/0.3815, allocations: 12 kB / 1.223 GB, free: 11.45 MB / 0.9825 GB Notification: Performance of NFFlatten.collectFunctions: time 8.657e-05/0.3816, allocations: 27.92 kB / 1.223 GB, free: 11.42 MB / 0.9825 GB Notification: Performance of NFScalarize.scalarize: time 2.096e-05/0.3816, allocations: 8 kB / 1.223 GB, free: 11.41 MB / 0.9825 GB Notification: Performance of NFVerifyModel.verify: time 7.205e-05/0.3817, allocations: 51.83 kB / 1.223 GB, free: 11.36 MB / 0.9825 GB Notification: Performance of NFConvertDAE.convert: time 0.0001675/0.3818, allocations: 99.69 kB / 1.223 GB, free: 11.27 MB / 0.9825 GB Notification: Performance of FrontEnd - DAE generated: time 3.456e-06/0.3818, allocations: 0 / 1.223 GB, free: 11.27 MB / 0.9825 GB Notification: Performance of FrontEnd: time 1.092e-06/0.3818, allocations: 0 / 1.223 GB, free: 11.27 MB / 0.9825 GB Notification: Performance of Transformations before backend: time 6.944e-06/0.3818, allocations: 7.922 kB / 1.223 GB, free: 11.26 MB / 0.9825 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.0005875/0.3824, allocations: 405 kB / 1.223 GB, free: 10.8 MB / 0.9825 GB Notification: Performance of prepare preOptimizeDAE: time 3.585e-05/0.3825, allocations: 8.031 kB / 1.223 GB, free: 10.8 MB / 0.9825 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.638e-05/0.3825, allocations: 16.88 kB / 1.223 GB, free: 10.78 MB / 0.9825 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001219/0.3826, allocations: 172.3 kB / 1.224 GB, free: 10.57 MB / 0.9825 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.497e-05/0.3827, allocations: 4.375 kB / 1.224 GB, free: 10.57 MB / 0.9825 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.493e-05/0.3827, allocations: 16.31 kB / 1.224 GB, free: 10.55 MB / 0.9825 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002002/0.3829, allocations: 62.22 kB / 1.224 GB, free: 10.49 MB / 0.9825 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.514e-06/0.3829, allocations: 192 / 1.224 GB, free: 10.49 MB / 0.9825 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.415e-05/0.3829, allocations: 7.938 kB / 1.224 GB, free: 10.48 MB / 0.9825 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.948e-06/0.3829, allocations: 0 / 1.224 GB, free: 10.48 MB / 0.9825 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001853/0.3831, allocations: 39.95 kB / 1.224 GB, free: 10.44 MB / 0.9825 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004565/0.3836, allocations: 324.7 kB / 1.224 GB, free: 10.07 MB / 0.9825 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001576/0.3837, allocations: 54.47 kB / 1.224 GB, free: 10.01 MB / 0.9825 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001012/0.3838, allocations: 28.92 kB / 1.224 GB, free: 9.98 MB / 0.9825 GB Notification: Performance of preOpt evalFunc (simulation): time 1.81e-05/0.3838, allocations: 4 kB / 1.224 GB, free: 9.977 MB / 0.9825 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002247/0.3841, allocations: 91.36 kB / 1.224 GB, free: 9.875 MB / 0.9825 GB Notification: Performance of pre-optimization done (n=7): time 1.403e-06/0.3841, allocations: 0 / 1.224 GB, free: 9.875 MB / 0.9825 GB Notification: Performance of matching and sorting (n=7): time 0.0004359/0.3845, allocations: 133.6 kB / 1.224 GB, free: 9.738 MB / 0.9825 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.853e-05/0.3845, allocations: 59.39 kB / 1.224 GB, free: 9.668 MB / 0.9825 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.15e-05/0.3846, allocations: 121.8 kB / 1.225 GB, free: 9.539 MB / 0.9825 GB Notification: Performance of collectPreVariables (initialization): time 2.989e-05/0.3847, allocations: 25.7 kB / 1.225 GB, free: 9.508 MB / 0.9825 GB Notification: Performance of collectInitialEqns (initialization): time 5.587e-05/0.3847, allocations: 96.08 kB / 1.225 GB, free: 9.41 MB / 0.9825 GB Notification: Performance of collectInitialBindings (initialization): time 2.127e-05/0.3847, allocations: 19.84 kB / 1.225 GB, free: 9.391 MB / 0.9825 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.169e-05/0.3848, allocations: 33.7 kB / 1.225 GB, free: 9.352 MB / 0.9825 GB Notification: Performance of setup shared object (initialization): time 0.0001135/0.3849, allocations: 322.8 kB / 1.225 GB, free: 9.027 MB / 0.9825 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001511/0.3851, allocations: 43.97 kB / 1.225 GB, free: 8.984 MB / 0.9825 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001618/0.3852, allocations: 83.39 kB / 1.225 GB, free: 8.891 MB / 0.9825 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000287/0.3855, allocations: 133 kB / 1.225 GB, free: 8.742 MB / 0.9825 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.944e-06/0.3855, allocations: 0 / 1.225 GB, free: 8.742 MB / 0.9825 GB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0004279/0.3859, allocations: 203.1 kB / 1.225 GB, free: 8.531 MB / 0.9825 GB Notification: Performance of prepare postOptimizeDAE: time 3.685e-05/0.386, allocations: 37.64 kB / 1.225 GB, free: 8.488 MB / 0.9825 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.19e-06/0.386, allocations: 0 / 1.225 GB, free: 8.488 MB / 0.9825 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.495e-05/0.386, allocations: 4 kB / 1.225 GB, free: 8.484 MB / 0.9825 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.515e-05/0.3861, allocations: 11.98 kB / 1.225 GB, free: 8.473 MB / 0.9825 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.41e-06/0.3861, allocations: 0 / 1.225 GB, free: 8.473 MB / 0.9825 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001982/0.3863, allocations: 40.02 kB / 1.226 GB, free: 8.434 MB / 0.9825 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.924e-05/0.3863, allocations: 4 kB / 1.226 GB, free: 8.43 MB / 0.9825 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 9.417e-05/0.3864, allocations: 126.2 kB / 1.226 GB, free: 8.297 MB / 0.9825 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.645e-05/0.3864, allocations: 11.94 kB / 1.226 GB, free: 8.285 MB / 0.9825 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000293/0.3867, allocations: 110 kB / 1.226 GB, free: 8.164 MB / 0.9825 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.705e-06/0.3867, allocations: 0 / 1.226 GB, free: 8.164 MB / 0.9825 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.278e-06/0.3867, allocations: 0 / 1.226 GB, free: 8.164 MB / 0.9825 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.206e-06/0.3867, allocations: 4 kB / 1.226 GB, free: 8.16 MB / 0.9825 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004084/0.3871, allocations: 362.4 kB / 1.226 GB, free: 7.75 MB / 0.9825 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.402e-06/0.3871, allocations: 0 / 1.226 GB, free: 7.75 MB / 0.9825 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.246e-05/0.3872, allocations: 11.98 kB / 1.226 GB, free: 7.738 MB / 0.9825 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.314e-06/0.3872, allocations: 0 / 1.226 GB, free: 7.738 MB / 0.9825 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.486e-06/0.3872, allocations: 0 / 1.226 GB, free: 7.738 MB / 0.9825 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.263e-06/0.3872, allocations: 4 kB / 1.226 GB, free: 7.734 MB / 0.9825 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.885e-06/0.3872, allocations: 4 kB / 1.226 GB, free: 7.73 MB / 0.9825 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002965/0.3875, allocations: 219.9 kB / 1.226 GB, free: 7.5 MB / 0.9825 GB Notification: Performance of postOpt removeConstants (simulation): time 4.319e-05/0.3876, allocations: 85.05 kB / 1.226 GB, free: 7.398 MB / 0.9825 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.988e-05/0.3876, allocations: 480 / 1.226 GB, free: 7.398 MB / 0.9825 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.681e-05/0.3877, allocations: 7.938 kB / 1.226 GB, free: 7.391 MB / 0.9825 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.479e-05/0.3877, allocations: 11.92 kB / 1.226 GB, free: 7.379 MB / 0.9825 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.135e-06/0.3877, allocations: 4 kB / 1.226 GB, free: 7.375 MB / 0.9825 GB Notification: Performance of sorting global known variables: time 4.467e-05/0.3878, allocations: 95.2 kB / 1.227 GB, free: 7.281 MB / 0.9825 GB Notification: Performance of sort global known variables: time 9e-08/0.3878, allocations: 0 / 1.227 GB, free: 7.281 MB / 0.9825 GB Notification: Performance of remove unused functions: time 0.0002645/0.388, allocations: 27.94 kB / 1.227 GB, free: 7.254 MB / 0.9825 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.0001585/0.3882, allocations: 103.2 kB / 1.227 GB, free: 7.145 MB / 0.9825 GB Notification: Performance of simCode: created initialization part: time 0.0003622/0.3885, allocations: 151.4 kB / 1.227 GB, free: 6.984 MB / 0.9825 GB Notification: Performance of simCode: created event and clocks part: time 3.737e-06/0.3886, allocations: 4.125 kB / 1.227 GB, free: 6.98 MB / 0.9825 GB Notification: Performance of simCode: created simulation system equations: time 0.0001193/0.3887, allocations: 35.95 kB / 1.227 GB, free: 6.945 MB / 0.9825 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002913/0.389, allocations: 18.05 kB / 1.227 GB, free: 6.93 MB / 0.9825 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003813/0.3893, allocations: 170.3 kB / 1.227 GB, free: 6.738 MB / 0.9825 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002281/0.3896, allocations: 0.6899 MB / 1.228 GB, free: 6.023 MB / 0.9825 GB Notification: Performance of simCode: alias equations: time 2.947e-05/0.3896, allocations: 8.281 kB / 1.228 GB, free: 6.016 MB / 0.9825 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.227e-05/0.3896, allocations: 11.44 kB / 1.228 GB, free: 6.008 MB / 0.9825 GB Notification: Performance of SimCode: time 7.42e-07/0.3896, allocations: 0 / 1.228 GB, free: 6.008 MB / 0.9825 GB Notification: Performance of Templates: time 0.004121/0.3937, allocations: 1.395 MB / 1.229 GB, free: 4.633 MB / 0.9825 GB make -j1 -f Buildings_11_Buildings.Controls.OBC.CDL.Discrete.Validation.TriggeredMax.makefile (rm -f Buildings_11_Buildings.Controls.OBC.CDL.Discrete.Validation.TriggeredMax.pipe ; mkfifo Buildings_11_Buildings.Controls.OBC.CDL.Discrete.Validation.TriggeredMax.pipe ; head -c 1048576 < Buildings_11_Buildings.Controls.OBC.CDL.Discrete.Validation.TriggeredMax.pipe >> ../files/Buildings_11_Buildings.Controls.OBC.CDL.Discrete.Validation.TriggeredMax.sim & ./Buildings_11_Buildings.Controls.OBC.CDL.Discrete.Validation.TriggeredMax -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_11_Buildings.Controls.OBC.CDL.Discrete.Validation.TriggeredMax.pipe 2>&1) diffSimulationResults("Buildings_11_Buildings.Controls.OBC.CDL.Discrete.Validation.TriggeredMax_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_11.x/Buildings_Controls_OBC_CDL_Discrete_Validation_TriggeredMax.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_11_Buildings.Controls.OBC.CDL.Discrete.Validation.TriggeredMax.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches