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.001669/0.001669, allocations: 110.5 kB / 19.69 MB, free: 2.254 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.002104/0.002104, allocations: 216.7 kB / 23.01 MB, free: 4.566 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.48/1.48, allocations: 230.6 MB / 256.8 MB, free: 8.016 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.265/3.265, allocations: 0.505 GB / 0.8108 GB, free: 22.04 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: translateModel(Buildings.Controls.OBC.CDL.Discrete.Validation.Sampler,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|sampler1.u|sampler1.y",fileNamePrefix="Buildings_latest_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_latest_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.002281/0.002281, allocations: 64.94 kB / 1.178 GB, free: 16.84 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3426/0.3449, allocations: 180.2 MB / 1.354 GB, free: 7.973 MB / 1.045 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Discrete.Validation.Sampler): time 0.001925/0.3468, allocations: 0.6736 MB / 1.355 GB, free: 7.301 MB / 1.045 GB Notification: Performance of NFInst.instExpressions: time 0.001443/0.3483, allocations: 1.101 MB / 1.356 GB, free: 6.188 MB / 1.045 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.359e-05/0.3483, allocations: 0 / 1.356 GB, free: 6.188 MB / 1.045 GB Notification: Performance of NFTyping.typeComponents: time 2.884e-05/0.3483, allocations: 3.938 kB / 1.356 GB, free: 6.184 MB / 1.045 GB Notification: Performance of NFTyping.typeBindings: time 7.135e-05/0.3484, allocations: 15.86 kB / 1.356 GB, free: 6.168 MB / 1.045 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002859/0.3487, allocations: 43.84 kB / 1.356 GB, free: 6.125 MB / 1.045 GB Notification: Performance of NFFlatten.flatten: time 0.0001091/0.3488, allocations: 47.91 kB / 1.356 GB, free: 6.078 MB / 1.045 GB Notification: Performance of NFFlatten.resolveConnections: time 8.766e-05/0.3489, allocations: 3.984 kB / 1.356 GB, free: 6.074 MB / 1.045 GB Notification: Performance of NFEvalConstants.evaluate: time 7.274e-05/0.349, allocations: 23.92 kB / 1.356 GB, free: 6.051 MB / 1.045 GB Notification: Performance of NFSimplifyModel.simplify: time 5.568e-05/0.349, allocations: 19.92 kB / 1.356 GB, free: 6.031 MB / 1.045 GB Notification: Performance of NFPackage.collectConstants: time 2.258e-05/0.3491, allocations: 7.938 kB / 1.356 GB, free: 6.023 MB / 1.045 GB Notification: Performance of NFFlatten.collectFunctions: time 7.432e-05/0.3491, allocations: 27.92 kB / 1.356 GB, free: 5.996 MB / 1.045 GB Notification: Performance of NFScalarize.scalarize: time 2.507e-05/0.3492, allocations: 19.97 kB / 1.356 GB, free: 5.977 MB / 1.045 GB Notification: Performance of NFVerifyModel.verify: time 3.739e-05/0.3492, allocations: 19.86 kB / 1.356 GB, free: 5.957 MB / 1.045 GB Notification: Performance of NFConvertDAE.convert: time 0.0001475/0.3493, allocations: 59.78 kB / 1.356 GB, free: 5.898 MB / 1.045 GB Notification: Performance of FrontEnd - DAE generated: time 3.055e-06/0.3493, allocations: 0 / 1.356 GB, free: 5.898 MB / 1.045 GB Notification: Performance of FrontEnd: time 1.242e-06/0.3493, allocations: 0 / 1.356 GB, free: 5.898 MB / 1.045 GB Notification: Performance of Transformations before backend: time 5.791e-06/0.3493, allocations: 0 / 1.356 GB, free: 5.898 MB / 1.045 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.0005705/0.3499, allocations: 290.2 kB / 1.356 GB, free: 5.582 MB / 1.045 GB Notification: Performance of prepare preOptimizeDAE: time 3.39e-05/0.35, allocations: 16.03 kB / 1.356 GB, free: 5.566 MB / 1.045 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.239e-05/0.35, allocations: 4.938 kB / 1.356 GB, free: 5.562 MB / 1.045 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001051/0.3501, allocations: 114.4 kB / 1.356 GB, free: 5.426 MB / 1.045 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.118e-05/0.3501, allocations: 4.375 kB / 1.356 GB, free: 5.422 MB / 1.045 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.618e-05/0.3502, allocations: 4.375 kB / 1.356 GB, free: 5.418 MB / 1.045 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002073/0.3504, allocations: 66.16 kB / 1.357 GB, free: 5.348 MB / 1.045 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.167e-06/0.3504, allocations: 192 / 1.357 GB, free: 5.348 MB / 1.045 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.63e-05/0.3504, allocations: 7.938 kB / 1.357 GB, free: 5.34 MB / 1.045 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.678e-06/0.3504, allocations: 3.938 kB / 1.357 GB, free: 5.336 MB / 1.045 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001725/0.3506, allocations: 39.97 kB / 1.357 GB, free: 5.297 MB / 1.045 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004533/0.351, allocations: 240 kB / 1.357 GB, free: 5.02 MB / 1.045 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001713/0.3512, allocations: 66.41 kB / 1.357 GB, free: 4.945 MB / 1.045 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001031/0.3513, allocations: 28.97 kB / 1.357 GB, free: 4.914 MB / 1.045 GB Notification: Performance of preOpt evalFunc (simulation): time 2.392e-05/0.3513, allocations: 8.047 kB / 1.357 GB, free: 4.906 MB / 1.045 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002081/0.3515, allocations: 67.39 kB / 1.357 GB, free: 4.828 MB / 1.045 GB Notification: Performance of pre-optimization done (n=6): time 1.332e-06/0.3515, allocations: 0 / 1.357 GB, free: 4.828 MB / 1.045 GB Notification: Performance of matching and sorting (n=6): time 0.0004243/0.352, allocations: 129.5 kB / 1.357 GB, free: 4.695 MB / 1.045 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.768e-05/0.352, allocations: 55.41 kB / 1.357 GB, free: 4.629 MB / 1.045 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.256e-05/0.3521, allocations: 110.1 kB / 1.357 GB, free: 4.512 MB / 1.045 GB Notification: Performance of collectPreVariables (initialization): time 1.874e-05/0.3521, allocations: 25.7 kB / 1.357 GB, free: 4.48 MB / 1.045 GB Notification: Performance of collectInitialEqns (initialization): time 5.509e-05/0.3522, allocations: 84.14 kB / 1.357 GB, free: 4.395 MB / 1.045 GB Notification: Performance of collectInitialBindings (initialization): time 2.221e-05/0.3522, allocations: 15.89 kB / 1.357 GB, free: 4.379 MB / 1.045 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.098e-05/0.3522, allocations: 21.72 kB / 1.357 GB, free: 4.352 MB / 1.045 GB Notification: Performance of setup shared object (initialization): time 0.0001377/0.3524, allocations: 318.8 kB / 1.358 GB, free: 4.031 MB / 1.045 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001106/0.3525, allocations: 23.98 kB / 1.358 GB, free: 4.008 MB / 1.045 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001198/0.3526, allocations: 51.41 kB / 1.358 GB, free: 3.945 MB / 1.045 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000207/0.3528, allocations: 87.27 kB / 1.358 GB, free: 3.848 MB / 1.045 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.884e-06/0.3528, allocations: 0 / 1.358 GB, free: 3.848 MB / 1.045 GB Notification: Performance of matching and sorting (n=8) (initialization): time 0.0002568/0.3531, allocations: 101.5 kB / 1.358 GB, free: 3.742 MB / 1.045 GB Notification: Performance of prepare postOptimizeDAE: time 1.633e-05/0.3531, allocations: 7.984 kB / 1.358 GB, free: 3.734 MB / 1.045 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.508e-06/0.3531, allocations: 0 / 1.358 GB, free: 3.734 MB / 1.045 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.982e-05/0.3531, allocations: 4 kB / 1.358 GB, free: 3.73 MB / 1.045 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001064/0.3532, allocations: 15.92 kB / 1.358 GB, free: 3.715 MB / 1.045 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.252e-06/0.3532, allocations: 8.031 kB / 1.358 GB, free: 3.707 MB / 1.045 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.426e-05/0.3533, allocations: 11.94 kB / 1.358 GB, free: 3.695 MB / 1.045 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.117e-06/0.3533, allocations: 0 / 1.358 GB, free: 3.695 MB / 1.045 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.0001003/0.3534, allocations: 129.2 kB / 1.358 GB, free: 3.562 MB / 1.045 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.233e-05/0.3534, allocations: 4 kB / 1.358 GB, free: 3.559 MB / 1.045 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002867/0.3537, allocations: 109.9 kB / 1.358 GB, free: 3.445 MB / 1.045 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.384e-06/0.3537, allocations: 4 kB / 1.358 GB, free: 3.441 MB / 1.045 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.097e-06/0.3537, allocations: 0 / 1.358 GB, free: 3.441 MB / 1.045 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.356e-06/0.3537, allocations: 0 / 1.358 GB, free: 3.441 MB / 1.045 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004543/0.3542, allocations: 321.6 kB / 1.359 GB, free: 3.078 MB / 1.045 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.603e-06/0.3542, allocations: 4 kB / 1.359 GB, free: 3.074 MB / 1.045 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.963e-05/0.3542, allocations: 15.86 kB / 1.359 GB, free: 3.059 MB / 1.045 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.853e-06/0.3542, allocations: 0 / 1.359 GB, free: 3.059 MB / 1.045 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.029e-05/0.3542, allocations: 4 kB / 1.359 GB, free: 3.055 MB / 1.045 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.114e-06/0.3542, allocations: 4 kB / 1.359 GB, free: 3.051 MB / 1.045 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.42e-07/0.3542, allocations: 0 / 1.359 GB, free: 3.051 MB / 1.045 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003057/0.3545, allocations: 187.8 kB / 1.359 GB, free: 2.852 MB / 1.045 GB Notification: Performance of postOpt removeConstants (simulation): time 1.327e-05/0.3546, allocations: 12 kB / 1.359 GB, free: 2.84 MB / 1.045 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.693e-05/0.3546, allocations: 4 kB / 1.359 GB, free: 2.836 MB / 1.045 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.926e-05/0.3547, allocations: 7.984 kB / 1.359 GB, free: 2.828 MB / 1.045 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.186e-05/0.3547, allocations: 8 kB / 1.359 GB, free: 2.82 MB / 1.045 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.549e-05/0.3547, allocations: 3.938 kB / 1.359 GB, free: 2.816 MB / 1.045 GB Notification: Performance of sorting global known variables: time 5.388e-05/0.3548, allocations: 87.27 kB / 1.359 GB, free: 2.73 MB / 1.045 GB Notification: Performance of sort global known variables: time 7e-08/0.3548, allocations: 0 / 1.359 GB, free: 2.73 MB / 1.045 GB Notification: Performance of remove unused functions: time 0.0002434/0.355, allocations: 16 kB / 1.359 GB, free: 2.715 MB / 1.045 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.000148/0.3552, allocations: 107.1 kB / 1.359 GB, free: 2.602 MB / 1.045 GB Notification: Performance of simCode: created initialization part: time 0.0002603/0.3554, allocations: 63.94 kB / 1.359 GB, free: 2.539 MB / 1.045 GB Notification: Performance of simCode: created event and clocks part: time 1.453e-06/0.3554, allocations: 0 / 1.359 GB, free: 2.539 MB / 1.045 GB Notification: Performance of simCode: created simulation system equations: time 0.0001081/0.3555, allocations: 31.92 kB / 1.359 GB, free: 2.508 MB / 1.045 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002646/0.3558, allocations: 7.984 kB / 1.359 GB, free: 2.5 MB / 1.045 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003819/0.3562, allocations: 159.9 kB / 1.359 GB, free: 2.309 MB / 1.045 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003099/0.3565, allocations: 0.6886 MB / 1.36 GB, free: 1.594 MB / 1.045 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.36e-05/0.3565, allocations: 15.58 kB / 1.36 GB, free: 1.578 MB / 1.045 GB Notification: Performance of SimCode: time 3e-07/0.3565, allocations: 0 / 1.36 GB, free: 1.578 MB / 1.045 GB Notification: Performance of Templates: time 0.002632/0.3592, allocations: 0.8668 MB / 1.361 GB, free: 0.7148 MB / 1.045 GB " [Timeout remaining time 300] make -j1 -f Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Validation.Sampler.makefile [Timeout 300] (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 & ./Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Validation.Sampler -abortSlowSimulation -alarm=800 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Validation.Sampler.pipe 2>&1) [Timeout 800] 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: 11.229579767998075]