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.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.0007547/0.0007547, allocations: 80.45 kB / 19.93 MB, free: 4.605 MB / 18.57 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.0007612/0.0007612, allocations: 173.2 kB / 23.22 MB, free: 1.316 MB / 18.57 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 0.8719/0.8719, allocations: 177.2 MB / 203.5 MB, free: 5.746 MB / 186.7 MB " [Timeout remaining time 179] 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 1.765/1.765, allocations: 389 MB / 0.6338 GB, free: 12.71 MB / 0.6042 GB " [Timeout remaining time 178] Using package Buildings with version 13.0.1 (/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.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 3.807e-06/3.807e-06, allocations: 0 / 1.001 GB, free: 13 MB / 0.9636 GB Notification: Performance of FrontEnd - Absyn->SCode: time 3.536e-05/3.916e-05, allocations: 10.16 kB / 1.001 GB, free: 12.99 MB / 0.9636 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTriggerPositiveStartTime): time 0.001879/0.001919, allocations: 0.7346 MB / 1.002 GB, free: 12.26 MB / 0.9636 GB Notification: Performance of NFInst.instExpressions: time 0.00147/0.003388, allocations: 1.093 MB / 1.003 GB, free: 11.16 MB / 0.9636 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.762e-05/0.003446, allocations: 0 / 1.003 GB, free: 11.16 MB / 0.9636 GB Notification: Performance of NFTyping.typeComponents: time 3.813e-05/0.003484, allocations: 7.922 kB / 1.003 GB, free: 11.15 MB / 0.9636 GB Notification: Performance of NFTyping.typeBindings: time 8.71e-05/0.003571, allocations: 19.8 kB / 1.003 GB, free: 11.13 MB / 0.9636 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003668/0.003938, allocations: 47.77 kB / 1.003 GB, free: 11.08 MB / 0.9636 GB Notification: Performance of NFFlatten.flatten: time 0.0001321/0.00407, allocations: 75.77 kB / 1.003 GB, free: 11.01 MB / 0.9636 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001318/0.004202, allocations: 16.12 kB / 1.003 GB, free: 10.99 MB / 0.9636 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001323/0.004334, allocations: 39.89 kB / 1.003 GB, free: 10.95 MB / 0.9636 GB Notification: Performance of NFSimplifyModel.simplify: time 7.889e-05/0.004413, allocations: 27.97 kB / 1.003 GB, free: 10.92 MB / 0.9636 GB Notification: Performance of NFPackage.collectConstants: time 2.53e-05/0.004439, allocations: 4 kB / 1.003 GB, free: 10.92 MB / 0.9636 GB Notification: Performance of NFFlatten.collectFunctions: time 7.908e-05/0.004518, allocations: 23.97 kB / 1.003 GB, free: 10.89 MB / 0.9636 GB Notification: Performance of NFScalarize.scalarize: time 3.11e-05/0.004549, allocations: 15.92 kB / 1.003 GB, free: 10.88 MB / 0.9636 GB Notification: Performance of NFVerifyModel.verify: time 4.868e-05/0.004597, allocations: 23.92 kB / 1.003 GB, free: 10.86 MB / 0.9636 GB Notification: Performance of NFConvertDAE.convert: time 0.0002089/0.004806, allocations: 87.72 kB / 1.003 GB, free: 10.77 MB / 0.9636 GB Notification: Performance of FrontEnd - DAE generated: time 5.06e-06/0.004811, allocations: 0 / 1.003 GB, free: 10.77 MB / 0.9636 GB Notification: Performance of FrontEnd: time 2.215e-06/0.004814, allocations: 0 / 1.003 GB, free: 10.77 MB / 0.9636 GB Notification: Performance of Transformations before backend: time 6.842e-06/0.00482, allocations: 0 / 1.003 GB, free: 10.77 MB / 0.9636 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.0006343/0.005455, allocations: 306 kB / 1.003 GB, free: 10.44 MB / 0.9636 GB Notification: Performance of prepare preOptimizeDAE: time 4.593e-05/0.005501, allocations: 12.75 kB / 1.003 GB, free: 10.43 MB / 0.9636 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.154e-05/0.005552, allocations: 8.891 kB / 1.003 GB, free: 10.42 MB / 0.9636 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001044/0.005657, allocations: 109.8 kB / 1.003 GB, free: 10.29 MB / 0.9636 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.754e-05/0.005674, allocations: 12.36 kB / 1.004 GB, free: 10.28 MB / 0.9636 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.497e-05/0.005689, allocations: 4.375 kB / 1.004 GB, free: 10.27 MB / 0.9636 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001817/0.005871, allocations: 62.23 kB / 1.004 GB, free: 10.21 MB / 0.9636 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.756e-06/0.00588, allocations: 192 / 1.004 GB, free: 10.21 MB / 0.9636 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.229e-05/0.005892, allocations: 8.312 kB / 1.004 GB, free: 10.2 MB / 0.9636 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.692e-06/0.005899, allocations: 4.125 kB / 1.004 GB, free: 10.2 MB / 0.9636 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001238/0.006022, allocations: 43.95 kB / 1.004 GB, free: 10.15 MB / 0.9636 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005291/0.006551, allocations: 260.4 kB / 1.004 GB, free: 9.867 MB / 0.9636 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001568/0.006708, allocations: 62.56 kB / 1.004 GB, free: 9.797 MB / 0.9636 GB Notification: Performance of preOpt resolveLoops (simulation): time 6.899e-05/0.006777, allocations: 28.97 kB / 1.004 GB, free: 9.766 MB / 0.9636 GB Notification: Performance of preOpt evalFunc (simulation): time 2.732e-05/0.006805, allocations: 7.922 kB / 1.004 GB, free: 9.758 MB / 0.9636 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002129/0.007018, allocations: 79.38 kB / 1.004 GB, free: 9.668 MB / 0.9636 GB Notification: Performance of pre-optimization done (n=7): time 1.383e-06/0.007019, allocations: 0 / 1.004 GB, free: 9.668 MB / 0.9636 GB Notification: Performance of matching and sorting (n=7): time 0.0003602/0.007379, allocations: 129.5 kB / 1.004 GB, free: 9.535 MB / 0.9636 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.595e-05/0.007425, allocations: 55.41 kB / 1.004 GB, free: 9.469 MB / 0.9636 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.269e-05/0.007518, allocations: 121.8 kB / 1.004 GB, free: 9.34 MB / 0.9636 GB Notification: Performance of collectPreVariables (initialization): time 1.957e-05/0.007537, allocations: 29.7 kB / 1.004 GB, free: 9.305 MB / 0.9636 GB Notification: Performance of collectInitialEqns (initialization): time 5.353e-05/0.007591, allocations: 92.08 kB / 1.004 GB, free: 9.211 MB / 0.9636 GB Notification: Performance of collectInitialBindings (initialization): time 2.151e-05/0.007612, allocations: 23.89 kB / 1.004 GB, free: 9.188 MB / 0.9636 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.117e-05/0.007664, allocations: 33.64 kB / 1.005 GB, free: 9.148 MB / 0.9636 GB Notification: Performance of setup shared object (initialization): time 9.597e-05/0.00776, allocations: 318.8 kB / 1.005 GB, free: 8.828 MB / 0.9636 GB Notification: Performance of preBalanceInitialSystem (initialization): time 8.421e-05/0.007844, allocations: 31.91 kB / 1.005 GB, free: 8.797 MB / 0.9636 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001005/0.007944, allocations: 69.98 kB / 1.005 GB, free: 8.707 MB / 0.9636 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001844/0.008129, allocations: 113.8 kB / 1.005 GB, free: 8.574 MB / 0.9636 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.534e-06/0.008131, allocations: 0 / 1.005 GB, free: 8.574 MB / 0.9636 GB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0002444/0.008376, allocations: 133.6 kB / 1.005 GB, free: 8.438 MB / 0.9636 GB Notification: Performance of prepare postOptimizeDAE: time 1.754e-05/0.008393, allocations: 12.03 kB / 1.005 GB, free: 8.426 MB / 0.9636 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.841e-06/0.008399, allocations: 0 / 1.005 GB, free: 8.426 MB / 0.9636 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.644e-05/0.008415, allocations: 4 kB / 1.005 GB, free: 8.422 MB / 0.9636 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001103/0.008526, allocations: 23.91 kB / 1.005 GB, free: 8.398 MB / 0.9636 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.522e-06/0.008532, allocations: 0 / 1.005 GB, free: 8.398 MB / 0.9636 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.939e-05/0.008592, allocations: 11.94 kB / 1.005 GB, free: 8.387 MB / 0.9636 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.494e-05/0.008607, allocations: 11.98 kB / 1.005 GB, free: 8.375 MB / 0.9636 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 8.17e-05/0.008688, allocations: 115.4 kB / 1.005 GB, free: 8.254 MB / 0.9636 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.366e-05/0.008702, allocations: 11.89 kB / 1.005 GB, free: 8.242 MB / 0.9636 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.816e-05/0.00873, allocations: 12.44 kB / 1.005 GB, free: 8.23 MB / 0.9636 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.338e-06/0.008735, allocations: 4 kB / 1.005 GB, free: 8.227 MB / 0.9636 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.519e-06/0.008739, allocations: 0 / 1.005 GB, free: 8.227 MB / 0.9636 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.476e-06/0.008743, allocations: 0 / 1.005 GB, free: 8.227 MB / 0.9636 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003785/0.009121, allocations: 310 kB / 1.006 GB, free: 7.887 MB / 0.9636 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.256e-06/0.009124, allocations: 4 kB / 1.006 GB, free: 7.883 MB / 0.9636 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.882e-05/0.009163, allocations: 7.984 kB / 1.006 GB, free: 7.875 MB / 0.9636 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.745e-06/0.009166, allocations: 0 / 1.006 GB, free: 7.875 MB / 0.9636 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.997e-06/0.009175, allocations: 4 kB / 1.006 GB, free: 7.871 MB / 0.9636 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.457e-06/0.009178, allocations: 7.938 kB / 1.006 GB, free: 7.863 MB / 0.9636 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.755e-06/0.009181, allocations: 4 kB / 1.006 GB, free: 7.859 MB / 0.9636 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002232/0.009404, allocations: 199.4 kB / 1.006 GB, free: 7.648 MB / 0.9636 GB Notification: Performance of postOpt removeConstants (simulation): time 1.198e-05/0.009416, allocations: 7.953 kB / 1.006 GB, free: 7.641 MB / 0.9636 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.239e-05/0.009429, allocations: 0 / 1.006 GB, free: 7.641 MB / 0.9636 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.456e-05/0.009493, allocations: 11.92 kB / 1.006 GB, free: 7.629 MB / 0.9636 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.145e-05/0.009535, allocations: 7.984 kB / 1.006 GB, free: 7.621 MB / 0.9636 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.722e-06/0.009541, allocations: 4 kB / 1.006 GB, free: 7.617 MB / 0.9636 GB Notification: Performance of sorting global known variables: time 4.682e-05/0.009588, allocations: 103.9 kB / 1.006 GB, free: 7.516 MB / 0.9636 GB Notification: Performance of sort global known variables: time 7e-08/0.009588, allocations: 0 / 1.006 GB, free: 7.516 MB / 0.9636 GB Notification: Performance of remove unused functions: time 0.0002637/0.009852, allocations: 15.94 kB / 1.006 GB, free: 7.5 MB / 0.9636 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.0001709/0.01002, allocations: 107.5 kB / 1.006 GB, free: 7.383 MB / 0.9636 GB Notification: Performance of simCode: created initialization part: time 0.0002157/0.01024, allocations: 75.88 kB / 1.006 GB, free: 7.309 MB / 0.9636 GB Notification: Performance of simCode: created event and clocks part: time 1.543e-06/0.01024, allocations: 448 / 1.006 GB, free: 7.309 MB / 0.9636 GB Notification: Performance of simCode: created simulation system equations: time 8.307e-05/0.01032, allocations: 35.97 kB / 1.006 GB, free: 7.273 MB / 0.9636 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002726/0.0106, allocations: 15.88 kB / 1.006 GB, free: 7.258 MB / 0.9636 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003753/0.01097, allocations: 175.9 kB / 1.006 GB, free: 7.051 MB / 0.9636 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 7.295e-05/0.01104, allocations: 79.27 kB / 1.006 GB, free: 6.953 MB / 0.9636 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.477e-05/0.01108, allocations: 16.5 kB / 1.006 GB, free: 6.938 MB / 0.9636 GB Notification: Performance of SimCode: time 5.61e-07/0.01108, allocations: 0 / 1.006 GB, free: 6.938 MB / 0.9636 GB Notification: Performance of Templates: time 0.002477/0.01356, allocations: 1.077 MB / 1.008 GB, free: 5.871 MB / 0.9636 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:samTri.y,samTri1.y,time,triggeredSampler.u,triggeredSampler.y,triggeredSampler1.u,triggeredSampler1.y [Calling sys.exit(0), Time elapsed: 6.595983762294054]