Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_12_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.001831/0.001831, allocations: 102.1 kB / 19.7 MB, free: 2.254 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.002282/0.002282, allocations: 221.2 kB / 23.01 MB, free: 4.609 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.485/1.485, allocations: 230.6 MB / 256.8 MB, free: 8.043 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.1-maint.12.x/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.1-maint.12.x/package.mo): time 3.108/3.108, allocations: 0.49 GB / 0.7958 GB, free: 33.54 MB / 0.6231 GB " [Timeout remaining time 177] Using package Buildings with version 12.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.1-maint.12.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_12_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_12_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.002061/0.002061, allocations: 67.66 kB / 1.155 GB, free: 25.46 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3198/0.3219, allocations: 176.1 MB / 1.327 GB, free: 1.445 MB / 1.014 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTrigger): time 0.001956/0.3238, allocations: 0.7548 MB / 1.328 GB, free: 0.6953 MB / 1.014 GB Notification: Performance of NFInst.instExpressions: time 0.001445/0.3253, allocations: 1.116 MB / 1.329 GB, free: 15.57 MB / 1.029 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.266e-05/0.3253, allocations: 0 / 1.329 GB, free: 15.57 MB / 1.029 GB Notification: Performance of NFTyping.typeComponents: time 3.532e-05/0.3253, allocations: 7.922 kB / 1.329 GB, free: 15.56 MB / 1.029 GB Notification: Performance of NFTyping.typeBindings: time 7.582e-05/0.3254, allocations: 11.88 kB / 1.329 GB, free: 15.55 MB / 1.029 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002917/0.3257, allocations: 51.83 kB / 1.329 GB, free: 15.5 MB / 1.029 GB Notification: Performance of NFFlatten.flatten: time 0.0001289/0.3258, allocations: 71.77 kB / 1.329 GB, free: 15.43 MB / 1.029 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001064/0.3259, allocations: 20.17 kB / 1.329 GB, free: 15.4 MB / 1.029 GB Notification: Performance of NFEvalConstants.evaluate: time 7.565e-05/0.326, allocations: 27.92 kB / 1.329 GB, free: 15.38 MB / 1.029 GB Notification: Performance of NFSimplifyModel.simplify: time 7.551e-05/0.3261, allocations: 35.84 kB / 1.329 GB, free: 15.34 MB / 1.029 GB Notification: Performance of NFPackage.collectConstants: time 1.632e-05/0.3261, allocations: 4 kB / 1.329 GB, free: 15.34 MB / 1.029 GB Notification: Performance of NFFlatten.collectFunctions: time 6.6e-05/0.3262, allocations: 23.98 kB / 1.329 GB, free: 15.31 MB / 1.029 GB Notification: Performance of NFScalarize.scalarize: time 2.396e-05/0.3262, allocations: 15.97 kB / 1.329 GB, free: 15.3 MB / 1.029 GB Notification: Performance of NFVerifyModel.verify: time 5.091e-05/0.3263, allocations: 35.8 kB / 1.329 GB, free: 15.26 MB / 1.029 GB Notification: Performance of NFConvertDAE.convert: time 0.0001566/0.3264, allocations: 87.56 kB / 1.329 GB, free: 15.18 MB / 1.029 GB Notification: Performance of FrontEnd - DAE generated: time 3.577e-06/0.3264, allocations: 0 / 1.329 GB, free: 15.18 MB / 1.029 GB Notification: Performance of FrontEnd: time 1.393e-06/0.3264, allocations: 0 / 1.329 GB, free: 15.18 MB / 1.029 GB Notification: Performance of Transformations before backend: time 5.34e-06/0.3264, allocations: 0 / 1.329 GB, free: 15.18 MB / 1.029 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.0005488/0.327, allocations: 306.1 kB / 1.33 GB, free: 14.85 MB / 1.029 GB Notification: Performance of prepare preOptimizeDAE: time 3.61e-05/0.327, allocations: 8.031 kB / 1.33 GB, free: 14.84 MB / 1.029 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.427e-05/0.327, allocations: 12.88 kB / 1.33 GB, free: 14.83 MB / 1.029 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001083/0.3272, allocations: 110.5 kB / 1.33 GB, free: 14.7 MB / 1.029 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.608e-05/0.3272, allocations: 8.375 kB / 1.33 GB, free: 14.69 MB / 1.029 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.248e-05/0.3272, allocations: 384 / 1.33 GB, free: 14.69 MB / 1.029 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002022/0.3274, allocations: 70.16 kB / 1.33 GB, free: 14.61 MB / 1.029 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.939e-06/0.3274, allocations: 3.938 kB / 1.33 GB, free: 14.61 MB / 1.029 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.051e-05/0.3274, allocations: 8 kB / 1.33 GB, free: 14.6 MB / 1.029 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.539e-06/0.3274, allocations: 0 / 1.33 GB, free: 14.6 MB / 1.029 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000172/0.3276, allocations: 43.95 kB / 1.33 GB, free: 14.56 MB / 1.029 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000642/0.3282, allocations: 299.6 kB / 1.33 GB, free: 14.22 MB / 1.029 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001696/0.3284, allocations: 54.55 kB / 1.33 GB, free: 14.16 MB / 1.029 GB Notification: Performance of preOpt resolveLoops (simulation): time 9.559e-05/0.3285, allocations: 28.97 kB / 1.33 GB, free: 14.13 MB / 1.029 GB Notification: Performance of preOpt evalFunc (simulation): time 2.64e-05/0.3285, allocations: 7.969 kB / 1.33 GB, free: 14.12 MB / 1.029 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002042/0.3287, allocations: 71.39 kB / 1.33 GB, free: 14.04 MB / 1.029 GB Notification: Performance of pre-optimization done (n=7): time 1.262e-06/0.3287, allocations: 96 / 1.33 GB, free: 14.04 MB / 1.029 GB Notification: Performance of matching and sorting (n=7): time 0.0004177/0.3291, allocations: 133.5 kB / 1.33 GB, free: 13.9 MB / 1.029 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.921e-05/0.3292, allocations: 55.41 kB / 1.331 GB, free: 13.84 MB / 1.029 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001131/0.3293, allocations: 125.8 kB / 1.331 GB, free: 13.7 MB / 1.029 GB Notification: Performance of collectPreVariables (initialization): time 2.082e-05/0.3293, allocations: 25.7 kB / 1.331 GB, free: 13.67 MB / 1.029 GB Notification: Performance of collectInitialEqns (initialization): time 6.11e-05/0.3294, allocations: 96.08 kB / 1.331 GB, free: 13.57 MB / 1.029 GB Notification: Performance of collectInitialBindings (initialization): time 2.233e-05/0.3294, allocations: 19.89 kB / 1.331 GB, free: 13.55 MB / 1.029 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.171e-05/0.3295, allocations: 29.7 kB / 1.331 GB, free: 13.52 MB / 1.029 GB Notification: Performance of setup shared object (initialization): time 0.000145/0.3296, allocations: 326.8 kB / 1.331 GB, free: 13.19 MB / 1.029 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001092/0.3297, allocations: 27.97 kB / 1.331 GB, free: 13.16 MB / 1.029 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001348/0.3298, allocations: 73.92 kB / 1.331 GB, free: 13.07 MB / 1.029 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000243/0.3301, allocations: 105.9 kB / 1.331 GB, free: 12.95 MB / 1.029 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.013e-06/0.3301, allocations: 4 kB / 1.331 GB, free: 12.94 MB / 1.029 GB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0003029/0.3304, allocations: 129.5 kB / 1.331 GB, free: 12.81 MB / 1.029 GB Notification: Performance of prepare postOptimizeDAE: time 1.484e-05/0.3304, allocations: 8 kB / 1.331 GB, free: 12.8 MB / 1.029 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.168e-06/0.3304, allocations: 0 / 1.331 GB, free: 12.8 MB / 1.029 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.567e-05/0.3304, allocations: 7.938 kB / 1.331 GB, free: 12.79 MB / 1.029 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001243/0.3306, allocations: 20.19 kB / 1.331 GB, free: 12.77 MB / 1.029 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.48e-06/0.3306, allocations: 4 kB / 1.331 GB, free: 12.77 MB / 1.029 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.664e-05/0.3306, allocations: 11.94 kB / 1.331 GB, free: 12.76 MB / 1.029 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.514e-05/0.3307, allocations: 7.984 kB / 1.331 GB, free: 12.75 MB / 1.029 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 9.684e-05/0.3308, allocations: 126.2 kB / 1.332 GB, free: 12.62 MB / 1.029 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.644e-05/0.3308, allocations: 7.953 kB / 1.332 GB, free: 12.61 MB / 1.029 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.646e-05/0.3308, allocations: 8.375 kB / 1.332 GB, free: 12.6 MB / 1.029 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.667e-06/0.3308, allocations: 4 kB / 1.332 GB, free: 12.59 MB / 1.029 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.05e-06/0.3308, allocations: 4 kB / 1.332 GB, free: 12.59 MB / 1.029 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.076e-06/0.3308, allocations: 4 kB / 1.332 GB, free: 12.59 MB / 1.029 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004734/0.3313, allocations: 345.4 kB / 1.332 GB, free: 12.2 MB / 1.029 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.547e-06/0.3313, allocations: 4 kB / 1.332 GB, free: 12.2 MB / 1.029 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.335e-05/0.3313, allocations: 7.984 kB / 1.332 GB, free: 12.19 MB / 1.029 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.794e-06/0.3313, allocations: 3.938 kB / 1.332 GB, free: 12.18 MB / 1.029 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.835e-06/0.3314, allocations: 0 / 1.332 GB, free: 12.18 MB / 1.029 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.889e-06/0.3314, allocations: 3.938 kB / 1.332 GB, free: 12.18 MB / 1.029 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.545e-06/0.3314, allocations: 8 kB / 1.332 GB, free: 12.17 MB / 1.029 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002983/0.3317, allocations: 195.5 kB / 1.332 GB, free: 11.96 MB / 1.029 GB Notification: Performance of postOpt removeConstants (simulation): time 1.397e-05/0.3317, allocations: 11.89 kB / 1.332 GB, free: 11.95 MB / 1.029 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.76e-05/0.3317, allocations: 0 / 1.332 GB, free: 11.95 MB / 1.029 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001002/0.3318, allocations: 19.86 kB / 1.332 GB, free: 11.93 MB / 1.029 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.434e-05/0.3318, allocations: 7.922 kB / 1.332 GB, free: 11.93 MB / 1.029 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.344e-06/0.3318, allocations: 8 kB / 1.332 GB, free: 11.92 MB / 1.029 GB Notification: Performance of sorting global known variables: time 5.797e-05/0.3319, allocations: 91.92 kB / 1.332 GB, free: 11.83 MB / 1.029 GB Notification: Performance of sort global known variables: time 7e-08/0.3319, allocations: 0 / 1.332 GB, free: 11.83 MB / 1.029 GB Notification: Performance of remove unused functions: time 0.0002569/0.3321, allocations: 16 kB / 1.332 GB, free: 11.81 MB / 1.029 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.0001453/0.3323, allocations: 107.5 kB / 1.332 GB, free: 11.7 MB / 1.029 GB Notification: Performance of simCode: created initialization part: time 0.000275/0.3326, allocations: 80.06 kB / 1.333 GB, free: 11.62 MB / 1.029 GB Notification: Performance of simCode: created event and clocks part: time 1.593e-06/0.3326, allocations: 0 / 1.333 GB, free: 11.62 MB / 1.029 GB Notification: Performance of simCode: created simulation system equations: time 0.0001173/0.3327, allocations: 35.92 kB / 1.333 GB, free: 11.59 MB / 1.029 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002603/0.3329, allocations: 7.984 kB / 1.333 GB, free: 11.58 MB / 1.029 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003903/0.3333, allocations: 194.1 kB / 1.333 GB, free: 11.36 MB / 1.029 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003102/0.3336, allocations: 0.6926 MB / 1.333 GB, free: 10.64 MB / 1.029 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.634e-05/0.3337, allocations: 11.44 kB / 1.333 GB, free: 10.62 MB / 1.029 GB Notification: Performance of SimCode: time 3.11e-07/0.3337, allocations: 0 / 1.333 GB, free: 10.62 MB / 1.029 GB Notification: Performance of Templates: time 0.002738/0.3364, allocations: 1.042 MB / 1.334 GB, free: 9.59 MB / 1.029 GB " [Timeout remaining time 300] make -j1 -f Buildings_12_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTrigger.makefile [Timeout 300] (rm -f Buildings_12_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTrigger.pipe ; mkfifo Buildings_12_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTrigger.pipe ; head -c 1048576 < Buildings_12_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTrigger.pipe >> ../files/Buildings_12_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTrigger.sim & ./Buildings_12_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTrigger -abortSlowSimulation -alarm=400 -emit_protected -lv LOG_STATS > Buildings_12_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTrigger.pipe 2>&1) [Timeout 400] diffSimulationResults("Buildings_12_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTrigger_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_12.x/Buildings_Controls_OBC_CDL_Logical_Sources_Validation_SampleTrigger.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_12_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTrigger.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 300] "" [Timeout remaining time 300] "" Variables in the reference:time,samTri.y,triggeredSampler.u,triggeredSampler.y,samTri1.y,triggeredSampler1.u,triggeredSampler1.y Variables in the result:samTri.y,samTri1.y,time,triggeredSampler.u,triggeredSampler.y,triggeredSampler1.u,triggeredSampler1.y [Calling sys.exit(0), Time elapsed: 10.836732206022134]