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.001347/0.001347, allocations: 99.64 kB / 18.95 MB, free: 2.668 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.001507/0.001507, allocations: 210.5 kB / 22.24 MB, free: 5.262 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.468/1.468, allocations: 230.6 MB / 256 MB, free: 7.793 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.342/3.342, allocations: 0.5107 GB / 0.8158 GB, free: 17.81 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: "" <> buildModelFMU(Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTrigger,fileNamePrefix="Buildings_latest_Buildings_Controls_OBC_CDL_Logical_Sources_Validation_SampleTrigger",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTrigger,fileNamePrefix="Buildings_latest_Buildings_Controls_OBC_CDL_Logical_Sources_Validation_SampleTrigger",fmuType="me",version="2.0",platforms={"static"}) [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.002433/0.002433, allocations: 64.31 kB / 1.186 GB, free: 13.7 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3951/0.3975, allocations: 181.9 MB / 1.363 GB, free: 14.11 MB / 1.061 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTrigger): time 0.002436/0.4, allocations: 0.7441 MB / 1.364 GB, free: 13.36 MB / 1.061 GB Notification: Performance of NFInst.instExpressions: time 0.001655/0.4016, allocations: 1.094 MB / 1.365 GB, free: 12.26 MB / 1.061 GB Notification: Performance of NFInst.updateImplicitVariability: time 6.522e-05/0.4017, allocations: 0 / 1.365 GB, free: 12.26 MB / 1.061 GB Notification: Performance of NFTyping.typeComponents: time 4.16e-05/0.4017, allocations: 3.938 kB / 1.365 GB, free: 12.25 MB / 1.061 GB Notification: Performance of NFTyping.typeBindings: time 8.028e-05/0.4018, allocations: 15.88 kB / 1.365 GB, free: 12.24 MB / 1.061 GB Notification: Performance of NFTyping.typeClassSections: time 0.000373/0.4022, allocations: 54.81 kB / 1.365 GB, free: 12.19 MB / 1.061 GB Notification: Performance of NFFlatten.flatten: time 0.0001489/0.4023, allocations: 71.78 kB / 1.365 GB, free: 12.12 MB / 1.061 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001276/0.4025, allocations: 20.17 kB / 1.365 GB, free: 12.09 MB / 1.061 GB Notification: Performance of NFEvalConstants.evaluate: time 9.722e-05/0.4026, allocations: 27.91 kB / 1.365 GB, free: 12.07 MB / 1.061 GB Notification: Performance of NFSimplifyModel.simplify: time 7.796e-05/0.4026, allocations: 31.84 kB / 1.365 GB, free: 12.04 MB / 1.061 GB Notification: Performance of NFPackage.collectConstants: time 2.208e-05/0.4027, allocations: 4 kB / 1.365 GB, free: 12.03 MB / 1.061 GB Notification: Performance of NFFlatten.collectFunctions: time 6.937e-05/0.4027, allocations: 16 kB / 1.365 GB, free: 12.02 MB / 1.061 GB Notification: Performance of NFScalarize.scalarize: time 2.995e-05/0.4028, allocations: 15.97 kB / 1.365 GB, free: 12 MB / 1.061 GB Notification: Performance of NFVerifyModel.verify: time 5.172e-05/0.4028, allocations: 27.86 kB / 1.365 GB, free: 11.97 MB / 1.061 GB Notification: Performance of NFConvertDAE.convert: time 0.0001966/0.403, allocations: 87.84 kB / 1.366 GB, free: 11.89 MB / 1.061 GB Notification: Performance of FrontEnd - DAE generated: time 5.069e-06/0.403, allocations: 0 / 1.366 GB, free: 11.89 MB / 1.061 GB Notification: Performance of FrontEnd: time 1.503e-06/0.403, allocations: 0 / 1.366 GB, free: 11.89 MB / 1.061 GB Notification: Performance of Transformations before backend: time 1.224e-05/0.403, allocations: 4 kB / 1.366 GB, free: 11.88 MB / 1.061 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.0006555/0.4037, allocations: 304.1 kB / 1.366 GB, free: 11.56 MB / 1.061 GB Notification: Performance of prepare preOptimizeDAE: time 4.862e-05/0.4037, allocations: 8.031 kB / 1.366 GB, free: 11.55 MB / 1.061 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.911e-05/0.4038, allocations: 34.75 kB / 1.366 GB, free: 11.51 MB / 1.061 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.617e-05/0.4038, allocations: 8.891 kB / 1.366 GB, free: 11.5 MB / 1.061 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001259/0.404, allocations: 110.5 kB / 1.366 GB, free: 11.37 MB / 1.061 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.874e-05/0.404, allocations: 8.359 kB / 1.366 GB, free: 11.36 MB / 1.061 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.037e-05/0.404, allocations: 12.31 kB / 1.366 GB, free: 11.35 MB / 1.061 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002204/0.4042, allocations: 69.92 kB / 1.366 GB, free: 11.27 MB / 1.061 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.528e-06/0.4042, allocations: 4 kB / 1.366 GB, free: 11.27 MB / 1.061 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.018e-05/0.4042, allocations: 0 / 1.366 GB, free: 11.27 MB / 1.061 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.043e-06/0.4042, allocations: 4 kB / 1.366 GB, free: 11.27 MB / 1.061 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001812/0.4044, allocations: 47.94 kB / 1.366 GB, free: 11.22 MB / 1.061 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006828/0.4051, allocations: 287.7 kB / 1.366 GB, free: 10.89 MB / 1.061 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001847/0.4053, allocations: 46.56 kB / 1.366 GB, free: 10.84 MB / 1.061 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001049/0.4054, allocations: 40.89 kB / 1.366 GB, free: 10.8 MB / 1.061 GB Notification: Performance of preOpt evalFunc (simulation): time 2.575e-05/0.4054, allocations: 0 / 1.366 GB, free: 10.8 MB / 1.061 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002526/0.4057, allocations: 83.39 kB / 1.367 GB, free: 10.7 MB / 1.061 GB Notification: Performance of pre-optimization done (n=7): time 1.242e-06/0.4057, allocations: 0 / 1.367 GB, free: 10.7 MB / 1.061 GB Notification: Performance of matching and sorting (n=7): time 0.0004485/0.4061, allocations: 129.6 kB / 1.367 GB, free: 10.57 MB / 1.061 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.852e-05/0.4062, allocations: 51.41 kB / 1.367 GB, free: 10.51 MB / 1.061 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001202/0.4063, allocations: 125.8 kB / 1.367 GB, free: 10.38 MB / 1.061 GB Notification: Performance of collectPreVariables (initialization): time 2.435e-05/0.4063, allocations: 25.7 kB / 1.367 GB, free: 10.34 MB / 1.061 GB Notification: Performance of collectInitialEqns (initialization): time 7.221e-05/0.4064, allocations: 96.12 kB / 1.367 GB, free: 10.25 MB / 1.061 GB Notification: Performance of collectInitialBindings (initialization): time 2.611e-05/0.4064, allocations: 19.84 kB / 1.367 GB, free: 10.23 MB / 1.061 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.096e-05/0.4065, allocations: 29.7 kB / 1.367 GB, free: 10.19 MB / 1.061 GB Notification: Performance of setup shared object (initialization): time 0.0001528/0.4066, allocations: 326.8 kB / 1.367 GB, free: 9.863 MB / 1.061 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001094/0.4067, allocations: 23.98 kB / 1.367 GB, free: 9.84 MB / 1.061 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001455/0.4069, allocations: 73.92 kB / 1.367 GB, free: 9.746 MB / 1.061 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002699/0.4071, allocations: 109.9 kB / 1.368 GB, free: 9.617 MB / 1.061 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.955e-06/0.4072, allocations: 0 / 1.368 GB, free: 9.617 MB / 1.061 GB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0003365/0.4075, allocations: 137.4 kB / 1.368 GB, free: 9.477 MB / 1.061 GB Notification: Performance of prepare postOptimizeDAE: time 1.624e-05/0.4075, allocations: 4 kB / 1.368 GB, free: 9.473 MB / 1.061 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.701e-06/0.4075, allocations: 8.25 kB / 1.368 GB, free: 9.465 MB / 1.061 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.724e-05/0.4075, allocations: 4 kB / 1.368 GB, free: 9.461 MB / 1.061 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001235/0.4077, allocations: 15.98 kB / 1.368 GB, free: 9.445 MB / 1.061 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.162e-06/0.4077, allocations: 0 / 1.368 GB, free: 9.445 MB / 1.061 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.872e-05/0.4077, allocations: 19.88 kB / 1.368 GB, free: 9.426 MB / 1.061 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.866e-05/0.4078, allocations: 12.2 kB / 1.368 GB, free: 9.414 MB / 1.061 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.0001018/0.4079, allocations: 126.8 kB / 1.368 GB, free: 9.281 MB / 1.061 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.787e-05/0.4079, allocations: 11.95 kB / 1.368 GB, free: 9.27 MB / 1.061 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.57e-05/0.4079, allocations: 8.375 kB / 1.368 GB, free: 9.258 MB / 1.061 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.168e-06/0.4079, allocations: 4 kB / 1.368 GB, free: 9.254 MB / 1.061 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.539e-06/0.4079, allocations: 0 / 1.368 GB, free: 9.254 MB / 1.061 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.38e-06/0.4079, allocations: 3.984 kB / 1.368 GB, free: 9.25 MB / 1.061 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005034/0.4084, allocations: 333.5 kB / 1.368 GB, free: 8.875 MB / 1.061 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.144e-06/0.4084, allocations: 0 / 1.368 GB, free: 8.875 MB / 1.061 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.626e-05/0.4085, allocations: 11.98 kB / 1.368 GB, free: 8.863 MB / 1.061 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.825e-06/0.4085, allocations: 0 / 1.368 GB, free: 8.863 MB / 1.061 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.729e-06/0.4085, allocations: 4 kB / 1.368 GB, free: 8.859 MB / 1.061 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.607e-06/0.4085, allocations: 3.938 kB / 1.368 GB, free: 8.855 MB / 1.061 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.052e-06/0.4085, allocations: 0 / 1.368 GB, free: 8.855 MB / 1.061 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003176/0.4088, allocations: 203.4 kB / 1.368 GB, free: 8.641 MB / 1.061 GB Notification: Performance of postOpt removeConstants (simulation): time 1.336e-05/0.4088, allocations: 7.891 kB / 1.368 GB, free: 8.633 MB / 1.061 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.947e-05/0.4089, allocations: 11.94 kB / 1.368 GB, free: 8.621 MB / 1.061 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.608e-05/0.4089, allocations: 15.92 kB / 1.368 GB, free: 8.605 MB / 1.061 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.836e-05/0.409, allocations: 0 / 1.368 GB, free: 8.605 MB / 1.061 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.05e-05/0.409, allocations: 11.92 kB / 1.368 GB, free: 8.594 MB / 1.061 GB Notification: Performance of sorting global known variables: time 6.355e-05/0.4091, allocations: 87.28 kB / 1.369 GB, free: 8.508 MB / 1.061 GB Notification: Performance of sort global known variables: time 7e-08/0.4091, allocations: 0 / 1.369 GB, free: 8.508 MB / 1.061 GB Notification: Performance of remove unused functions: time 0.0002603/0.4093, allocations: 19.98 kB / 1.369 GB, free: 8.488 MB / 1.061 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.0006702/0.41, allocations: 0.7344 MB / 1.369 GB, free: 7.73 MB / 1.061 GB Notification: Performance of simCode: created initialization part: time 0.0002846/0.4103, allocations: 83.81 kB / 1.369 GB, free: 7.648 MB / 1.061 GB Notification: Performance of simCode: created event and clocks part: time 1.854e-06/0.4103, allocations: 0 / 1.369 GB, free: 7.648 MB / 1.061 GB Notification: Performance of simCode: created simulation system equations: time 0.0001124/0.4104, allocations: 31.97 kB / 1.369 GB, free: 7.617 MB / 1.061 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003044/0.4107, allocations: 21.17 kB / 1.369 GB, free: 7.598 MB / 1.061 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001948/0.4126, allocations: 1.519 MB / 1.371 GB, free: 5.957 MB / 1.061 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 8.151e-05/0.4127, allocations: 71.33 kB / 1.371 GB, free: 5.867 MB / 1.061 GB Notification: Performance of simCode: alias equations: time 3.738e-05/0.4128, allocations: 4 kB / 1.371 GB, free: 5.863 MB / 1.061 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.249e-05/0.4128, allocations: 27.42 kB / 1.371 GB, free: 5.836 MB / 1.061 GB Notification: Performance of SimCode: time 2.91e-07/0.4128, allocations: 0 / 1.371 GB, free: 5.836 MB / 1.061 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03188/0.4447, allocations: 2.679 MB / 1.374 GB, free: 3.305 MB / 1.061 GB Notification: Performance of buildModelFMU: Generate platform static: time 11.29/11.74, allocations: 18.2 kB / 1.374 GB, free: 3.289 MB / 1.061 GB " [Timeout remaining time 288] (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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTrigger_res.mat --tempDir=temp_Buildings_latest_Buildings_Controls_OBC_CDL_Logical_Sources_Validation_SampleTrigger_fmu --startTime=0 --stopTime=5 --stepSize=0.002 --timeout=800 --tolerance=1e-06 Buildings_latest_Buildings_Controls_OBC_CDL_Logical_Sources_Validation_SampleTrigger.fmu > Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTrigger.pipe 2>&1) [Timeout 840.0] 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] Reference file matches [Calling sys.exit(0), Time elapsed: 18.72727162204683]