Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Validation.TriggeredSampler.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001831/0.001831, allocations: 84.05 kB / 19.18 MB, free: 2.523 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.002093/0.002093, allocations: 165.5 kB / 22.46 MB, free: 5.359 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.534/1.534, allocations: 177.1 MB / 202.8 MB, free: 9.172 MB / 190.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings master/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings master/package.mo): time 2.957/2.957, allocations: 389 MB / 0.633 GB, free: 1.031 MB / 0.5919 GB " [Timeout remaining time 176] Using package Buildings with version 13.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings master/package.mo) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: translateModel(Buildings.Controls.OBC.CDL.Discrete.Validation.TriggeredSampler,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|booPul.y|sin1.y|triSam.y|triSam1.y",fileNamePrefix="Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Validation.TriggeredSampler") translateModel(Buildings.Controls.OBC.CDL.Discrete.Validation.TriggeredSampler,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|booPul.y|sin1.y|triSam.y|triSam1.y",fileNamePrefix="Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Validation.TriggeredSampler") [Timeout 300] "Notification: Performance of FrontEnd - loaded program: time 4.659e-06/4.659e-06, allocations: 0 / 1 GB, free: 7.332 MB / 0.9512 GB Notification: Performance of FrontEnd - Absyn->SCode: time 5.359e-05/5.825e-05, allocations: 5.234 kB / 1 GB, free: 7.328 MB / 0.9512 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Discrete.Validation.TriggeredSampler): time 0.002671/0.002729, allocations: 0.7422 MB / 1.001 GB, free: 6.59 MB / 0.9512 GB Notification: Performance of NFInst.instExpressions: time 0.002065/0.004794, allocations: 1.189 MB / 1.002 GB, free: 5.387 MB / 0.9512 GB Notification: Performance of NFInst.updateImplicitVariability: time 6.666e-05/0.004861, allocations: 0 / 1.002 GB, free: 5.387 MB / 0.9512 GB Notification: Performance of NFTyping.typeComponents: time 3.535e-05/0.004896, allocations: 3.938 kB / 1.002 GB, free: 5.383 MB / 0.9512 GB Notification: Performance of NFTyping.typeBindings: time 8.246e-05/0.004979, allocations: 11.86 kB / 1.002 GB, free: 5.371 MB / 0.9512 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005298/0.005509, allocations: 147.5 kB / 1.002 GB, free: 5.23 MB / 0.9512 GB Notification: Performance of NFFlatten.flatten: time 0.0002206/0.005729, allocations: 119.8 kB / 1.002 GB, free: 5.113 MB / 0.9512 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001157/0.005845, allocations: 24.16 kB / 1.002 GB, free: 5.086 MB / 0.9512 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001452/0.00599, allocations: 63.89 kB / 1.002 GB, free: 5.023 MB / 0.9512 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001022/0.006092, allocations: 43.86 kB / 1.002 GB, free: 4.98 MB / 0.9512 GB Notification: Performance of NFPackage.collectConstants: time 3.592e-05/0.006128, allocations: 12 kB / 1.002 GB, free: 4.969 MB / 0.9512 GB Notification: Performance of NFFlatten.collectFunctions: time 8.036e-05/0.006209, allocations: 27.98 kB / 1.002 GB, free: 4.941 MB / 0.9512 GB Notification: Performance of NFScalarize.scalarize: time 3.414e-05/0.006243, allocations: 15.92 kB / 1.002 GB, free: 4.926 MB / 0.9512 GB Notification: Performance of NFVerifyModel.verify: time 7.227e-05/0.006315, allocations: 39.91 kB / 1.002 GB, free: 4.887 MB / 0.9512 GB Notification: Performance of NFConvertDAE.convert: time 0.0002963/0.006611, allocations: 155.6 kB / 1.003 GB, free: 4.734 MB / 0.9512 GB Notification: Performance of FrontEnd - DAE generated: time 2.935e-06/0.006614, allocations: 0 / 1.003 GB, free: 4.734 MB / 0.9512 GB Notification: Performance of FrontEnd: time 1.112e-06/0.006615, allocations: 0 / 1.003 GB, free: 4.734 MB / 0.9512 GB Notification: Performance of Transformations before backend: time 4.789e-06/0.00662, allocations: 0 / 1.003 GB, free: 4.734 MB / 0.9512 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.0006685/0.007289, allocations: 339.8 kB / 1.003 GB, free: 4.367 MB / 0.9512 GB Notification: Performance of prepare preOptimizeDAE: time 4.043e-05/0.007329, allocations: 8.031 kB / 1.003 GB, free: 4.359 MB / 0.9512 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001117/0.007441, allocations: 16.88 kB / 1.003 GB, free: 4.344 MB / 0.9512 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001191/0.00756, allocations: 113.7 kB / 1.003 GB, free: 4.207 MB / 0.9512 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.359e-05/0.007583, allocations: 8.375 kB / 1.003 GB, free: 4.199 MB / 0.9512 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.089e-05/0.007614, allocations: 8.312 kB / 1.003 GB, free: 4.191 MB / 0.9512 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002368/0.007851, allocations: 86.16 kB / 1.003 GB, free: 4.102 MB / 0.9512 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.139e-05/0.007863, allocations: 192 / 1.003 GB, free: 4.102 MB / 0.9512 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.279e-05/0.007875, allocations: 384 / 1.003 GB, free: 4.102 MB / 0.9512 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.195e-05/0.007887, allocations: 16.05 kB / 1.003 GB, free: 4.086 MB / 0.9512 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001982/0.008085, allocations: 43.95 kB / 1.003 GB, free: 4.043 MB / 0.9512 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005614/0.008647, allocations: 260.4 kB / 1.004 GB, free: 3.758 MB / 0.9512 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002051/0.008852, allocations: 62.55 kB / 1.004 GB, free: 3.688 MB / 0.9512 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001164/0.008968, allocations: 36.89 kB / 1.004 GB, free: 3.648 MB / 0.9512 GB Notification: Performance of preOpt evalFunc (simulation): time 2.672e-05/0.008995, allocations: 0 / 1.004 GB, free: 3.648 MB / 0.9512 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003029/0.009298, allocations: 91.39 kB / 1.004 GB, free: 3.547 MB / 0.9512 GB Notification: Performance of pre-optimization done (n=8): time 1.643e-06/0.0093, allocations: 0 / 1.004 GB, free: 3.547 MB / 0.9512 GB Notification: Performance of matching and sorting (n=8): time 0.0005263/0.009826, allocations: 145.6 kB / 1.004 GB, free: 3.398 MB / 0.9512 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.333e-05/0.009889, allocations: 67.38 kB / 1.004 GB, free: 3.32 MB / 0.9512 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001194/0.01001, allocations: 117.8 kB / 1.004 GB, free: 3.195 MB / 0.9512 GB Notification: Performance of collectPreVariables (initialization): time 4.437e-05/0.01005, allocations: 33.7 kB / 1.004 GB, free: 3.156 MB / 0.9512 GB Notification: Performance of collectInitialEqns (initialization): time 8.691e-05/0.01014, allocations: 100 kB / 1.004 GB, free: 3.055 MB / 0.9512 GB Notification: Performance of collectInitialBindings (initialization): time 2.624e-05/0.01017, allocations: 15.91 kB / 1.004 GB, free: 3.039 MB / 0.9512 GB Notification: Performance of simplifyInitialFunctions (initialization): time 8.327e-05/0.01025, allocations: 37.7 kB / 1.004 GB, free: 2.996 MB / 0.9512 GB Notification: Performance of setup shared object (initialization): time 0.0001804/0.01043, allocations: 318.8 kB / 1.004 GB, free: 2.676 MB / 0.9512 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001994/0.01063, allocations: 81.66 kB / 1.005 GB, free: 2.59 MB / 0.9512 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000216/0.01085, allocations: 122.8 kB / 1.005 GB, free: 2.445 MB / 0.9512 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003077/0.01115, allocations: 146.8 kB / 1.005 GB, free: 2.277 MB / 0.9512 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.384e-06/0.01116, allocations: 4 kB / 1.005 GB, free: 2.273 MB / 0.9512 GB Notification: Performance of matching and sorting (n=13) (initialization): time 0.0005335/0.01169, allocations: 252.8 kB / 1.005 GB, free: 2.008 MB / 0.9512 GB Notification: Performance of prepare postOptimizeDAE: time 4.745e-05/0.01174, allocations: 33.7 kB / 1.005 GB, free: 1.969 MB / 0.9512 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.268e-06/0.01175, allocations: 3.984 kB / 1.005 GB, free: 1.965 MB / 0.9512 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.13e-05/0.01177, allocations: 4 kB / 1.005 GB, free: 1.961 MB / 0.9512 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001185/0.01189, allocations: 19.92 kB / 1.005 GB, free: 1.941 MB / 0.9512 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.903e-06/0.01189, allocations: 7.938 kB / 1.005 GB, free: 1.934 MB / 0.9512 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002231/0.01212, allocations: 36.06 kB / 1.005 GB, free: 1.898 MB / 0.9512 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.863e-05/0.01214, allocations: 12 kB / 1.005 GB, free: 1.887 MB / 0.9512 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.0001376/0.01228, allocations: 130.3 kB / 1.005 GB, free: 1.75 MB / 0.9512 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.719e-05/0.0123, allocations: 7.891 kB / 1.005 GB, free: 1.742 MB / 0.9512 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003438/0.01264, allocations: 122 kB / 1.005 GB, free: 1.617 MB / 0.9512 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.244e-06/0.01265, allocations: 4 kB / 1.005 GB, free: 1.613 MB / 0.9512 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.635e-06/0.01266, allocations: 0 / 1.005 GB, free: 1.613 MB / 0.9512 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.077e-06/0.01267, allocations: 3.984 kB / 1.005 GB, free: 1.609 MB / 0.9512 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004824/0.01315, allocations: 318.2 kB / 1.006 GB, free: 1.262 MB / 0.9512 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.743e-06/0.01315, allocations: 0 / 1.006 GB, free: 1.262 MB / 0.9512 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.649e-05/0.01322, allocations: 7.984 kB / 1.006 GB, free: 1.254 MB / 0.9512 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.699e-06/0.01322, allocations: 4 kB / 1.006 GB, free: 1.25 MB / 0.9512 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.177e-06/0.01323, allocations: 0 / 1.006 GB, free: 1.25 MB / 0.9512 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.878e-06/0.01323, allocations: 3.938 kB / 1.006 GB, free: 1.246 MB / 0.9512 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.223e-06/0.01324, allocations: 0 / 1.006 GB, free: 1.246 MB / 0.9512 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003442/0.01358, allocations: 239.8 kB / 1.006 GB, free: 0.9961 MB / 0.9512 GB Notification: Performance of postOpt removeConstants (simulation): time 1.309e-05/0.01359, allocations: 7.953 kB / 1.006 GB, free: 0.9883 MB / 0.9512 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.907e-05/0.01361, allocations: 4 kB / 1.006 GB, free: 0.9844 MB / 0.9512 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.065e-05/0.0137, allocations: 7.984 kB / 1.006 GB, free: 0.9766 MB / 0.9512 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.513e-05/0.01375, allocations: 4 kB / 1.006 GB, free: 0.9727 MB / 0.9512 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.516e-06/0.01376, allocations: 3.984 kB / 1.006 GB, free: 0.9688 MB / 0.9512 GB Notification: Performance of sorting global known variables: time 5.599e-05/0.01381, allocations: 87.28 kB / 1.006 GB, free: 0.8828 MB / 0.9512 GB Notification: Performance of sort global known variables: time 9e-08/0.01381, allocations: 4 kB / 1.006 GB, free: 0.8789 MB / 0.9512 GB Notification: Performance of remove unused functions: time 0.0002758/0.01409, allocations: 27.98 kB / 1.006 GB, free: 0.8516 MB / 0.9512 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.0001723/0.01426, allocations: 103.2 kB / 1.006 GB, free: 0.7383 MB / 0.9512 GB Notification: Performance of simCode: created initialization part: time 0.0004295/0.01469, allocations: 196.9 kB / 1.006 GB, free: 0.5273 MB / 0.9512 GB Notification: Performance of simCode: created event and clocks part: time 2.254e-06/0.01469, allocations: 0 / 1.006 GB, free: 0.5273 MB / 0.9512 GB Notification: Performance of simCode: created simulation system equations: time 0.0001273/0.01482, allocations: 35.97 kB / 1.006 GB, free: 0.4922 MB / 0.9512 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002975/0.01512, allocations: 15.92 kB / 1.006 GB, free: 488 kB / 0.9512 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004654/0.01558, allocations: 169.7 kB / 1.007 GB, free: 292 kB / 0.9512 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 7.619e-05/0.01566, allocations: 79.25 kB / 1.007 GB, free: 192 kB / 0.9512 GB Notification: Performance of simCode: alias equations: time 3.474e-05/0.01569, allocations: 11.92 kB / 1.007 GB, free: 180 kB / 0.9512 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.229e-05/0.01573, allocations: 16.5 kB / 1.007 GB, free: 164 kB / 0.9512 GB Notification: Performance of SimCode: time 4.21e-07/0.01573, allocations: 0 / 1.007 GB, free: 164 kB / 0.9512 GB Notification: Performance of Templates: time 0.004819/0.02055, allocations: 1.541 MB / 1.008 GB, free: 14.65 MB / 0.9669 GB " [Timeout remaining time 300] make -j1 -f Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Validation.TriggeredSampler.makefile [Timeout 300] (rm -f Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Validation.TriggeredSampler.pipe ; mkfifo Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Validation.TriggeredSampler.pipe ; head -c 1048576 < Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Validation.TriggeredSampler.pipe >> ../files/Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Validation.TriggeredSampler.sim & ./Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Validation.TriggeredSampler -abortSlowSimulation -alarm=800 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Validation.TriggeredSampler.pipe 2>&1) [Timeout 800] diffSimulationResults("Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Validation.TriggeredSampler_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Controls_OBC_CDL_Discrete_Validation_TriggeredSampler.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Validation.TriggeredSampler.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 300] "" [Timeout remaining time 300] Reference file matches [Calling sys.exit(0), Time elapsed: 8.514789372682571]