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.001344/0.001344, allocations: 104.4 kB / 19.7 MB, free: 2.125 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.001421/0.001421, allocations: 213.9 kB / 22.99 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.509/1.509, allocations: 230.6 MB / 256.8 MB, free: 7.801 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.192/3.192, allocations: 0.4892 GB / 0.7951 GB, free: 35.66 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: 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.002001/0.002001, allocations: 64.95 kB / 1.154 GB, free: 25.55 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3296/0.3316, allocations: 176.1 MB / 1.326 GB, free: 1.875 MB / 1.014 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Discrete.Validation.Sampler): time 0.001875/0.3335, allocations: 0.6593 MB / 1.327 GB, free: 1.223 MB / 1.014 GB Notification: Performance of NFInst.instExpressions: time 0.001471/0.335, allocations: 1.085 MB / 1.328 GB, free: 128 kB / 1.014 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.397e-05/0.335, allocations: 0 / 1.328 GB, free: 128 kB / 1.014 GB Notification: Performance of NFTyping.typeComponents: time 3.168e-05/0.335, allocations: 4 kB / 1.328 GB, free: 124 kB / 1.014 GB Notification: Performance of NFTyping.typeBindings: time 5.901e-05/0.3351, allocations: 7.875 kB / 1.328 GB, free: 116 kB / 1.014 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002797/0.3354, allocations: 47.89 kB / 1.328 GB, free: 68 kB / 1.014 GB Notification: Performance of NFFlatten.flatten: time 0.0001066/0.3355, allocations: 55.78 kB / 1.328 GB, free: 12 kB / 1.014 GB Notification: Performance of NFFlatten.resolveConnections: time 8.879e-05/0.3356, allocations: 4 kB / 1.328 GB, free: 8 kB / 1.014 GB Notification: Performance of NFEvalConstants.evaluate: time 8.021e-05/0.3357, allocations: 20 kB / 1.328 GB, free: 15.98 MB / 1.029 GB Notification: Performance of NFSimplifyModel.simplify: time 4.979e-05/0.3357, allocations: 19.83 kB / 1.328 GB, free: 15.97 MB / 1.029 GB Notification: Performance of NFPackage.collectConstants: time 1.523e-05/0.3357, allocations: 7.938 kB / 1.328 GB, free: 15.96 MB / 1.029 GB Notification: Performance of NFFlatten.collectFunctions: time 7.728e-05/0.3358, allocations: 19.98 kB / 1.328 GB, free: 15.94 MB / 1.029 GB Notification: Performance of NFScalarize.scalarize: time 2.488e-05/0.3358, allocations: 11.98 kB / 1.328 GB, free: 15.93 MB / 1.029 GB Notification: Performance of NFVerifyModel.verify: time 3.688e-05/0.3359, allocations: 19.94 kB / 1.328 GB, free: 15.91 MB / 1.029 GB Notification: Performance of NFConvertDAE.convert: time 0.000147/0.336, allocations: 59.72 kB / 1.328 GB, free: 15.85 MB / 1.029 GB Notification: Performance of FrontEnd - DAE generated: time 3.366e-06/0.336, allocations: 3.938 kB / 1.328 GB, free: 15.85 MB / 1.029 GB Notification: Performance of FrontEnd: time 1.262e-06/0.336, allocations: 0 / 1.328 GB, free: 15.85 MB / 1.029 GB Notification: Performance of Transformations before backend: time 5.421e-06/0.336, allocations: 0 / 1.328 GB, free: 15.85 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.000615/0.3366, allocations: 294.2 kB / 1.329 GB, free: 15.53 MB / 1.029 GB Notification: Performance of prepare preOptimizeDAE: time 3.308e-05/0.3367, allocations: 8.031 kB / 1.329 GB, free: 15.52 MB / 1.029 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.786e-05/0.3367, allocations: 8.891 kB / 1.329 GB, free: 15.51 MB / 1.029 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001218/0.3369, allocations: 114.5 kB / 1.329 GB, free: 15.38 MB / 1.029 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.517e-05/0.3369, allocations: 4.375 kB / 1.329 GB, free: 15.37 MB / 1.029 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.295e-05/0.3369, allocations: 4.375 kB / 1.329 GB, free: 15.37 MB / 1.029 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002063/0.3371, allocations: 66.2 kB / 1.329 GB, free: 15.3 MB / 1.029 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.107e-06/0.3371, allocations: 192 / 1.329 GB, free: 15.3 MB / 1.029 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.628e-05/0.3371, allocations: 7.938 kB / 1.329 GB, free: 15.29 MB / 1.029 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.178e-06/0.3371, allocations: 0 / 1.329 GB, free: 15.29 MB / 1.029 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001936/0.3373, allocations: 47.89 kB / 1.329 GB, free: 15.24 MB / 1.029 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004367/0.3378, allocations: 220.5 kB / 1.329 GB, free: 15 MB / 1.029 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001699/0.3379, allocations: 50.55 kB / 1.329 GB, free: 14.94 MB / 1.029 GB Notification: Performance of preOpt resolveLoops (simulation): time 9.953e-05/0.338, allocations: 28.91 kB / 1.329 GB, free: 14.91 MB / 1.029 GB Notification: Performance of preOpt evalFunc (simulation): time 1.781e-05/0.3381, allocations: 0 / 1.329 GB, free: 14.91 MB / 1.029 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002178/0.3383, allocations: 79.31 kB / 1.329 GB, free: 14.82 MB / 1.029 GB Notification: Performance of pre-optimization done (n=6): time 1.252e-06/0.3383, allocations: 0 / 1.329 GB, free: 14.82 MB / 1.029 GB Notification: Performance of matching and sorting (n=6): time 0.0004371/0.3387, allocations: 117.6 kB / 1.329 GB, free: 14.7 MB / 1.029 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.059e-05/0.3388, allocations: 55.41 kB / 1.329 GB, free: 14.63 MB / 1.029 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000109/0.3389, allocations: 118 kB / 1.329 GB, free: 14.5 MB / 1.029 GB Notification: Performance of collectPreVariables (initialization): time 2.074e-05/0.3389, allocations: 25.7 kB / 1.329 GB, free: 14.47 MB / 1.029 GB Notification: Performance of collectInitialEqns (initialization): time 4.948e-05/0.3389, allocations: 80.14 kB / 1.33 GB, free: 14.39 MB / 1.029 GB Notification: Performance of collectInitialBindings (initialization): time 3.044e-05/0.339, allocations: 19.89 kB / 1.33 GB, free: 14.37 MB / 1.029 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.169e-05/0.339, allocations: 17.72 kB / 1.33 GB, free: 14.35 MB / 1.029 GB Notification: Performance of setup shared object (initialization): time 0.0001624/0.3392, allocations: 318.8 kB / 1.33 GB, free: 14.03 MB / 1.029 GB Notification: Performance of preBalanceInitialSystem (initialization): time 9.76e-05/0.3393, allocations: 23.97 kB / 1.33 GB, free: 14 MB / 1.029 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001152/0.3394, allocations: 59.28 kB / 1.33 GB, free: 13.93 MB / 1.029 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002053/0.3396, allocations: 79.33 kB / 1.33 GB, free: 13.84 MB / 1.029 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.984e-06/0.3396, allocations: 0 / 1.33 GB, free: 13.84 MB / 1.029 GB Notification: Performance of matching and sorting (n=8) (initialization): time 0.0002719/0.3399, allocations: 105.6 kB / 1.33 GB, free: 13.73 MB / 1.029 GB Notification: Performance of prepare postOptimizeDAE: time 1.499e-05/0.3399, allocations: 6.188 kB / 1.33 GB, free: 13.73 MB / 1.029 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.282e-06/0.3399, allocations: 4 kB / 1.33 GB, free: 13.73 MB / 1.029 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.383e-05/0.3399, allocations: 0 / 1.33 GB, free: 13.73 MB / 1.029 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001079/0.34, allocations: 15.98 kB / 1.33 GB, free: 13.71 MB / 1.029 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.162e-05/0.34, allocations: 11.92 kB / 1.33 GB, free: 13.7 MB / 1.029 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.802e-05/0.3401, allocations: 11.89 kB / 1.33 GB, free: 13.69 MB / 1.029 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.173e-05/0.3401, allocations: 4 kB / 1.33 GB, free: 13.68 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 0.0001217/0.3402, allocations: 121.7 kB / 1.33 GB, free: 13.55 MB / 1.029 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.293e-05/0.3402, allocations: 8.016 kB / 1.33 GB, free: 13.55 MB / 1.029 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002858/0.3405, allocations: 102 kB / 1.33 GB, free: 13.44 MB / 1.029 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.525e-06/0.3405, allocations: 0 / 1.33 GB, free: 13.44 MB / 1.029 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.567e-06/0.3405, allocations: 0 / 1.33 GB, free: 13.44 MB / 1.029 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.945e-06/0.3405, allocations: 0 / 1.33 GB, free: 13.44 MB / 1.029 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004474/0.341, allocations: 306.1 kB / 1.331 GB, free: 13.1 MB / 1.029 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.373e-06/0.341, allocations: 0 / 1.331 GB, free: 13.1 MB / 1.029 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.199e-05/0.341, allocations: 11.98 kB / 1.331 GB, free: 13.09 MB / 1.029 GB Notification: Performance of postOpt tearingSystem (simulation): time 6.382e-06/0.341, allocations: 8.031 kB / 1.331 GB, free: 13.08 MB / 1.029 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.498e-06/0.3411, allocations: 0 / 1.331 GB, free: 13.08 MB / 1.029 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.142e-06/0.3411, allocations: 0 / 1.331 GB, free: 13.08 MB / 1.029 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.082e-06/0.3411, allocations: 0 / 1.331 GB, free: 13.08 MB / 1.029 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003125/0.3414, allocations: 199.8 kB / 1.331 GB, free: 12.87 MB / 1.029 GB Notification: Performance of postOpt removeConstants (simulation): time 1.321e-05/0.3414, allocations: 4.016 kB / 1.331 GB, free: 12.87 MB / 1.029 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.742e-05/0.3414, allocations: 4 kB / 1.331 GB, free: 12.86 MB / 1.029 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.828e-05/0.3415, allocations: 11.98 kB / 1.331 GB, free: 12.85 MB / 1.029 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.308e-05/0.3415, allocations: 11.98 kB / 1.331 GB, free: 12.84 MB / 1.029 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.255e-05/0.3415, allocations: 4 kB / 1.331 GB, free: 12.84 MB / 1.029 GB Notification: Performance of sorting global known variables: time 4.878e-05/0.3416, allocations: 79.28 kB / 1.331 GB, free: 12.76 MB / 1.029 GB Notification: Performance of sort global known variables: time 8e-08/0.3416, allocations: 0 / 1.331 GB, free: 12.76 MB / 1.029 GB Notification: Performance of remove unused functions: time 0.0002488/0.3418, allocations: 16 kB / 1.331 GB, free: 12.74 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.0001577/0.342, allocations: 103.2 kB / 1.331 GB, free: 12.63 MB / 1.029 GB Notification: Performance of simCode: created initialization part: time 0.0002636/0.3423, allocations: 71.89 kB / 1.331 GB, free: 12.56 MB / 1.029 GB Notification: Performance of simCode: created event and clocks part: time 1.543e-06/0.3423, allocations: 3.938 kB / 1.331 GB, free: 12.56 MB / 1.029 GB Notification: Performance of simCode: created simulation system equations: time 0.0001111/0.3424, allocations: 27.97 kB / 1.331 GB, free: 12.53 MB / 1.029 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002586/0.3426, allocations: 15.81 kB / 1.331 GB, free: 12.52 MB / 1.029 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003828/0.343, allocations: 167.8 kB / 1.331 GB, free: 12.32 MB / 1.029 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 8.014e-05/0.3431, allocations: 67.34 kB / 1.331 GB, free: 12.23 MB / 1.029 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.046e-05/0.3431, allocations: 11.44 kB / 1.331 GB, free: 12.22 MB / 1.029 GB Notification: Performance of SimCode: time 2.91e-07/0.3431, allocations: 4.125 kB / 1.331 GB, free: 12.22 MB / 1.029 GB Notification: Performance of Templates: time 0.002838/0.346, allocations: 0.8757 MB / 1.332 GB, free: 11.34 MB / 1.029 GB " [Timeout remaining time 300] 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 -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: 11.006432946771383]