Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_11_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.0009121/0.0009121, allocations: 82.64 kB / 20.68 MB, free: 3.816 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.001087/0.001087, allocations: 181 kB / 24.09 MB, free: 420 kB / 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.9282/0.9282, allocations: 177.1 MB / 204.5 MB, free: 5.496 MB / 186.7 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.2-maint.11.x/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.2-maint.11.x/package.mo): time 1.725/1.725, allocations: 359 MB / 0.6055 GB, free: 10.89 MB / 0.573 GB " [Timeout remaining time 178] Using package Buildings with version 11.1.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.2-maint.11.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_11_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_11_Buildings.Controls.OBC.CDL.Discrete.Validation.Sampler") [Timeout 300] "Notification: Performance of FrontEnd - loaded program: time 2.194e-06/2.194e-06, allocations: 0 / 0.7875 GB, free: 12.24 MB / 0.7448 GB Notification: Performance of FrontEnd - Absyn->SCode: time 2.144e-05/2.363e-05, allocations: 3.188 kB / 0.7875 GB, free: 12.23 MB / 0.7448 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Discrete.Validation.Sampler): time 0.001269/0.001292, allocations: 0.6743 MB / 0.7882 GB, free: 11.58 MB / 0.7448 GB Notification: Performance of NFInst.instExpressions: time 0.0009945/0.002287, allocations: 1.113 MB / 0.7893 GB, free: 10.45 MB / 0.7448 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.934e-05/0.002326, allocations: 1.25 kB / 0.7893 GB, free: 10.45 MB / 0.7448 GB Notification: Performance of NFTyping.typeComponents: time 2.518e-05/0.002351, allocations: 3.938 kB / 0.7893 GB, free: 10.45 MB / 0.7448 GB Notification: Performance of NFTyping.typeBindings: time 5.901e-05/0.00241, allocations: 7.875 kB / 0.7893 GB, free: 10.44 MB / 0.7448 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002962/0.002707, allocations: 45.39 kB / 0.7893 GB, free: 10.4 MB / 0.7448 GB Notification: Performance of NFFlatten.flatten: time 7.446e-05/0.002781, allocations: 51.84 kB / 0.7894 GB, free: 10.35 MB / 0.7448 GB Notification: Performance of NFFlatten.resolveConnections: time 7.587e-05/0.002857, allocations: 8 kB / 0.7894 GB, free: 10.34 MB / 0.7448 GB Notification: Performance of NFEvalConstants.evaluate: time 8.293e-05/0.00294, allocations: 35.89 kB / 0.7894 GB, free: 10.3 MB / 0.7448 GB Notification: Performance of NFSimplifyModel.simplify: time 3.752e-05/0.002977, allocations: 9.203 kB / 0.7894 GB, free: 10.3 MB / 0.7448 GB Notification: Performance of NFPackage.collectConstants: time 1.4e-05/0.002991, allocations: 7.938 kB / 0.7894 GB, free: 10.29 MB / 0.7448 GB Notification: Performance of NFFlatten.collectFunctions: time 5.843e-05/0.00305, allocations: 23.98 kB / 0.7895 GB, free: 10.27 MB / 0.7448 GB Notification: Performance of NFScalarize.scalarize: time 1.937e-05/0.003069, allocations: 8.609 kB / 0.7895 GB, free: 10.26 MB / 0.7448 GB Notification: Performance of NFVerifyModel.verify: time 2.009e-05/0.003089, allocations: 15.92 kB / 0.7895 GB, free: 10.24 MB / 0.7448 GB Notification: Performance of NFConvertDAE.convert: time 0.0001094/0.003199, allocations: 53.22 kB / 0.7895 GB, free: 10.19 MB / 0.7448 GB Notification: Performance of FrontEnd - DAE generated: time 2.094e-06/0.003201, allocations: 0 / 0.7895 GB, free: 10.19 MB / 0.7448 GB Notification: Performance of FrontEnd: time 7.02e-07/0.003201, allocations: 0 / 0.7895 GB, free: 10.19 MB / 0.7448 GB Notification: Performance of Transformations before backend: time 3.196e-06/0.003205, allocations: 0.8438 kB / 0.7895 GB, free: 10.19 MB / 0.7448 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.0003591/0.003564, allocations: 393 kB / 0.7899 GB, free: 9.77 MB / 0.7448 GB Notification: Performance of prepare preOptimizeDAE: time 3.688e-05/0.003601, allocations: 12.72 kB / 0.7899 GB, free: 9.758 MB / 0.7448 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.942e-05/0.00368, allocations: 8.891 kB / 0.7899 GB, free: 9.75 MB / 0.7448 GB Notification: Performance of preOpt evaluateParameters (simulation): time 6.989e-05/0.00375, allocations: 109.5 kB / 0.79 GB, free: 9.617 MB / 0.7448 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.808e-06/0.00376, allocations: 8.297 kB / 0.79 GB, free: 9.609 MB / 0.7448 GB Notification: Performance of preOpt expandDerOperator (simulation): time 8.356e-06/0.003768, allocations: 4.375 kB / 0.7901 GB, free: 9.605 MB / 0.7448 GB Notification: Performance of preOpt clockPartitioning (simulation): time 9.791e-05/0.003866, allocations: 63.59 kB / 0.7901 GB, free: 9.535 MB / 0.7448 GB Notification: Performance of preOpt findStateOrder (simulation): time 5.811e-06/0.003872, allocations: 1.844 kB / 0.7901 GB, free: 9.535 MB / 0.7448 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.602e-06/0.003878, allocations: 384 / 0.7901 GB, free: 9.535 MB / 0.7448 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.939e-06/0.003883, allocations: 384 / 0.7901 GB, free: 9.535 MB / 0.7448 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.339e-05/0.003907, allocations: 7.938 kB / 0.7901 GB, free: 9.527 MB / 0.7448 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000256/0.004163, allocations: 257.9 kB / 0.7904 GB, free: 9.25 MB / 0.7448 GB Notification: Performance of preOpt comSubExp (simulation): time 6e-05/0.004223, allocations: 51.05 kB / 0.7904 GB, free: 9.188 MB / 0.7448 GB Notification: Performance of preOpt resolveLoops (simulation): time 1.501e-05/0.004238, allocations: 11.69 kB / 0.7904 GB, free: 9.172 MB / 0.7448 GB Notification: Performance of preOpt evalFunc (simulation): time 1.697e-05/0.004255, allocations: 0.875 kB / 0.7904 GB, free: 9.172 MB / 0.7448 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.64e-05/0.004321, allocations: 69.17 kB / 0.7905 GB, free: 9.09 MB / 0.7448 GB Notification: Performance of pre-optimization done (n=6): time 1.483e-06/0.004323, allocations: 3.375 kB / 0.7905 GB, free: 9.09 MB / 0.7448 GB Notification: Performance of matching and sorting (n=6): time 0.0001334/0.004456, allocations: 73.55 kB / 0.7906 GB, free: 9.012 MB / 0.7448 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.909e-05/0.004485, allocations: 55.39 kB / 0.7906 GB, free: 8.945 MB / 0.7448 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.744e-05/0.004553, allocations: 165.9 kB / 0.7908 GB, free: 8.766 MB / 0.7448 GB Notification: Performance of collectPreVariables (initialization): time 9.718e-06/0.004562, allocations: 25.7 kB / 0.7908 GB, free: 8.734 MB / 0.7448 GB Notification: Performance of collectInitialEqns (initialization): time 3.949e-05/0.004602, allocations: 134.8 kB / 0.7909 GB, free: 8.598 MB / 0.7448 GB Notification: Performance of collectInitialBindings (initialization): time 1.689e-05/0.004619, allocations: 19.89 kB / 0.791 GB, free: 8.578 MB / 0.7448 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.866e-05/0.004647, allocations: 19.38 kB / 0.791 GB, free: 8.551 MB / 0.7448 GB Notification: Performance of setup shared object (initialization): time 0.0001002/0.004748, allocations: 0.4923 MB / 0.7915 GB, free: 8.047 MB / 0.7448 GB Notification: Performance of preBalanceInitialSystem (initialization): time 1.231e-05/0.00476, allocations: 4.719 kB / 0.7915 GB, free: 8.043 MB / 0.7448 GB Notification: Performance of partitionIndependentBlocks (initialization): time 3.454e-05/0.004794, allocations: 46.73 kB / 0.7915 GB, free: 7.98 MB / 0.7448 GB Notification: Performance of analyzeInitialSystem (initialization): time 5.199e-05/0.004846, allocations: 60.19 kB / 0.7916 GB, free: 7.906 MB / 0.7448 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.363e-06/0.004848, allocations: 0.6875 kB / 0.7916 GB, free: 7.906 MB / 0.7448 GB Notification: Performance of matching and sorting (n=8) (initialization): time 7.824e-05/0.004926, allocations: 74.03 kB / 0.7916 GB, free: 7.828 MB / 0.7448 GB Notification: Performance of prepare postOptimizeDAE: time 1.1e-05/0.004937, allocations: 5.375 kB / 0.7916 GB, free: 7.824 MB / 0.7448 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.422e-06/0.004943, allocations: 3.938 kB / 0.7916 GB, free: 7.82 MB / 0.7448 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.13e-05/0.004955, allocations: 4 kB / 0.7916 GB, free: 7.816 MB / 0.7448 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.071e-05/0.005005, allocations: 13.14 kB / 0.7917 GB, free: 7.805 MB / 0.7448 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.196e-06/0.005009, allocations: 160 / 0.7917 GB, free: 7.805 MB / 0.7448 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.299e-05/0.005032, allocations: 7.938 kB / 0.7917 GB, free: 7.797 MB / 0.7448 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.386e-06/0.00504, allocations: 8.906 kB / 0.7917 GB, free: 7.789 MB / 0.7448 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 7.491e-05/0.005115, allocations: 152.6 kB / 0.7918 GB, free: 7.629 MB / 0.7448 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.155e-05/0.005126, allocations: 17.38 kB / 0.7918 GB, free: 7.613 MB / 0.7448 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.425e-05/0.005221, allocations: 70.06 kB / 0.7919 GB, free: 7.543 MB / 0.7448 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.864e-06/0.005223, allocations: 0 / 0.7919 GB, free: 7.543 MB / 0.7448 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.693e-06/0.005224, allocations: 0 / 0.7919 GB, free: 7.543 MB / 0.7448 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.859e-06/0.005229, allocations: 5.328 kB / 0.7919 GB, free: 7.539 MB / 0.7448 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001845/0.005414, allocations: 294.6 kB / 0.7922 GB, free: 7.219 MB / 0.7448 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.683e-06/0.005415, allocations: 0 / 0.7922 GB, free: 7.219 MB / 0.7448 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.199e-05/0.005437, allocations: 12.05 kB / 0.7922 GB, free: 7.207 MB / 0.7448 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.015e-06/0.00544, allocations: 7.375 kB / 0.7922 GB, free: 7.203 MB / 0.7448 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.22e-06/0.005446, allocations: 0 / 0.7922 GB, free: 7.203 MB / 0.7448 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.645e-06/0.005448, allocations: 7.984 kB / 0.7922 GB, free: 7.195 MB / 0.7448 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.263e-06/0.005449, allocations: 0 / 0.7922 GB, free: 7.195 MB / 0.7448 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000108/0.005557, allocations: 211.9 kB / 0.7924 GB, free: 6.969 MB / 0.7448 GB Notification: Performance of postOpt removeConstants (simulation): time 6.432e-06/0.005564, allocations: 4 kB / 0.7924 GB, free: 6.965 MB / 0.7448 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.187e-05/0.005576, allocations: 7.875 kB / 0.7924 GB, free: 6.957 MB / 0.7448 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 3.971e-05/0.005615, allocations: 4 kB / 0.7924 GB, free: 6.953 MB / 0.7448 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.666e-05/0.005642, allocations: 12.77 kB / 0.7924 GB, free: 6.941 MB / 0.7448 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.007e-06/0.005651, allocations: 0 / 0.7924 GB, free: 6.941 MB / 0.7448 GB Notification: Performance of sorting global known variables: time 3.906e-05/0.00569, allocations: 131.2 kB / 0.7926 GB, free: 6.812 MB / 0.7448 GB Notification: Performance of sort global known variables: time 5e-08/0.00569, allocations: 0.5 kB / 0.7926 GB, free: 6.812 MB / 0.7448 GB Notification: Performance of remove unused functions: time 0.0001521/0.005842, allocations: 12.56 kB / 0.7926 GB, free: 6.801 MB / 0.7448 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.0001231/0.005966, allocations: 101.2 kB / 0.7927 GB, free: 6.691 MB / 0.7448 GB Notification: Performance of simCode: created initialization part: time 7.749e-05/0.006043, allocations: 31.61 kB / 0.7927 GB, free: 6.656 MB / 0.7448 GB Notification: Performance of simCode: created event and clocks part: time 1.352e-06/0.006044, allocations: 0 / 0.7927 GB, free: 6.656 MB / 0.7448 GB Notification: Performance of simCode: created simulation system equations: time 2.621e-05/0.006071, allocations: 24.2 kB / 0.7927 GB, free: 6.629 MB / 0.7448 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001777/0.006248, allocations: 17.48 kB / 0.7927 GB, free: 6.613 MB / 0.7448 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003907/0.006639, allocations: 155 kB / 0.7929 GB, free: 6.434 MB / 0.7448 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 4.078e-05/0.00668, allocations: 55.36 kB / 0.7929 GB, free: 6.359 MB / 0.7448 GB Notification: Performance of simCode: alias equations: time 2.439e-05/0.006704, allocations: 4.531 kB / 0.793 GB, free: 6.355 MB / 0.7448 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.29e-05/0.006757, allocations: 79 kB / 0.793 GB, free: 6.277 MB / 0.7448 GB Notification: Performance of SimCode: time 6.21e-07/0.006758, allocations: 0 / 0.793 GB, free: 6.277 MB / 0.7448 GB Notification: Performance of Templates: time 0.002485/0.009243, allocations: 0.9335 MB / 0.7939 GB, free: 5.383 MB / 0.7448 GB " [Timeout remaining time 300] make -j1 -f Buildings_11_Buildings.Controls.OBC.CDL.Discrete.Validation.Sampler.makefile [Timeout 300] (rm -f Buildings_11_Buildings.Controls.OBC.CDL.Discrete.Validation.Sampler.pipe ; mkfifo Buildings_11_Buildings.Controls.OBC.CDL.Discrete.Validation.Sampler.pipe ; head -c 1048576 < Buildings_11_Buildings.Controls.OBC.CDL.Discrete.Validation.Sampler.pipe >> ../files/Buildings_11_Buildings.Controls.OBC.CDL.Discrete.Validation.Sampler.sim & ./Buildings_11_Buildings.Controls.OBC.CDL.Discrete.Validation.Sampler -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Buildings_11_Buildings.Controls.OBC.CDL.Discrete.Validation.Sampler.pipe 2>&1) [Timeout 240] diffSimulationResults("Buildings_11_Buildings.Controls.OBC.CDL.Discrete.Validation.Sampler_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_11.x/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: 4.675326938740909]