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.0009958/0.0009958, allocations: 81.95 kB / 21.47 MB, free: 3.031 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.001582/0.001582, allocations: 166 kB / 24.87 MB, free: 9.258 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.9354/0.9354, allocations: 177.1 MB / 205.3 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.859/1.859, allocations: 359 MB / 0.6063 GB, free: 10.9 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.715e-06/2.715e-06, allocations: 0 / 0.7883 GB, free: 12.25 MB / 0.7448 GB Notification: Performance of FrontEnd - Absyn->SCode: time 2.781e-05/3.053e-05, allocations: 3.078 kB / 0.7883 GB, free: 12.25 MB / 0.7448 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Discrete.Validation.Sampler): time 0.002199/0.00223, allocations: 0.6763 MB / 0.789 GB, free: 11.59 MB / 0.7448 GB Notification: Performance of NFInst.instExpressions: time 0.001254/0.003484, allocations: 1.109 MB / 0.79 GB, free: 10.47 MB / 0.7448 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.676e-05/0.003531, allocations: 0.7812 kB / 0.79 GB, free: 10.47 MB / 0.7448 GB Notification: Performance of NFTyping.typeComponents: time 2.96e-05/0.00356, allocations: 0 / 0.79 GB, free: 10.47 MB / 0.7448 GB Notification: Performance of NFTyping.typeBindings: time 7.71e-05/0.003637, allocations: 8.844 kB / 0.79 GB, free: 10.46 MB / 0.7448 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003073/0.003945, allocations: 51.7 kB / 0.7901 GB, free: 10.41 MB / 0.7448 GB Notification: Performance of NFFlatten.flatten: time 0.0001163/0.004061, allocations: 48.59 kB / 0.7901 GB, free: 10.36 MB / 0.7448 GB Notification: Performance of NFFlatten.resolveConnections: time 9.818e-05/0.004159, allocations: 12 kB / 0.7901 GB, free: 10.35 MB / 0.7448 GB Notification: Performance of NFEvalConstants.evaluate: time 8.236e-05/0.004241, allocations: 30.52 kB / 0.7902 GB, free: 10.32 MB / 0.7448 GB Notification: Performance of NFSimplifyModel.simplify: time 6.261e-05/0.004304, allocations: 19.92 kB / 0.7902 GB, free: 10.3 MB / 0.7448 GB Notification: Performance of NFPackage.collectConstants: time 1.478e-05/0.004319, allocations: 4 kB / 0.7902 GB, free: 10.3 MB / 0.7448 GB Notification: Performance of NFFlatten.collectFunctions: time 6.135e-05/0.00438, allocations: 19.98 kB / 0.7902 GB, free: 10.28 MB / 0.7448 GB Notification: Performance of NFScalarize.scalarize: time 2.184e-05/0.004402, allocations: 11.97 kB / 0.7902 GB, free: 10.27 MB / 0.7448 GB Notification: Performance of NFVerifyModel.verify: time 2.454e-05/0.004427, allocations: 15.94 kB / 0.7902 GB, free: 10.25 MB / 0.7448 GB Notification: Performance of NFConvertDAE.convert: time 0.000124/0.004551, allocations: 43.88 kB / 0.7903 GB, free: 10.21 MB / 0.7448 GB Notification: Performance of FrontEnd - DAE generated: time 4.679e-06/0.004555, allocations: 5.641 kB / 0.7903 GB, free: 10.21 MB / 0.7448 GB Notification: Performance of FrontEnd: time 1.573e-06/0.004557, allocations: 0 / 0.7903 GB, free: 10.21 MB / 0.7448 GB Notification: Performance of Transformations before backend: time 5.751e-06/0.004563, allocations: 0 / 0.7903 GB, free: 10.21 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.0005105/0.005073, allocations: 389 kB / 0.7907 GB, free: 9.789 MB / 0.7448 GB Notification: Performance of prepare preOptimizeDAE: time 4.585e-05/0.005119, allocations: 16.62 kB / 0.7907 GB, free: 9.773 MB / 0.7448 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001121/0.005231, allocations: 12.88 kB / 0.7907 GB, free: 9.762 MB / 0.7448 GB Notification: Performance of preOpt evaluateParameters (simulation): time 9.873e-05/0.00533, allocations: 109.6 kB / 0.7908 GB, free: 9.629 MB / 0.7448 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.297e-05/0.005343, allocations: 4.375 kB / 0.7908 GB, free: 9.625 MB / 0.7448 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.077e-05/0.005354, allocations: 4.375 kB / 0.7908 GB, free: 9.621 MB / 0.7448 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001397/0.005493, allocations: 60.09 kB / 0.7909 GB, free: 9.555 MB / 0.7448 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.237e-06/0.005502, allocations: 192 / 0.7909 GB, free: 9.555 MB / 0.7448 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.171e-05/0.005514, allocations: 8.359 kB / 0.7909 GB, free: 9.547 MB / 0.7448 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.879e-06/0.005519, allocations: 1.75 kB / 0.7909 GB, free: 9.547 MB / 0.7448 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.092e-05/0.00555, allocations: 15.92 kB / 0.7909 GB, free: 9.531 MB / 0.7448 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003679/0.005918, allocations: 252.2 kB / 0.7911 GB, free: 9.258 MB / 0.7448 GB Notification: Performance of preOpt comSubExp (simulation): time 9.207e-05/0.00601, allocations: 44.98 kB / 0.7912 GB, free: 9.203 MB / 0.7448 GB Notification: Performance of preOpt resolveLoops (simulation): time 2.217e-05/0.006032, allocations: 15.8 kB / 0.7912 GB, free: 9.184 MB / 0.7448 GB Notification: Performance of preOpt evalFunc (simulation): time 1.82e-05/0.00605, allocations: 8 kB / 0.7912 GB, free: 9.176 MB / 0.7448 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.818e-05/0.006128, allocations: 57 kB / 0.7912 GB, free: 9.105 MB / 0.7448 GB Notification: Performance of pre-optimization done (n=6): time 1.132e-06/0.00613, allocations: 1.5 kB / 0.7913 GB, free: 9.105 MB / 0.7448 GB Notification: Performance of matching and sorting (n=6): time 0.0001894/0.006319, allocations: 73.8 kB / 0.7913 GB, free: 9.027 MB / 0.7448 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.167e-05/0.006361, allocations: 51.41 kB / 0.7914 GB, free: 8.965 MB / 0.7448 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.226e-05/0.006443, allocations: 170.5 kB / 0.7915 GB, free: 8.781 MB / 0.7448 GB Notification: Performance of collectPreVariables (initialization): time 1.413e-05/0.006457, allocations: 25.7 kB / 0.7916 GB, free: 8.75 MB / 0.7448 GB Notification: Performance of collectInitialEqns (initialization): time 4.946e-05/0.006506, allocations: 136.8 kB / 0.7917 GB, free: 8.613 MB / 0.7448 GB Notification: Performance of collectInitialBindings (initialization): time 2.064e-05/0.006527, allocations: 15.89 kB / 0.7917 GB, free: 8.598 MB / 0.7448 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.37e-05/0.006561, allocations: 27.36 kB / 0.7917 GB, free: 8.562 MB / 0.7448 GB Notification: Performance of setup shared object (initialization): time 0.000129/0.00669, allocations: 0.4884 MB / 0.7922 GB, free: 8.062 MB / 0.7448 GB Notification: Performance of preBalanceInitialSystem (initialization): time 1.938e-05/0.006709, allocations: 7.984 kB / 0.7922 GB, free: 8.055 MB / 0.7448 GB Notification: Performance of partitionIndependentBlocks (initialization): time 3.571e-05/0.006745, allocations: 45.25 kB / 0.7923 GB, free: 7.996 MB / 0.7448 GB Notification: Performance of analyzeInitialSystem (initialization): time 6.125e-05/0.006806, allocations: 54.72 kB / 0.7923 GB, free: 7.926 MB / 0.7448 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.866e-06/0.006809, allocations: 0 / 0.7923 GB, free: 7.926 MB / 0.7448 GB Notification: Performance of matching and sorting (n=8) (initialization): time 9.728e-05/0.006906, allocations: 74.09 kB / 0.7924 GB, free: 7.848 MB / 0.7448 GB Notification: Performance of prepare postOptimizeDAE: time 1.665e-05/0.006923, allocations: 4.719 kB / 0.7924 GB, free: 7.844 MB / 0.7448 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.416e-06/0.006931, allocations: 3.938 kB / 0.7924 GB, free: 7.84 MB / 0.7448 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.147e-05/0.006943, allocations: 4.531 kB / 0.7924 GB, free: 7.836 MB / 0.7448 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.858e-05/0.007021, allocations: 13.61 kB / 0.7924 GB, free: 7.824 MB / 0.7448 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.296e-06/0.007025, allocations: 0 / 0.7924 GB, free: 7.824 MB / 0.7448 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.437e-05/0.007059, allocations: 7.938 kB / 0.7924 GB, free: 7.816 MB / 0.7448 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.507e-06/0.007069, allocations: 11.92 kB / 0.7924 GB, free: 7.805 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 8.748e-05/0.007156, allocations: 161.1 kB / 0.7926 GB, free: 7.637 MB / 0.7448 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.155e-05/0.007168, allocations: 8.547 kB / 0.7926 GB, free: 7.629 MB / 0.7448 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001283/0.007296, allocations: 74.05 kB / 0.7927 GB, free: 7.555 MB / 0.7448 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.394e-06/0.007298, allocations: 0.7812 kB / 0.7927 GB, free: 7.555 MB / 0.7448 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.845e-06/0.007301, allocations: 0 / 0.7927 GB, free: 7.555 MB / 0.7448 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.639e-06/0.007306, allocations: 0.9062 kB / 0.7927 GB, free: 7.555 MB / 0.7448 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002334/0.007539, allocations: 298 kB / 0.7929 GB, free: 7.23 MB / 0.7448 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.512e-06/0.007541, allocations: 0 / 0.7929 GB, free: 7.23 MB / 0.7448 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.045e-05/0.007571, allocations: 4.781 kB / 0.7929 GB, free: 7.227 MB / 0.7448 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.115e-06/0.007574, allocations: 3.938 kB / 0.793 GB, free: 7.223 MB / 0.7448 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.76e-06/0.00758, allocations: 5.125 kB / 0.793 GB, free: 7.219 MB / 0.7448 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.734e-06/0.007582, allocations: 384 / 0.793 GB, free: 7.219 MB / 0.7448 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.02e-07/0.007583, allocations: 0 / 0.793 GB, free: 7.219 MB / 0.7448 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001144/0.007697, allocations: 220.7 kB / 0.7932 GB, free: 6.984 MB / 0.7448 GB Notification: Performance of postOpt removeConstants (simulation): time 8.907e-06/0.007706, allocations: 4 kB / 0.7932 GB, free: 6.98 MB / 0.7448 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.074e-05/0.007717, allocations: 5.375 kB / 0.7932 GB, free: 6.977 MB / 0.7448 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.419e-05/0.007761, allocations: 7.984 kB / 0.7932 GB, free: 6.969 MB / 0.7448 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.795e-05/0.007789, allocations: 4.047 kB / 0.7932 GB, free: 6.965 MB / 0.7448 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.193e-05/0.007801, allocations: 5.078 kB / 0.7932 GB, free: 6.961 MB / 0.7448 GB Notification: Performance of sorting global known variables: time 4.089e-05/0.007842, allocations: 131.2 kB / 0.7933 GB, free: 6.832 MB / 0.7448 GB Notification: Performance of sort global known variables: time 5e-08/0.007842, allocations: 0 / 0.7933 GB, free: 6.832 MB / 0.7448 GB Notification: Performance of remove unused functions: time 0.0001749/0.008017, allocations: 17.97 kB / 0.7933 GB, free: 6.816 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.000145/0.008162, allocations: 99.23 kB / 0.7934 GB, free: 6.707 MB / 0.7448 GB Notification: Performance of simCode: created initialization part: time 8.655e-05/0.008248, allocations: 35.61 kB / 0.7935 GB, free: 6.668 MB / 0.7448 GB Notification: Performance of simCode: created event and clocks part: time 1.563e-06/0.00825, allocations: 6.375 kB / 0.7935 GB, free: 6.664 MB / 0.7448 GB Notification: Performance of simCode: created simulation system equations: time 2.703e-05/0.008277, allocations: 19.62 kB / 0.7935 GB, free: 6.641 MB / 0.7448 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001867/0.008463, allocations: 11.92 kB / 0.7935 GB, free: 6.629 MB / 0.7448 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004505/0.008914, allocations: 152 kB / 0.7936 GB, free: 6.453 MB / 0.7448 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 3.355e-05/0.008948, allocations: 55.36 kB / 0.7937 GB, free: 6.379 MB / 0.7448 GB Notification: Performance of simCode: alias equations: time 2.629e-05/0.008974, allocations: 7.984 kB / 0.7937 GB, free: 6.371 MB / 0.7448 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.004e-05/0.009034, allocations: 74.2 kB / 0.7938 GB, free: 6.297 MB / 0.7448 GB Notification: Performance of SimCode: time 5.31e-07/0.009034, allocations: 1.188 kB / 0.7938 GB, free: 6.297 MB / 0.7448 GB Notification: Performance of Templates: time 0.002574/0.01161, allocations: 0.9509 MB / 0.7947 GB, free: 5.379 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: 5.220140479039401]