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.001402/0.001402, allocations: 83.73 kB / 19.76 MB, free: 2.02 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.002292/0.002292, allocations: 161.8 kB / 23 MB, free: 4.945 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.546/1.546, allocations: 177.2 MB / 203.4 MB, free: 8.941 MB / 190.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 2.909/2.909, allocations: 377.9 MB / 0.6228 GB, free: 12.6 MB / 0.5919 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: translateModel(Buildings.Controls.OBC.CDL.Discrete.Validation.Sampler,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|sampler1.u|sampler1.y",fileNamePrefix="Buildings_12_Buildings.Controls.OBC.CDL.Discrete.Validation.Sampler") translateModel(Buildings.Controls.OBC.CDL.Discrete.Validation.Sampler,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|sampler1.u|sampler1.y",fileNamePrefix="Buildings_12_Buildings.Controls.OBC.CDL.Discrete.Validation.Sampler") [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.002348/0.002348, allocations: 67.89 kB / 0.9819 GB, free: 12.24 MB / 0.9356 GB Notification: Performance of FrontEnd - Absyn->SCode: time 1.104/1.106, allocations: 176.1 MB / 1.154 GB, free: 33.32 MB / 1.076 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Discrete.Validation.Sampler): time 0.001754/1.108, allocations: 0.6598 MB / 1.155 GB, free: 32.91 MB / 1.076 GB Notification: Performance of NFInst.instExpressions: time 0.001061/1.109, allocations: 1.083 MB / 1.156 GB, free: 32.11 MB / 1.076 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.51e-05/1.109, allocations: 2.969 kB / 1.156 GB, free: 32.11 MB / 1.076 GB Notification: Performance of NFTyping.typeComponents: time 2.663e-05/1.109, allocations: 3.141 kB / 1.156 GB, free: 32.11 MB / 1.076 GB Notification: Performance of NFTyping.typeBindings: time 5.898e-05/1.109, allocations: 11.88 kB / 1.156 GB, free: 32.1 MB / 1.076 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002606/1.109, allocations: 42.03 kB / 1.156 GB, free: 32.08 MB / 1.076 GB Notification: Performance of NFFlatten.flatten: time 8.302e-05/1.109, allocations: 47.17 kB / 1.156 GB, free: 32.06 MB / 1.076 GB Notification: Performance of NFFlatten.resolveConnections: time 8.906e-05/1.11, allocations: 14.27 kB / 1.156 GB, free: 32.05 MB / 1.076 GB Notification: Performance of NFEvalConstants.evaluate: time 7.147e-05/1.11, allocations: 20.22 kB / 1.156 GB, free: 32.04 MB / 1.076 GB Notification: Performance of NFSimplifyModel.simplify: time 4.87e-05/1.11, allocations: 16.91 kB / 1.156 GB, free: 32.04 MB / 1.076 GB Notification: Performance of NFPackage.collectConstants: time 1.491e-05/1.11, allocations: 2.938 kB / 1.156 GB, free: 32.04 MB / 1.076 GB Notification: Performance of NFFlatten.collectFunctions: time 6.465e-05/1.11, allocations: 25.92 kB / 1.156 GB, free: 32.03 MB / 1.076 GB Notification: Performance of NFScalarize.scalarize: time 2.262e-05/1.11, allocations: 7.188 kB / 1.156 GB, free: 32.02 MB / 1.076 GB Notification: Performance of NFVerifyModel.verify: time 3.667e-05/1.11, allocations: 17.22 kB / 1.156 GB, free: 32.02 MB / 1.076 GB Notification: Performance of NFConvertDAE.convert: time 0.0001261/1.11, allocations: 64.16 kB / 1.156 GB, free: 31.99 MB / 1.076 GB Notification: Performance of FrontEnd - DAE generated: time 4.478e-06/1.11, allocations: 3.938 kB / 1.156 GB, free: 31.98 MB / 1.076 GB Notification: Performance of FrontEnd: time 1.703e-06/1.11, allocations: 0 / 1.156 GB, free: 31.98 MB / 1.076 GB Notification: Performance of Transformations before backend: time 6.572e-06/1.11, allocations: 2.594 kB / 1.156 GB, free: 31.98 MB / 1.076 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.0005053/1.11, allocations: 289.1 kB / 1.156 GB, free: 31.71 MB / 1.076 GB Notification: Performance of prepare preOptimizeDAE: time 3.304e-05/1.11, allocations: 8.344 kB / 1.156 GB, free: 31.71 MB / 1.076 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.991e-05/1.111, allocations: 11.27 kB / 1.156 GB, free: 31.71 MB / 1.076 GB Notification: Performance of preOpt evaluateParameters (simulation): time 6.863e-05/1.111, allocations: 109.3 kB / 1.156 GB, free: 31.58 MB / 1.076 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.265e-05/1.111, allocations: 6.531 kB / 1.156 GB, free: 31.57 MB / 1.076 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.079e-05/1.111, allocations: 7.281 kB / 1.156 GB, free: 31.57 MB / 1.076 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001775/1.111, allocations: 65.19 kB / 1.156 GB, free: 31.53 MB / 1.076 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.718e-06/1.111, allocations: 2.938 kB / 1.156 GB, free: 31.53 MB / 1.076 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.138e-05/1.111, allocations: 3.938 kB / 1.156 GB, free: 31.52 MB / 1.076 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.528e-06/1.111, allocations: 0 / 1.156 GB, free: 31.52 MB / 1.076 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001725/1.111, allocations: 46.52 kB / 1.156 GB, free: 31.52 MB / 1.076 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003341/1.111, allocations: 222.3 kB / 1.157 GB, free: 31.29 MB / 1.076 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001499/1.112, allocations: 54.06 kB / 1.157 GB, free: 31.26 MB / 1.076 GB Notification: Performance of preOpt resolveLoops (simulation): time 8.919e-05/1.112, allocations: 33.08 kB / 1.157 GB, free: 31.24 MB / 1.076 GB Notification: Performance of preOpt evalFunc (simulation): time 2.1e-05/1.112, allocations: 3.984 kB / 1.157 GB, free: 31.24 MB / 1.076 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001668/1.112, allocations: 73.84 kB / 1.157 GB, free: 31.18 MB / 1.076 GB Notification: Performance of pre-optimization done (n=6): time 1.272e-06/1.112, allocations: 2.938 kB / 1.157 GB, free: 31.18 MB / 1.076 GB Notification: Performance of matching and sorting (n=6): time 0.0003801/1.112, allocations: 118.4 kB / 1.157 GB, free: 31.13 MB / 1.076 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.092e-05/1.112, allocations: 58.62 kB / 1.157 GB, free: 31.06 MB / 1.076 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.428e-05/1.112, allocations: 110 kB / 1.157 GB, free: 30.96 MB / 1.076 GB Notification: Performance of collectPreVariables (initialization): time 1.043e-05/1.112, allocations: 29.7 kB / 1.157 GB, free: 30.92 MB / 1.076 GB Notification: Performance of collectInitialEqns (initialization): time 2.724e-05/1.112, allocations: 82.98 kB / 1.157 GB, free: 30.84 MB / 1.076 GB Notification: Performance of collectInitialBindings (initialization): time 1.755e-05/1.112, allocations: 18.5 kB / 1.157 GB, free: 30.82 MB / 1.076 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.364e-05/1.112, allocations: 22.53 kB / 1.157 GB, free: 30.8 MB / 1.076 GB Notification: Performance of setup shared object (initialization): time 4.193e-05/1.112, allocations: 321.7 kB / 1.157 GB, free: 30.48 MB / 1.076 GB Notification: Performance of preBalanceInitialSystem (initialization): time 8.984e-05/1.112, allocations: 22.27 kB / 1.158 GB, free: 30.48 MB / 1.076 GB Notification: Performance of partitionIndependentBlocks (initialization): time 9.547e-05/1.113, allocations: 54.77 kB / 1.158 GB, free: 30.44 MB / 1.076 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001791/1.113, allocations: 79.95 kB / 1.158 GB, free: 30.39 MB / 1.076 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.733e-06/1.113, allocations: 0 / 1.158 GB, free: 30.39 MB / 1.076 GB Notification: Performance of matching and sorting (n=8) (initialization): time 0.0002316/1.113, allocations: 101.7 kB / 1.158 GB, free: 30.34 MB / 1.076 GB Notification: Performance of prepare postOptimizeDAE: time 1.197e-05/1.113, allocations: 9.656 kB / 1.158 GB, free: 30.34 MB / 1.076 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.839e-06/1.113, allocations: 2.938 kB / 1.158 GB, free: 30.34 MB / 1.076 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.466e-05/1.113, allocations: 0 / 1.158 GB, free: 30.34 MB / 1.076 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001003/1.113, allocations: 19.19 kB / 1.158 GB, free: 30.33 MB / 1.076 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.34e-06/1.113, allocations: 0 / 1.158 GB, free: 30.33 MB / 1.076 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.539e-05/1.113, allocations: 13.11 kB / 1.158 GB, free: 30.33 MB / 1.076 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.798e-06/1.113, allocations: 2.75 kB / 1.158 GB, free: 30.33 MB / 1.076 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 5.608e-05/1.113, allocations: 121.4 kB / 1.158 GB, free: 30.2 MB / 1.076 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.245e-05/1.113, allocations: 6.156 kB / 1.158 GB, free: 30.2 MB / 1.076 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000266/1.114, allocations: 104 kB / 1.158 GB, free: 30.14 MB / 1.076 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.815e-06/1.114, allocations: 3.281 kB / 1.158 GB, free: 30.14 MB / 1.076 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.779e-06/1.114, allocations: 0 / 1.158 GB, free: 30.14 MB / 1.076 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.616e-06/1.114, allocations: 64 / 1.158 GB, free: 30.14 MB / 1.076 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003234/1.114, allocations: 302.8 kB / 1.158 GB, free: 29.88 MB / 1.076 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.433e-06/1.114, allocations: 0 / 1.158 GB, free: 29.88 MB / 1.076 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.874e-05/1.114, allocations: 16.22 kB / 1.158 GB, free: 29.88 MB / 1.076 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.883e-06/1.114, allocations: 4 kB / 1.158 GB, free: 29.87 MB / 1.076 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.115e-06/1.114, allocations: 0 / 1.158 GB, free: 29.87 MB / 1.076 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.152e-06/1.114, allocations: 0 / 1.158 GB, free: 29.87 MB / 1.076 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.553e-06/1.114, allocations: 3.281 kB / 1.158 GB, free: 29.87 MB / 1.076 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002471/1.114, allocations: 195.8 kB / 1.159 GB, free: 29.72 MB / 1.076 GB Notification: Performance of postOpt removeConstants (simulation): time 8.145e-06/1.114, allocations: 6.766 kB / 1.159 GB, free: 29.71 MB / 1.076 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.356e-05/1.114, allocations: 0 / 1.159 GB, free: 29.71 MB / 1.076 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.693e-05/1.114, allocations: 8.766 kB / 1.159 GB, free: 29.71 MB / 1.076 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.376e-05/1.114, allocations: 10 kB / 1.159 GB, free: 29.71 MB / 1.076 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.389e-05/1.114, allocations: 6.875 kB / 1.159 GB, free: 29.71 MB / 1.076 GB Notification: Performance of sorting global known variables: time 2.276e-05/1.114, allocations: 85.31 kB / 1.159 GB, free: 29.63 MB / 1.076 GB Notification: Performance of sort global known variables: time 8e-08/1.114, allocations: 2.844 kB / 1.159 GB, free: 29.63 MB / 1.076 GB Notification: Performance of remove unused functions: time 0.0002414/1.115, allocations: 16.34 kB / 1.159 GB, free: 29.62 MB / 1.076 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.0001066/1.115, allocations: 100.9 kB / 1.159 GB, free: 29.54 MB / 1.076 GB Notification: Performance of simCode: created initialization part: time 0.000243/1.115, allocations: 65.48 kB / 1.159 GB, free: 29.52 MB / 1.076 GB Notification: Performance of simCode: created event and clocks part: time 1.724e-06/1.115, allocations: 4.188 kB / 1.159 GB, free: 29.52 MB / 1.076 GB Notification: Performance of simCode: created simulation system equations: time 9.997e-05/1.115, allocations: 32.72 kB / 1.159 GB, free: 29.5 MB / 1.076 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002573/1.115, allocations: 11.72 kB / 1.159 GB, free: 29.5 MB / 1.076 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002751/1.116, allocations: 138.6 kB / 1.159 GB, free: 29.38 MB / 1.076 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 4.054e-05/1.116, allocations: 62.61 kB / 1.159 GB, free: 29.31 MB / 1.076 GB Notification: Performance of simCode: alias equations: time 2.645e-05/1.116, allocations: 6.047 kB / 1.159 GB, free: 29.31 MB / 1.076 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.472e-05/1.116, allocations: 19.56 kB / 1.159 GB, free: 29.29 MB / 1.076 GB Notification: Performance of SimCode: time 3.11e-07/1.116, allocations: 0 / 1.159 GB, free: 29.29 MB / 1.076 GB Notification: Performance of Templates: time 0.00331/1.119, allocations: 0.8154 MB / 1.16 GB, free: 29.19 MB / 1.076 GB " [Timeout remaining time 299] make -j1 -f Buildings_12_Buildings.Controls.OBC.CDL.Discrete.Validation.Sampler.makefile [Timeout 300] (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 & ./Buildings_12_Buildings.Controls.OBC.CDL.Discrete.Validation.Sampler -abortSlowSimulation -alarm=400 -s ida -emit_protected -lv LOG_STATS > Buildings_12_Buildings.Controls.OBC.CDL.Discrete.Validation.Sampler.pipe 2>&1) [Timeout 400] 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: 9.220854235929437]