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.0009266/0.0009266, allocations: 80.94 kB / 19.94 MB, free: 4.543 MB / 18.57 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.001/0.001, allocations: 177 kB / 23.36 MB, free: 1.129 MB / 18.57 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.057/1.057, allocations: 177.1 MB / 203.8 MB, free: 5.457 MB / 186.7 MB " [Timeout remaining time 179] 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 2.453/2.453, allocations: 438.8 MB / 0.6826 GB, free: 13.55 MB / 0.6511 GB " [Timeout remaining time 177] Using package Buildings with version 14.1.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: Performance of FrontEnd - loaded program: time 1.633e-06/1.633e-06, allocations: 0 / 0.8386 GB, free: 14.16 MB / 0.8073 GB Notification: Performance of FrontEnd - Absyn->SCode: time 1.638e-05/1.801e-05, allocations: 2.312 kB / 0.8386 GB, free: 14.16 MB / 0.8073 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Discrete.Validation.Sampler): time 0.001279/0.001297, allocations: 0.7195 MB / 0.8393 GB, free: 13.44 MB / 0.8073 GB Notification: Performance of NFInst.instExpressions: time 0.001093/0.002391, allocations: 1.119 MB / 0.8404 GB, free: 12.3 MB / 0.8073 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.678e-05/0.002427, allocations: 0 / 0.8404 GB, free: 12.3 MB / 0.8073 GB Notification: Performance of NFTyping.typeComponents: time 2.502e-05/0.002452, allocations: 3.938 kB / 0.8404 GB, free: 12.3 MB / 0.8073 GB Notification: Performance of NFTyping.typeBindings: time 6.803e-05/0.00252, allocations: 11.86 kB / 0.8404 GB, free: 12.29 MB / 0.8073 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002141/0.002734, allocations: 39.78 kB / 0.8405 GB, free: 12.25 MB / 0.8073 GB Notification: Performance of NFFlatten.flatten: time 8.041e-05/0.002815, allocations: 55.83 kB / 0.8405 GB, free: 12.2 MB / 0.8073 GB Notification: Performance of NFFlatten.resolveConnections: time 6.676e-05/0.002882, allocations: 8 kB / 0.8405 GB, free: 12.19 MB / 0.8073 GB Notification: Performance of NFEvalConstants.evaluate: time 7.617e-05/0.002958, allocations: 27.91 kB / 0.8405 GB, free: 12.16 MB / 0.8073 GB Notification: Performance of NFSimplifyModel.simplify: time 4.282e-05/0.003001, allocations: 23.91 kB / 0.8406 GB, free: 12.14 MB / 0.8073 GB Notification: Performance of NFPackage.collectConstants: time 1.33e-05/0.003014, allocations: 4 kB / 0.8406 GB, free: 12.13 MB / 0.8073 GB Notification: Performance of NFFlatten.collectFunctions: time 6.741e-05/0.003081, allocations: 19.98 kB / 0.8406 GB, free: 12.11 MB / 0.8073 GB Notification: Performance of NFScalarize.scalarize: time 1.679e-05/0.003098, allocations: 8 kB / 0.8406 GB, free: 12.11 MB / 0.8073 GB Notification: Performance of NFVerifyModel.verify: time 2.249e-05/0.003121, allocations: 19.91 kB / 0.8406 GB, free: 12.09 MB / 0.8073 GB Notification: Performance of NFConvertDAE.convert: time 0.0001019/0.003222, allocations: 51.81 kB / 0.8407 GB, free: 12.04 MB / 0.8073 GB Notification: Performance of FrontEnd - DAE generated: time 1.884e-06/0.003224, allocations: 0 / 0.8407 GB, free: 12.04 MB / 0.8073 GB Notification: Performance of FrontEnd: time 5.31e-07/0.003225, allocations: 0 / 0.8407 GB, free: 12.04 MB / 0.8073 GB Notification: Performance of Transformations before backend: time 3.156e-06/0.003228, allocations: 0 / 0.8407 GB, free: 12.04 MB / 0.8073 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.0003261/0.003554, allocations: 268.8 kB / 0.8409 GB, free: 11.75 MB / 0.8073 GB Notification: Performance of prepare preOptimizeDAE: time 2.932e-05/0.003583, allocations: 8.625 kB / 0.8409 GB, free: 11.74 MB / 0.8073 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.448e-05/0.003658, allocations: 12.92 kB / 0.8409 GB, free: 11.73 MB / 0.8073 GB Notification: Performance of preOpt evaluateParameters (simulation): time 7.122e-05/0.003729, allocations: 109.7 kB / 0.841 GB, free: 11.59 MB / 0.8073 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.167e-06/0.003738, allocations: 8.375 kB / 0.841 GB, free: 11.59 MB / 0.8073 GB Notification: Performance of preOpt expandDerOperator (simulation): time 7.505e-06/0.003746, allocations: 4.375 kB / 0.8411 GB, free: 11.58 MB / 0.8073 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001596/0.003905, allocations: 58.94 kB / 0.8411 GB, free: 11.52 MB / 0.8073 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.782e-06/0.003912, allocations: 192 / 0.8411 GB, free: 11.52 MB / 0.8073 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.334e-06/0.00392, allocations: 8.375 kB / 0.8411 GB, free: 11.51 MB / 0.8073 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.19e-06/0.003925, allocations: 384 / 0.8411 GB, free: 11.51 MB / 0.8073 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.523e-05/0.00395, allocations: 15.92 kB / 0.8411 GB, free: 11.49 MB / 0.8073 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002201/0.00417, allocations: 160.2 kB / 0.8413 GB, free: 11.32 MB / 0.8073 GB Notification: Performance of preOpt comSubExp (simulation): time 5.63e-05/0.004226, allocations: 34.5 kB / 0.8413 GB, free: 11.28 MB / 0.8073 GB Notification: Performance of preOpt resolveLoops (simulation): time 1.411e-05/0.00424, allocations: 8.859 kB / 0.8413 GB, free: 11.27 MB / 0.8073 GB Notification: Performance of preOpt evalFunc (simulation): time 1.226e-05/0.004253, allocations: 4 kB / 0.8413 GB, free: 11.26 MB / 0.8073 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.643e-05/0.004309, allocations: 59.58 kB / 0.8414 GB, free: 11.19 MB / 0.8073 GB Notification: Performance of pre-optimization done (n=6): time 1.162e-06/0.00431, allocations: 0 / 0.8414 GB, free: 11.19 MB / 0.8073 GB Notification: Performance of matching and sorting (n=6): time 0.0001088/0.004419, allocations: 65.55 kB / 0.8415 GB, free: 11.12 MB / 0.8073 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.369e-05/0.004453, allocations: 51.41 kB / 0.8415 GB, free: 11.06 MB / 0.8073 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.267e-05/0.004505, allocations: 110.7 kB / 0.8416 GB, free: 10.94 MB / 0.8073 GB Notification: Performance of collectPreVariables (initialization): time 9.899e-06/0.004515, allocations: 25.7 kB / 0.8416 GB, free: 10.91 MB / 0.8073 GB Notification: Performance of collectInitialEqns (initialization): time 2.512e-05/0.00454, allocations: 84.12 kB / 0.8417 GB, free: 10.82 MB / 0.8073 GB Notification: Performance of collectInitialBindings (initialization): time 1.491e-05/0.004555, allocations: 11.91 kB / 0.8417 GB, free: 10.81 MB / 0.8073 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.029e-05/0.004586, allocations: 29.69 kB / 0.8417 GB, free: 10.77 MB / 0.8073 GB Notification: Performance of setup shared object (initialization): time 6.856e-05/0.004654, allocations: 314.8 kB / 0.842 GB, free: 10.46 MB / 0.8073 GB Notification: Performance of preBalanceInitialSystem (initialization): time 1.12e-05/0.004665, allocations: 4 kB / 0.8421 GB, free: 10.45 MB / 0.8073 GB Notification: Performance of partitionIndependentBlocks (initialization): time 2.45e-05/0.00469, allocations: 35.41 kB / 0.8421 GB, free: 10.41 MB / 0.8073 GB Notification: Performance of analyzeInitialSystem (initialization): time 4.625e-05/0.004736, allocations: 55.34 kB / 0.8421 GB, free: 10.34 MB / 0.8073 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.503e-06/0.004738, allocations: 0 / 0.8421 GB, free: 10.34 MB / 0.8073 GB Notification: Performance of matching and sorting (n=8) (initialization): time 6.137e-05/0.004799, allocations: 61.55 kB / 0.8422 GB, free: 10.27 MB / 0.8073 GB Notification: Performance of prepare postOptimizeDAE: time 1.148e-05/0.00481, allocations: 14.44 kB / 0.8422 GB, free: 10.26 MB / 0.8073 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.537e-06/0.004814, allocations: 0 / 0.8422 GB, free: 10.26 MB / 0.8073 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.228e-05/0.004826, allocations: 3.938 kB / 0.8422 GB, free: 10.26 MB / 0.8073 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.62e-05/0.004882, allocations: 15.98 kB / 0.8422 GB, free: 10.24 MB / 0.8073 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.605e-06/0.004885, allocations: 96 / 0.8422 GB, free: 10.24 MB / 0.8073 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.517e-05/0.00491, allocations: 15.94 kB / 0.8422 GB, free: 10.23 MB / 0.8073 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.011e-06/0.004916, allocations: 0 / 0.8422 GB, free: 10.23 MB / 0.8073 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.222e-05/0.004968, allocations: 117.2 kB / 0.8424 GB, free: 10.11 MB / 0.8073 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.767e-06/0.004977, allocations: 15.92 kB / 0.8424 GB, free: 10.09 MB / 0.8073 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.593e-05/0.005043, allocations: 54.08 kB / 0.8424 GB, free: 10.04 MB / 0.8073 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.517e-06/0.005047, allocations: 8.5 kB / 0.8424 GB, free: 10.03 MB / 0.8073 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.353e-06/0.005048, allocations: 0 / 0.8424 GB, free: 10.03 MB / 0.8073 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.797e-06/0.005052, allocations: 3.984 kB / 0.8424 GB, free: 10.02 MB / 0.8073 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001366/0.005188, allocations: 202.8 kB / 0.8426 GB, free: 9.801 MB / 0.8073 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.42e-07/0.005189, allocations: 0 / 0.8426 GB, free: 9.801 MB / 0.8073 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.087e-05/0.00521, allocations: 8 kB / 0.8426 GB, free: 9.793 MB / 0.8073 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.102e-06/0.005211, allocations: 0 / 0.8426 GB, free: 9.793 MB / 0.8073 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.764e-06/0.005219, allocations: 11.94 kB / 0.8426 GB, free: 9.781 MB / 0.8073 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.52e-07/0.00522, allocations: 0 / 0.8426 GB, free: 9.781 MB / 0.8073 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.81e-07/0.005221, allocations: 0 / 0.8426 GB, free: 9.781 MB / 0.8073 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 6.635e-05/0.005287, allocations: 139.5 kB / 0.8428 GB, free: 9.629 MB / 0.8073 GB Notification: Performance of postOpt removeConstants (simulation): time 1.241e-05/0.005299, allocations: 7.938 kB / 0.8428 GB, free: 9.621 MB / 0.8073 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.062e-05/0.00531, allocations: 3.938 kB / 0.8428 GB, free: 9.617 MB / 0.8073 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.21e-05/0.005352, allocations: 11.98 kB / 0.8428 GB, free: 9.605 MB / 0.8073 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.454e-05/0.005377, allocations: 4 kB / 0.8428 GB, free: 9.602 MB / 0.8073 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.117e-06/0.005386, allocations: 7.984 kB / 0.8428 GB, free: 9.594 MB / 0.8073 GB Notification: Performance of sorting global known variables: time 1.016e-05/0.005396, allocations: 8.859 kB / 0.8428 GB, free: 9.582 MB / 0.8073 GB Notification: Performance of sort global known variables: time 4e-08/0.005396, allocations: 0 / 0.8428 GB, free: 9.582 MB / 0.8073 GB Notification: Performance of remove unused functions: time 0.0001318/0.005528, allocations: 12 kB / 0.8428 GB, free: 9.57 MB / 0.8073 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 9.18e-05/0.005619, allocations: 92.33 kB / 0.8429 GB, free: 9.469 MB / 0.8073 GB Notification: Performance of simCode: created initialization part: time 6.619e-05/0.005686, allocations: 28.78 kB / 0.843 GB, free: 9.438 MB / 0.8073 GB Notification: Performance of simCode: created event and clocks part: time 2.885e-06/0.005689, allocations: 4 kB / 0.843 GB, free: 9.434 MB / 0.8073 GB Notification: Performance of simCode: created simulation system equations: time 2.461e-05/0.005713, allocations: 12.86 kB / 0.843 GB, free: 9.418 MB / 0.8073 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001313/0.005844, allocations: 16.17 kB / 0.843 GB, free: 9.402 MB / 0.8073 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003263/0.006171, allocations: 137 kB / 0.8431 GB, free: 9.242 MB / 0.8073 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 3.008e-05/0.006201, allocations: 63.28 kB / 0.8432 GB, free: 9.16 MB / 0.8073 GB Notification: Performance of simCode: alias equations: time 1.933e-05/0.00622, allocations: 4 kB / 0.8432 GB, free: 9.156 MB / 0.8073 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.864e-05/0.006269, allocations: 59.36 kB / 0.8432 GB, free: 9.098 MB / 0.8073 GB Notification: Performance of SimCode: time 5.51e-07/0.006269, allocations: 0 / 0.8432 GB, free: 9.098 MB / 0.8073 GB Notification: Performance of Templates: time 0.002248/0.008517, allocations: 0.8738 MB / 0.8441 GB, free: 8.238 MB / 0.8073 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=240 -s gbode -gbm=radauIIA3 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Validation.Sampler.pipe 2>&1) [Timeout 240] 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","",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 300] "" [Timeout remaining time 300] Reference file matches [Calling sys.exit(0), Time elapsed: 5.386572351213545]