Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_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.001605/0.001605, 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.002175/0.002175, allocations: 223.4 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.509/1.509, allocations: 230.6 MB / 256.8 MB, free: 8.039 MB / 206.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 3.391/3.391, allocations: 0.505 GB / 0.8108 GB, free: 22.01 MB / 0.6231 GB " [Timeout remaining time 176] Using package Buildings with version 13.0.0 (/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.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_latest_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_latest_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.002155/0.002155, allocations: 66.91 kB / 1.178 GB, free: 16.86 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3403/0.3424, allocations: 180.2 MB / 1.354 GB, free: 7.941 MB / 1.045 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTrigger): time 0.002116/0.3445, allocations: 0.7519 MB / 1.355 GB, free: 7.191 MB / 1.045 GB Notification: Performance of NFInst.instExpressions: time 0.001572/0.3461, allocations: 1.116 MB / 1.356 GB, free: 6.062 MB / 1.045 GB Notification: Performance of NFInst.updateImplicitVariability: time 7.003e-05/0.3462, allocations: 7.875 kB / 1.356 GB, free: 6.055 MB / 1.045 GB Notification: Performance of NFTyping.typeComponents: time 3.216e-05/0.3462, allocations: 3.938 kB / 1.356 GB, free: 6.051 MB / 1.045 GB Notification: Performance of NFTyping.typeBindings: time 8.091e-05/0.3463, allocations: 11.88 kB / 1.356 GB, free: 6.039 MB / 1.045 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003528/0.3466, allocations: 51.88 kB / 1.356 GB, free: 5.988 MB / 1.045 GB Notification: Performance of NFFlatten.flatten: time 0.000155/0.3468, allocations: 67.78 kB / 1.356 GB, free: 5.922 MB / 1.045 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001094/0.3469, allocations: 16.17 kB / 1.356 GB, free: 5.902 MB / 1.045 GB Notification: Performance of NFEvalConstants.evaluate: time 9.476e-05/0.347, allocations: 39.84 kB / 1.356 GB, free: 5.863 MB / 1.045 GB Notification: Performance of NFSimplifyModel.simplify: time 6.984e-05/0.3471, allocations: 31.91 kB / 1.356 GB, free: 5.832 MB / 1.045 GB Notification: Performance of NFPackage.collectConstants: time 1.846e-05/0.3471, allocations: 4 kB / 1.356 GB, free: 5.828 MB / 1.045 GB Notification: Performance of NFFlatten.collectFunctions: time 7.17e-05/0.3472, allocations: 19.98 kB / 1.356 GB, free: 5.809 MB / 1.045 GB Notification: Performance of NFScalarize.scalarize: time 2.328e-05/0.3472, allocations: 15.92 kB / 1.356 GB, free: 5.793 MB / 1.045 GB Notification: Performance of NFVerifyModel.verify: time 5.148e-05/0.3472, allocations: 31.86 kB / 1.356 GB, free: 5.762 MB / 1.045 GB Notification: Performance of NFConvertDAE.convert: time 0.0001775/0.3474, allocations: 79.62 kB / 1.356 GB, free: 5.684 MB / 1.045 GB Notification: Performance of FrontEnd - DAE generated: time 3.587e-06/0.3474, allocations: 3.938 kB / 1.356 GB, free: 5.68 MB / 1.045 GB Notification: Performance of FrontEnd: time 3.266e-06/0.3474, allocations: 3.984 kB / 1.356 GB, free: 5.676 MB / 1.045 GB Notification: Performance of Transformations before backend: time 5.992e-06/0.3474, allocations: 0 / 1.356 GB, free: 5.676 MB / 1.045 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.0005635/0.348, allocations: 310 kB / 1.357 GB, free: 5.344 MB / 1.045 GB Notification: Performance of prepare preOptimizeDAE: time 4.26e-05/0.348, allocations: 12.03 kB / 1.357 GB, free: 5.332 MB / 1.045 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.818e-05/0.3481, allocations: 8.891 kB / 1.357 GB, free: 5.324 MB / 1.045 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001226/0.3482, allocations: 110.5 kB / 1.357 GB, free: 5.191 MB / 1.045 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.537e-05/0.3482, allocations: 4.375 kB / 1.357 GB, free: 5.188 MB / 1.045 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.577e-05/0.3482, allocations: 8.359 kB / 1.357 GB, free: 5.18 MB / 1.045 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002076/0.3484, allocations: 62.23 kB / 1.357 GB, free: 5.113 MB / 1.045 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.314e-05/0.3485, allocations: 11.88 kB / 1.357 GB, free: 5.102 MB / 1.045 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.259e-05/0.3485, allocations: 4 kB / 1.357 GB, free: 5.098 MB / 1.045 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.509e-06/0.3485, allocations: 0 / 1.357 GB, free: 5.098 MB / 1.045 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001772/0.3486, allocations: 43.95 kB / 1.357 GB, free: 5.055 MB / 1.045 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006717/0.3493, allocations: 295.7 kB / 1.357 GB, free: 4.723 MB / 1.045 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001753/0.3495, allocations: 54.59 kB / 1.357 GB, free: 4.66 MB / 1.045 GB Notification: Performance of preOpt resolveLoops (simulation): time 9.993e-05/0.3496, allocations: 28.95 kB / 1.357 GB, free: 4.629 MB / 1.045 GB Notification: Performance of preOpt evalFunc (simulation): time 2.311e-05/0.3496, allocations: 0 / 1.357 GB, free: 4.629 MB / 1.045 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002471/0.3499, allocations: 79.36 kB / 1.357 GB, free: 4.539 MB / 1.045 GB Notification: Performance of pre-optimization done (n=7): time 1.352e-06/0.3499, allocations: 0 / 1.357 GB, free: 4.539 MB / 1.045 GB Notification: Performance of matching and sorting (n=7): time 0.0004365/0.3503, allocations: 137.5 kB / 1.357 GB, free: 4.398 MB / 1.045 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.994e-05/0.3504, allocations: 51.41 kB / 1.357 GB, free: 4.336 MB / 1.045 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001209/0.3505, allocations: 129.7 kB / 1.358 GB, free: 4.199 MB / 1.045 GB Notification: Performance of collectPreVariables (initialization): time 2.313e-05/0.3505, allocations: 25.7 kB / 1.358 GB, free: 4.168 MB / 1.045 GB Notification: Performance of collectInitialEqns (initialization): time 6.467e-05/0.3506, allocations: 92.12 kB / 1.358 GB, free: 4.074 MB / 1.045 GB Notification: Performance of collectInitialBindings (initialization): time 2.459e-05/0.3506, allocations: 19.89 kB / 1.358 GB, free: 4.055 MB / 1.045 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.682e-05/0.3506, allocations: 33.7 kB / 1.358 GB, free: 4.016 MB / 1.045 GB Notification: Performance of setup shared object (initialization): time 0.0001406/0.3508, allocations: 318.8 kB / 1.358 GB, free: 3.695 MB / 1.045 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001151/0.3509, allocations: 31.92 kB / 1.358 GB, free: 3.664 MB / 1.045 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001472/0.351, allocations: 73.98 kB / 1.358 GB, free: 3.57 MB / 1.045 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002478/0.3513, allocations: 113.8 kB / 1.358 GB, free: 3.438 MB / 1.045 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.953e-06/0.3513, allocations: 0 / 1.358 GB, free: 3.438 MB / 1.045 GB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0003272/0.3516, allocations: 129.5 kB / 1.358 GB, free: 3.305 MB / 1.045 GB Notification: Performance of prepare postOptimizeDAE: time 1.751e-05/0.3516, allocations: 8 kB / 1.358 GB, free: 3.297 MB / 1.045 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.62e-06/0.3516, allocations: 0 / 1.358 GB, free: 3.297 MB / 1.045 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.648e-05/0.3517, allocations: 4 kB / 1.358 GB, free: 3.293 MB / 1.045 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001345/0.3518, allocations: 28.14 kB / 1.358 GB, free: 3.266 MB / 1.045 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.592e-06/0.3518, allocations: 0 / 1.358 GB, free: 3.266 MB / 1.045 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.414e-05/0.3519, allocations: 19.88 kB / 1.358 GB, free: 3.246 MB / 1.045 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.358e-05/0.3519, allocations: 4 kB / 1.358 GB, free: 3.242 MB / 1.045 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.000108/0.352, allocations: 125.7 kB / 1.359 GB, free: 3.109 MB / 1.045 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.41e-05/0.352, allocations: 4 kB / 1.359 GB, free: 3.105 MB / 1.045 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.807e-05/0.3521, allocations: 8.359 kB / 1.359 GB, free: 3.098 MB / 1.045 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.829e-06/0.3521, allocations: 3.984 kB / 1.359 GB, free: 3.094 MB / 1.045 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.759e-06/0.3521, allocations: 8 kB / 1.359 GB, free: 3.086 MB / 1.045 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.236e-06/0.3521, allocations: 0 / 1.359 GB, free: 3.086 MB / 1.045 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005113/0.3526, allocations: 345.8 kB / 1.359 GB, free: 2.699 MB / 1.045 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.623e-06/0.3526, allocations: 0 / 1.359 GB, free: 2.699 MB / 1.045 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.761e-05/0.3526, allocations: 15.98 kB / 1.359 GB, free: 2.684 MB / 1.045 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.775e-06/0.3526, allocations: 0 / 1.359 GB, free: 2.684 MB / 1.045 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.534e-06/0.3527, allocations: 0 / 1.359 GB, free: 2.684 MB / 1.045 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.058e-06/0.3527, allocations: 7.875 kB / 1.359 GB, free: 2.676 MB / 1.045 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.263e-06/0.3527, allocations: 4 kB / 1.359 GB, free: 2.672 MB / 1.045 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002987/0.353, allocations: 203.4 kB / 1.359 GB, free: 2.457 MB / 1.045 GB Notification: Performance of postOpt removeConstants (simulation): time 1.391e-05/0.353, allocations: 7.891 kB / 1.359 GB, free: 2.449 MB / 1.045 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.609e-05/0.353, allocations: 4 kB / 1.359 GB, free: 2.445 MB / 1.045 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001039/0.3531, allocations: 15.92 kB / 1.359 GB, free: 2.43 MB / 1.045 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.245e-05/0.3531, allocations: 7.984 kB / 1.359 GB, free: 2.422 MB / 1.045 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.694e-06/0.3531, allocations: 7.938 kB / 1.359 GB, free: 2.414 MB / 1.045 GB Notification: Performance of sorting global known variables: time 6.296e-05/0.3532, allocations: 91.27 kB / 1.359 GB, free: 2.324 MB / 1.045 GB Notification: Performance of sort global known variables: time 8e-08/0.3532, allocations: 0 / 1.359 GB, free: 2.324 MB / 1.045 GB Notification: Performance of remove unused functions: time 0.0002675/0.3535, allocations: 16 kB / 1.359 GB, free: 2.309 MB / 1.045 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.0001609/0.3536, allocations: 103.2 kB / 1.359 GB, free: 2.199 MB / 1.045 GB Notification: Performance of simCode: created initialization part: time 0.0002924/0.3539, allocations: 75.94 kB / 1.359 GB, free: 2.125 MB / 1.045 GB Notification: Performance of simCode: created event and clocks part: time 1.833e-06/0.3539, allocations: 7.938 kB / 1.359 GB, free: 2.117 MB / 1.045 GB Notification: Performance of simCode: created simulation system equations: time 0.0001139/0.354, allocations: 27.97 kB / 1.359 GB, free: 2.09 MB / 1.045 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002835/0.3543, allocations: 12 kB / 1.36 GB, free: 2.078 MB / 1.045 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004645/0.3548, allocations: 186.2 kB / 1.36 GB, free: 1.863 MB / 1.045 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003346/0.3551, allocations: 0.7005 MB / 1.36 GB, free: 1.137 MB / 1.045 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.862e-05/0.3552, allocations: 11.44 kB / 1.36 GB, free: 1.125 MB / 1.045 GB Notification: Performance of SimCode: time 4.51e-07/0.3552, allocations: 0 / 1.36 GB, free: 1.125 MB / 1.045 GB Notification: Performance of Templates: time 0.003158/0.3583, allocations: 1.048 MB / 1.361 GB, free: 84 kB / 1.045 GB " [Timeout remaining time 300] make -j1 -f Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTrigger.makefile [Timeout 300] (rm -f Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTrigger.pipe ; mkfifo Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTrigger.pipe ; head -c 1048576 < Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTrigger.pipe >> ../files/Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTrigger.sim & ./Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTrigger -abortSlowSimulation -alarm=800 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTrigger.pipe 2>&1) [Timeout 800] diffSimulationResults("Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTrigger_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Controls_OBC_CDL_Logical_Sources_Validation_SampleTrigger.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_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: 11.283483873994555]