Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Validation.TriggeredSampler.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.001356/0.001356, allocations: 99.64 kB / 18.95 MB, free: 2.676 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.001482/0.001482, allocations: 204.8 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.471/1.471, allocations: 230.6 MB / 256 MB, free: 7.789 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.321/3.321, allocations: 0.5107 GB / 0.8158 GB, free: 17.84 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.Discrete.Validation.TriggeredSampler,fileNamePrefix="Buildings_latest_Buildings_Controls_OBC_CDL_Discrete_Validation_TriggeredSampler",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Controls.OBC.CDL.Discrete.Validation.TriggeredSampler,fileNamePrefix="Buildings_latest_Buildings_Controls_OBC_CDL_Discrete_Validation_TriggeredSampler",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.002298/0.002298, allocations: 64.36 kB / 1.186 GB, free: 13.72 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3908/0.3931, allocations: 181.9 MB / 1.363 GB, free: 14.13 MB / 1.061 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Discrete.Validation.TriggeredSampler): time 0.002236/0.3953, allocations: 0.7389 MB / 1.364 GB, free: 13.39 MB / 1.061 GB Notification: Performance of NFInst.instExpressions: time 0.001753/0.397, allocations: 1.179 MB / 1.365 GB, free: 12.2 MB / 1.061 GB Notification: Performance of NFInst.updateImplicitVariability: time 6.381e-05/0.3971, allocations: 4 kB / 1.365 GB, free: 12.2 MB / 1.061 GB Notification: Performance of NFTyping.typeComponents: time 3.735e-05/0.3971, allocations: 7.922 kB / 1.365 GB, free: 12.19 MB / 1.061 GB Notification: Performance of NFTyping.typeBindings: time 8.516e-05/0.3972, allocations: 15.81 kB / 1.365 GB, free: 12.17 MB / 1.061 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005958/0.3978, allocations: 146.4 kB / 1.365 GB, free: 12.03 MB / 1.061 GB Notification: Performance of NFFlatten.flatten: time 0.0002198/0.398, allocations: 115.8 kB / 1.366 GB, free: 11.92 MB / 1.061 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001096/0.3982, allocations: 20.17 kB / 1.366 GB, free: 11.89 MB / 1.061 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001107/0.3983, allocations: 47.89 kB / 1.366 GB, free: 11.85 MB / 1.061 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001109/0.3984, allocations: 47.81 kB / 1.366 GB, free: 11.8 MB / 1.061 GB Notification: Performance of NFPackage.collectConstants: time 3.166e-05/0.3984, allocations: 16 kB / 1.366 GB, free: 11.79 MB / 1.061 GB Notification: Performance of NFFlatten.collectFunctions: time 8.046e-05/0.3985, allocations: 27.88 kB / 1.366 GB, free: 11.76 MB / 1.061 GB Notification: Performance of NFScalarize.scalarize: time 3.311e-05/0.3985, allocations: 19.92 kB / 1.366 GB, free: 11.74 MB / 1.061 GB Notification: Performance of NFVerifyModel.verify: time 7.759e-05/0.3986, allocations: 43.83 kB / 1.366 GB, free: 11.7 MB / 1.061 GB Notification: Performance of NFConvertDAE.convert: time 0.0002268/0.3988, allocations: 127.8 kB / 1.366 GB, free: 11.57 MB / 1.061 GB Notification: Performance of FrontEnd - DAE generated: time 4.248e-06/0.3988, allocations: 0 / 1.366 GB, free: 11.57 MB / 1.061 GB Notification: Performance of FrontEnd: time 2.244e-06/0.3988, allocations: 4 kB / 1.366 GB, free: 11.57 MB / 1.061 GB Notification: Performance of Transformations before backend: time 8.356e-06/0.3988, allocations: 0 / 1.366 GB, free: 11.57 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: 10 * Number of variables: 10 Notification: Performance of Generate backend data structure: time 0.0006602/0.3995, allocations: 339.8 kB / 1.366 GB, free: 11.2 MB / 1.061 GB Notification: Performance of prepare preOptimizeDAE: time 4.381e-05/0.3995, allocations: 12.02 kB / 1.366 GB, free: 11.19 MB / 1.061 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.499e-05/0.3996, allocations: 38.75 kB / 1.366 GB, free: 11.14 MB / 1.061 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.895e-05/0.3997, allocations: 12.89 kB / 1.366 GB, free: 11.13 MB / 1.061 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001165/0.3998, allocations: 118.4 kB / 1.366 GB, free: 10.99 MB / 1.061 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.245e-05/0.3998, allocations: 12.36 kB / 1.366 GB, free: 10.98 MB / 1.061 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.474e-05/0.3999, allocations: 8.375 kB / 1.366 GB, free: 10.97 MB / 1.061 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002114/0.4001, allocations: 73.97 kB / 1.366 GB, free: 10.89 MB / 1.061 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.606e-06/0.4001, allocations: 0 / 1.366 GB, free: 10.89 MB / 1.061 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.556e-05/0.4001, allocations: 4 kB / 1.366 GB, free: 10.89 MB / 1.061 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.549e-06/0.4001, allocations: 0 / 1.366 GB, free: 10.89 MB / 1.061 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002026/0.4003, allocations: 55.89 kB / 1.367 GB, free: 10.83 MB / 1.061 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005357/0.4008, allocations: 287.8 kB / 1.367 GB, free: 10.51 MB / 1.061 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001864/0.401, allocations: 54.55 kB / 1.367 GB, free: 10.45 MB / 1.061 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001079/0.4011, allocations: 36.98 kB / 1.367 GB, free: 10.41 MB / 1.061 GB Notification: Performance of preOpt evalFunc (simulation): time 2.099e-05/0.4011, allocations: 0 / 1.367 GB, free: 10.41 MB / 1.061 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002777/0.4014, allocations: 95.31 kB / 1.367 GB, free: 10.3 MB / 1.061 GB Notification: Performance of pre-optimization done (n=8): time 1.262e-06/0.4014, allocations: 0 / 1.367 GB, free: 10.3 MB / 1.061 GB Notification: Performance of matching and sorting (n=8): time 0.0005488/0.402, allocations: 145.6 kB / 1.367 GB, free: 10.15 MB / 1.061 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.806e-05/0.402, allocations: 67.33 kB / 1.367 GB, free: 10.07 MB / 1.061 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001157/0.4022, allocations: 121.8 kB / 1.367 GB, free: 9.945 MB / 1.061 GB Notification: Performance of collectPreVariables (initialization): time 3.991e-05/0.4022, allocations: 29.7 kB / 1.367 GB, free: 9.91 MB / 1.061 GB Notification: Performance of collectInitialEqns (initialization): time 7.938e-05/0.4023, allocations: 92.09 kB / 1.367 GB, free: 9.816 MB / 1.061 GB Notification: Performance of collectInitialBindings (initialization): time 2.962e-05/0.4023, allocations: 23.83 kB / 1.367 GB, free: 9.793 MB / 1.061 GB Notification: Performance of simplifyInitialFunctions (initialization): time 8.121e-05/0.4024, allocations: 41.7 kB / 1.367 GB, free: 9.746 MB / 1.061 GB Notification: Performance of setup shared object (initialization): time 0.0001708/0.4026, allocations: 322.8 kB / 1.368 GB, free: 9.422 MB / 1.061 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001964/0.4028, allocations: 85.66 kB / 1.368 GB, free: 9.332 MB / 1.061 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002405/0.403, allocations: 114.8 kB / 1.368 GB, free: 9.195 MB / 1.061 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003228/0.4033, allocations: 150.8 kB / 1.368 GB, free: 9.023 MB / 1.061 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.512e-06/0.4033, allocations: 7.938 kB / 1.368 GB, free: 9.016 MB / 1.061 GB Notification: Performance of matching and sorting (n=13) (initialization): time 0.000511/0.4038, allocations: 244.8 kB / 1.368 GB, free: 8.758 MB / 1.061 GB Notification: Performance of prepare postOptimizeDAE: time 5.409e-05/0.4039, allocations: 37.7 kB / 1.368 GB, free: 8.715 MB / 1.061 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.583e-06/0.4039, allocations: 320 / 1.368 GB, free: 8.715 MB / 1.061 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.729e-05/0.4039, allocations: 4 kB / 1.368 GB, free: 8.711 MB / 1.061 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001064/0.404, allocations: 20.08 kB / 1.368 GB, free: 8.691 MB / 1.061 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.298e-06/0.404, allocations: 4 kB / 1.368 GB, free: 8.688 MB / 1.061 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000216/0.4042, allocations: 35.91 kB / 1.368 GB, free: 8.652 MB / 1.061 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.964e-05/0.4043, allocations: 19.92 kB / 1.368 GB, free: 8.633 MB / 1.061 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 6 * Number of states: 0 () * Number of discrete variables: 9 (triSam1.y,$PRE.triSam1.y,triSam.y,$PRE.triSam.y,booPul.y,$PRE.booPul.y,$whenCondition3,$whenCondition1,$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): 10 * Array equations: 0 * Algorithm blocks: 1 * 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.0001234/0.4044, allocations: 121.8 kB / 1.369 GB, free: 8.504 MB / 1.061 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.752e-05/0.4044, allocations: 3.984 kB / 1.369 GB, free: 8.5 MB / 1.061 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003308/0.4047, allocations: 126 kB / 1.369 GB, free: 8.367 MB / 1.061 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.04e-06/0.4048, allocations: 4 kB / 1.369 GB, free: 8.363 MB / 1.061 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.568e-06/0.4048, allocations: 0 / 1.369 GB, free: 8.363 MB / 1.061 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.456e-06/0.4048, allocations: 0 / 1.369 GB, free: 8.363 MB / 1.061 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000499/0.4053, allocations: 349.5 kB / 1.369 GB, free: 7.973 MB / 1.061 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.408e-06/0.4053, allocations: 3.984 kB / 1.369 GB, free: 7.969 MB / 1.061 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.28e-05/0.4053, allocations: 8 kB / 1.369 GB, free: 7.961 MB / 1.061 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.266e-06/0.4053, allocations: 0 / 1.369 GB, free: 7.961 MB / 1.061 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.786e-05/0.4054, allocations: 7.984 kB / 1.369 GB, free: 7.953 MB / 1.061 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.823e-06/0.4054, allocations: 11.88 kB / 1.369 GB, free: 7.941 MB / 1.061 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.41e-07/0.4054, allocations: 0 / 1.369 GB, free: 7.941 MB / 1.061 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000361/0.4057, allocations: 215.4 kB / 1.369 GB, free: 7.715 MB / 1.061 GB Notification: Performance of postOpt removeConstants (simulation): time 1.262e-05/0.4057, allocations: 0 / 1.369 GB, free: 7.715 MB / 1.061 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.278e-05/0.4058, allocations: 8 kB / 1.369 GB, free: 7.707 MB / 1.061 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.231e-05/0.4059, allocations: 11.92 kB / 1.369 GB, free: 7.695 MB / 1.061 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.045e-05/0.4059, allocations: 3.984 kB / 1.369 GB, free: 7.691 MB / 1.061 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.807e-06/0.4059, allocations: 7.938 kB / 1.369 GB, free: 7.684 MB / 1.061 GB Notification: Performance of sorting global known variables: time 7.669e-05/0.406, allocations: 95.27 kB / 1.369 GB, free: 7.59 MB / 1.061 GB Notification: Performance of sort global known variables: time 8.1e-08/0.406, allocations: 0 / 1.369 GB, free: 7.59 MB / 1.061 GB Notification: Performance of remove unused functions: time 0.0002773/0.4063, allocations: 27.95 kB / 1.369 GB, free: 7.562 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 ($whenCondition3,$whenCondition1,$whenCondition2,booPul.y,triSam.y,triSam1.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (8): * Single equations (assignments): 5 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 3 * 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.0007131/0.407, allocations: 0.7437 MB / 1.37 GB, free: 6.793 MB / 1.061 GB Notification: Performance of simCode: created initialization part: time 0.00042/0.4074, allocations: 197.1 kB / 1.37 GB, free: 6.582 MB / 1.061 GB Notification: Performance of simCode: created event and clocks part: time 1.973e-06/0.4074, allocations: 0 / 1.37 GB, free: 6.582 MB / 1.061 GB Notification: Performance of simCode: created simulation system equations: time 0.0001261/0.4075, allocations: 39.91 kB / 1.37 GB, free: 6.543 MB / 1.061 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000296/0.4078, allocations: 28.3 kB / 1.37 GB, free: 6.52 MB / 1.061 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002446/0.4103, allocations: 1.834 MB / 1.372 GB, free: 4.543 MB / 1.061 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 8.496e-05/0.4103, allocations: 79.27 kB / 1.372 GB, free: 4.445 MB / 1.061 GB Notification: Performance of simCode: alias equations: time 3.856e-05/0.4104, allocations: 4 kB / 1.372 GB, free: 4.441 MB / 1.061 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.756e-05/0.4104, allocations: 27.36 kB / 1.372 GB, free: 4.414 MB / 1.061 GB Notification: Performance of SimCode: time 4.11e-07/0.4104, allocations: 0 / 1.372 GB, free: 4.414 MB / 1.061 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03159/0.442, allocations: 3.232 MB / 1.375 GB, free: 1.34 MB / 1.061 GB Notification: Performance of buildModelFMU: Generate platform static: time 11.27/11.71, allocations: 7.516 kB / 1.375 GB, free: 1.336 MB / 1.061 GB " [Timeout remaining time 288] (rm -f Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Validation.TriggeredSampler.pipe ; mkfifo Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Validation.TriggeredSampler.pipe ; head -c 1048576 < Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Validation.TriggeredSampler.pipe >> ../files/Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Validation.TriggeredSampler.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Validation.TriggeredSampler_res.mat --tempDir=temp_Buildings_latest_Buildings_Controls_OBC_CDL_Discrete_Validation_TriggeredSampler_fmu --startTime=0 --stopTime=1 --stepSize=0.0004 --timeout=800 --tolerance=1e-06 Buildings_latest_Buildings_Controls_OBC_CDL_Discrete_Validation_TriggeredSampler.fmu > Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Validation.TriggeredSampler.pipe 2>&1) [Timeout 840.0] diffSimulationResults("Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Validation.TriggeredSampler_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Controls_OBC_CDL_Discrete_Validation_TriggeredSampler.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Validation.TriggeredSampler.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.680566932074726]