Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_11_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.00133/0.00133, allocations: 99.64 kB / 18.94 MB, free: 2.551 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.001484/0.001484, allocations: 210.6 kB / 22.24 MB, free: 4.859 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.488/1.488, allocations: 230.6 MB / 256 MB, free: 8.031 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.1-maint.11.x/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.1-maint.11.x/package.mo): time 2.857/2.857, allocations: 476 MB / 0.7699 GB, free: 4.777 MB / 0.6231 GB " [Timeout remaining time 176] Using package Buildings with version 11.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.1-maint.11.x/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_11_Buildings_Controls_OBC_CDL_Discrete_Validation_TriggeredSampler",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Controls.OBC.CDL.Discrete.Validation.TriggeredSampler,fileNamePrefix="Buildings_11_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.002909/0.002909, allocations: 64.84 kB / 1.117 GB, free: 41.28 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3693/0.3722, allocations: 170 MB / 1.283 GB, free: 12.48 MB / 0.9825 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Discrete.Validation.TriggeredSampler): time 0.002072/0.3743, allocations: 0.7301 MB / 1.283 GB, free: 11.75 MB / 0.9825 GB Notification: Performance of NFInst.instExpressions: time 0.001735/0.376, allocations: 1.184 MB / 1.284 GB, free: 10.55 MB / 0.9825 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.963e-05/0.3761, allocations: 3.938 kB / 1.284 GB, free: 10.55 MB / 0.9825 GB Notification: Performance of NFTyping.typeComponents: time 3.31e-05/0.3761, allocations: 3.938 kB / 1.284 GB, free: 10.55 MB / 0.9825 GB Notification: Performance of NFTyping.typeBindings: time 7.343e-05/0.3762, allocations: 15.86 kB / 1.284 GB, free: 10.53 MB / 0.9825 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005219/0.3767, allocations: 144.9 kB / 1.285 GB, free: 10.39 MB / 0.9825 GB Notification: Performance of NFFlatten.flatten: time 0.0002089/0.3769, allocations: 127.7 kB / 1.285 GB, free: 10.27 MB / 0.9825 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001157/0.377, allocations: 23.67 kB / 1.285 GB, free: 10.25 MB / 0.9825 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001005/0.3771, allocations: 43.92 kB / 1.285 GB, free: 10.2 MB / 0.9825 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001041/0.3772, allocations: 47.81 kB / 1.285 GB, free: 10.16 MB / 0.9825 GB Notification: Performance of NFPackage.collectConstants: time 2.982e-05/0.3772, allocations: 12 kB / 1.285 GB, free: 10.14 MB / 0.9825 GB Notification: Performance of NFFlatten.collectFunctions: time 9.231e-05/0.3773, allocations: 31.97 kB / 1.285 GB, free: 10.11 MB / 0.9825 GB Notification: Performance of NFScalarize.scalarize: time 2.634e-05/0.3774, allocations: 7.984 kB / 1.285 GB, free: 10.11 MB / 0.9825 GB Notification: Performance of NFVerifyModel.verify: time 6.63e-05/0.3774, allocations: 43.86 kB / 1.285 GB, free: 10.06 MB / 0.9825 GB Notification: Performance of NFConvertDAE.convert: time 0.000214/0.3776, allocations: 129.2 kB / 1.285 GB, free: 9.938 MB / 0.9825 GB Notification: Performance of FrontEnd - DAE generated: time 4.448e-06/0.3776, allocations: 0 / 1.285 GB, free: 9.938 MB / 0.9825 GB Notification: Performance of FrontEnd: time 1.923e-06/0.3776, allocations: 0 / 1.285 GB, free: 9.938 MB / 0.9825 GB Notification: Performance of Transformations before backend: time 5.36e-06/0.3777, allocations: 0 / 1.285 GB, free: 9.938 MB / 0.9825 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.0006527/0.3783, allocations: 349.8 kB / 1.285 GB, free: 9.562 MB / 0.9825 GB Notification: Performance of prepare preOptimizeDAE: time 4.216e-05/0.3783, allocations: 16.03 kB / 1.285 GB, free: 9.547 MB / 0.9825 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.503e-05/0.3784, allocations: 30.75 kB / 1.285 GB, free: 9.508 MB / 0.9825 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001005/0.3785, allocations: 16.88 kB / 1.285 GB, free: 9.492 MB / 0.9825 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001201/0.3786, allocations: 118.4 kB / 1.286 GB, free: 9.352 MB / 0.9825 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.736e-05/0.3786, allocations: 8.375 kB / 1.286 GB, free: 9.344 MB / 0.9825 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.612e-05/0.3786, allocations: 8.375 kB / 1.286 GB, free: 9.336 MB / 0.9825 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002039/0.3789, allocations: 77.91 kB / 1.286 GB, free: 9.254 MB / 0.9825 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.935e-06/0.3789, allocations: 0 / 1.286 GB, free: 9.254 MB / 0.9825 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.166e-05/0.3789, allocations: 4 kB / 1.286 GB, free: 9.25 MB / 0.9825 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.817e-06/0.3789, allocations: 0 / 1.286 GB, free: 9.25 MB / 0.9825 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001837/0.3791, allocations: 47.95 kB / 1.286 GB, free: 9.203 MB / 0.9825 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005355/0.3796, allocations: 295.8 kB / 1.286 GB, free: 8.871 MB / 0.9825 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001755/0.3798, allocations: 54.55 kB / 1.286 GB, free: 8.809 MB / 0.9825 GB Notification: Performance of preOpt resolveLoops (simulation): time 9.821e-05/0.3799, allocations: 24.97 kB / 1.286 GB, free: 8.781 MB / 0.9825 GB Notification: Performance of preOpt evalFunc (simulation): time 2.206e-05/0.3799, allocations: 4 kB / 1.286 GB, free: 8.777 MB / 0.9825 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000256/0.3801, allocations: 95.39 kB / 1.286 GB, free: 8.672 MB / 0.9825 GB Notification: Performance of pre-optimization done (n=8): time 1.423e-06/0.3801, allocations: 0 / 1.286 GB, free: 8.672 MB / 0.9825 GB Notification: Performance of matching and sorting (n=8): time 0.0004776/0.3806, allocations: 157.5 kB / 1.286 GB, free: 8.512 MB / 0.9825 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.955e-05/0.3807, allocations: 51.41 kB / 1.286 GB, free: 8.449 MB / 0.9825 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001084/0.3808, allocations: 117.8 kB / 1.286 GB, free: 8.324 MB / 0.9825 GB Notification: Performance of collectPreVariables (initialization): time 3.252e-05/0.3808, allocations: 29.7 kB / 1.286 GB, free: 8.289 MB / 0.9825 GB Notification: Performance of collectInitialEqns (initialization): time 9.195e-05/0.3809, allocations: 104 kB / 1.287 GB, free: 8.184 MB / 0.9825 GB Notification: Performance of collectInitialBindings (initialization): time 2.284e-05/0.3809, allocations: 19.84 kB / 1.287 GB, free: 8.164 MB / 0.9825 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.965e-05/0.381, allocations: 41.69 kB / 1.287 GB, free: 8.117 MB / 0.9825 GB Notification: Performance of setup shared object (initialization): time 0.00016/0.3812, allocations: 318.8 kB / 1.287 GB, free: 7.797 MB / 0.9825 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001995/0.3814, allocations: 85.66 kB / 1.287 GB, free: 7.707 MB / 0.9825 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002296/0.3816, allocations: 122.8 kB / 1.287 GB, free: 7.562 MB / 0.9825 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003092/0.3819, allocations: 154.7 kB / 1.287 GB, free: 7.387 MB / 0.9825 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.124e-06/0.3819, allocations: 0 / 1.287 GB, free: 7.387 MB / 0.9825 GB Notification: Performance of matching and sorting (n=13) (initialization): time 0.0005088/0.3824, allocations: 244.8 kB / 1.288 GB, free: 7.129 MB / 0.9825 GB Notification: Performance of prepare postOptimizeDAE: time 5.861e-05/0.3825, allocations: 37.7 kB / 1.288 GB, free: 7.086 MB / 0.9825 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.597e-06/0.3825, allocations: 8.078 kB / 1.288 GB, free: 7.078 MB / 0.9825 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.363e-05/0.3825, allocations: 8 kB / 1.288 GB, free: 7.07 MB / 0.9825 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001021/0.3826, allocations: 11.98 kB / 1.288 GB, free: 7.059 MB / 0.9825 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.239e-05/0.3826, allocations: 7.984 kB / 1.288 GB, free: 7.051 MB / 0.9825 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002103/0.3828, allocations: 43.84 kB / 1.288 GB, free: 7.008 MB / 0.9825 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.928e-05/0.3829, allocations: 15.92 kB / 1.288 GB, free: 6.992 MB / 0.9825 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.0001111/0.383, allocations: 117.5 kB / 1.288 GB, free: 6.871 MB / 0.9825 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.417e-05/0.383, allocations: 11.95 kB / 1.288 GB, free: 6.859 MB / 0.9825 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003355/0.3833, allocations: 129.9 kB / 1.288 GB, free: 6.723 MB / 0.9825 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.555e-06/0.3833, allocations: 0 / 1.288 GB, free: 6.723 MB / 0.9825 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.603e-06/0.3833, allocations: 4 kB / 1.288 GB, free: 6.719 MB / 0.9825 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.436e-06/0.3833, allocations: 0 / 1.288 GB, free: 6.719 MB / 0.9825 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004855/0.3838, allocations: 345.5 kB / 1.288 GB, free: 6.332 MB / 0.9825 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.413e-06/0.3838, allocations: 0 / 1.288 GB, free: 6.332 MB / 0.9825 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.293e-05/0.3839, allocations: 11.98 kB / 1.288 GB, free: 6.32 MB / 0.9825 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.014e-06/0.3839, allocations: 7.938 kB / 1.288 GB, free: 6.312 MB / 0.9825 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.896e-06/0.3839, allocations: 0 / 1.288 GB, free: 6.312 MB / 0.9825 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.546e-06/0.3839, allocations: 3.938 kB / 1.288 GB, free: 6.309 MB / 0.9825 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.835e-06/0.3839, allocations: 4 kB / 1.288 GB, free: 6.305 MB / 0.9825 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003399/0.3842, allocations: 211.5 kB / 1.288 GB, free: 6.082 MB / 0.9825 GB Notification: Performance of postOpt removeConstants (simulation): time 1.685e-05/0.3843, allocations: 11.95 kB / 1.288 GB, free: 6.07 MB / 0.9825 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.994e-05/0.3843, allocations: 3.984 kB / 1.288 GB, free: 6.066 MB / 0.9825 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.601e-05/0.3844, allocations: 7.938 kB / 1.288 GB, free: 6.059 MB / 0.9825 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.265e-05/0.3844, allocations: 11.98 kB / 1.288 GB, free: 6.047 MB / 0.9825 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.998e-06/0.3844, allocations: 8 kB / 1.288 GB, free: 6.039 MB / 0.9825 GB Notification: Performance of sorting global known variables: time 6.652e-05/0.3845, allocations: 91.27 kB / 1.289 GB, free: 5.949 MB / 0.9825 GB Notification: Performance of sort global known variables: time 8e-08/0.3845, allocations: 0 / 1.289 GB, free: 5.949 MB / 0.9825 GB Notification: Performance of remove unused functions: time 0.0002663/0.3848, allocations: 20 kB / 1.289 GB, free: 5.93 MB / 0.9825 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.0007244/0.3855, allocations: 0.7553 MB / 1.289 GB, free: 5.148 MB / 0.9825 GB Notification: Performance of simCode: created initialization part: time 0.0004395/0.3859, allocations: 197 kB / 1.29 GB, free: 4.938 MB / 0.9825 GB Notification: Performance of simCode: created event and clocks part: time 1.774e-06/0.3859, allocations: 0 / 1.29 GB, free: 4.938 MB / 0.9825 GB Notification: Performance of simCode: created simulation system equations: time 0.0001224/0.386, allocations: 35.91 kB / 1.29 GB, free: 4.902 MB / 0.9825 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002831/0.3863, allocations: 26.36 kB / 1.29 GB, free: 4.879 MB / 0.9825 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002596/0.3889, allocations: 1.842 MB / 1.291 GB, free: 2.895 MB / 0.9825 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 8.654e-05/0.389, allocations: 75.27 kB / 1.291 GB, free: 2.801 MB / 0.9825 GB Notification: Performance of simCode: alias equations: time 3.579e-05/0.389, allocations: 7.938 kB / 1.291 GB, free: 2.793 MB / 0.9825 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.424e-05/0.3891, allocations: 23.42 kB / 1.291 GB, free: 2.77 MB / 0.9825 GB Notification: Performance of SimCode: time 3.21e-07/0.3891, allocations: 4 kB / 1.291 GB, free: 2.766 MB / 0.9825 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03509/0.4242, allocations: 3.212 MB / 1.295 GB, free: 15.71 MB / 0.9981 GB Notification: Performance of buildModelFMU: Generate platform static: time 11.25/11.67, allocations: 11.67 kB / 1.295 GB, free: 15.71 MB / 0.9981 GB " [Timeout remaining time 288] (rm -f Buildings_11_Buildings.Controls.OBC.CDL.Discrete.Validation.TriggeredSampler.pipe ; mkfifo Buildings_11_Buildings.Controls.OBC.CDL.Discrete.Validation.TriggeredSampler.pipe ; head -c 1048576 < Buildings_11_Buildings.Controls.OBC.CDL.Discrete.Validation.TriggeredSampler.pipe >> ../files/Buildings_11_Buildings.Controls.OBC.CDL.Discrete.Validation.TriggeredSampler.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_11_Buildings.Controls.OBC.CDL.Discrete.Validation.TriggeredSampler_res.mat --tempDir=temp_Buildings_11_Buildings_Controls_OBC_CDL_Discrete_Validation_TriggeredSampler_fmu --startTime=0 --stopTime=1 --stepSize=0.0004 --timeout=400 --tolerance=1e-06 Buildings_11_Buildings_Controls_OBC_CDL_Discrete_Validation_TriggeredSampler.fmu > Buildings_11_Buildings.Controls.OBC.CDL.Discrete.Validation.TriggeredSampler.pipe 2>&1) [Timeout 420.0] diffSimulationResults("Buildings_11_Buildings.Controls.OBC.CDL.Discrete.Validation.TriggeredSampler_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_11.x/Buildings_Controls_OBC_CDL_Discrete_Validation_TriggeredSampler.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_11_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.532914237119257]