Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_11_Buildings.Controls.OBC.CDL.Discrete.Validation.Sampler.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001336/0.001336, allocations: 104.2 kB / 16.4 MB, free: 6.453 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001363/0.001363, allocations: 191.7 kB / 19.36 MB, free: 3.727 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.449/1.449, allocations: 222.9 MB / 245 MB, free: 15.02 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.0-maint.11.x/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.0-maint.11.x/package.mo): time 2.818/2.818, allocations: 469.8 MB / 0.749 GB, free: 2.988 MB / 0.6075 GB " [Timeout remaining time 177] Using package Buildings with version 11.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.0-maint.11.x/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Buildings.Controls.OBC.CDL.Discrete.Validation.Sampler,fileNamePrefix="Buildings_11_Buildings_Controls_OBC_CDL_Discrete_Validation_Sampler",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Controls.OBC.CDL.Discrete.Validation.Sampler,fileNamePrefix="Buildings_11_Buildings_Controls_OBC_CDL_Discrete_Validation_Sampler",fmuType="me",version="2.0",platforms={"static"}) [Timeout 300] "Notification: Performance of FrontEnd - loaded program: time 0.001969/0.001969, allocations: 71.91 kB / 1.073 GB, free: 124 kB / 0.8731 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7611/0.7631, allocations: 159.1 MB / 1.229 GB, free: 4.801 MB / 0.9356 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Discrete.Validation.Sampler): time 0.002159/0.7653, allocations: 0.6681 MB / 1.229 GB, free: 4.137 MB / 0.9356 GB Notification: Performance of NFInst.instExpressions: time 0.001492/0.7669, allocations: 1.049 MB / 1.23 GB, free: 3.074 MB / 0.9356 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.225e-05/0.7669, allocations: 4 kB / 1.23 GB, free: 3.07 MB / 0.9356 GB Notification: Performance of NFTyping.typeComponents: time 2.878e-05/0.767, allocations: 3.938 kB / 1.23 GB, free: 3.066 MB / 0.9356 GB Notification: Performance of NFTyping.typeBindings: time 5.888e-05/0.767, allocations: 7.938 kB / 1.23 GB, free: 3.059 MB / 0.9356 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002783/0.7673, allocations: 43.83 kB / 1.23 GB, free: 3.016 MB / 0.9356 GB Notification: Performance of NFFlatten.flatten: time 0.0001108/0.7674, allocations: 47.84 kB / 1.23 GB, free: 2.969 MB / 0.9356 GB Notification: Performance of NFFlatten.resolveConnections: time 9.408e-05/0.7675, allocations: 8 kB / 1.23 GB, free: 2.961 MB / 0.9356 GB Notification: Performance of NFEvalConstants.evaluate: time 7.524e-05/0.7676, allocations: 15.98 kB / 1.23 GB, free: 2.945 MB / 0.9356 GB Notification: Performance of NFSimplifyModel.simplify: time 6.101e-05/0.7677, allocations: 31.83 kB / 1.23 GB, free: 2.914 MB / 0.9356 GB Notification: Performance of NFPackage.collectConstants: time 1.602e-05/0.7677, allocations: 4 kB / 1.23 GB, free: 2.91 MB / 0.9356 GB Notification: Performance of NFFlatten.collectFunctions: time 7.001e-05/0.7678, allocations: 15.98 kB / 1.23 GB, free: 2.895 MB / 0.9356 GB Notification: Performance of NFScalarize.scalarize: time 2.307e-05/0.7678, allocations: 12 kB / 1.23 GB, free: 2.883 MB / 0.9356 GB Notification: Performance of NFVerifyModel.verify: time 4.245e-05/0.7679, allocations: 27.8 kB / 1.231 GB, free: 2.855 MB / 0.9356 GB Notification: Performance of NFConvertDAE.convert: time 0.0001704/0.7681, allocations: 57.61 kB / 1.231 GB, free: 2.801 MB / 0.9356 GB Notification: Performance of FrontEnd - DAE generated: time 7.444e-06/0.7681, allocations: 4 kB / 1.231 GB, free: 2.797 MB / 0.9356 GB Notification: Performance of FrontEnd: time 1.754e-06/0.7681, allocations: 0 / 1.231 GB, free: 2.797 MB / 0.9356 GB Notification: Performance of Transformations before backend: time 5.22e-06/0.7681, allocations: 0 / 1.231 GB, free: 2.797 MB / 0.9356 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.0006385/0.7687, allocations: 359.3 kB / 1.231 GB, free: 2.395 MB / 0.9356 GB Notification: Performance of prepare preOptimizeDAE: time 4.079e-05/0.7688, allocations: 8.031 kB / 1.231 GB, free: 2.387 MB / 0.9356 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.927e-05/0.7688, allocations: 46.73 kB / 1.231 GB, free: 2.332 MB / 0.9356 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.989e-05/0.7689, allocations: 0.9375 kB / 1.231 GB, free: 2.332 MB / 0.9356 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001462/0.769, allocations: 172.3 kB / 1.231 GB, free: 2.125 MB / 0.9356 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.168e-05/0.769, allocations: 384 / 1.231 GB, free: 2.125 MB / 0.9356 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.246e-05/0.7691, allocations: 8.312 kB / 1.231 GB, free: 2.117 MB / 0.9356 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002228/0.7693, allocations: 66.16 kB / 1.231 GB, free: 2.047 MB / 0.9356 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.057e-05/0.7693, allocations: 3.938 kB / 1.231 GB, free: 2.043 MB / 0.9356 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.678e-06/0.7693, allocations: 0 / 1.231 GB, free: 2.043 MB / 0.9356 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.913e-06/0.7693, allocations: 4 kB / 1.231 GB, free: 2.039 MB / 0.9356 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002009/0.7695, allocations: 43.95 kB / 1.231 GB, free: 1.996 MB / 0.9356 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004661/0.77, allocations: 280.8 kB / 1.232 GB, free: 1.672 MB / 0.9356 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001698/0.7702, allocations: 50.5 kB / 1.232 GB, free: 1.613 MB / 0.9356 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001182/0.7703, allocations: 36.95 kB / 1.232 GB, free: 1.574 MB / 0.9356 GB Notification: Performance of preOpt evalFunc (simulation): time 2.061e-05/0.7704, allocations: 0 / 1.232 GB, free: 1.574 MB / 0.9356 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002219/0.7706, allocations: 71.38 kB / 1.232 GB, free: 1.492 MB / 0.9356 GB Notification: Performance of pre-optimization done (n=6): time 1.583e-06/0.7706, allocations: 0 / 1.232 GB, free: 1.492 MB / 0.9356 GB Notification: Performance of matching and sorting (n=6): time 0.0004413/0.771, allocations: 125.6 kB / 1.232 GB, free: 1.363 MB / 0.9356 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.044e-05/0.7711, allocations: 63.28 kB / 1.232 GB, free: 1.289 MB / 0.9356 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001037/0.7712, allocations: 106.3 kB / 1.232 GB, free: 1.176 MB / 0.9356 GB Notification: Performance of collectPreVariables (initialization): time 2.254e-05/0.7712, allocations: 25.7 kB / 1.232 GB, free: 1.145 MB / 0.9356 GB Notification: Performance of collectInitialEqns (initialization): time 8.198e-05/0.7713, allocations: 88.14 kB / 1.232 GB, free: 1.055 MB / 0.9356 GB Notification: Performance of collectInitialBindings (initialization): time 3.393e-05/0.7714, allocations: 11.84 kB / 1.232 GB, free: 1.043 MB / 0.9356 GB Notification: Performance of simplifyInitialFunctions (initialization): time 8.494e-05/0.7715, allocations: 29.7 kB / 1.232 GB, free: 1.008 MB / 0.9356 GB Notification: Performance of setup shared object (initialization): time 0.0001942/0.7717, allocations: 314.8 kB / 1.232 GB, free: 0.6914 MB / 0.9356 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001201/0.7718, allocations: 27.97 kB / 1.232 GB, free: 0.6641 MB / 0.9356 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001648/0.772, allocations: 51.41 kB / 1.232 GB, free: 0.6016 MB / 0.9356 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002397/0.7722, allocations: 79.34 kB / 1.233 GB, free: 0.5117 MB / 0.9356 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.819e-06/0.7722, allocations: 4.062 kB / 1.233 GB, free: 0.5078 MB / 0.9356 GB Notification: Performance of matching and sorting (n=8) (initialization): time 0.0003215/0.7726, allocations: 109.5 kB / 1.233 GB, free: 404 kB / 0.9356 GB Notification: Performance of prepare postOptimizeDAE: time 1.898e-05/0.7726, allocations: 4 kB / 1.233 GB, free: 400 kB / 0.9356 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.192e-06/0.7726, allocations: 0 / 1.233 GB, free: 400 kB / 0.9356 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.936e-05/0.7726, allocations: 4 kB / 1.233 GB, free: 396 kB / 0.9356 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001163/0.7727, allocations: 15.92 kB / 1.233 GB, free: 380 kB / 0.9356 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.907e-06/0.7728, allocations: 8.094 kB / 1.233 GB, free: 372 kB / 0.9356 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.241e-05/0.7728, allocations: 7.984 kB / 1.233 GB, free: 364 kB / 0.9356 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.213e-05/0.7729, allocations: 4 kB / 1.233 GB, free: 360 kB / 0.9356 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.0001098/0.773, allocations: 117.4 kB / 1.233 GB, free: 236 kB / 0.9356 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.654e-05/0.773, allocations: 7.953 kB / 1.233 GB, free: 228 kB / 0.9356 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003233/0.7733, allocations: 106 kB / 1.233 GB, free: 108 kB / 0.9356 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.956e-06/0.7733, allocations: 4 kB / 1.233 GB, free: 104 kB / 0.9356 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.648e-06/0.7734, allocations: 0 / 1.233 GB, free: 104 kB / 0.9356 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.168e-06/0.7734, allocations: 0 / 1.233 GB, free: 104 kB / 0.9356 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000567/0.7739, allocations: 354.6 kB / 1.233 GB, free: 15.7 MB / 0.9512 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.024e-06/0.774, allocations: 4 kB / 1.233 GB, free: 15.7 MB / 0.9512 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.525e-05/0.774, allocations: 11.92 kB / 1.233 GB, free: 15.68 MB / 0.9512 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.084e-06/0.774, allocations: 0 / 1.233 GB, free: 15.68 MB / 0.9512 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.108e-05/0.7741, allocations: 7.938 kB / 1.233 GB, free: 15.68 MB / 0.9512 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.784e-06/0.7741, allocations: 4 kB / 1.233 GB, free: 15.67 MB / 0.9512 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.243e-06/0.7741, allocations: 0 / 1.233 GB, free: 15.67 MB / 0.9512 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000317/0.7744, allocations: 195.4 kB / 1.233 GB, free: 15.46 MB / 0.9512 GB Notification: Performance of postOpt removeConstants (simulation): time 4.832e-05/0.7744, allocations: 81.11 kB / 1.234 GB, free: 15.37 MB / 0.9512 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.574e-05/0.7745, allocations: 192 / 1.234 GB, free: 15.37 MB / 0.9512 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001035/0.7746, allocations: 11.98 kB / 1.234 GB, free: 15.36 MB / 0.9512 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.559e-05/0.7746, allocations: 19.86 kB / 1.234 GB, free: 15.34 MB / 0.9512 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.171e-05/0.7747, allocations: 0 / 1.234 GB, free: 15.34 MB / 0.9512 GB Notification: Performance of sorting global known variables: time 4.716e-05/0.7747, allocations: 83.28 kB / 1.234 GB, free: 15.25 MB / 0.9512 GB Notification: Performance of sort global known variables: time 1e-07/0.7747, allocations: 0 / 1.234 GB, free: 15.25 MB / 0.9512 GB Notification: Performance of remove unused functions: time 0.0002485/0.775, allocations: 12 kB / 1.234 GB, free: 15.24 MB / 0.9512 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.0006688/0.7756, allocations: 0.7402 MB / 1.234 GB, free: 14.48 MB / 0.9512 GB Notification: Performance of simCode: created initialization part: time 0.0002672/0.7759, allocations: 59.89 kB / 1.234 GB, free: 14.42 MB / 0.9512 GB Notification: Performance of simCode: created event and clocks part: time 6.152e-06/0.7759, allocations: 8 kB / 1.234 GB, free: 14.41 MB / 0.9512 GB Notification: Performance of simCode: created simulation system equations: time 0.0001319/0.7761, allocations: 27.97 kB / 1.234 GB, free: 14.38 MB / 0.9512 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002615/0.7763, allocations: 12.12 kB / 1.235 GB, free: 14.37 MB / 0.9512 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001686/0.778, allocations: 1.383 MB / 1.236 GB, free: 12.89 MB / 0.9512 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003191/0.7784, allocations: 0.6845 MB / 1.237 GB, free: 12.18 MB / 0.9512 GB Notification: Performance of simCode: alias equations: time 3.03e-05/0.7784, allocations: 0 / 1.237 GB, free: 12.18 MB / 0.9512 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.084e-05/0.7785, allocations: 19.42 kB / 1.237 GB, free: 12.16 MB / 0.9512 GB Notification: Performance of SimCode: time 3.4e-07/0.7785, allocations: 0 / 1.237 GB, free: 12.16 MB / 0.9512 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02138/0.7998, allocations: 1.751 MB / 1.238 GB, free: 10.51 MB / 0.9512 GB Notification: Performance of buildModelFMU: Generate platform static: time 8.2/9, allocations: 19.47 kB / 1.238 GB, free: 10.5 MB / 0.9512 GB " [Timeout remaining time 291] (rm -f Buildings_11_Buildings.Controls.OBC.CDL.Discrete.Validation.Sampler.pipe ; mkfifo Buildings_11_Buildings.Controls.OBC.CDL.Discrete.Validation.Sampler.pipe ; head -c 1048576 < Buildings_11_Buildings.Controls.OBC.CDL.Discrete.Validation.Sampler.pipe >> ../files/Buildings_11_Buildings.Controls.OBC.CDL.Discrete.Validation.Sampler.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_11_Buildings.Controls.OBC.CDL.Discrete.Validation.Sampler_res.mat --tempDir=temp_Buildings_11_Buildings_Controls_OBC_CDL_Discrete_Validation_Sampler_fmu --startTime=0 --stopTime=1 --stepSize=0.0004 --timeout=400 --tolerance=1e-06 Buildings_11_Buildings_Controls_OBC_CDL_Discrete_Validation_Sampler.fmu > Buildings_11_Buildings.Controls.OBC.CDL.Discrete.Validation.Sampler.pipe 2>&1) [Timeout 420.0] diffSimulationResults("Buildings_11_Buildings.Controls.OBC.CDL.Discrete.Validation.Sampler_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_11.x/Buildings_Controls_OBC_CDL_Discrete_Validation_Sampler.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/OpenModelicaLibraryTesting/files/Buildings_11_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: 14.93008033093065]