Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_9_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 9.1.3-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-maint.9.1.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_9_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_9_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.009088/0.009088, allocations: 96.7 kB / 15.73 MB, free: 6.055 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.002128/0.002128, allocations: 193.8 kB / 16.67 MB, free: 5.977 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.454/1.454, allocations: 222.9 MB / 240.4 MB, free: 4.309 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-maint.9.1.x/package.mo): time 2.539/2.539, allocations: 390.2 MB / 0.6648 GB, free: 200 kB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.001218/0.001218, allocations: 66.81 kB / 0.9508 GB, free: 5.637 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3756/0.3768, allocations: 140.4 MB / 1.088 GB, free: 1.539 MB / 0.8419 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredMax): time 0.002822/0.3797, allocations: 0.7265 MB / 1.089 GB, free: 0.8086 MB / 0.8419 GB Notification: Performance of NFInst.instExpressions: time 0.002092/0.3818, allocations: 1.184 MB / 1.09 GB, free: 15.61 MB / 0.8575 GB Notification: Performance of NFInst.updateImplicitVariability: time 9.816e-05/0.3819, allocations: 0 / 1.09 GB, free: 15.61 MB / 0.8575 GB Notification: Performance of NFTyping.typeComponents: time 3.694e-05/0.382, allocations: 3.938 kB / 1.09 GB, free: 15.61 MB / 0.8575 GB Notification: Performance of NFTyping.typeBindings: time 0.0001228/0.3821, allocations: 19.84 kB / 1.09 GB, free: 15.59 MB / 0.8575 GB Notification: Performance of NFTyping.typeClassSections: time 0.0007786/0.3829, allocations: 140.9 kB / 1.09 GB, free: 15.45 MB / 0.8575 GB Notification: Performance of NFFlatten.flatten: time 0.0002608/0.3832, allocations: 123.8 kB / 1.09 GB, free: 15.33 MB / 0.8575 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001249/0.3833, allocations: 15.98 kB / 1.09 GB, free: 15.32 MB / 0.8575 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001415/0.3835, allocations: 43.91 kB / 1.09 GB, free: 15.27 MB / 0.8575 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001359/0.3836, allocations: 47.81 kB / 1.09 GB, free: 15.23 MB / 0.8575 GB Notification: Performance of NFPackage.collectConstants: time 2.901e-05/0.3837, allocations: 12 kB / 1.09 GB, free: 15.21 MB / 0.8575 GB Notification: Performance of NFFlatten.collectFunctions: time 9.044e-05/0.3838, allocations: 31.86 kB / 1.09 GB, free: 15.18 MB / 0.8575 GB Notification: Performance of NFScalarize.scalarize: time 2.53e-05/0.3838, allocations: 11.98 kB / 1.09 GB, free: 15.17 MB / 0.8575 GB Notification: Performance of NFVerifyModel.verify: time 8.543e-05/0.3839, allocations: 43.84 kB / 1.09 GB, free: 15.13 MB / 0.8575 GB Notification: Performance of NFConvertDAE.convert: time 0.0002355/0.3841, allocations: 107.7 kB / 1.09 GB, free: 15.02 MB / 0.8575 GB Notification: Performance of FrontEnd - DAE generated: time 4.528e-06/0.3842, allocations: 0 / 1.09 GB, free: 15.02 MB / 0.8575 GB Notification: Performance of FrontEnd: time 3.717e-06/0.3842, allocations: 4 kB / 1.09 GB, free: 15.02 MB / 0.8575 GB Notification: Performance of Transformations before backend: time 7.805e-06/0.3842, allocations: 3.938 kB / 1.09 GB, free: 15.02 MB / 0.8575 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.0007361/0.3849, allocations: 405 kB / 1.091 GB, free: 14.56 MB / 0.8575 GB Notification: Performance of prepare preOptimizeDAE: time 4.04e-05/0.385, allocations: 12.03 kB / 1.091 GB, free: 14.55 MB / 0.8575 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.329e-05/0.385, allocations: 4.938 kB / 1.091 GB, free: 14.55 MB / 0.8575 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001499/0.3852, allocations: 172.3 kB / 1.091 GB, free: 14.34 MB / 0.8575 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.21e-05/0.3852, allocations: 8.375 kB / 1.091 GB, free: 14.33 MB / 0.8575 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.624e-05/0.3853, allocations: 8.359 kB / 1.091 GB, free: 14.32 MB / 0.8575 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002345/0.3855, allocations: 66.17 kB / 1.091 GB, free: 14.25 MB / 0.8575 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.031e-05/0.3855, allocations: 4.172 kB / 1.091 GB, free: 14.25 MB / 0.8575 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.532e-05/0.3855, allocations: 3.938 kB / 1.091 GB, free: 14.25 MB / 0.8575 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.168e-06/0.3856, allocations: 7.984 kB / 1.091 GB, free: 14.24 MB / 0.8575 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001915/0.3858, allocations: 47.94 kB / 1.091 GB, free: 14.19 MB / 0.8575 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005883/0.3863, allocations: 320.7 kB / 1.091 GB, free: 13.83 MB / 0.8575 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001843/0.3865, allocations: 50.48 kB / 1.091 GB, free: 13.77 MB / 0.8575 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001034/0.3867, allocations: 36.94 kB / 1.091 GB, free: 13.73 MB / 0.8575 GB Notification: Performance of preOpt evalFunc (simulation): time 2.674e-05/0.3867, allocations: 0 / 1.091 GB, free: 13.73 MB / 0.8575 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003287/0.387, allocations: 83.36 kB / 1.092 GB, free: 13.64 MB / 0.8575 GB Notification: Performance of pre-optimization done (n=7): time 1.964e-06/0.387, allocations: 0 / 1.092 GB, free: 13.64 MB / 0.8575 GB Notification: Performance of matching and sorting (n=7): time 0.0005142/0.3876, allocations: 145.6 kB / 1.092 GB, free: 13.49 MB / 0.8575 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.986e-05/0.3876, allocations: 55.39 kB / 1.092 GB, free: 13.42 MB / 0.8575 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001243/0.3878, allocations: 113.8 kB / 1.092 GB, free: 13.3 MB / 0.8575 GB Notification: Performance of collectPreVariables (initialization): time 3.507e-05/0.3878, allocations: 29.7 kB / 1.092 GB, free: 13.27 MB / 0.8575 GB Notification: Performance of collectInitialEqns (initialization): time 7.41e-05/0.3879, allocations: 92.45 kB / 1.092 GB, free: 13.17 MB / 0.8575 GB Notification: Performance of collectInitialBindings (initialization): time 2.573e-05/0.3879, allocations: 15.89 kB / 1.092 GB, free: 13.16 MB / 0.8575 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001021/0.388, allocations: 37.7 kB / 1.092 GB, free: 13.11 MB / 0.8575 GB Notification: Performance of setup shared object (initialization): time 0.0001337/0.3882, allocations: 318.8 kB / 1.092 GB, free: 12.79 MB / 0.8575 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001677/0.3883, allocations: 59.89 kB / 1.092 GB, free: 12.73 MB / 0.8575 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001634/0.3885, allocations: 71.39 kB / 1.092 GB, free: 12.65 MB / 0.8575 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002836/0.3888, allocations: 133 kB / 1.093 GB, free: 12.5 MB / 0.8575 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.296e-06/0.3888, allocations: 0 / 1.093 GB, free: 12.5 MB / 0.8575 GB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0004475/0.3893, allocations: 199.1 kB / 1.093 GB, free: 12.3 MB / 0.8575 GB Notification: Performance of prepare postOptimizeDAE: time 4.627e-05/0.3893, allocations: 45.62 kB / 1.093 GB, free: 12.25 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.324e-06/0.3893, allocations: 0 / 1.093 GB, free: 12.25 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.589e-05/0.3894, allocations: 0 / 1.093 GB, free: 12.25 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001033/0.3895, allocations: 12 kB / 1.093 GB, free: 12.23 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.211e-05/0.3895, allocations: 12.05 kB / 1.093 GB, free: 12.22 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002114/0.3897, allocations: 31.92 kB / 1.093 GB, free: 12.19 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.452e-05/0.3897, allocations: 7.984 kB / 1.093 GB, free: 12.18 MB / 0.8575 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.000121/0.3899, allocations: 121.8 kB / 1.093 GB, free: 12.05 MB / 0.8575 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.685e-05/0.3899, allocations: 3.938 kB / 1.093 GB, free: 12.05 MB / 0.8575 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003207/0.3902, allocations: 122 kB / 1.093 GB, free: 11.93 MB / 0.8575 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.126e-06/0.3902, allocations: 0 / 1.093 GB, free: 11.93 MB / 0.8575 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.808e-05/0.3903, allocations: 3.984 kB / 1.093 GB, free: 11.92 MB / 0.8575 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.266e-06/0.3903, allocations: 0 / 1.093 GB, free: 11.92 MB / 0.8575 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004735/0.3907, allocations: 366.3 kB / 1.093 GB, free: 11.51 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.395e-06/0.3908, allocations: 0 / 1.093 GB, free: 11.51 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.632e-05/0.3908, allocations: 8 kB / 1.093 GB, free: 11.5 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.727e-06/0.3909, allocations: 0 / 1.093 GB, free: 11.5 MB / 0.8575 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.505e-05/0.3909, allocations: 11.98 kB / 1.093 GB, free: 11.49 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.783e-06/0.3909, allocations: 0 / 1.093 GB, free: 11.49 MB / 0.8575 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.152e-06/0.3909, allocations: 0 / 1.093 GB, free: 11.49 MB / 0.8575 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003242/0.3912, allocations: 203.4 kB / 1.094 GB, free: 11.27 MB / 0.8575 GB Notification: Performance of postOpt removeConstants (simulation): time 4.94e-05/0.3913, allocations: 85.06 kB / 1.094 GB, free: 11.17 MB / 0.8575 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.157e-05/0.3913, allocations: 0 / 1.094 GB, free: 11.17 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.032e-05/0.3914, allocations: 11.98 kB / 1.094 GB, free: 11.16 MB / 0.8575 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.078e-05/0.3915, allocations: 11.94 kB / 1.094 GB, free: 11.15 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.856e-06/0.3915, allocations: 7.922 kB / 1.094 GB, free: 11.14 MB / 0.8575 GB Notification: Performance of sorting global known variables: time 5.141e-05/0.3915, allocations: 87.38 kB / 1.094 GB, free: 11.05 MB / 0.8575 GB Notification: Performance of sort global known variables: time 4.71e-07/0.3915, allocations: 288 / 1.094 GB, free: 11.05 MB / 0.8575 GB Notification: Performance of remove unused functions: time 0.0002752/0.3918, allocations: 20 kB / 1.094 GB, free: 11.04 MB / 0.8575 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.0001759/0.392, allocations: 107.3 kB / 1.094 GB, free: 10.92 MB / 0.8575 GB Notification: Performance of simCode: created initialization part: time 0.000426/0.3924, allocations: 179.2 kB / 1.094 GB, free: 10.73 MB / 0.8575 GB Notification: Performance of simCode: created event and clocks part: time 2.766e-06/0.3925, allocations: 0 / 1.094 GB, free: 10.73 MB / 0.8575 GB Notification: Performance of simCode: created simulation system equations: time 0.0001269/0.3926, allocations: 27.98 kB / 1.094 GB, free: 10.71 MB / 0.8575 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003055/0.3929, allocations: 15.98 kB / 1.094 GB, free: 10.69 MB / 0.8575 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004049/0.3933, allocations: 165.9 kB / 1.094 GB, free: 10.5 MB / 0.8575 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003002/0.3936, allocations: 0.6963 MB / 1.095 GB, free: 9.777 MB / 0.8575 GB Notification: Performance of simCode: alias equations: time 3.993e-05/0.3937, allocations: 7.75 kB / 1.095 GB, free: 9.77 MB / 0.8575 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.617e-05/0.3937, allocations: 7.438 kB / 1.095 GB, free: 9.762 MB / 0.8575 GB Notification: Performance of SimCode: time 3.8e-07/0.3937, allocations: 4 kB / 1.095 GB, free: 9.758 MB / 0.8575 GB Notification: Performance of Templates: time 0.004757/0.3985, allocations: 1.402 MB / 1.096 GB, free: 8.375 MB / 0.8575 GB make -j1 -f Buildings_9_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredMax.makefile (rm -f Buildings_9_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredMax.pipe ; mkfifo Buildings_9_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredMax.pipe ; head -c 1048576 < Buildings_9_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredMax.pipe >> ../files/Buildings_9_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredMax.sim & ./Buildings_9_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredMax -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_9_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredMax.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredMax_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Controls_OBC_CDL_Discrete_Examples_TriggeredMax.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredMax.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches