Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_11_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTrigger.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.001723/0.001723, 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.002062/0.002062, allocations: 161.5 kB / 23.01 MB, free: 4.598 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.537/1.537, allocations: 177.2 MB / 203.4 MB, free: 8.969 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.702/2.702, allocations: 359.1 MB / 0.6044 GB, free: 14.86 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.Logical.Sources.Validation.SampleTrigger,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|samTri.y|triggeredSampler.u|triggeredSampler.y|samTri1.y|triggeredSampler1.u|triggeredSampler1.y",fileNamePrefix="Buildings_11_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTrigger") translateModel(Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTrigger,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|samTri.y|triggeredSampler.u|triggeredSampler.y|samTri1.y|triggeredSampler1.u|triggeredSampler1.y",fileNamePrefix="Buildings_11_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTrigger") [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.002139/0.002139, allocations: 71.88 kB / 0.9515 GB, free: 12.77 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3368/0.3389, allocations: 169.9 MB / 1.117 GB, free: 2.527 MB / 1.061 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTrigger): time 0.002146/0.3411, allocations: 0.7246 MB / 1.118 GB, free: 1.801 MB / 1.061 GB Notification: Performance of NFInst.instExpressions: time 0.001478/0.3425, allocations: 1.089 MB / 1.119 GB, free: 0.6992 MB / 1.061 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.024e-05/0.3426, allocations: 0 / 1.119 GB, free: 0.6992 MB / 1.061 GB Notification: Performance of NFTyping.typeComponents: time 4.007e-05/0.3426, allocations: 15.86 kB / 1.119 GB, free: 0.6836 MB / 1.061 GB Notification: Performance of NFTyping.typeBindings: time 7.765e-05/0.3427, allocations: 11.92 kB / 1.119 GB, free: 0.6719 MB / 1.061 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003184/0.343, allocations: 51.83 kB / 1.119 GB, free: 0.6211 MB / 1.061 GB Notification: Performance of NFFlatten.flatten: time 0.0001211/0.3432, allocations: 67.83 kB / 1.119 GB, free: 0.5547 MB / 1.061 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001051/0.3433, allocations: 16.12 kB / 1.119 GB, free: 0.5352 MB / 1.061 GB Notification: Performance of NFEvalConstants.evaluate: time 7.788e-05/0.3433, allocations: 35.8 kB / 1.119 GB, free: 0.5 MB / 1.061 GB Notification: Performance of NFSimplifyModel.simplify: time 7.225e-05/0.3434, allocations: 31.89 kB / 1.119 GB, free: 480 kB / 1.061 GB Notification: Performance of NFPackage.collectConstants: time 2.002e-05/0.3434, allocations: 8 kB / 1.119 GB, free: 472 kB / 1.061 GB Notification: Performance of NFFlatten.collectFunctions: time 6.036e-05/0.3435, allocations: 15.98 kB / 1.119 GB, free: 456 kB / 1.061 GB Notification: Performance of NFScalarize.scalarize: time 2.802e-05/0.3435, allocations: 15.92 kB / 1.119 GB, free: 440 kB / 1.061 GB Notification: Performance of NFVerifyModel.verify: time 5.406e-05/0.3436, allocations: 35.84 kB / 1.12 GB, free: 404 kB / 1.061 GB Notification: Performance of NFConvertDAE.convert: time 0.0001593/0.3437, allocations: 75.69 kB / 1.12 GB, free: 328 kB / 1.061 GB Notification: Performance of FrontEnd - DAE generated: time 3.637e-06/0.3437, allocations: 0 / 1.12 GB, free: 328 kB / 1.061 GB Notification: Performance of FrontEnd: time 1.863e-06/0.3437, allocations: 0 / 1.12 GB, free: 328 kB / 1.061 GB Notification: Performance of Transformations before backend: time 5.77e-06/0.3437, allocations: 0 / 1.12 GB, free: 328 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: 9 * Number of variables: 9 Notification: Performance of Generate backend data structure: time 0.0005773/0.3443, allocations: 302.1 kB / 1.12 GB, free: 15.99 MB / 1.076 GB Notification: Performance of prepare preOptimizeDAE: time 3.778e-05/0.3444, allocations: 11.97 kB / 1.12 GB, free: 15.98 MB / 1.076 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.725e-05/0.3444, allocations: 12.89 kB / 1.12 GB, free: 15.97 MB / 1.076 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001286/0.3445, allocations: 122.3 kB / 1.12 GB, free: 15.83 MB / 1.076 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.453e-05/0.3445, allocations: 4.375 kB / 1.12 GB, free: 15.82 MB / 1.076 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.739e-05/0.3446, allocations: 12.38 kB / 1.12 GB, free: 15.81 MB / 1.076 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002003/0.3448, allocations: 70.2 kB / 1.12 GB, free: 15.74 MB / 1.076 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.102e-05/0.3448, allocations: 3.938 kB / 1.12 GB, free: 15.73 MB / 1.076 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.035e-05/0.3448, allocations: 0 / 1.12 GB, free: 15.73 MB / 1.076 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.258e-06/0.3448, allocations: 0 / 1.12 GB, free: 15.73 MB / 1.076 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001762/0.345, allocations: 47.89 kB / 1.12 GB, free: 15.69 MB / 1.076 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006125/0.3456, allocations: 260.4 kB / 1.12 GB, free: 15.4 MB / 1.076 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001723/0.3457, allocations: 46.56 kB / 1.12 GB, free: 15.35 MB / 1.076 GB Notification: Performance of preOpt resolveLoops (simulation): time 9.809e-05/0.3458, allocations: 32.98 kB / 1.12 GB, free: 15.31 MB / 1.076 GB Notification: Performance of preOpt evalFunc (simulation): time 2.484e-05/0.3459, allocations: 7.938 kB / 1.12 GB, free: 15.3 MB / 1.076 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001884/0.3461, allocations: 71.38 kB / 1.121 GB, free: 15.22 MB / 1.076 GB Notification: Performance of pre-optimization done (n=7): time 1.242e-06/0.3461, allocations: 4 kB / 1.121 GB, free: 15.22 MB / 1.076 GB Notification: Performance of matching and sorting (n=7): time 0.0004295/0.3465, allocations: 133.6 kB / 1.121 GB, free: 15.08 MB / 1.076 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.073e-05/0.3465, allocations: 55.41 kB / 1.121 GB, free: 15.02 MB / 1.076 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001163/0.3467, allocations: 125.7 kB / 1.121 GB, free: 14.88 MB / 1.076 GB Notification: Performance of collectPreVariables (initialization): time 2.399e-05/0.3467, allocations: 29.7 kB / 1.121 GB, free: 14.85 MB / 1.076 GB Notification: Performance of collectInitialEqns (initialization): time 6.479e-05/0.3467, allocations: 96.08 kB / 1.121 GB, free: 14.75 MB / 1.076 GB Notification: Performance of collectInitialBindings (initialization): time 2.386e-05/0.3468, allocations: 15.84 kB / 1.121 GB, free: 14.73 MB / 1.076 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.799e-05/0.3468, allocations: 33.7 kB / 1.121 GB, free: 14.7 MB / 1.076 GB Notification: Performance of setup shared object (initialization): time 0.0001488/0.347, allocations: 318.8 kB / 1.121 GB, free: 14.38 MB / 1.076 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000108/0.3471, allocations: 27.98 kB / 1.121 GB, free: 14.35 MB / 1.076 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001529/0.3472, allocations: 77.98 kB / 1.121 GB, free: 14.25 MB / 1.076 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002318/0.3475, allocations: 101.9 kB / 1.122 GB, free: 14.13 MB / 1.076 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.164e-06/0.3475, allocations: 7.938 kB / 1.122 GB, free: 14.12 MB / 1.076 GB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0003051/0.3478, allocations: 129.5 kB / 1.122 GB, free: 13.99 MB / 1.076 GB Notification: Performance of prepare postOptimizeDAE: time 1.297e-05/0.3478, allocations: 8 kB / 1.122 GB, free: 13.98 MB / 1.076 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.048e-06/0.3478, allocations: 0 / 1.122 GB, free: 13.98 MB / 1.076 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.516e-05/0.3478, allocations: 4 kB / 1.122 GB, free: 13.98 MB / 1.076 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001256/0.3479, allocations: 20.2 kB / 1.122 GB, free: 13.96 MB / 1.076 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.12e-05/0.3479, allocations: 12.25 kB / 1.122 GB, free: 13.95 MB / 1.076 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.013e-05/0.348, allocations: 7.984 kB / 1.122 GB, free: 13.94 MB / 1.076 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.351e-05/0.348, allocations: 4 kB / 1.122 GB, free: 13.93 MB / 1.076 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 7 * Number of states: 0 () * Number of discrete variables: 8 (triggeredSampler1.y,$PRE.triggeredSampler1.y,triggeredSampler.y,$PRE.triggeredSampler.y,samTri.y,$whenCondition1,samTri1.y,$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): 11 * Array equations: 0 * Algorithm blocks: 0 * 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.0001069/0.3481, allocations: 128.4 kB / 1.122 GB, free: 13.8 MB / 1.076 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.261e-05/0.3482, allocations: 3.953 kB / 1.122 GB, free: 13.8 MB / 1.076 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.211e-05/0.3482, allocations: 12.44 kB / 1.122 GB, free: 13.79 MB / 1.076 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.523e-06/0.3482, allocations: 3.938 kB / 1.122 GB, free: 13.78 MB / 1.076 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.617e-06/0.3482, allocations: 0 / 1.122 GB, free: 13.78 MB / 1.076 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.282e-06/0.3482, allocations: 3.984 kB / 1.122 GB, free: 13.78 MB / 1.076 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004558/0.3487, allocations: 334 kB / 1.122 GB, free: 13.41 MB / 1.076 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.443e-06/0.3487, allocations: 0 / 1.122 GB, free: 13.41 MB / 1.076 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.261e-05/0.3487, allocations: 4 kB / 1.122 GB, free: 13.41 MB / 1.076 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.238e-06/0.3487, allocations: 3.984 kB / 1.122 GB, free: 13.41 MB / 1.076 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.818e-06/0.3487, allocations: 4 kB / 1.122 GB, free: 13.4 MB / 1.076 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.246e-06/0.3487, allocations: 4 kB / 1.122 GB, free: 13.4 MB / 1.076 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.62e-07/0.3487, allocations: 0 / 1.122 GB, free: 13.4 MB / 1.076 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003146/0.349, allocations: 211.3 kB / 1.122 GB, free: 13.18 MB / 1.076 GB Notification: Performance of postOpt removeConstants (simulation): time 1.44e-05/0.3491, allocations: 11.94 kB / 1.122 GB, free: 13.16 MB / 1.076 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.637e-05/0.3491, allocations: 4 kB / 1.122 GB, free: 13.16 MB / 1.076 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.118e-05/0.3492, allocations: 4 kB / 1.122 GB, free: 13.16 MB / 1.076 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.784e-05/0.3492, allocations: 3.984 kB / 1.122 GB, free: 13.15 MB / 1.076 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.719e-06/0.3492, allocations: 7.938 kB / 1.122 GB, free: 13.14 MB / 1.076 GB Notification: Performance of sorting global known variables: time 7.231e-05/0.3493, allocations: 95.27 kB / 1.123 GB, free: 13.05 MB / 1.076 GB Notification: Performance of sort global known variables: time 8e-08/0.3493, allocations: 0 / 1.123 GB, free: 13.05 MB / 1.076 GB Notification: Performance of remove unused functions: time 0.0002516/0.3495, allocations: 12 kB / 1.123 GB, free: 13.04 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 (samTri1.y,samTri.y,$whenCondition2,$whenCondition1,triggeredSampler.y,triggeredSampler1.y) * Number of discrete states: 0 () * 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.0001465/0.3497, allocations: 108.2 kB / 1.123 GB, free: 12.93 MB / 1.076 GB Notification: Performance of simCode: created initialization part: time 0.000288/0.35, allocations: 75.83 kB / 1.123 GB, free: 12.85 MB / 1.076 GB Notification: Performance of simCode: created event and clocks part: time 2.014e-06/0.35, allocations: 0 / 1.123 GB, free: 12.85 MB / 1.076 GB Notification: Performance of simCode: created simulation system equations: time 0.0001124/0.3501, allocations: 35.97 kB / 1.123 GB, free: 12.82 MB / 1.076 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002566/0.3503, allocations: 4.438 kB / 1.123 GB, free: 12.81 MB / 1.076 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000362/0.3507, allocations: 170.1 kB / 1.123 GB, free: 12.62 MB / 1.076 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 7.517e-05/0.3508, allocations: 79.25 kB / 1.123 GB, free: 12.52 MB / 1.076 GB Notification: Performance of simCode: alias equations: time 3.259e-05/0.3508, allocations: 7.984 kB / 1.123 GB, free: 12.51 MB / 1.076 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.538e-05/0.3508, allocations: 12.5 kB / 1.123 GB, free: 12.5 MB / 1.076 GB Notification: Performance of SimCode: time 3.01e-07/0.3508, allocations: 0 / 1.123 GB, free: 12.5 MB / 1.076 GB Notification: Performance of Templates: time 0.003816/0.3547, allocations: 1.017 MB / 1.124 GB, free: 11.5 MB / 1.076 GB " [Timeout remaining time 300] make -j1 -f Buildings_11_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTrigger.makefile [Timeout 300] (rm -f Buildings_11_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTrigger.pipe ; mkfifo Buildings_11_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTrigger.pipe ; head -c 1048576 < Buildings_11_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTrigger.pipe >> ../files/Buildings_11_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTrigger.sim & ./Buildings_11_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTrigger -abortSlowSimulation -alarm=400 -s ida -emit_protected -lv LOG_STATS > Buildings_11_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTrigger.pipe 2>&1) [Timeout 400] diffSimulationResults("Buildings_11_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTrigger_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_11.x/Buildings_Controls_OBC_CDL_Logical_Sources_Validation_SampleTrigger.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_11_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTrigger.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.870357593055815]