Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTriggerPositiveStartTime.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.00158/0.00158, allocations: 110.2 kB / 18.93 MB, free: 2.945 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.00233/0.00233, allocations: 192 kB / 22.23 MB, free: 5.16 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.537/1.537, allocations: 225.6 MB / 251 MB, free: 13 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.1-master/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.1-master/package.mo): time 3.411/3.411, allocations: 0.4893 GB / 0.7884 GB, free: 33.21 MB / 0.6231 GB " [Timeout remaining time 176] Using package Buildings with version 12.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.1-master/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: translateModel(Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTriggerPositiveStartTime,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.SampleTriggerPositiveStartTime") translateModel(Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTriggerPositiveStartTime,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.SampleTriggerPositiveStartTime") [Timeout 300] "Notification: Performance of FrontEnd - loaded program: time 0.002101/0.002101, allocations: 73.03 kB / 1.145 GB, free: 30.75 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4542/0.4563, allocations: 174.9 MB / 1.316 GB, free: 9.727 MB / 1.014 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTriggerPositiveStartTime): time 0.003063/0.4594, allocations: 0.7635 MB / 1.317 GB, free: 8.965 MB / 1.014 GB Notification: Performance of NFInst.instExpressions: time 0.001899/0.4613, allocations: 1.077 MB / 1.318 GB, free: 7.875 MB / 1.014 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.858e-05/0.4613, allocations: 0 / 1.318 GB, free: 7.875 MB / 1.014 GB Notification: Performance of NFTyping.typeComponents: time 4.138e-05/0.4614, allocations: 7.875 kB / 1.318 GB, free: 7.867 MB / 1.014 GB Notification: Performance of NFTyping.typeBindings: time 9.376e-05/0.4615, allocations: 19.84 kB / 1.318 GB, free: 7.848 MB / 1.014 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003488/0.4618, allocations: 46.91 kB / 1.318 GB, free: 7.805 MB / 1.014 GB Notification: Performance of NFFlatten.flatten: time 0.0001649/0.462, allocations: 71.77 kB / 1.318 GB, free: 7.734 MB / 1.014 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001649/0.4621, allocations: 24.17 kB / 1.318 GB, free: 7.707 MB / 1.014 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001193/0.4623, allocations: 31.86 kB / 1.318 GB, free: 7.676 MB / 1.014 GB Notification: Performance of NFSimplifyModel.simplify: time 9.04e-05/0.4624, allocations: 31.89 kB / 1.318 GB, free: 7.645 MB / 1.014 GB Notification: Performance of NFPackage.collectConstants: time 2.245e-05/0.4624, allocations: 4 kB / 1.318 GB, free: 7.641 MB / 1.014 GB Notification: Performance of NFFlatten.collectFunctions: time 8.427e-05/0.4625, allocations: 23.98 kB / 1.318 GB, free: 7.617 MB / 1.014 GB Notification: Performance of NFScalarize.scalarize: time 4.634e-05/0.4625, allocations: 15.92 kB / 1.318 GB, free: 7.602 MB / 1.014 GB Notification: Performance of NFVerifyModel.verify: time 5.932e-05/0.4626, allocations: 27.88 kB / 1.318 GB, free: 7.574 MB / 1.014 GB Notification: Performance of NFConvertDAE.convert: time 0.0002369/0.4628, allocations: 87.61 kB / 1.318 GB, free: 7.488 MB / 1.014 GB Notification: Performance of FrontEnd - DAE generated: time 6.382e-06/0.4628, allocations: 0 / 1.318 GB, free: 7.488 MB / 1.014 GB Notification: Performance of FrontEnd: time 1.703e-06/0.4628, allocations: 0 / 1.318 GB, free: 7.488 MB / 1.014 GB Notification: Performance of Transformations before backend: time 9.618e-06/0.4628, allocations: 0 / 1.318 GB, free: 7.488 MB / 1.014 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.0007305/0.4636, allocations: 306 kB / 1.319 GB, free: 7.16 MB / 1.014 GB Notification: Performance of prepare preOptimizeDAE: time 5.294e-05/0.4636, allocations: 11.97 kB / 1.319 GB, free: 7.148 MB / 1.014 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.357e-05/0.4637, allocations: 8.891 kB / 1.319 GB, free: 7.141 MB / 1.014 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001893/0.4639, allocations: 126.5 kB / 1.319 GB, free: 6.992 MB / 1.014 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.272e-05/0.4639, allocations: 4.375 kB / 1.319 GB, free: 6.988 MB / 1.014 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.518e-05/0.4639, allocations: 4.375 kB / 1.319 GB, free: 6.984 MB / 1.014 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002716/0.4642, allocations: 62.23 kB / 1.319 GB, free: 6.918 MB / 1.014 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.514e-05/0.4642, allocations: 7.938 kB / 1.319 GB, free: 6.91 MB / 1.014 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.329e-05/0.4642, allocations: 4 kB / 1.319 GB, free: 6.906 MB / 1.014 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.025e-06/0.4642, allocations: 7.922 kB / 1.319 GB, free: 6.898 MB / 1.014 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001848/0.4644, allocations: 43.91 kB / 1.319 GB, free: 6.855 MB / 1.014 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007341/0.4651, allocations: 291.7 kB / 1.319 GB, free: 6.527 MB / 1.014 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001962/0.4653, allocations: 62.58 kB / 1.319 GB, free: 6.457 MB / 1.014 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001345/0.4655, allocations: 24.97 kB / 1.319 GB, free: 6.43 MB / 1.014 GB Notification: Performance of preOpt evalFunc (simulation): time 2.787e-05/0.4655, allocations: 4 kB / 1.319 GB, free: 6.426 MB / 1.014 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002569/0.4657, allocations: 71.38 kB / 1.319 GB, free: 6.344 MB / 1.014 GB Notification: Performance of pre-optimization done (n=7): time 3.707e-06/0.4657, allocations: 4 kB / 1.319 GB, free: 6.34 MB / 1.014 GB Notification: Performance of matching and sorting (n=7): time 0.0004782/0.4662, allocations: 137.5 kB / 1.319 GB, free: 6.199 MB / 1.014 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.691e-05/0.4663, allocations: 51.41 kB / 1.319 GB, free: 6.137 MB / 1.014 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001254/0.4664, allocations: 121.8 kB / 1.32 GB, free: 6.008 MB / 1.014 GB Notification: Performance of collectPreVariables (initialization): time 2.537e-05/0.4664, allocations: 29.7 kB / 1.32 GB, free: 5.973 MB / 1.014 GB Notification: Performance of collectInitialEqns (initialization): time 8.142e-05/0.4665, allocations: 92.09 kB / 1.32 GB, free: 5.879 MB / 1.014 GB Notification: Performance of collectInitialBindings (initialization): time 2.226e-05/0.4665, allocations: 11.91 kB / 1.32 GB, free: 5.867 MB / 1.014 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.855e-05/0.4666, allocations: 33.7 kB / 1.32 GB, free: 5.828 MB / 1.014 GB Notification: Performance of setup shared object (initialization): time 0.0001641/0.4667, allocations: 326.8 kB / 1.32 GB, free: 5.5 MB / 1.014 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001236/0.4669, allocations: 27.97 kB / 1.32 GB, free: 5.473 MB / 1.014 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001549/0.467, allocations: 73.92 kB / 1.32 GB, free: 5.379 MB / 1.014 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003207/0.4673, allocations: 113.9 kB / 1.32 GB, free: 5.246 MB / 1.014 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.184e-06/0.4673, allocations: 0 / 1.32 GB, free: 5.246 MB / 1.014 GB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0003296/0.4677, allocations: 133.5 kB / 1.32 GB, free: 5.109 MB / 1.014 GB Notification: Performance of prepare postOptimizeDAE: time 1.964e-05/0.4677, allocations: 8 kB / 1.32 GB, free: 5.102 MB / 1.014 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.803e-06/0.4677, allocations: 0 / 1.32 GB, free: 5.102 MB / 1.014 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.022e-05/0.4677, allocations: 4.219 kB / 1.32 GB, free: 5.098 MB / 1.014 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001305/0.4679, allocations: 23.92 kB / 1.32 GB, free: 5.074 MB / 1.014 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.713e-06/0.4679, allocations: 0 / 1.32 GB, free: 5.074 MB / 1.014 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.399e-05/0.4679, allocations: 15.92 kB / 1.32 GB, free: 5.059 MB / 1.014 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.737e-05/0.468, allocations: 8 kB / 1.32 GB, free: 5.051 MB / 1.014 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.0001205/0.4681, allocations: 118.7 kB / 1.32 GB, free: 4.926 MB / 1.014 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.669e-05/0.4681, allocations: 7.953 kB / 1.32 GB, free: 4.918 MB / 1.014 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.471e-05/0.4681, allocations: 12.36 kB / 1.32 GB, free: 4.902 MB / 1.014 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.827e-06/0.4681, allocations: 4 kB / 1.321 GB, free: 4.898 MB / 1.014 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.591e-06/0.4681, allocations: 4 kB / 1.321 GB, free: 4.895 MB / 1.014 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.106e-06/0.4681, allocations: 0 / 1.321 GB, free: 4.895 MB / 1.014 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005341/0.4687, allocations: 341.5 kB / 1.321 GB, free: 4.512 MB / 1.014 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.262e-06/0.4687, allocations: 0 / 1.321 GB, free: 4.512 MB / 1.014 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.827e-05/0.4688, allocations: 7.984 kB / 1.321 GB, free: 4.504 MB / 1.014 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.344e-06/0.4688, allocations: 0 / 1.321 GB, free: 4.504 MB / 1.014 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.101e-05/0.4688, allocations: 0 / 1.321 GB, free: 4.504 MB / 1.014 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.459e-06/0.4688, allocations: 11.94 kB / 1.321 GB, free: 4.492 MB / 1.014 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.496e-06/0.4688, allocations: 3.938 kB / 1.321 GB, free: 4.488 MB / 1.014 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003551/0.4691, allocations: 199.4 kB / 1.321 GB, free: 4.277 MB / 1.014 GB Notification: Performance of postOpt removeConstants (simulation): time 1.785e-05/0.4692, allocations: 15.89 kB / 1.321 GB, free: 4.262 MB / 1.014 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.653e-05/0.4692, allocations: 0 / 1.321 GB, free: 4.262 MB / 1.014 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.737e-05/0.4693, allocations: 11.92 kB / 1.321 GB, free: 4.25 MB / 1.014 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.663e-05/0.4693, allocations: 7.984 kB / 1.321 GB, free: 4.242 MB / 1.014 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.999e-06/0.4693, allocations: 7.984 kB / 1.321 GB, free: 4.234 MB / 1.014 GB Notification: Performance of sorting global known variables: time 7.142e-05/0.4694, allocations: 99.86 kB / 1.321 GB, free: 4.137 MB / 1.014 GB Notification: Performance of sort global known variables: time 9e-08/0.4694, allocations: 0 / 1.321 GB, free: 4.137 MB / 1.014 GB Notification: Performance of remove unused functions: time 0.0002559/0.4696, allocations: 16 kB / 1.321 GB, free: 4.121 MB / 1.014 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.0001808/0.4698, allocations: 100.1 kB / 1.321 GB, free: 4.016 MB / 1.014 GB Notification: Performance of simCode: created initialization part: time 0.0003059/0.4701, allocations: 83.86 kB / 1.321 GB, free: 3.934 MB / 1.014 GB Notification: Performance of simCode: created event and clocks part: time 1.954e-06/0.4701, allocations: 0 / 1.321 GB, free: 3.934 MB / 1.014 GB Notification: Performance of simCode: created simulation system equations: time 0.0001249/0.4703, allocations: 35.97 kB / 1.321 GB, free: 3.898 MB / 1.014 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002783/0.4705, allocations: 9.812 kB / 1.321 GB, free: 3.891 MB / 1.014 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000442/0.471, allocations: 165.2 kB / 1.322 GB, free: 3.703 MB / 1.014 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003976/0.4714, allocations: 0.6927 MB / 1.322 GB, free: 2.984 MB / 1.014 GB Notification: Performance of simCode: alias equations: time 3.851e-05/0.4714, allocations: 11.94 kB / 1.322 GB, free: 2.973 MB / 1.014 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.632e-05/0.4714, allocations: 15.42 kB / 1.322 GB, free: 2.957 MB / 1.014 GB Notification: Performance of SimCode: time 3.01e-07/0.4714, allocations: 0 / 1.322 GB, free: 2.957 MB / 1.014 GB Notification: Performance of Templates: time 0.004159/0.4756, allocations: 0.9982 MB / 1.323 GB, free: 1.996 MB / 1.014 GB " [Timeout remaining time 300] make -j1 -f Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTriggerPositiveStartTime.makefile [Timeout 300] (rm -f Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTriggerPositiveStartTime.pipe ; mkfifo Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTriggerPositiveStartTime.pipe ; head -c 1048576 < Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTriggerPositiveStartTime.pipe >> ../files/Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTriggerPositiveStartTime.sim & ./Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTriggerPositiveStartTime -abortSlowSimulation -alarm=800 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTriggerPositiveStartTime.pipe 2>&1) [Timeout 800] diffSimulationResults("Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTriggerPositiveStartTime_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Controls_OBC_CDL_Logical_Sources_Validation_SampleTriggerPositiveStartTime.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTriggerPositiveStartTime.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:ramp.duration,ramp.height,ramp.offset,ramp.startTime,samTri.period,samTri.shift,samTri.t0,samTri.y,samTri1.period,samTri1.shift,samTri1.t0,samTri1.y,time,triggeredSampler.u,triggeredSampler.y,triggeredSampler.y_start,triggeredSampler1.u,triggeredSampler1.y,triggeredSampler1.y_start [Calling sys.exit(0), Time elapsed: 9.742492553777993]