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.0008291/0.0008291, allocations: 76.5 kB / 19.93 MB, free: 4.633 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.0008367/0.0008367, allocations: 174.3 kB / 23.21 MB, free: 1.352 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.8567/0.8567, allocations: 177.1 MB / 203.5 MB, free: 5.77 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.782/1.782, allocations: 389 MB / 0.6338 GB, free: 12.7 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.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: Performance of FrontEnd - loaded program: time 1.804e-06/1.804e-06, allocations: 0 / 1.001 GB, free: 12.98 MB / 0.9636 GB Notification: Performance of FrontEnd - Absyn->SCode: time 2.144e-05/2.325e-05, allocations: 6.219 kB / 1.001 GB, free: 12.97 MB / 0.9636 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTrigger): time 0.001198/0.001222, allocations: 0.7345 MB / 1.002 GB, free: 12.24 MB / 0.9636 GB Notification: Performance of NFInst.instExpressions: time 0.0009444/0.002166, allocations: 1.093 MB / 1.003 GB, free: 11.14 MB / 0.9636 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.383e-05/0.00221, allocations: 0 / 1.003 GB, free: 11.14 MB / 0.9636 GB Notification: Performance of NFTyping.typeComponents: time 2.686e-05/0.002237, allocations: 7.938 kB / 1.003 GB, free: 11.13 MB / 0.9636 GB Notification: Performance of NFTyping.typeBindings: time 6.21e-05/0.002299, allocations: 19.84 kB / 1.003 GB, free: 11.11 MB / 0.9636 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002715/0.00257, allocations: 51.77 kB / 1.003 GB, free: 11.06 MB / 0.9636 GB Notification: Performance of NFFlatten.flatten: time 9.405e-05/0.002664, allocations: 71.78 kB / 1.003 GB, free: 10.99 MB / 0.9636 GB Notification: Performance of NFFlatten.resolveConnections: time 9.985e-05/0.002764, allocations: 20.09 kB / 1.003 GB, free: 10.96 MB / 0.9636 GB Notification: Performance of NFEvalConstants.evaluate: time 7.219e-05/0.002836, allocations: 31.97 kB / 1.003 GB, free: 10.93 MB / 0.9636 GB Notification: Performance of NFSimplifyModel.simplify: time 4.534e-05/0.002882, allocations: 31.89 kB / 1.003 GB, free: 10.9 MB / 0.9636 GB Notification: Performance of NFPackage.collectConstants: time 1.612e-05/0.002898, allocations: 4 kB / 1.003 GB, free: 10.9 MB / 0.9636 GB Notification: Performance of NFFlatten.collectFunctions: time 4.928e-05/0.002947, allocations: 19.98 kB / 1.003 GB, free: 10.88 MB / 0.9636 GB Notification: Performance of NFScalarize.scalarize: time 2.101e-05/0.002968, allocations: 15.92 kB / 1.003 GB, free: 10.86 MB / 0.9636 GB Notification: Performance of NFVerifyModel.verify: time 3.008e-05/0.002998, allocations: 23.98 kB / 1.003 GB, free: 10.84 MB / 0.9636 GB Notification: Performance of NFConvertDAE.convert: time 0.0001281/0.003126, allocations: 87.67 kB / 1.003 GB, free: 10.75 MB / 0.9636 GB Notification: Performance of FrontEnd - DAE generated: time 1.643e-06/0.003128, allocations: 0 / 1.003 GB, free: 10.75 MB / 0.9636 GB Notification: Performance of FrontEnd: time 1.022e-06/0.003129, allocations: 0 / 1.003 GB, free: 10.75 MB / 0.9636 GB Notification: Performance of Transformations before backend: time 3.957e-06/0.003133, allocations: 0 / 1.003 GB, free: 10.75 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.0003956/0.003529, allocations: 306 kB / 1.003 GB, free: 10.43 MB / 0.9636 GB Notification: Performance of prepare preOptimizeDAE: time 3.295e-05/0.003561, allocations: 8.031 kB / 1.003 GB, free: 10.42 MB / 0.9636 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.336e-05/0.003595, allocations: 8.891 kB / 1.003 GB, free: 10.41 MB / 0.9636 GB Notification: Performance of preOpt evaluateParameters (simulation): time 7.711e-05/0.003672, allocations: 109.8 kB / 1.003 GB, free: 10.28 MB / 0.9636 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.393e-05/0.003686, allocations: 12.38 kB / 1.003 GB, free: 10.27 MB / 0.9636 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.11e-05/0.003697, allocations: 12.31 kB / 1.004 GB, free: 10.25 MB / 0.9636 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001393/0.003836, allocations: 70.16 kB / 1.004 GB, free: 10.18 MB / 0.9636 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.877e-06/0.003845, allocations: 192 / 1.004 GB, free: 10.18 MB / 0.9636 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.348e-06/0.003854, allocations: 4.375 kB / 1.004 GB, free: 10.18 MB / 0.9636 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.39e-06/0.00386, allocations: 4.125 kB / 1.004 GB, free: 10.17 MB / 0.9636 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 8.908e-05/0.003949, allocations: 39.95 kB / 1.004 GB, free: 10.13 MB / 0.9636 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004015/0.00435, allocations: 268.4 kB / 1.004 GB, free: 9.84 MB / 0.9636 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001112/0.004462, allocations: 54.58 kB / 1.004 GB, free: 9.777 MB / 0.9636 GB Notification: Performance of preOpt resolveLoops (simulation): time 5.035e-05/0.004512, allocations: 28.97 kB / 1.004 GB, free: 9.746 MB / 0.9636 GB Notification: Performance of preOpt evalFunc (simulation): time 2.076e-05/0.004533, allocations: 7.938 kB / 1.004 GB, free: 9.738 MB / 0.9636 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001156/0.004648, allocations: 71.38 kB / 1.004 GB, free: 9.656 MB / 0.9636 GB Notification: Performance of pre-optimization done (n=7): time 1.132e-06/0.004649, allocations: 0 / 1.004 GB, free: 9.656 MB / 0.9636 GB Notification: Performance of matching and sorting (n=7): time 0.0002594/0.004909, allocations: 141.5 kB / 1.004 GB, free: 9.512 MB / 0.9636 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.272e-05/0.004942, allocations: 55.41 kB / 1.004 GB, free: 9.445 MB / 0.9636 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002026/0.005144, allocations: 121.8 kB / 1.004 GB, free: 9.316 MB / 0.9636 GB Notification: Performance of collectPreVariables (initialization): time 1.175e-05/0.005156, allocations: 25.7 kB / 1.004 GB, free: 9.285 MB / 0.9636 GB Notification: Performance of collectInitialEqns (initialization): time 4.115e-05/0.005197, allocations: 96.08 kB / 1.004 GB, free: 9.188 MB / 0.9636 GB Notification: Performance of collectInitialBindings (initialization): time 1.484e-05/0.005212, allocations: 15.89 kB / 1.004 GB, free: 9.172 MB / 0.9636 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.386e-05/0.005256, allocations: 29.72 kB / 1.004 GB, free: 9.137 MB / 0.9636 GB Notification: Performance of setup shared object (initialization): time 7.004e-05/0.005326, allocations: 318.8 kB / 1.005 GB, free: 8.816 MB / 0.9636 GB Notification: Performance of preBalanceInitialSystem (initialization): time 5.884e-05/0.005385, allocations: 27.97 kB / 1.005 GB, free: 8.789 MB / 0.9636 GB Notification: Performance of partitionIndependentBlocks (initialization): time 7.332e-05/0.005458, allocations: 77.98 kB / 1.005 GB, free: 8.691 MB / 0.9636 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001283/0.005586, allocations: 105.8 kB / 1.005 GB, free: 8.566 MB / 0.9636 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.124e-06/0.005588, allocations: 4 kB / 1.005 GB, free: 8.562 MB / 0.9636 GB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0001688/0.005757, allocations: 133.4 kB / 1.005 GB, free: 8.426 MB / 0.9636 GB Notification: Performance of prepare postOptimizeDAE: time 1.196e-05/0.005769, allocations: 8 kB / 1.005 GB, free: 8.418 MB / 0.9636 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.579e-06/0.005774, allocations: 3.938 kB / 1.005 GB, free: 8.414 MB / 0.9636 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.179e-05/0.005786, allocations: 4 kB / 1.005 GB, free: 8.41 MB / 0.9636 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.272e-05/0.005858, allocations: 20.14 kB / 1.005 GB, free: 8.391 MB / 0.9636 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.67e-06/0.005864, allocations: 8.312 kB / 1.005 GB, free: 8.383 MB / 0.9636 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.05e-05/0.005904, allocations: 11.92 kB / 1.005 GB, free: 8.371 MB / 0.9636 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.074e-05/0.005915, allocations: 11.98 kB / 1.005 GB, free: 8.359 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 5.867e-05/0.005974, allocations: 117.8 kB / 1.005 GB, free: 8.234 MB / 0.9636 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.716e-06/0.005983, allocations: 11.88 kB / 1.005 GB, free: 8.223 MB / 0.9636 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.176e-05/0.006004, allocations: 12.44 kB / 1.005 GB, free: 8.211 MB / 0.9636 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.823e-06/0.006006, allocations: 0 / 1.005 GB, free: 8.211 MB / 0.9636 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.547e-06/0.00601, allocations: 3.938 kB / 1.005 GB, free: 8.207 MB / 0.9636 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.026e-06/0.006013, allocations: 0 / 1.005 GB, free: 8.207 MB / 0.9636 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002767/0.006289, allocations: 322.1 kB / 1.006 GB, free: 7.855 MB / 0.9636 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.072e-06/0.00629, allocations: 0 / 1.006 GB, free: 7.855 MB / 0.9636 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.532e-05/0.006316, allocations: 11.92 kB / 1.006 GB, free: 7.844 MB / 0.9636 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.493e-06/0.006317, allocations: 0 / 1.006 GB, free: 7.844 MB / 0.9636 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.037e-06/0.006326, allocations: 8 kB / 1.006 GB, free: 7.836 MB / 0.9636 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.352e-06/0.006328, allocations: 0 / 1.006 GB, free: 7.836 MB / 0.9636 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.963e-06/0.00633, allocations: 4 kB / 1.006 GB, free: 7.832 MB / 0.9636 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001453/0.006475, allocations: 203.4 kB / 1.006 GB, free: 7.617 MB / 0.9636 GB Notification: Performance of postOpt removeConstants (simulation): time 7.494e-06/0.006482, allocations: 3.953 kB / 1.006 GB, free: 7.613 MB / 0.9636 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.112e-05/0.006494, allocations: 4 kB / 1.006 GB, free: 7.609 MB / 0.9636 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.183e-05/0.006535, allocations: 7.984 kB / 1.006 GB, free: 7.602 MB / 0.9636 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.187e-05/0.006567, allocations: 3.984 kB / 1.006 GB, free: 7.598 MB / 0.9636 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.622e-06/0.006574, allocations: 8 kB / 1.006 GB, free: 7.59 MB / 0.9636 GB Notification: Performance of sorting global known variables: time 3.263e-05/0.006607, allocations: 91.27 kB / 1.006 GB, free: 7.5 MB / 0.9636 GB Notification: Performance of sort global known variables: time 6e-08/0.006607, allocations: 0 / 1.006 GB, free: 7.5 MB / 0.9636 GB Notification: Performance of remove unused functions: time 0.0001693/0.006776, allocations: 15.94 kB / 1.006 GB, free: 7.484 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.0001098/0.006886, allocations: 115.1 kB / 1.006 GB, free: 7.359 MB / 0.9636 GB Notification: Performance of simCode: created initialization part: time 0.0001561/0.007042, allocations: 75.88 kB / 1.006 GB, free: 7.285 MB / 0.9636 GB Notification: Performance of simCode: created event and clocks part: time 1.413e-06/0.007043, allocations: 0 / 1.006 GB, free: 7.285 MB / 0.9636 GB Notification: Performance of simCode: created simulation system equations: time 5.852e-05/0.007102, allocations: 31.97 kB / 1.006 GB, free: 7.254 MB / 0.9636 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001934/0.007295, allocations: 23.69 kB / 1.006 GB, free: 7.234 MB / 0.9636 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000273/0.007568, allocations: 183.2 kB / 1.006 GB, free: 7.02 MB / 0.9636 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 4.48e-05/0.007613, allocations: 75.33 kB / 1.006 GB, free: 6.926 MB / 0.9636 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.594e-05/0.007639, allocations: 16.5 kB / 1.006 GB, free: 6.91 MB / 0.9636 GB Notification: Performance of SimCode: time 3.01e-07/0.007639, allocations: 0 / 1.006 GB, free: 6.91 MB / 0.9636 GB Notification: Performance of Templates: time 0.001969/0.009608, allocations: 1.075 MB / 1.008 GB, free: 5.84 MB / 0.9636 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/jenkins/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: 6.576502495445311]