Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_12_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.0014/0.0014, 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.001579/0.001579, allocations: 214.8 kB / 22.24 MB, free: 4.855 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.528/1.528, allocations: 230.6 MB / 256 MB, free: 8 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.1-maint.12.x/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.1-maint.12.x/package.mo): time 3.272/3.272, allocations: 0.4892 GB / 0.7943 GB, free: 35.55 MB / 0.6231 GB " [Timeout remaining time 176] Using package Buildings with version 12.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.1-maint.12.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_12_Buildings_Controls_OBC_CDL_Discrete_Validation_TriggeredSampler",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Controls.OBC.CDL.Discrete.Validation.TriggeredSampler,fileNamePrefix="Buildings_12_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.002119/0.002119, allocations: 70.2 kB / 1.153 GB, free: 25.92 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3799/0.3821, allocations: 176.1 MB / 1.325 GB, free: 2.418 MB / 1.014 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Discrete.Validation.TriggeredSampler): time 0.002098/0.3842, allocations: 0.7488 MB / 1.326 GB, free: 1.676 MB / 1.014 GB Notification: Performance of NFInst.instExpressions: time 0.001616/0.3858, allocations: 1.182 MB / 1.327 GB, free: 492 kB / 1.014 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.138e-05/0.3858, allocations: 0 / 1.327 GB, free: 492 kB / 1.014 GB Notification: Performance of NFTyping.typeComponents: time 3.483e-05/0.3859, allocations: 3.938 kB / 1.327 GB, free: 488 kB / 1.014 GB Notification: Performance of NFTyping.typeBindings: time 7.256e-05/0.3859, allocations: 19.84 kB / 1.327 GB, free: 468 kB / 1.014 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005585/0.3865, allocations: 141.4 kB / 1.327 GB, free: 332 kB / 1.014 GB Notification: Performance of NFFlatten.flatten: time 0.0002049/0.3867, allocations: 123.8 kB / 1.327 GB, free: 208 kB / 1.014 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001133/0.3868, allocations: 16.16 kB / 1.327 GB, free: 188 kB / 1.014 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001019/0.3869, allocations: 55.84 kB / 1.327 GB, free: 132 kB / 1.014 GB Notification: Performance of NFSimplifyModel.simplify: time 9.928e-05/0.387, allocations: 51.75 kB / 1.327 GB, free: 80 kB / 1.014 GB Notification: Performance of NFPackage.collectConstants: time 3.231e-05/0.387, allocations: 12 kB / 1.327 GB, free: 68 kB / 1.014 GB Notification: Performance of NFFlatten.collectFunctions: time 7.768e-05/0.3871, allocations: 27.98 kB / 1.327 GB, free: 40 kB / 1.014 GB Notification: Performance of NFScalarize.scalarize: time 2.073e-05/0.3871, allocations: 7.984 kB / 1.327 GB, free: 32 kB / 1.014 GB Notification: Performance of NFVerifyModel.verify: time 9.07e-05/0.3872, allocations: 47.92 kB / 1.327 GB, free: 15.98 MB / 1.029 GB Notification: Performance of NFConvertDAE.convert: time 0.0001991/0.3874, allocations: 127.7 kB / 1.328 GB, free: 15.86 MB / 1.029 GB Notification: Performance of FrontEnd - DAE generated: time 3.566e-06/0.3874, allocations: 0 / 1.328 GB, free: 15.86 MB / 1.029 GB Notification: Performance of FrontEnd: time 1.222e-06/0.3874, allocations: 0 / 1.328 GB, free: 15.86 MB / 1.029 GB Notification: Performance of Transformations before backend: time 1.086e-05/0.3874, allocations: 4 kB / 1.328 GB, free: 15.86 MB / 1.029 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.000611/0.3881, allocations: 339.7 kB / 1.328 GB, free: 15.49 MB / 1.029 GB Notification: Performance of prepare preOptimizeDAE: time 3.907e-05/0.3881, allocations: 16.03 kB / 1.328 GB, free: 15.47 MB / 1.029 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.748e-05/0.3881, allocations: 38.73 kB / 1.328 GB, free: 15.43 MB / 1.029 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.279e-05/0.3882, allocations: 12.89 kB / 1.328 GB, free: 15.41 MB / 1.029 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001114/0.3883, allocations: 118.4 kB / 1.328 GB, free: 15.27 MB / 1.029 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.355e-05/0.3883, allocations: 4.375 kB / 1.328 GB, free: 15.27 MB / 1.029 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.219e-05/0.3884, allocations: 16.36 kB / 1.328 GB, free: 15.25 MB / 1.029 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002031/0.3886, allocations: 73.91 kB / 1.328 GB, free: 15.18 MB / 1.029 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.947e-06/0.3886, allocations: 0 / 1.328 GB, free: 15.18 MB / 1.029 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.288e-06/0.3886, allocations: 4 kB / 1.328 GB, free: 15.17 MB / 1.029 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.887e-06/0.3886, allocations: 0 / 1.328 GB, free: 15.17 MB / 1.029 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000186/0.3888, allocations: 51.89 kB / 1.328 GB, free: 15.12 MB / 1.029 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005134/0.3893, allocations: 287.8 kB / 1.328 GB, free: 14.8 MB / 1.029 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001886/0.3895, allocations: 58.58 kB / 1.329 GB, free: 14.73 MB / 1.029 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001039/0.3896, allocations: 32.95 kB / 1.329 GB, free: 14.7 MB / 1.029 GB Notification: Performance of preOpt evalFunc (simulation): time 2.158e-05/0.3896, allocations: 4 kB / 1.329 GB, free: 14.69 MB / 1.029 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002703/0.3899, allocations: 95.34 kB / 1.329 GB, free: 14.59 MB / 1.029 GB Notification: Performance of pre-optimization done (n=8): time 1.452e-06/0.3899, allocations: 0 / 1.329 GB, free: 14.59 MB / 1.029 GB Notification: Performance of matching and sorting (n=8): time 0.0004656/0.3904, allocations: 149.5 kB / 1.329 GB, free: 14.43 MB / 1.029 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.487e-05/0.3904, allocations: 55.41 kB / 1.329 GB, free: 14.37 MB / 1.029 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000108/0.3905, allocations: 117.8 kB / 1.329 GB, free: 14.24 MB / 1.029 GB Notification: Performance of collectPreVariables (initialization): time 3.184e-05/0.3905, allocations: 33.7 kB / 1.329 GB, free: 14.2 MB / 1.029 GB Notification: Performance of collectInitialEqns (initialization): time 6.763e-05/0.3906, allocations: 92.09 kB / 1.329 GB, free: 14.11 MB / 1.029 GB Notification: Performance of collectInitialBindings (initialization): time 3.097e-05/0.3906, allocations: 35.77 kB / 1.329 GB, free: 14.07 MB / 1.029 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.517e-05/0.3907, allocations: 37.7 kB / 1.329 GB, free: 14.03 MB / 1.029 GB Notification: Performance of setup shared object (initialization): time 0.0001426/0.3909, allocations: 318.8 kB / 1.329 GB, free: 13.71 MB / 1.029 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001836/0.391, allocations: 77.67 kB / 1.33 GB, free: 13.63 MB / 1.029 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002098/0.3912, allocations: 134.7 kB / 1.33 GB, free: 13.47 MB / 1.029 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002933/0.3915, allocations: 154.7 kB / 1.33 GB, free: 13.3 MB / 1.029 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.034e-06/0.3915, allocations: 0 / 1.33 GB, free: 13.3 MB / 1.029 GB Notification: Performance of matching and sorting (n=13) (initialization): time 0.0004805/0.392, allocations: 244.8 kB / 1.33 GB, free: 13.04 MB / 1.029 GB Notification: Performance of prepare postOptimizeDAE: time 4.129e-05/0.3921, allocations: 37.69 kB / 1.33 GB, free: 13 MB / 1.029 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.529e-06/0.3921, allocations: 0 / 1.33 GB, free: 13 MB / 1.029 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.668e-05/0.3921, allocations: 8.156 kB / 1.33 GB, free: 12.99 MB / 1.029 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.955e-05/0.3922, allocations: 11.98 kB / 1.33 GB, free: 12.98 MB / 1.029 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.474e-06/0.3922, allocations: 4 kB / 1.33 GB, free: 12.97 MB / 1.029 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002097/0.3924, allocations: 35.95 kB / 1.33 GB, free: 12.94 MB / 1.029 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.49e-05/0.3924, allocations: 11.94 kB / 1.33 GB, free: 12.93 MB / 1.029 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.0001206/0.3925, allocations: 126.2 kB / 1.33 GB, free: 12.79 MB / 1.029 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.572e-05/0.3926, allocations: 7.953 kB / 1.33 GB, free: 12.79 MB / 1.029 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003243/0.3929, allocations: 126 kB / 1.33 GB, free: 12.65 MB / 1.029 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.685e-06/0.3929, allocations: 0 / 1.33 GB, free: 12.65 MB / 1.029 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.386e-06/0.3929, allocations: 4 kB / 1.33 GB, free: 12.65 MB / 1.029 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.149e-06/0.3929, allocations: 4.031 kB / 1.33 GB, free: 12.64 MB / 1.029 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004748/0.3934, allocations: 345.5 kB / 1.331 GB, free: 12.26 MB / 1.029 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.613e-06/0.3934, allocations: 0 / 1.331 GB, free: 12.26 MB / 1.029 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.347e-05/0.3934, allocations: 11.98 kB / 1.331 GB, free: 12.25 MB / 1.029 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.834e-06/0.3934, allocations: 4 kB / 1.331 GB, free: 12.24 MB / 1.029 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.083e-05/0.3935, allocations: 4 kB / 1.331 GB, free: 12.24 MB / 1.029 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.466e-06/0.3935, allocations: 3.938 kB / 1.331 GB, free: 12.23 MB / 1.029 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.42e-07/0.3935, allocations: 4 kB / 1.331 GB, free: 12.23 MB / 1.029 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003475/0.3938, allocations: 219.4 kB / 1.331 GB, free: 12 MB / 1.029 GB Notification: Performance of postOpt removeConstants (simulation): time 1.054e-05/0.3938, allocations: 3.953 kB / 1.331 GB, free: 12 MB / 1.029 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.577e-05/0.3938, allocations: 0 / 1.331 GB, free: 12 MB / 1.029 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.354e-05/0.3939, allocations: 15.92 kB / 1.331 GB, free: 11.98 MB / 1.029 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.16e-05/0.394, allocations: 11.98 kB / 1.331 GB, free: 11.97 MB / 1.029 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.596e-06/0.394, allocations: 8 kB / 1.331 GB, free: 11.96 MB / 1.029 GB Notification: Performance of sorting global known variables: time 5.77e-05/0.394, allocations: 87.28 kB / 1.331 GB, free: 11.88 MB / 1.029 GB Notification: Performance of sort global known variables: time 8e-08/0.394, allocations: 0 / 1.331 GB, free: 11.88 MB / 1.029 GB Notification: Performance of remove unused functions: time 0.0002707/0.3943, allocations: 31.92 kB / 1.331 GB, free: 11.84 MB / 1.029 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.0006718/0.395, allocations: 0.748 MB / 1.332 GB, free: 11.07 MB / 1.029 GB Notification: Performance of simCode: created initialization part: time 0.0004112/0.3954, allocations: 205 kB / 1.332 GB, free: 10.85 MB / 1.029 GB Notification: Performance of simCode: created event and clocks part: time 1.924e-06/0.3954, allocations: 0 / 1.332 GB, free: 10.85 MB / 1.029 GB Notification: Performance of simCode: created simulation system equations: time 0.0001227/0.3955, allocations: 35.97 kB / 1.332 GB, free: 10.82 MB / 1.029 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002818/0.3958, allocations: 16.91 kB / 1.332 GB, free: 10.8 MB / 1.029 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002419/0.3982, allocations: 1.84 MB / 1.334 GB, free: 8.82 MB / 1.029 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 7.266e-05/0.3983, allocations: 71.28 kB / 1.334 GB, free: 8.73 MB / 1.029 GB Notification: Performance of simCode: alias equations: time 3.803e-05/0.3983, allocations: 7.984 kB / 1.334 GB, free: 8.723 MB / 1.029 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.987e-05/0.3984, allocations: 23.44 kB / 1.334 GB, free: 8.699 MB / 1.029 GB Notification: Performance of SimCode: time 5.21e-07/0.3984, allocations: 0 / 1.334 GB, free: 8.699 MB / 1.029 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03008/0.4285, allocations: 3.217 MB / 1.337 GB, free: 5.641 MB / 1.029 GB Notification: Performance of buildModelFMU: Generate platform static: time 11.3/11.73, allocations: 8.172 kB / 1.337 GB, free: 5.637 MB / 1.029 GB " [Timeout remaining time 288] (rm -f Buildings_12_Buildings.Controls.OBC.CDL.Discrete.Validation.TriggeredSampler.pipe ; mkfifo Buildings_12_Buildings.Controls.OBC.CDL.Discrete.Validation.TriggeredSampler.pipe ; head -c 1048576 < Buildings_12_Buildings.Controls.OBC.CDL.Discrete.Validation.TriggeredSampler.pipe >> ../files/Buildings_12_Buildings.Controls.OBC.CDL.Discrete.Validation.TriggeredSampler.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_12_Buildings.Controls.OBC.CDL.Discrete.Validation.TriggeredSampler_res.mat --tempDir=temp_Buildings_12_Buildings_Controls_OBC_CDL_Discrete_Validation_TriggeredSampler_fmu --startTime=0 --stopTime=1 --stepSize=0.0004 --timeout=400 --tolerance=1e-06 Buildings_12_Buildings_Controls_OBC_CDL_Discrete_Validation_TriggeredSampler.fmu > Buildings_12_Buildings.Controls.OBC.CDL.Discrete.Validation.TriggeredSampler.pipe 2>&1) [Timeout 420.0] diffSimulationResults("Buildings_12_Buildings.Controls.OBC.CDL.Discrete.Validation.TriggeredSampler_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_12.x/Buildings_Controls_OBC_CDL_Discrete_Validation_TriggeredSampler.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_12_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.53178940434009]