Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_9_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredSampler.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.TriggeredSampler,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|booPul.y|sin1.y|triSam.y|triSam1.y",fileNamePrefix="Buildings_9_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredSampler") translateModel(Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredSampler,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|booPul.y|sin1.y|triSam.y|triSam1.y",fileNamePrefix="Buildings_9_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredSampler") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.008524/0.008524, allocations: 100.5 kB / 15.73 MB, free: 6.039 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.001858/0.001858, allocations: 186.7 kB / 16.67 MB, free: 5.969 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.472/1.472, 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 9.1.3-maint.9.1.x/package.mo): time 2.856/2.856, allocations: 390.2 MB / 0.6648 GB, free: 240 kB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.00128/0.00128, allocations: 62.75 kB / 0.9508 GB, free: 5.633 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3595/0.3608, allocations: 140.4 MB / 1.088 GB, free: 1.562 MB / 0.8419 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredSampler): time 0.002994/0.3639, allocations: 0.7709 MB / 1.089 GB, free: 0.7891 MB / 0.8419 GB Notification: Performance of NFInst.instExpressions: time 0.002357/0.3662, allocations: 1.161 MB / 1.09 GB, free: 15.61 MB / 0.8575 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001154/0.3664, allocations: 0 / 1.09 GB, free: 15.61 MB / 0.8575 GB Notification: Performance of NFTyping.typeComponents: time 6.032e-05/0.3665, allocations: 3.938 kB / 1.09 GB, free: 15.61 MB / 0.8575 GB Notification: Performance of NFTyping.typeBindings: time 0.000131/0.3667, allocations: 11.88 kB / 1.09 GB, free: 15.6 MB / 0.8575 GB Notification: Performance of NFTyping.typeClassSections: time 0.0008608/0.3675, allocations: 143 kB / 1.09 GB, free: 15.46 MB / 0.8575 GB Notification: Performance of NFFlatten.flatten: time 0.0003144/0.3679, allocations: 123.8 kB / 1.09 GB, free: 15.34 MB / 0.8575 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001745/0.368, allocations: 24.17 kB / 1.09 GB, free: 15.31 MB / 0.8575 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001668/0.3682, allocations: 51.83 kB / 1.09 GB, free: 15.26 MB / 0.8575 GB Notification: Performance of NFSimplifyModel.simplify: time 0.000143/0.3684, allocations: 47.88 kB / 1.09 GB, free: 15.21 MB / 0.8575 GB Notification: Performance of NFPackage.collectConstants: time 4.408e-05/0.3684, allocations: 12 kB / 1.09 GB, free: 15.2 MB / 0.8575 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001117/0.3685, allocations: 35.86 kB / 1.09 GB, free: 15.17 MB / 0.8575 GB Notification: Performance of NFScalarize.scalarize: time 3.645e-05/0.3686, allocations: 11.98 kB / 1.09 GB, free: 15.16 MB / 0.8575 GB Notification: Performance of NFVerifyModel.verify: time 0.0001086/0.3687, allocations: 43.84 kB / 1.09 GB, free: 15.11 MB / 0.8575 GB Notification: Performance of NFConvertDAE.convert: time 0.0002987/0.369, allocations: 127.6 kB / 1.09 GB, free: 14.99 MB / 0.8575 GB Notification: Performance of FrontEnd - DAE generated: time 5.751e-06/0.369, allocations: 0 / 1.09 GB, free: 14.99 MB / 0.8575 GB Notification: Performance of FrontEnd: time 2.715e-06/0.369, allocations: 0 / 1.09 GB, free: 14.99 MB / 0.8575 GB Notification: Performance of Transformations before backend: time 7.424e-06/0.369, allocations: 0 / 1.09 GB, free: 14.99 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: 10 * Number of variables: 10 Notification: Performance of Generate backend data structure: time 0.0007597/0.3698, allocations: 416.9 kB / 1.091 GB, free: 14.53 MB / 0.8575 GB Notification: Performance of prepare preOptimizeDAE: time 4.497e-05/0.3699, allocations: 12.03 kB / 1.091 GB, free: 14.52 MB / 0.8575 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.612e-05/0.3699, allocations: 12.84 kB / 1.091 GB, free: 14.5 MB / 0.8575 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001669/0.3701, allocations: 172.3 kB / 1.091 GB, free: 14.3 MB / 0.8575 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.246e-05/0.3702, allocations: 4.312 kB / 1.091 GB, free: 14.29 MB / 0.8575 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.935e-05/0.3702, allocations: 12.38 kB / 1.091 GB, free: 14.28 MB / 0.8575 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00024/0.3704, allocations: 70.22 kB / 1.091 GB, free: 14.21 MB / 0.8575 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.461e-05/0.3705, allocations: 3.938 kB / 1.091 GB, free: 14.2 MB / 0.8575 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.336e-05/0.3705, allocations: 0 / 1.091 GB, free: 14.2 MB / 0.8575 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.33e-06/0.3705, allocations: 0 / 1.091 GB, free: 14.2 MB / 0.8575 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002128/0.3707, allocations: 55.94 kB / 1.091 GB, free: 14.15 MB / 0.8575 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006334/0.3713, allocations: 348.5 kB / 1.091 GB, free: 13.76 MB / 0.8575 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000236/0.3716, allocations: 58.55 kB / 1.092 GB, free: 13.69 MB / 0.8575 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001083/0.3717, allocations: 32.97 kB / 1.092 GB, free: 13.66 MB / 0.8575 GB Notification: Performance of preOpt evalFunc (simulation): time 2.445e-05/0.3718, allocations: 3.938 kB / 1.092 GB, free: 13.65 MB / 0.8575 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002833/0.372, allocations: 91.39 kB / 1.092 GB, free: 13.55 MB / 0.8575 GB Notification: Performance of pre-optimization done (n=8): time 1.503e-06/0.3721, allocations: 0 / 1.092 GB, free: 13.55 MB / 0.8575 GB Notification: Performance of matching and sorting (n=8): time 0.0005128/0.3726, allocations: 145.5 kB / 1.092 GB, free: 13.4 MB / 0.8575 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.067e-05/0.3726, allocations: 59.41 kB / 1.092 GB, free: 13.33 MB / 0.8575 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001375/0.3728, allocations: 121.8 kB / 1.092 GB, free: 13.2 MB / 0.8575 GB Notification: Performance of collectPreVariables (initialization): time 4.441e-05/0.3728, allocations: 29.7 kB / 1.092 GB, free: 13.17 MB / 0.8575 GB Notification: Performance of collectInitialEqns (initialization): time 8.757e-05/0.3729, allocations: 96.03 kB / 1.092 GB, free: 13.07 MB / 0.8575 GB Notification: Performance of collectInitialBindings (initialization): time 2.836e-05/0.373, allocations: 19.69 kB / 1.092 GB, free: 13.05 MB / 0.8575 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001098/0.3731, allocations: 45.62 kB / 1.092 GB, free: 13 MB / 0.8575 GB Notification: Performance of setup shared object (initialization): time 0.0001827/0.3733, allocations: 322.8 kB / 1.092 GB, free: 12.68 MB / 0.8575 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001822/0.3735, allocations: 59.95 kB / 1.092 GB, free: 12.62 MB / 0.8575 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002248/0.3737, allocations: 89.11 kB / 1.093 GB, free: 12.51 MB / 0.8575 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000312/0.374, allocations: 154.8 kB / 1.093 GB, free: 12.34 MB / 0.8575 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.725e-06/0.374, allocations: 0 / 1.093 GB, free: 12.34 MB / 0.8575 GB Notification: Performance of matching and sorting (n=13) (initialization): time 0.0004644/0.3745, allocations: 211.2 kB / 1.093 GB, free: 12.12 MB / 0.8575 GB Notification: Performance of prepare postOptimizeDAE: time 5.242e-05/0.3746, allocations: 41.69 kB / 1.093 GB, free: 12.07 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.022e-06/0.3746, allocations: 0 / 1.093 GB, free: 12.07 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.089e-05/0.3746, allocations: 4 kB / 1.093 GB, free: 12.07 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001148/0.3747, allocations: 15.92 kB / 1.093 GB, free: 12.05 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.238e-05/0.3747, allocations: 4 kB / 1.093 GB, free: 12.05 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002174/0.375, allocations: 39.86 kB / 1.093 GB, free: 12.01 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.998e-05/0.375, allocations: 4 kB / 1.093 GB, free: 12 MB / 0.8575 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 6 * Number of states: 0 () * Number of discrete variables: 9 (triSam1.y,$PRE.triSam1.y,triSam.y,$PRE.triSam.y,booPul.y,$PRE.booPul.y,$whenCondition3,$whenCondition1,$whenCondition2) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (11): * Single equations (assignments): 10 * 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.0001091/0.3751, allocations: 125.8 kB / 1.093 GB, free: 11.87 MB / 0.8575 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.979e-05/0.3751, allocations: 7.906 kB / 1.093 GB, free: 11.86 MB / 0.8575 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003345/0.3755, allocations: 125.9 kB / 1.093 GB, free: 11.73 MB / 0.8575 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.298e-06/0.3755, allocations: 0 / 1.093 GB, free: 11.73 MB / 0.8575 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.161e-06/0.3755, allocations: 0 / 1.093 GB, free: 11.73 MB / 0.8575 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.147e-06/0.3755, allocations: 0 / 1.093 GB, free: 11.73 MB / 0.8575 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005014/0.376, allocations: 386.4 kB / 1.094 GB, free: 11.3 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.829e-06/0.376, allocations: 0 / 1.094 GB, free: 11.3 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.097e-05/0.3761, allocations: 11.94 kB / 1.094 GB, free: 11.29 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.396e-06/0.3761, allocations: 0 / 1.094 GB, free: 11.29 MB / 0.8575 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.32e-05/0.3761, allocations: 3.984 kB / 1.094 GB, free: 11.29 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.224e-06/0.3761, allocations: 0 / 1.094 GB, free: 11.29 MB / 0.8575 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.946e-06/0.3761, allocations: 7.938 kB / 1.094 GB, free: 11.28 MB / 0.8575 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003298/0.3765, allocations: 215.9 kB / 1.094 GB, free: 11.05 MB / 0.8575 GB Notification: Performance of postOpt removeConstants (simulation): time 4.65e-05/0.3765, allocations: 77.11 kB / 1.094 GB, free: 10.96 MB / 0.8575 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.187e-05/0.3766, allocations: 8 kB / 1.094 GB, free: 10.95 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.703e-05/0.3767, allocations: 7.984 kB / 1.094 GB, free: 10.94 MB / 0.8575 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.175e-05/0.3767, allocations: 7.922 kB / 1.094 GB, free: 10.93 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.783e-06/0.3767, allocations: 7.938 kB / 1.094 GB, free: 10.93 MB / 0.8575 GB Notification: Performance of sorting global known variables: time 6.406e-05/0.3768, allocations: 95.75 kB / 1.094 GB, free: 10.83 MB / 0.8575 GB Notification: Performance of sort global known variables: time 1.31e-07/0.3768, allocations: 4 kB / 1.094 GB, free: 10.83 MB / 0.8575 GB Notification: Performance of remove unused functions: time 0.0002811/0.3771, allocations: 31.91 kB / 1.094 GB, free: 10.8 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: 6 ($whenCondition3,$whenCondition1,$whenCondition2,booPul.y,triSam.y,triSam1.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (8): * Single equations (assignments): 5 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 3 * 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.0001818/0.3773, allocations: 99.19 kB / 1.094 GB, free: 10.69 MB / 0.8575 GB Notification: Performance of simCode: created initialization part: time 0.0004376/0.3777, allocations: 183.3 kB / 1.094 GB, free: 10.5 MB / 0.8575 GB Notification: Performance of simCode: created event and clocks part: time 1.893e-06/0.3778, allocations: 0 / 1.094 GB, free: 10.5 MB / 0.8575 GB Notification: Performance of simCode: created simulation system equations: time 0.0001375/0.3779, allocations: 44.28 kB / 1.094 GB, free: 10.46 MB / 0.8575 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003075/0.3782, allocations: 11.98 kB / 1.094 GB, free: 10.45 MB / 0.8575 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004586/0.3787, allocations: 166.5 kB / 1.095 GB, free: 10.25 MB / 0.8575 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003502/0.379, allocations: 0.6898 MB / 1.095 GB, free: 9.539 MB / 0.8575 GB Notification: Performance of simCode: alias equations: time 4.644e-05/0.3791, allocations: 8 kB / 1.095 GB, free: 9.531 MB / 0.8575 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.541e-05/0.3791, allocations: 15.42 kB / 1.095 GB, free: 9.516 MB / 0.8575 GB Notification: Performance of SimCode: time 5.11e-07/0.3792, allocations: 0 / 1.095 GB, free: 9.516 MB / 0.8575 GB Notification: Performance of Templates: time 0.00503/0.3842, allocations: 1.501 MB / 1.097 GB, free: 8.035 MB / 0.8575 GB make -j1 -f Buildings_9_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredSampler.makefile (rm -f Buildings_9_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredSampler.pipe ; mkfifo Buildings_9_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredSampler.pipe ; head -c 1048576 < Buildings_9_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredSampler.pipe >> ../files/Buildings_9_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredSampler.sim & ./Buildings_9_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredSampler -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_9_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredSampler.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredSampler_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Controls_OBC_CDL_Discrete_Examples_TriggeredSampler.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredSampler.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches