Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_12_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.00175/0.00175, allocations: 103.6 kB / 18.95 MB, free: 2.66 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.002622/0.002622, allocations: 212.3 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.512/1.512, allocations: 230.6 MB / 256 MB, free: 7.781 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.217/3.217, allocations: 0.49 GB / 0.7951 GB, free: 35.5 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.Sampler,fileNamePrefix="Buildings_12_Buildings_Controls_OBC_CDL_Discrete_Validation_Sampler",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Controls.OBC.CDL.Discrete.Validation.Sampler,fileNamePrefix="Buildings_12_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.002205/0.002205, allocations: 65.27 kB / 1.154 GB, free: 25.26 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3871/0.3893, allocations: 176.1 MB / 1.326 GB, free: 1.359 MB / 1.014 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Discrete.Validation.Sampler): time 0.002445/0.3917, allocations: 0.6612 MB / 1.326 GB, free: 0.7031 MB / 1.014 GB Notification: Performance of NFInst.instExpressions: time 0.002125/0.3939, allocations: 1.081 MB / 1.328 GB, free: 15.61 MB / 1.029 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.009e-05/0.3939, allocations: 0 / 1.328 GB, free: 15.61 MB / 1.029 GB Notification: Performance of NFTyping.typeComponents: time 3.596e-05/0.394, allocations: 3.938 kB / 1.328 GB, free: 15.61 MB / 1.029 GB Notification: Performance of NFTyping.typeBindings: time 7.51e-05/0.394, allocations: 3.938 kB / 1.328 GB, free: 15.6 MB / 1.029 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003415/0.3944, allocations: 51.83 kB / 1.328 GB, free: 15.55 MB / 1.029 GB Notification: Performance of NFFlatten.flatten: time 0.0001123/0.3945, allocations: 51.84 kB / 1.328 GB, free: 15.5 MB / 1.029 GB Notification: Performance of NFFlatten.resolveConnections: time 9.727e-05/0.3946, allocations: 4 kB / 1.328 GB, free: 15.5 MB / 1.029 GB Notification: Performance of NFEvalConstants.evaluate: time 7.851e-05/0.3947, allocations: 27.97 kB / 1.328 GB, free: 15.47 MB / 1.029 GB Notification: Performance of NFSimplifyModel.simplify: time 6.029e-05/0.3947, allocations: 23.84 kB / 1.328 GB, free: 15.45 MB / 1.029 GB Notification: Performance of NFPackage.collectConstants: time 1.609e-05/0.3947, allocations: 4 kB / 1.328 GB, free: 15.44 MB / 1.029 GB Notification: Performance of NFFlatten.collectFunctions: time 7.978e-05/0.3948, allocations: 16 kB / 1.328 GB, free: 15.43 MB / 1.029 GB Notification: Performance of NFScalarize.scalarize: time 2.947e-05/0.3948, allocations: 11.98 kB / 1.328 GB, free: 15.41 MB / 1.029 GB Notification: Performance of NFVerifyModel.verify: time 4.408e-05/0.3949, allocations: 23.86 kB / 1.328 GB, free: 15.39 MB / 1.029 GB Notification: Performance of NFConvertDAE.convert: time 0.0001573/0.395, allocations: 56.06 kB / 1.328 GB, free: 15.34 MB / 1.029 GB Notification: Performance of FrontEnd - DAE generated: time 4.208e-06/0.395, allocations: 3.938 kB / 1.328 GB, free: 15.33 MB / 1.029 GB Notification: Performance of FrontEnd: time 1.392e-06/0.3951, allocations: 0 / 1.328 GB, free: 15.33 MB / 1.029 GB Notification: Performance of Transformations before backend: time 5.76e-06/0.3951, allocations: 0 / 1.328 GB, free: 15.33 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: 7 * Number of variables: 7 Notification: Performance of Generate backend data structure: time 0.0006539/0.3957, allocations: 294.2 kB / 1.328 GB, free: 15.01 MB / 1.029 GB Notification: Performance of prepare preOptimizeDAE: time 4.657e-05/0.3958, allocations: 8.031 kB / 1.328 GB, free: 15 MB / 1.029 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.486e-05/0.3958, allocations: 38.75 kB / 1.328 GB, free: 14.96 MB / 1.029 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.217e-05/0.3959, allocations: 8.875 kB / 1.328 GB, free: 14.95 MB / 1.029 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001127/0.396, allocations: 114.5 kB / 1.328 GB, free: 14.81 MB / 1.029 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.775e-05/0.396, allocations: 8.359 kB / 1.328 GB, free: 14.8 MB / 1.029 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.256e-05/0.396, allocations: 384 / 1.328 GB, free: 14.8 MB / 1.029 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002058/0.3963, allocations: 70.16 kB / 1.328 GB, free: 14.73 MB / 1.029 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.324e-05/0.3963, allocations: 7.938 kB / 1.328 GB, free: 14.72 MB / 1.029 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.448e-06/0.3963, allocations: 0 / 1.328 GB, free: 14.72 MB / 1.029 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.228e-06/0.3963, allocations: 0 / 1.328 GB, free: 14.72 MB / 1.029 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001794/0.3965, allocations: 43.95 kB / 1.328 GB, free: 14.68 MB / 1.029 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005194/0.397, allocations: 235.9 kB / 1.329 GB, free: 14.41 MB / 1.029 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000183/0.3972, allocations: 54.48 kB / 1.329 GB, free: 14.34 MB / 1.029 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001028/0.3973, allocations: 32.97 kB / 1.329 GB, free: 14.31 MB / 1.029 GB Notification: Performance of preOpt evalFunc (simulation): time 2.419e-05/0.3973, allocations: 4 kB / 1.329 GB, free: 14.3 MB / 1.029 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002596/0.3975, allocations: 67.38 kB / 1.329 GB, free: 14.23 MB / 1.029 GB Notification: Performance of pre-optimization done (n=6): time 2.124e-06/0.3976, allocations: 0 / 1.329 GB, free: 14.23 MB / 1.029 GB Notification: Performance of matching and sorting (n=6): time 0.0004525/0.398, allocations: 121.6 kB / 1.329 GB, free: 14.1 MB / 1.029 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.274e-05/0.3981, allocations: 55.34 kB / 1.329 GB, free: 14.04 MB / 1.029 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001164/0.3982, allocations: 109.8 kB / 1.329 GB, free: 13.92 MB / 1.029 GB Notification: Performance of collectPreVariables (initialization): time 2.128e-05/0.3982, allocations: 25.7 kB / 1.329 GB, free: 13.89 MB / 1.029 GB Notification: Performance of collectInitialEqns (initialization): time 6.221e-05/0.3983, allocations: 96.08 kB / 1.329 GB, free: 13.79 MB / 1.029 GB Notification: Performance of collectInitialBindings (initialization): time 2.537e-05/0.3983, allocations: 11.91 kB / 1.329 GB, free: 13.78 MB / 1.029 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.643e-05/0.3983, allocations: 25.7 kB / 1.329 GB, free: 13.75 MB / 1.029 GB Notification: Performance of setup shared object (initialization): time 0.0002357/0.3986, allocations: 314.8 kB / 1.329 GB, free: 13.43 MB / 1.029 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001057/0.3987, allocations: 32.03 kB / 1.33 GB, free: 13.4 MB / 1.029 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001214/0.3988, allocations: 51.41 kB / 1.33 GB, free: 13.34 MB / 1.029 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002756/0.3991, allocations: 79.34 kB / 1.33 GB, free: 13.25 MB / 1.029 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.697e-06/0.3991, allocations: 0.5 kB / 1.33 GB, free: 13.25 MB / 1.029 GB Notification: Performance of matching and sorting (n=8) (initialization): time 0.0002806/0.3994, allocations: 97.58 kB / 1.33 GB, free: 13.14 MB / 1.029 GB Notification: Performance of prepare postOptimizeDAE: time 1.434e-05/0.3994, allocations: 11.94 kB / 1.33 GB, free: 13.13 MB / 1.029 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.769e-06/0.3994, allocations: 0 / 1.33 GB, free: 13.13 MB / 1.029 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.376e-05/0.3994, allocations: 0 / 1.33 GB, free: 13.13 MB / 1.029 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001187/0.3995, allocations: 28.02 kB / 1.33 GB, free: 13.11 MB / 1.029 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.653e-06/0.3995, allocations: 4.141 kB / 1.33 GB, free: 13.1 MB / 1.029 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.272e-05/0.3996, allocations: 19.88 kB / 1.33 GB, free: 13.08 MB / 1.029 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.909e-06/0.3996, allocations: 4 kB / 1.33 GB, free: 13.08 MB / 1.029 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 9.798e-05/0.3997, allocations: 118.3 kB / 1.33 GB, free: 12.95 MB / 1.029 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.434e-05/0.3997, allocations: 4 kB / 1.33 GB, free: 12.95 MB / 1.029 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000299/0.4, allocations: 106 kB / 1.33 GB, free: 12.84 MB / 1.029 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.565e-06/0.4, allocations: 0 / 1.33 GB, free: 12.84 MB / 1.029 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.957e-06/0.4, allocations: 4 kB / 1.33 GB, free: 12.83 MB / 1.029 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.139e-06/0.4, allocations: 3.984 kB / 1.33 GB, free: 12.83 MB / 1.029 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004546/0.4005, allocations: 317.6 kB / 1.33 GB, free: 12.47 MB / 1.029 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.373e-06/0.4005, allocations: 0 / 1.33 GB, free: 12.47 MB / 1.029 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.053e-05/0.4006, allocations: 11.92 kB / 1.33 GB, free: 12.46 MB / 1.029 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.974e-06/0.4006, allocations: 48 / 1.33 GB, free: 12.46 MB / 1.029 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.14e-05/0.4006, allocations: 7.984 kB / 1.33 GB, free: 12.45 MB / 1.029 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.643e-06/0.4006, allocations: 0 / 1.33 GB, free: 12.45 MB / 1.029 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.62e-07/0.4006, allocations: 0 / 1.33 GB, free: 12.45 MB / 1.029 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003081/0.4009, allocations: 199.4 kB / 1.331 GB, free: 12.24 MB / 1.029 GB Notification: Performance of postOpt removeConstants (simulation): time 9.728e-06/0.4009, allocations: 3.953 kB / 1.331 GB, free: 12.23 MB / 1.029 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.614e-05/0.4009, allocations: 0 / 1.331 GB, free: 12.23 MB / 1.029 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000101/0.401, allocations: 11.98 kB / 1.331 GB, free: 12.22 MB / 1.029 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.31e-05/0.401, allocations: 11.92 kB / 1.331 GB, free: 12.21 MB / 1.029 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.681e-05/0.4011, allocations: 4 kB / 1.331 GB, free: 12.21 MB / 1.029 GB Notification: Performance of sorting global known variables: time 5.459e-05/0.4011, allocations: 83.47 kB / 1.331 GB, free: 12.12 MB / 1.029 GB Notification: Performance of sort global known variables: time 7e-08/0.4011, allocations: 0 / 1.331 GB, free: 12.12 MB / 1.029 GB Notification: Performance of remove unused functions: time 0.0002423/0.4014, allocations: 20 kB / 1.331 GB, free: 12.11 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: 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.0006898/0.402, allocations: 0.7318 MB / 1.331 GB, free: 11.35 MB / 1.029 GB Notification: Performance of simCode: created initialization part: time 0.0002608/0.4023, allocations: 63.89 kB / 1.331 GB, free: 11.29 MB / 1.029 GB Notification: Performance of simCode: created event and clocks part: time 1.723e-06/0.4023, allocations: 0 / 1.331 GB, free: 11.29 MB / 1.029 GB Notification: Performance of simCode: created simulation system equations: time 0.0001086/0.4024, allocations: 28.16 kB / 1.331 GB, free: 11.26 MB / 1.029 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002649/0.4027, allocations: 19.47 kB / 1.331 GB, free: 11.24 MB / 1.029 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002119/0.4048, allocations: 1.386 MB / 1.333 GB, free: 9.766 MB / 1.029 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 7.81e-05/0.4049, allocations: 71.34 kB / 1.333 GB, free: 9.676 MB / 1.029 GB Notification: Performance of simCode: alias equations: time 3.219e-05/0.4049, allocations: 0 / 1.333 GB, free: 9.676 MB / 1.029 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.265e-05/0.405, allocations: 19.42 kB / 1.333 GB, free: 9.656 MB / 1.029 GB Notification: Performance of SimCode: time 4.71e-07/0.405, allocations: 0 / 1.333 GB, free: 9.656 MB / 1.029 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03512/0.4401, allocations: 2.322 MB / 1.335 GB, free: 7.465 MB / 1.029 GB Notification: Performance of buildModelFMU: Generate platform static: time 11.1/11.54, allocations: 13.59 kB / 1.335 GB, free: 7.457 MB / 1.029 GB " [Timeout remaining time 288] (rm -f Buildings_12_Buildings.Controls.OBC.CDL.Discrete.Validation.Sampler.pipe ; mkfifo Buildings_12_Buildings.Controls.OBC.CDL.Discrete.Validation.Sampler.pipe ; head -c 1048576 < Buildings_12_Buildings.Controls.OBC.CDL.Discrete.Validation.Sampler.pipe >> ../files/Buildings_12_Buildings.Controls.OBC.CDL.Discrete.Validation.Sampler.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_12_Buildings.Controls.OBC.CDL.Discrete.Validation.Sampler_res.mat --tempDir=temp_Buildings_12_Buildings_Controls_OBC_CDL_Discrete_Validation_Sampler_fmu --startTime=0 --stopTime=1 --stepSize=0.0004 --timeout=400 --tolerance=1e-06 Buildings_12_Buildings_Controls_OBC_CDL_Discrete_Validation_Sampler.fmu > Buildings_12_Buildings.Controls.OBC.CDL.Discrete.Validation.Sampler.pipe 2>&1) [Timeout 420.0] diffSimulationResults("Buildings_12_Buildings.Controls.OBC.CDL.Discrete.Validation.Sampler_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_12.x/Buildings_Controls_OBC_CDL_Discrete_Validation_Sampler.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_12_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.371981492004124]