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.001269/0.001269, allocations: 93.06 kB / 19.65 MB, free: 276 kB / 13.93 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.0009501/0.0009501, allocations: 169 kB / 23.02 MB, free: 1.547 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 0.901/0.901, allocations: 177.1 MB / 203.4 MB, free: 5.637 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 1.989/1.989, allocations: 429.5 MB / 0.6733 GB, free: 4.016 MB / 0.6355 GB " [Timeout remaining time 177] Using package Buildings with version 14.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: Performance of FrontEnd - loaded program: time 1.703e-06/1.703e-06, allocations: 0 / 0.8782 GB, free: 6.289 MB / 0.8386 GB Notification: Performance of FrontEnd - Absyn->SCode: time 1.364e-05/1.534e-05, allocations: 5.938 kB / 0.8782 GB, free: 6.285 MB / 0.8386 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Discrete.Validation.Sampler): time 0.001138/0.001153, allocations: 0.6743 MB / 0.8788 GB, free: 5.633 MB / 0.8386 GB Notification: Performance of NFInst.instExpressions: time 0.001013/0.002166, allocations: 1.111 MB / 0.8799 GB, free: 4.512 MB / 0.8386 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.815e-05/0.002204, allocations: 0 / 0.8799 GB, free: 4.512 MB / 0.8386 GB Notification: Performance of NFTyping.typeComponents: time 2.636e-05/0.00223, allocations: 3.938 kB / 0.8799 GB, free: 4.508 MB / 0.8386 GB Notification: Performance of NFTyping.typeBindings: time 6.186e-05/0.002292, allocations: 11.98 kB / 0.8799 GB, free: 4.496 MB / 0.8386 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002769/0.002569, allocations: 43.77 kB / 0.88 GB, free: 4.453 MB / 0.8386 GB Notification: Performance of NFFlatten.flatten: time 8.432e-05/0.002654, allocations: 56.7 kB / 0.88 GB, free: 4.398 MB / 0.8386 GB Notification: Performance of NFFlatten.resolveConnections: time 9.004e-05/0.002744, allocations: 8 kB / 0.88 GB, free: 4.391 MB / 0.8386 GB Notification: Performance of NFEvalConstants.evaluate: time 7.52e-05/0.002819, allocations: 32.94 kB / 0.8801 GB, free: 4.359 MB / 0.8386 GB Notification: Performance of NFSimplifyModel.simplify: time 3.815e-05/0.002857, allocations: 11.98 kB / 0.8801 GB, free: 4.348 MB / 0.8386 GB Notification: Performance of NFPackage.collectConstants: time 1.636e-05/0.002873, allocations: 7.984 kB / 0.8801 GB, free: 4.34 MB / 0.8386 GB Notification: Performance of NFFlatten.collectFunctions: time 5.877e-05/0.002932, allocations: 21.11 kB / 0.8801 GB, free: 4.32 MB / 0.8386 GB Notification: Performance of NFScalarize.scalarize: time 2.049e-05/0.002953, allocations: 11.94 kB / 0.8801 GB, free: 4.309 MB / 0.8386 GB Notification: Performance of NFVerifyModel.verify: time 2.627e-05/0.002979, allocations: 11.98 kB / 0.8801 GB, free: 4.297 MB / 0.8386 GB Notification: Performance of NFConvertDAE.convert: time 0.0001157/0.003095, allocations: 52.88 kB / 0.8802 GB, free: 4.246 MB / 0.8386 GB Notification: Performance of FrontEnd - DAE generated: time 1.933e-06/0.003096, allocations: 0 / 0.8802 GB, free: 4.246 MB / 0.8386 GB Notification: Performance of FrontEnd: time 5.21e-07/0.003097, allocations: 0 / 0.8802 GB, free: 4.246 MB / 0.8386 GB Notification: Performance of Transformations before backend: time 3.837e-06/0.003101, allocations: 1 kB / 0.8802 GB, free: 4.246 MB / 0.8386 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.0004174/0.003518, allocations: 400 kB / 0.8806 GB, free: 3.82 MB / 0.8386 GB Notification: Performance of prepare preOptimizeDAE: time 3.423e-05/0.003552, allocations: 8.031 kB / 0.8806 GB, free: 3.812 MB / 0.8386 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.263e-05/0.003645, allocations: 8.938 kB / 0.8806 GB, free: 3.805 MB / 0.8386 GB Notification: Performance of preOpt evaluateParameters (simulation): time 8.513e-05/0.00373, allocations: 116.5 kB / 0.8807 GB, free: 3.664 MB / 0.8386 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.266e-05/0.003743, allocations: 8.375 kB / 0.8807 GB, free: 3.656 MB / 0.8386 GB Notification: Performance of preOpt expandDerOperator (simulation): time 9.397e-06/0.003752, allocations: 384 / 0.8807 GB, free: 3.656 MB / 0.8386 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001189/0.003871, allocations: 62.94 kB / 0.8807 GB, free: 3.586 MB / 0.8386 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.913e-06/0.003878, allocations: 4.188 kB / 0.8807 GB, free: 3.582 MB / 0.8386 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.288e-06/0.003887, allocations: 384 / 0.8808 GB, free: 3.582 MB / 0.8386 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.114e-06/0.003894, allocations: 4.984 kB / 0.8808 GB, free: 3.578 MB / 0.8386 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.74e-05/0.003932, allocations: 16.52 kB / 0.8808 GB, free: 3.562 MB / 0.8386 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003155/0.004247, allocations: 268.5 kB / 0.881 GB, free: 3.266 MB / 0.8386 GB Notification: Performance of preOpt comSubExp (simulation): time 7.862e-05/0.004326, allocations: 43.05 kB / 0.8811 GB, free: 3.211 MB / 0.8386 GB Notification: Performance of preOpt resolveLoops (simulation): time 2.372e-05/0.00435, allocations: 16.55 kB / 0.8811 GB, free: 3.191 MB / 0.8386 GB Notification: Performance of preOpt evalFunc (simulation): time 1.516e-05/0.004365, allocations: 0 / 0.8811 GB, free: 3.191 MB / 0.8386 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.778e-05/0.004433, allocations: 66.66 kB / 0.8811 GB, free: 3.113 MB / 0.8386 GB Notification: Performance of pre-optimization done (n=6): time 1.032e-06/0.004434, allocations: 0 / 0.8811 GB, free: 3.113 MB / 0.8386 GB Notification: Performance of matching and sorting (n=6): time 0.0001639/0.004598, allocations: 85.56 kB / 0.8812 GB, free: 3.023 MB / 0.8386 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.295e-05/0.00463, allocations: 51.41 kB / 0.8813 GB, free: 2.961 MB / 0.8386 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.775e-05/0.004708, allocations: 166.9 kB / 0.8814 GB, free: 2.781 MB / 0.8386 GB Notification: Performance of collectPreVariables (initialization): time 1.31e-05/0.004721, allocations: 25.7 kB / 0.8815 GB, free: 2.75 MB / 0.8386 GB Notification: Performance of collectInitialEqns (initialization): time 4.927e-05/0.004771, allocations: 131.6 kB / 0.8816 GB, free: 2.617 MB / 0.8386 GB Notification: Performance of collectInitialBindings (initialization): time 1.988e-05/0.00479, allocations: 15.97 kB / 0.8816 GB, free: 2.602 MB / 0.8386 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.132e-05/0.004822, allocations: 35.36 kB / 0.8816 GB, free: 2.559 MB / 0.8386 GB Notification: Performance of setup shared object (initialization): time 0.0001013/0.004923, allocations: 0.4883 MB / 0.8821 GB, free: 2.059 MB / 0.8386 GB Notification: Performance of preBalanceInitialSystem (initialization): time 1.971e-05/0.004943, allocations: 7.984 kB / 0.8821 GB, free: 2.051 MB / 0.8386 GB Notification: Performance of partitionIndependentBlocks (initialization): time 3.389e-05/0.004977, allocations: 46.73 kB / 0.8822 GB, free: 1.988 MB / 0.8386 GB Notification: Performance of analyzeInitialSystem (initialization): time 5.317e-05/0.00503, allocations: 58.67 kB / 0.8822 GB, free: 1.914 MB / 0.8386 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.984e-06/0.005032, allocations: 0 / 0.8822 GB, free: 1.914 MB / 0.8386 GB Notification: Performance of matching and sorting (n=8) (initialization): time 8.349e-05/0.005115, allocations: 77.52 kB / 0.8823 GB, free: 1.832 MB / 0.8386 GB Notification: Performance of prepare postOptimizeDAE: time 1.289e-05/0.005128, allocations: 16.02 kB / 0.8823 GB, free: 1.816 MB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.138e-06/0.005132, allocations: 4 kB / 0.8823 GB, free: 1.812 MB / 0.8386 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.111e-05/0.005143, allocations: 0 / 0.8823 GB, free: 1.812 MB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.979e-05/0.005203, allocations: 8 kB / 0.8823 GB, free: 1.805 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.172e-06/0.005209, allocations: 4 kB / 0.8823 GB, free: 1.801 MB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.663e-05/0.005236, allocations: 15.92 kB / 0.8823 GB, free: 1.785 MB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.761e-06/0.005242, allocations: 0 / 0.8823 GB, free: 1.785 MB / 0.8386 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 6.566e-05/0.005307, allocations: 164.5 kB / 0.8825 GB, free: 1.613 MB / 0.8386 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.268e-06/0.005317, allocations: 7.938 kB / 0.8825 GB, free: 1.605 MB / 0.8386 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.552e-05/0.005412, allocations: 74.06 kB / 0.8826 GB, free: 1.523 MB / 0.8386 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.472e-06/0.005414, allocations: 4 kB / 0.8826 GB, free: 1.52 MB / 0.8386 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.875e-06/0.005417, allocations: 0 / 0.8826 GB, free: 1.52 MB / 0.8386 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.955e-06/0.00542, allocations: 0 / 0.8826 GB, free: 1.52 MB / 0.8386 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004379/0.005857, allocations: 317.9 kB / 0.8829 GB, free: 1.168 MB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.62e-07/0.005858, allocations: 0 / 0.8829 GB, free: 1.168 MB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.022e-05/0.005889, allocations: 16.05 kB / 0.8829 GB, free: 1.152 MB / 0.8386 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.784e-06/0.00589, allocations: 0 / 0.8829 GB, free: 1.152 MB / 0.8386 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.951e-06/0.005896, allocations: 0 / 0.8829 GB, free: 1.152 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.62e-07/0.005897, allocations: 0 / 0.8829 GB, free: 1.152 MB / 0.8386 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.22e-07/0.005898, allocations: 0 / 0.8829 GB, free: 1.152 MB / 0.8386 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 9.907e-05/0.005997, allocations: 219.8 kB / 0.8831 GB, free: 0.918 MB / 0.8386 GB Notification: Performance of postOpt removeConstants (simulation): time 8.376e-06/0.006006, allocations: 15.94 kB / 0.8831 GB, free: 0.9023 MB / 0.8386 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.877e-06/0.006015, allocations: 0 / 0.8831 GB, free: 0.9023 MB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 3.96e-05/0.006054, allocations: 4 kB / 0.8831 GB, free: 0.8984 MB / 0.8386 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.914e-05/0.006083, allocations: 3.984 kB / 0.8831 GB, free: 0.8945 MB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.257e-06/0.006093, allocations: 4.047 kB / 0.8831 GB, free: 0.8906 MB / 0.8386 GB Notification: Performance of sorting global known variables: time 3.36e-05/0.006126, allocations: 127.2 kB / 0.8833 GB, free: 0.7656 MB / 0.8386 GB Notification: Performance of sort global known variables: time 5e-08/0.006126, allocations: 0 / 0.8833 GB, free: 0.7656 MB / 0.8386 GB Notification: Performance of remove unused functions: time 0.0001477/0.006274, allocations: 12 kB / 0.8833 GB, free: 0.7539 MB / 0.8386 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.273e-05/0.006367, allocations: 111.2 kB / 0.8834 GB, free: 0.6367 MB / 0.8386 GB Notification: Performance of simCode: created initialization part: time 8.911e-05/0.006456, allocations: 43.61 kB / 0.8834 GB, free: 0.5898 MB / 0.8386 GB Notification: Performance of simCode: created event and clocks part: time 1.183e-06/0.006457, allocations: 0 / 0.8834 GB, free: 0.5898 MB / 0.8386 GB Notification: Performance of simCode: created simulation system equations: time 2.941e-05/0.006486, allocations: 19.67 kB / 0.8834 GB, free: 0.5664 MB / 0.8386 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001788/0.006665, allocations: 19.81 kB / 0.8835 GB, free: 0.5469 MB / 0.8386 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004091/0.007074, allocations: 146.1 kB / 0.8836 GB, free: 384 kB / 0.8386 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 3.5e-05/0.007109, allocations: 59.34 kB / 0.8836 GB, free: 304 kB / 0.8386 GB Notification: Performance of simCode: alias equations: time 2.064e-05/0.00713, allocations: 8.188 kB / 0.8837 GB, free: 296 kB / 0.8386 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.276e-05/0.007153, allocations: 8.5 kB / 0.8837 GB, free: 288 kB / 0.8386 GB Notification: Performance of SimCode: time 4.41e-07/0.007153, allocations: 0 / 0.8837 GB, free: 288 kB / 0.8386 GB Notification: Performance of Templates: time 0.002309/0.009462, allocations: 0.9129 MB / 0.8846 GB, free: 15.38 MB / 0.8542 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 -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.136127294972539]