Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_11_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.001551/0.001551, allocations: 79.73 kB / 19.76 MB, free: 1.871 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.00194/0.00194, allocations: 155.8 kB / 23.01 MB, free: 4.602 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.551/1.551, allocations: 177.2 MB / 203.4 MB, free: 8.945 MB / 190.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.1-maint.11.x/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.1-maint.11.x/package.mo): time 2.633/2.633, allocations: 359.1 MB / 0.6044 GB, free: 14.91 MB / 0.5762 GB " [Timeout remaining time 177] Using package Buildings with version 11.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.1-maint.11.x/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_11_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_11_Buildings.Controls.OBC.CDL.Discrete.Validation.TriggeredSampler") [Timeout 300] "Notification: Buildings requested package Modelica of version 4.0.0. Modelica 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.002436/0.002436, allocations: 63.89 kB / 0.9515 GB, free: 12.86 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3613/0.3637, allocations: 169.9 MB / 1.117 GB, free: 2.613 MB / 1.061 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Discrete.Validation.TriggeredSampler): time 0.002335/0.3661, allocations: 0.7364 MB / 1.118 GB, free: 1.875 MB / 1.061 GB Notification: Performance of NFInst.instExpressions: time 0.001824/0.3679, allocations: 1.187 MB / 1.119 GB, free: 0.6758 MB / 1.061 GB Notification: Performance of NFInst.updateImplicitVariability: time 6.169e-05/0.3679, allocations: 0 / 1.119 GB, free: 0.6758 MB / 1.061 GB Notification: Performance of NFTyping.typeComponents: time 3.535e-05/0.368, allocations: 3.938 kB / 1.119 GB, free: 0.6719 MB / 1.061 GB Notification: Performance of NFTyping.typeBindings: time 7.904e-05/0.3681, allocations: 11.86 kB / 1.119 GB, free: 0.6602 MB / 1.061 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005636/0.3686, allocations: 138.9 kB / 1.119 GB, free: 0.5273 MB / 1.061 GB Notification: Performance of NFFlatten.flatten: time 0.0002229/0.3688, allocations: 131.8 kB / 1.12 GB, free: 408 kB / 1.061 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001019/0.3689, allocations: 16.12 kB / 1.12 GB, free: 388 kB / 1.061 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001171/0.3691, allocations: 51.84 kB / 1.12 GB, free: 336 kB / 1.061 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001172/0.3692, allocations: 43.86 kB / 1.12 GB, free: 292 kB / 1.061 GB Notification: Performance of NFPackage.collectConstants: time 3.605e-05/0.3692, allocations: 12 kB / 1.12 GB, free: 280 kB / 1.061 GB Notification: Performance of NFFlatten.collectFunctions: time 8.537e-05/0.3693, allocations: 31.92 kB / 1.12 GB, free: 248 kB / 1.061 GB Notification: Performance of NFScalarize.scalarize: time 2.828e-05/0.3693, allocations: 11.94 kB / 1.12 GB, free: 236 kB / 1.061 GB Notification: Performance of NFVerifyModel.verify: time 7.58e-05/0.3694, allocations: 43.84 kB / 1.12 GB, free: 192 kB / 1.061 GB Notification: Performance of NFConvertDAE.convert: time 0.0002958/0.3697, allocations: 127.6 kB / 1.12 GB, free: 64 kB / 1.061 GB Notification: Performance of FrontEnd - DAE generated: time 3.326e-06/0.3697, allocations: 0 / 1.12 GB, free: 64 kB / 1.061 GB Notification: Performance of FrontEnd: time 1.192e-06/0.3697, allocations: 4 kB / 1.12 GB, free: 60 kB / 1.061 GB Notification: Performance of Transformations before backend: time 1.018e-05/0.3697, allocations: 0 / 1.12 GB, free: 60 kB / 1.061 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.0006526/0.3704, allocations: 343.8 kB / 1.12 GB, free: 15.69 MB / 1.076 GB Notification: Performance of prepare preOptimizeDAE: time 3.341e-05/0.3704, allocations: 8.031 kB / 1.12 GB, free: 15.68 MB / 1.076 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001022/0.3705, allocations: 16.83 kB / 1.12 GB, free: 15.66 MB / 1.076 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001222/0.3706, allocations: 114.4 kB / 1.12 GB, free: 15.53 MB / 1.076 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.963e-05/0.3706, allocations: 12.31 kB / 1.12 GB, free: 15.52 MB / 1.076 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.12e-05/0.3707, allocations: 12.36 kB / 1.12 GB, free: 15.5 MB / 1.076 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002218/0.3709, allocations: 70.2 kB / 1.12 GB, free: 15.43 MB / 1.076 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.688e-06/0.3709, allocations: 7.938 kB / 1.12 GB, free: 15.42 MB / 1.076 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.388e-05/0.3709, allocations: 8 kB / 1.12 GB, free: 15.41 MB / 1.076 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.458e-06/0.3709, allocations: 0 / 1.12 GB, free: 15.41 MB / 1.076 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000206/0.3711, allocations: 43.95 kB / 1.121 GB, free: 15.37 MB / 1.076 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005017/0.3716, allocations: 268.3 kB / 1.121 GB, free: 15.08 MB / 1.076 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001815/0.3718, allocations: 54.55 kB / 1.121 GB, free: 15.02 MB / 1.076 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001069/0.3719, allocations: 36.91 kB / 1.121 GB, free: 14.98 MB / 1.076 GB Notification: Performance of preOpt evalFunc (simulation): time 1.54e-05/0.3719, allocations: 0 / 1.121 GB, free: 14.98 MB / 1.076 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002664/0.3722, allocations: 95.38 kB / 1.121 GB, free: 14.87 MB / 1.076 GB Notification: Performance of pre-optimization done (n=8): time 1.202e-06/0.3722, allocations: 0 / 1.121 GB, free: 14.87 MB / 1.076 GB Notification: Performance of matching and sorting (n=8): time 0.0004849/0.3727, allocations: 149.5 kB / 1.121 GB, free: 14.72 MB / 1.076 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.955e-05/0.3727, allocations: 55.41 kB / 1.121 GB, free: 14.65 MB / 1.076 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001045/0.3728, allocations: 125.8 kB / 1.121 GB, free: 14.52 MB / 1.076 GB Notification: Performance of collectPreVariables (initialization): time 3.077e-05/0.3729, allocations: 29.7 kB / 1.121 GB, free: 14.48 MB / 1.076 GB Notification: Performance of collectInitialEqns (initialization): time 8.142e-05/0.373, allocations: 104 kB / 1.121 GB, free: 14.38 MB / 1.076 GB Notification: Performance of collectInitialBindings (initialization): time 2.97e-05/0.373, allocations: 27.78 kB / 1.121 GB, free: 14.35 MB / 1.076 GB Notification: Performance of simplifyInitialFunctions (initialization): time 8.884e-05/0.3731, allocations: 41.69 kB / 1.121 GB, free: 14.3 MB / 1.076 GB Notification: Performance of setup shared object (initialization): time 0.0001645/0.3732, allocations: 318.8 kB / 1.122 GB, free: 13.98 MB / 1.076 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002011/0.3734, allocations: 81.66 kB / 1.122 GB, free: 13.9 MB / 1.076 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002205/0.3737, allocations: 118.8 kB / 1.122 GB, free: 13.76 MB / 1.076 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003266/0.374, allocations: 154.7 kB / 1.122 GB, free: 13.58 MB / 1.076 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.246e-06/0.374, allocations: 0 / 1.122 GB, free: 13.58 MB / 1.076 GB Notification: Performance of matching and sorting (n=13) (initialization): time 0.0005464/0.3745, allocations: 249 kB / 1.122 GB, free: 13.32 MB / 1.076 GB Notification: Performance of prepare postOptimizeDAE: time 5.432e-05/0.3746, allocations: 37.69 kB / 1.122 GB, free: 13.28 MB / 1.076 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.045e-05/0.3746, allocations: 4 kB / 1.122 GB, free: 13.27 MB / 1.076 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.484e-05/0.3746, allocations: 0 / 1.122 GB, free: 13.27 MB / 1.076 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001103/0.3747, allocations: 19.92 kB / 1.122 GB, free: 13.25 MB / 1.076 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.522e-06/0.3747, allocations: 0 / 1.122 GB, free: 13.25 MB / 1.076 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002221/0.375, allocations: 31.97 kB / 1.122 GB, free: 13.22 MB / 1.076 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.991e-05/0.375, allocations: 11.98 kB / 1.122 GB, free: 13.21 MB / 1.076 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.0001217/0.3751, allocations: 129.8 kB / 1.123 GB, free: 13.07 MB / 1.076 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.757e-05/0.3751, allocations: 11.89 kB / 1.123 GB, free: 13.06 MB / 1.076 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003522/0.3755, allocations: 130 kB / 1.123 GB, free: 12.93 MB / 1.076 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.234e-06/0.3755, allocations: 0 / 1.123 GB, free: 12.93 MB / 1.076 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.376e-06/0.3755, allocations: 0 / 1.123 GB, free: 12.93 MB / 1.076 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.136e-06/0.3755, allocations: 3.938 kB / 1.123 GB, free: 12.93 MB / 1.076 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004821/0.376, allocations: 318.1 kB / 1.123 GB, free: 12.58 MB / 1.076 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.593e-06/0.376, allocations: 4 kB / 1.123 GB, free: 12.57 MB / 1.076 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.371e-05/0.376, allocations: 11.94 kB / 1.123 GB, free: 12.56 MB / 1.076 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.955e-06/0.376, allocations: 0 / 1.123 GB, free: 12.56 MB / 1.076 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.131e-05/0.376, allocations: 3.984 kB / 1.123 GB, free: 12.56 MB / 1.076 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.743e-06/0.376, allocations: 0 / 1.123 GB, free: 12.56 MB / 1.076 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.81e-07/0.376, allocations: 0 / 1.123 GB, free: 12.56 MB / 1.076 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004274/0.3765, allocations: 219.4 kB / 1.123 GB, free: 12.33 MB / 1.076 GB Notification: Performance of postOpt removeConstants (simulation): time 1.623e-05/0.3765, allocations: 7.953 kB / 1.123 GB, free: 12.32 MB / 1.076 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.89e-05/0.3765, allocations: 8 kB / 1.123 GB, free: 12.31 MB / 1.076 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.158e-05/0.3766, allocations: 7.984 kB / 1.123 GB, free: 12.3 MB / 1.076 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.419e-05/0.3766, allocations: 7.984 kB / 1.123 GB, free: 12.3 MB / 1.076 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.508e-06/0.3767, allocations: 4 kB / 1.123 GB, free: 12.29 MB / 1.076 GB Notification: Performance of sorting global known variables: time 6.764e-05/0.3767, allocations: 95.2 kB / 1.123 GB, free: 12.2 MB / 1.076 GB Notification: Performance of sort global known variables: time 8e-08/0.3767, allocations: 0 / 1.123 GB, free: 12.2 MB / 1.076 GB Notification: Performance of remove unused functions: time 0.0002869/0.377, allocations: 24 kB / 1.123 GB, free: 12.18 MB / 1.076 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.000161/0.3772, allocations: 111.1 kB / 1.123 GB, free: 12.06 MB / 1.076 GB Notification: Performance of simCode: created initialization part: time 0.0004555/0.3776, allocations: 197 kB / 1.124 GB, free: 11.85 MB / 1.076 GB Notification: Performance of simCode: created event and clocks part: time 2.685e-06/0.3776, allocations: 0 / 1.124 GB, free: 11.85 MB / 1.076 GB Notification: Performance of simCode: created simulation system equations: time 0.0001357/0.3778, allocations: 39.97 kB / 1.124 GB, free: 11.81 MB / 1.076 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003121/0.3781, allocations: 8 kB / 1.124 GB, free: 11.8 MB / 1.076 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004734/0.3786, allocations: 183.1 kB / 1.124 GB, free: 11.59 MB / 1.076 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 8.587e-05/0.3786, allocations: 83.58 kB / 1.124 GB, free: 11.49 MB / 1.076 GB Notification: Performance of simCode: alias equations: time 3.28e-05/0.3787, allocations: 4 kB / 1.124 GB, free: 11.49 MB / 1.076 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.105e-05/0.3787, allocations: 12.5 kB / 1.124 GB, free: 11.48 MB / 1.076 GB Notification: Performance of SimCode: time 4.5e-07/0.3787, allocations: 0 / 1.124 GB, free: 11.48 MB / 1.076 GB Notification: Performance of Templates: time 0.005334/0.384, allocations: 1.559 MB / 1.126 GB, free: 9.953 MB / 1.076 GB " [Timeout remaining time 300] make -j1 -f Buildings_11_Buildings.Controls.OBC.CDL.Discrete.Validation.TriggeredSampler.makefile [Timeout 300] (rm -f Buildings_11_Buildings.Controls.OBC.CDL.Discrete.Validation.TriggeredSampler.pipe ; mkfifo Buildings_11_Buildings.Controls.OBC.CDL.Discrete.Validation.TriggeredSampler.pipe ; head -c 1048576 < Buildings_11_Buildings.Controls.OBC.CDL.Discrete.Validation.TriggeredSampler.pipe >> ../files/Buildings_11_Buildings.Controls.OBC.CDL.Discrete.Validation.TriggeredSampler.sim & ./Buildings_11_Buildings.Controls.OBC.CDL.Discrete.Validation.TriggeredSampler -abortSlowSimulation -alarm=400 -s ida -emit_protected -lv LOG_STATS > Buildings_11_Buildings.Controls.OBC.CDL.Discrete.Validation.TriggeredSampler.pipe 2>&1) [Timeout 400] diffSimulationResults("Buildings_11_Buildings.Controls.OBC.CDL.Discrete.Validation.TriggeredSampler_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_11.x/Buildings_Controls_OBC_CDL_Discrete_Validation_TriggeredSampler.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_11_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.679046456003562]