Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Validation.Sampler.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.001321/0.001321, 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.001446/0.001446, allocations: 215.8 kB / 22.25 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.486/1.486, allocations: 230.6 MB / 256 MB, free: 7.801 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.506/3.506, 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.Sampler,fileNamePrefix="Buildings_latest_Buildings_Controls_OBC_CDL_Discrete_Validation_Sampler",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Controls.OBC.CDL.Discrete.Validation.Sampler,fileNamePrefix="Buildings_latest_Buildings_Controls_OBC_CDL_Discrete_Validation_Sampler",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.002098/0.002098, allocations: 67.38 kB / 1.186 GB, free: 13.77 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3771/0.3792, allocations: 181.9 MB / 1.363 GB, free: 14.12 MB / 1.061 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Discrete.Validation.Sampler): time 0.002641/0.3819, allocations: 0.6648 MB / 1.364 GB, free: 13.45 MB / 1.061 GB Notification: Performance of NFInst.instExpressions: time 0.002294/0.3842, allocations: 1.081 MB / 1.365 GB, free: 12.36 MB / 1.061 GB Notification: Performance of NFInst.updateImplicitVariability: time 7.783e-05/0.3843, allocations: 4 kB / 1.365 GB, free: 12.36 MB / 1.061 GB Notification: Performance of NFTyping.typeComponents: time 4.719e-05/0.3843, allocations: 3.938 kB / 1.365 GB, free: 12.35 MB / 1.061 GB Notification: Performance of NFTyping.typeBindings: time 8.511e-05/0.3844, allocations: 3.938 kB / 1.365 GB, free: 12.35 MB / 1.061 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005102/0.3849, allocations: 51.81 kB / 1.365 GB, free: 12.3 MB / 1.061 GB Notification: Performance of NFFlatten.flatten: time 0.0001402/0.385, allocations: 35.92 kB / 1.365 GB, free: 12.26 MB / 1.061 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001085/0.3851, allocations: 15.98 kB / 1.365 GB, free: 12.25 MB / 1.061 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001035/0.3852, allocations: 23.86 kB / 1.365 GB, free: 12.22 MB / 1.061 GB Notification: Performance of NFSimplifyModel.simplify: time 6.645e-05/0.3853, allocations: 23.91 kB / 1.365 GB, free: 12.2 MB / 1.061 GB Notification: Performance of NFPackage.collectConstants: time 1.74e-05/0.3853, allocations: 4 kB / 1.365 GB, free: 12.2 MB / 1.061 GB Notification: Performance of NFFlatten.collectFunctions: time 8.198e-05/0.3854, allocations: 19.98 kB / 1.365 GB, free: 12.18 MB / 1.061 GB Notification: Performance of NFScalarize.scalarize: time 2.791e-05/0.3854, allocations: 7.938 kB / 1.365 GB, free: 12.17 MB / 1.061 GB Notification: Performance of NFVerifyModel.verify: time 4.116e-05/0.3855, allocations: 23.91 kB / 1.365 GB, free: 12.14 MB / 1.061 GB Notification: Performance of NFConvertDAE.convert: time 0.0001789/0.3857, allocations: 56.08 kB / 1.365 GB, free: 12.09 MB / 1.061 GB Notification: Performance of FrontEnd - DAE generated: time 4.598e-06/0.3857, allocations: 0 / 1.365 GB, free: 12.09 MB / 1.061 GB Notification: Performance of FrontEnd: time 1.894e-06/0.3857, allocations: 0 / 1.365 GB, free: 12.09 MB / 1.061 GB Notification: Performance of Transformations before backend: time 5.941e-06/0.3857, allocations: 4 kB / 1.365 GB, free: 12.09 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: 7 * Number of variables: 7 Notification: Performance of Generate backend data structure: time 0.0006211/0.3863, allocations: 290.2 kB / 1.366 GB, free: 11.77 MB / 1.061 GB Notification: Performance of prepare preOptimizeDAE: time 4.284e-05/0.3863, allocations: 8.031 kB / 1.366 GB, free: 11.76 MB / 1.061 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.901e-05/0.3864, allocations: 34.73 kB / 1.366 GB, free: 11.72 MB / 1.061 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.683e-05/0.3865, allocations: 4.938 kB / 1.366 GB, free: 11.71 MB / 1.061 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001259/0.3866, allocations: 130.3 kB / 1.366 GB, free: 11.56 MB / 1.061 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.838e-05/0.3866, allocations: 4.375 kB / 1.366 GB, free: 11.56 MB / 1.061 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.465e-05/0.3866, allocations: 4.375 kB / 1.366 GB, free: 11.55 MB / 1.061 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002124/0.3868, allocations: 70.16 kB / 1.366 GB, free: 11.48 MB / 1.061 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.107e-05/0.3869, allocations: 3.938 kB / 1.366 GB, free: 11.48 MB / 1.061 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.587e-05/0.3869, allocations: 7.984 kB / 1.366 GB, free: 11.47 MB / 1.061 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.079e-06/0.3869, allocations: 0 / 1.366 GB, free: 11.47 MB / 1.061 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001867/0.3871, allocations: 39.95 kB / 1.366 GB, free: 11.43 MB / 1.061 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004881/0.3876, allocations: 239.9 kB / 1.366 GB, free: 11.15 MB / 1.061 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001857/0.3877, allocations: 50.55 kB / 1.366 GB, free: 11.09 MB / 1.061 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001015/0.3878, allocations: 30.03 kB / 1.366 GB, free: 11.06 MB / 1.061 GB Notification: Performance of preOpt evalFunc (simulation): time 2.282e-05/0.3879, allocations: 4 kB / 1.366 GB, free: 11.06 MB / 1.061 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002427/0.3881, allocations: 71.38 kB / 1.366 GB, free: 10.98 MB / 1.061 GB Notification: Performance of pre-optimization done (n=6): time 1.593e-06/0.3881, allocations: 0 / 1.366 GB, free: 10.98 MB / 1.061 GB Notification: Performance of matching and sorting (n=6): time 0.0004311/0.3885, allocations: 125.5 kB / 1.366 GB, free: 10.85 MB / 1.061 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.648e-05/0.3886, allocations: 55.41 kB / 1.366 GB, free: 10.78 MB / 1.061 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001182/0.3887, allocations: 109.8 kB / 1.367 GB, free: 10.66 MB / 1.061 GB Notification: Performance of collectPreVariables (initialization): time 2.152e-05/0.3887, allocations: 25.7 kB / 1.367 GB, free: 10.63 MB / 1.061 GB Notification: Performance of collectInitialEqns (initialization): time 5.287e-05/0.3888, allocations: 80.14 kB / 1.367 GB, free: 10.55 MB / 1.061 GB Notification: Performance of collectInitialBindings (initialization): time 2.789e-05/0.3888, allocations: 23.95 kB / 1.367 GB, free: 10.53 MB / 1.061 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.528e-05/0.3889, allocations: 21.72 kB / 1.367 GB, free: 10.5 MB / 1.061 GB Notification: Performance of setup shared object (initialization): time 0.0001485/0.389, allocations: 318.8 kB / 1.367 GB, free: 10.18 MB / 1.061 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001008/0.3891, allocations: 23.97 kB / 1.367 GB, free: 10.16 MB / 1.061 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001289/0.3892, allocations: 55.39 kB / 1.367 GB, free: 10.09 MB / 1.061 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002168/0.3895, allocations: 83.33 kB / 1.367 GB, free: 9.996 MB / 1.061 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.214e-06/0.3895, allocations: 0 / 1.367 GB, free: 9.996 MB / 1.061 GB Notification: Performance of matching and sorting (n=8) (initialization): time 0.0002875/0.3897, allocations: 105.5 kB / 1.367 GB, free: 9.887 MB / 1.061 GB Notification: Performance of prepare postOptimizeDAE: time 1.949e-05/0.3898, allocations: 8 kB / 1.367 GB, free: 9.879 MB / 1.061 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.931e-06/0.3898, allocations: 96 / 1.367 GB, free: 9.879 MB / 1.061 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.512e-05/0.3898, allocations: 4 kB / 1.367 GB, free: 9.875 MB / 1.061 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000111/0.3899, allocations: 15.98 kB / 1.367 GB, free: 9.859 MB / 1.061 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.866e-06/0.3899, allocations: 3.984 kB / 1.367 GB, free: 9.855 MB / 1.061 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.97e-05/0.39, allocations: 8.438 kB / 1.367 GB, free: 9.848 MB / 1.061 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.317e-05/0.39, allocations: 4 kB / 1.367 GB, free: 9.844 MB / 1.061 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 4 * Number of states: 0 () * Number of discrete variables: 5 (sampler1.firstTrigger,$PRE.sampler1.firstTrigger,sampler1.sampleTrigger,$whenCondition1,sampler1.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (8): * Single equations (assignments): 8 * 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.0001049/0.3901, allocations: 117.8 kB / 1.367 GB, free: 9.719 MB / 1.061 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.666e-05/0.3901, allocations: 7.938 kB / 1.367 GB, free: 9.711 MB / 1.061 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003055/0.3904, allocations: 117.9 kB / 1.368 GB, free: 9.586 MB / 1.061 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.935e-06/0.3904, allocations: 0 / 1.368 GB, free: 9.586 MB / 1.061 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.657e-06/0.3904, allocations: 4 kB / 1.368 GB, free: 9.582 MB / 1.061 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.667e-06/0.3904, allocations: 0 / 1.368 GB, free: 9.582 MB / 1.061 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004897/0.3909, allocations: 313.5 kB / 1.368 GB, free: 9.227 MB / 1.061 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.718e-06/0.3909, allocations: 3.984 kB / 1.368 GB, free: 9.223 MB / 1.061 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.347e-05/0.391, allocations: 8 kB / 1.368 GB, free: 9.215 MB / 1.061 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.497e-06/0.391, allocations: 0 / 1.368 GB, free: 9.215 MB / 1.061 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.357e-06/0.391, allocations: 0 / 1.368 GB, free: 9.215 MB / 1.061 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.765e-06/0.391, allocations: 15.92 kB / 1.368 GB, free: 9.199 MB / 1.061 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.182e-06/0.391, allocations: 0 / 1.368 GB, free: 9.199 MB / 1.061 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003321/0.3913, allocations: 191.4 kB / 1.368 GB, free: 8.996 MB / 1.061 GB Notification: Performance of postOpt removeConstants (simulation): time 1.239e-05/0.3914, allocations: 4 kB / 1.368 GB, free: 8.992 MB / 1.061 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.195e-05/0.3914, allocations: 7.984 kB / 1.368 GB, free: 8.984 MB / 1.061 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.824e-05/0.3915, allocations: 7.938 kB / 1.368 GB, free: 8.977 MB / 1.061 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.433e-05/0.3915, allocations: 11.97 kB / 1.368 GB, free: 8.965 MB / 1.061 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.477e-05/0.3915, allocations: 3.984 kB / 1.368 GB, free: 8.961 MB / 1.061 GB Notification: Performance of sorting global known variables: time 5.914e-05/0.3916, allocations: 95.27 kB / 1.368 GB, free: 8.867 MB / 1.061 GB Notification: Performance of sort global known variables: time 7.1e-08/0.3916, allocations: 0 / 1.368 GB, free: 8.867 MB / 1.061 GB Notification: Performance of remove unused functions: time 0.0002547/0.3918, allocations: 8 kB / 1.368 GB, free: 8.859 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: 4 (sampler1.sampleTrigger,$whenCondition1,sampler1.y,sampler1.firstTrigger) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (6): * Single equations (assignments): 4 * 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.0007782/0.3926, allocations: 0.7284 MB / 1.369 GB, free: 8.105 MB / 1.061 GB Notification: Performance of simCode: created initialization part: time 0.0002887/0.3929, allocations: 63.95 kB / 1.369 GB, free: 8.043 MB / 1.061 GB Notification: Performance of simCode: created event and clocks part: time 2.244e-06/0.3929, allocations: 192 / 1.369 GB, free: 8.043 MB / 1.061 GB Notification: Performance of simCode: created simulation system equations: time 0.0001194/0.393, allocations: 39.91 kB / 1.369 GB, free: 8.004 MB / 1.061 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002767/0.3933, allocations: 14.28 kB / 1.369 GB, free: 7.992 MB / 1.061 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001818/0.3951, allocations: 1.378 MB / 1.37 GB, free: 6.52 MB / 1.061 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 6.503e-05/0.3952, allocations: 63.34 kB / 1.37 GB, free: 6.438 MB / 1.061 GB Notification: Performance of simCode: alias equations: time 3.532e-05/0.3952, allocations: 4 kB / 1.37 GB, free: 6.434 MB / 1.061 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.617e-05/0.3953, allocations: 19.42 kB / 1.37 GB, free: 6.414 MB / 1.061 GB Notification: Performance of SimCode: time 6.62e-07/0.3953, allocations: 0 / 1.37 GB, free: 6.414 MB / 1.061 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03203/0.4273, allocations: 2.304 MB / 1.373 GB, free: 4.242 MB / 1.061 GB Notification: Performance of buildModelFMU: Generate platform static: time 11.54/11.97, allocations: 7.781 kB / 1.373 GB, free: 4.238 MB / 1.061 GB " [Timeout remaining time 288] (rm -f Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Validation.Sampler.pipe ; mkfifo Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Validation.Sampler.pipe ; head -c 1048576 < Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Validation.Sampler.pipe >> ../files/Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Validation.Sampler.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Validation.Sampler_res.mat --tempDir=temp_Buildings_latest_Buildings_Controls_OBC_CDL_Discrete_Validation_Sampler_fmu --startTime=0 --stopTime=1 --stepSize=0.0004 --timeout=800 --tolerance=1e-06 Buildings_latest_Buildings_Controls_OBC_CDL_Discrete_Validation_Sampler.fmu > Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Validation.Sampler.pipe 2>&1) [Timeout 840.0] diffSimulationResults("Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Validation.Sampler_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Controls_OBC_CDL_Discrete_Validation_Sampler.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Validation.Sampler.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.990141801070422]