Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_12_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.001018/0.001018, allocations: 71.75 kB / 20.97 MB, free: 3.578 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.001172/0.001172, allocations: 173 kB / 24.28 MB, free: 272 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 1.028/1.028, allocations: 177.1 MB / 204.6 MB, free: 5.633 MB / 186.7 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.2-maint.12.x/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.2-maint.12.x/package.mo): time 2.005/2.005, allocations: 377.8 MB / 0.6239 GB, free: 8.555 MB / 0.5886 GB " [Timeout remaining time 177] Using package Buildings with version 12.1.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.2-maint.12.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_12_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_12_Buildings.Controls.OBC.CDL.Discrete.Validation.Sampler") [Timeout 300] "Notification: Performance of FrontEnd - loaded program: time 3.697e-06/3.697e-06, allocations: 0 / 0.8115 GB, free: 2.082 MB / 0.7605 GB Notification: Performance of FrontEnd - Absyn->SCode: time 3.828e-05/4.198e-05, allocations: 6.25 kB / 0.8115 GB, free: 2.074 MB / 0.7605 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Discrete.Validation.Sampler): time 0.00235/0.002392, allocations: 0.6801 MB / 0.8122 GB, free: 1.418 MB / 0.7605 GB Notification: Performance of NFInst.instExpressions: time 0.001573/0.003964, allocations: 1.116 MB / 0.8133 GB, free: 296 kB / 0.7605 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.795e-05/0.004022, allocations: 0 / 0.8133 GB, free: 296 kB / 0.7605 GB Notification: Performance of NFTyping.typeComponents: time 3.281e-05/0.004055, allocations: 4.812 kB / 0.8133 GB, free: 292 kB / 0.7605 GB Notification: Performance of NFTyping.typeBindings: time 7.157e-05/0.004127, allocations: 3.938 kB / 0.8133 GB, free: 288 kB / 0.7605 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003644/0.004491, allocations: 48.48 kB / 0.8133 GB, free: 240 kB / 0.7605 GB Notification: Performance of NFFlatten.flatten: time 0.0001228/0.004614, allocations: 55.83 kB / 0.8134 GB, free: 184 kB / 0.7605 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001011/0.004715, allocations: 5.688 kB / 0.8134 GB, free: 180 kB / 0.7605 GB Notification: Performance of NFEvalConstants.evaluate: time 9.358e-05/0.004808, allocations: 31.91 kB / 0.8134 GB, free: 148 kB / 0.7605 GB Notification: Performance of NFSimplifyModel.simplify: time 5.276e-05/0.004861, allocations: 11.98 kB / 0.8134 GB, free: 136 kB / 0.7605 GB Notification: Performance of NFPackage.collectConstants: time 1.894e-05/0.00488, allocations: 4 kB / 0.8134 GB, free: 132 kB / 0.7605 GB Notification: Performance of NFFlatten.collectFunctions: time 7.882e-05/0.004959, allocations: 25.5 kB / 0.8135 GB, free: 108 kB / 0.7605 GB Notification: Performance of NFScalarize.scalarize: time 2.557e-05/0.004985, allocations: 7.984 kB / 0.8135 GB, free: 100 kB / 0.7605 GB Notification: Performance of NFVerifyModel.verify: time 3.559e-05/0.00502, allocations: 11.94 kB / 0.8135 GB, free: 88 kB / 0.7605 GB Notification: Performance of NFConvertDAE.convert: time 0.0001671/0.005187, allocations: 47.88 kB / 0.8135 GB, free: 40 kB / 0.7605 GB Notification: Performance of FrontEnd - DAE generated: time 2.785e-06/0.00519, allocations: 4.438 kB / 0.8135 GB, free: 36 kB / 0.7605 GB Notification: Performance of FrontEnd: time 2.525e-06/0.005193, allocations: 7.922 kB / 0.8135 GB, free: 28 kB / 0.7605 GB Notification: Performance of Transformations before backend: time 4.859e-06/0.005197, allocations: 0.9062 kB / 0.8135 GB, free: 28 kB / 0.7605 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.0005858/0.005783, allocations: 385.1 kB / 0.8139 GB, free: 15.61 MB / 0.7761 GB Notification: Performance of prepare preOptimizeDAE: time 4.775e-05/0.005831, allocations: 13.62 kB / 0.8139 GB, free: 15.6 MB / 0.7761 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001294/0.00596, allocations: 12.88 kB / 0.8139 GB, free: 15.59 MB / 0.7761 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001122/0.006073, allocations: 112.6 kB / 0.814 GB, free: 15.45 MB / 0.7761 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.655e-05/0.006089, allocations: 4.375 kB / 0.814 GB, free: 15.45 MB / 0.7761 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.212e-05/0.006101, allocations: 5.094 kB / 0.814 GB, free: 15.45 MB / 0.7761 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001591/0.00626, allocations: 62.94 kB / 0.8141 GB, free: 15.38 MB / 0.7761 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.726e-06/0.006269, allocations: 0.7188 kB / 0.8141 GB, free: 15.38 MB / 0.7761 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.136e-05/0.00628, allocations: 2 kB / 0.8141 GB, free: 15.38 MB / 0.7761 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.117e-06/0.00629, allocations: 384 / 0.8141 GB, free: 15.38 MB / 0.7761 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.741e-05/0.006337, allocations: 19.86 kB / 0.8141 GB, free: 15.36 MB / 0.7761 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003967/0.006734, allocations: 271.7 kB / 0.8144 GB, free: 15.05 MB / 0.7761 GB Notification: Performance of preOpt comSubExp (simulation): time 8.986e-05/0.006823, allocations: 39.66 kB / 0.8144 GB, free: 15 MB / 0.7761 GB Notification: Performance of preOpt resolveLoops (simulation): time 3.329e-05/0.006857, allocations: 16.48 kB / 0.8144 GB, free: 14.98 MB / 0.7761 GB Notification: Performance of preOpt evalFunc (simulation): time 2.233e-05/0.006879, allocations: 8.688 kB / 0.8144 GB, free: 14.98 MB / 0.7761 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 9.788e-05/0.006977, allocations: 64.94 kB / 0.8145 GB, free: 14.9 MB / 0.7761 GB Notification: Performance of pre-optimization done (n=6): time 1.784e-06/0.006979, allocations: 1.031 kB / 0.8145 GB, free: 14.9 MB / 0.7761 GB Notification: Performance of matching and sorting (n=6): time 0.0002248/0.007204, allocations: 69.67 kB / 0.8146 GB, free: 14.82 MB / 0.7761 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.273e-05/0.007246, allocations: 55.41 kB / 0.8146 GB, free: 14.76 MB / 0.7761 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.724e-05/0.007334, allocations: 167.5 kB / 0.8148 GB, free: 14.58 MB / 0.7761 GB Notification: Performance of collectPreVariables (initialization): time 1.245e-05/0.007346, allocations: 25.7 kB / 0.8148 GB, free: 14.55 MB / 0.7761 GB Notification: Performance of collectInitialEqns (initialization): time 5.097e-05/0.007397, allocations: 134.8 kB / 0.8149 GB, free: 14.41 MB / 0.7761 GB Notification: Performance of collectInitialBindings (initialization): time 1.908e-05/0.007416, allocations: 17.64 kB / 0.815 GB, free: 14.39 MB / 0.7761 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.67e-05/0.007453, allocations: 23.38 kB / 0.815 GB, free: 14.36 MB / 0.7761 GB Notification: Performance of setup shared object (initialization): time 0.0001206/0.007573, allocations: 0.4923 MB / 0.8155 GB, free: 13.86 MB / 0.7761 GB Notification: Performance of preBalanceInitialSystem (initialization): time 2.494e-05/0.007598, allocations: 8.016 kB / 0.8155 GB, free: 13.85 MB / 0.7761 GB Notification: Performance of partitionIndependentBlocks (initialization): time 4.094e-05/0.007639, allocations: 50.97 kB / 0.8155 GB, free: 13.79 MB / 0.7761 GB Notification: Performance of analyzeInitialSystem (initialization): time 6.549e-05/0.007705, allocations: 61.62 kB / 0.8156 GB, free: 13.71 MB / 0.7761 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.145e-06/0.007708, allocations: 4 kB / 0.8156 GB, free: 13.71 MB / 0.7761 GB Notification: Performance of matching and sorting (n=8) (initialization): time 0.0001031/0.007811, allocations: 69.61 kB / 0.8156 GB, free: 13.63 MB / 0.7761 GB Notification: Performance of prepare postOptimizeDAE: time 1.453e-05/0.007825, allocations: 7.938 kB / 0.8156 GB, free: 13.62 MB / 0.7761 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.17e-06/0.007831, allocations: 1.438 kB / 0.8157 GB, free: 13.62 MB / 0.7761 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.539e-05/0.007846, allocations: 7.938 kB / 0.8157 GB, free: 13.62 MB / 0.7761 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.191e-05/0.007918, allocations: 12 kB / 0.8157 GB, free: 13.61 MB / 0.7761 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.346e-06/0.007926, allocations: 12.69 kB / 0.8157 GB, free: 13.59 MB / 0.7761 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.865e-05/0.007955, allocations: 7.938 kB / 0.8157 GB, free: 13.59 MB / 0.7761 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.067e-06/0.007964, allocations: 4.562 kB / 0.8157 GB, free: 13.58 MB / 0.7761 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.609e-05/0.00804, allocations: 161.1 kB / 0.8158 GB, free: 13.41 MB / 0.7761 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.192e-05/0.008052, allocations: 8.547 kB / 0.8159 GB, free: 13.41 MB / 0.7761 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001202/0.008172, allocations: 70.11 kB / 0.8159 GB, free: 13.33 MB / 0.7761 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.733e-06/0.008174, allocations: 1.281 kB / 0.8159 GB, free: 13.33 MB / 0.7761 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.546e-06/0.008177, allocations: 0 / 0.8159 GB, free: 13.33 MB / 0.7761 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.576e-06/0.008181, allocations: 4.047 kB / 0.8159 GB, free: 13.33 MB / 0.7761 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000224/0.008405, allocations: 323.9 kB / 0.8162 GB, free: 12.97 MB / 0.7761 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.194e-06/0.008407, allocations: 0 / 0.8162 GB, free: 12.97 MB / 0.7761 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.281e-05/0.00844, allocations: 7.984 kB / 0.8162 GB, free: 12.96 MB / 0.7761 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.425e-06/0.008442, allocations: 0 / 0.8162 GB, free: 12.96 MB / 0.7761 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.065e-06/0.008451, allocations: 4 kB / 0.8162 GB, free: 12.96 MB / 0.7761 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.653e-06/0.008452, allocations: 4 kB / 0.8163 GB, free: 12.96 MB / 0.7761 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.052e-06/0.008453, allocations: 0 / 0.8163 GB, free: 12.96 MB / 0.7761 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001285/0.008582, allocations: 224.3 kB / 0.8165 GB, free: 12.72 MB / 0.7761 GB Notification: Performance of postOpt removeConstants (simulation): time 5.2e-06/0.008587, allocations: 0 / 0.8165 GB, free: 12.72 MB / 0.7761 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.189e-05/0.008599, allocations: 1 kB / 0.8165 GB, free: 12.72 MB / 0.7761 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.549e-05/0.008644, allocations: 8.938 kB / 0.8165 GB, free: 12.71 MB / 0.7761 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.84e-05/0.008683, allocations: 11.98 kB / 0.8165 GB, free: 12.7 MB / 0.7761 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.271e-05/0.008695, allocations: 0 / 0.8165 GB, free: 12.7 MB / 0.7761 GB Notification: Performance of sorting global known variables: time 3.939e-05/0.008735, allocations: 132.4 kB / 0.8166 GB, free: 12.57 MB / 0.7761 GB Notification: Performance of sort global known variables: time 5e-08/0.008735, allocations: 0 / 0.8166 GB, free: 12.57 MB / 0.7761 GB Notification: Performance of remove unused functions: time 0.0001758/0.008911, allocations: 15.95 kB / 0.8166 GB, free: 12.55 MB / 0.7761 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.000132/0.009043, allocations: 104 kB / 0.8167 GB, free: 12.45 MB / 0.7761 GB Notification: Performance of simCode: created initialization part: time 0.0001089/0.009152, allocations: 37.83 kB / 0.8168 GB, free: 12.41 MB / 0.7761 GB Notification: Performance of simCode: created event and clocks part: time 1.954e-06/0.009154, allocations: 0 / 0.8168 GB, free: 12.41 MB / 0.7761 GB Notification: Performance of simCode: created simulation system equations: time 3.611e-05/0.00919, allocations: 27.61 kB / 0.8168 GB, free: 12.38 MB / 0.7761 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002112/0.009401, allocations: 19.86 kB / 0.8168 GB, free: 12.36 MB / 0.7761 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005606/0.009961, allocations: 134.2 kB / 0.8169 GB, free: 12.2 MB / 0.7761 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 4.089e-05/0.01, allocations: 63.22 kB / 0.817 GB, free: 12.12 MB / 0.7761 GB Notification: Performance of simCode: alias equations: time 2.432e-05/0.01003, allocations: 0 / 0.817 GB, free: 12.12 MB / 0.7761 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.85e-05/0.01006, allocations: 20.44 kB / 0.817 GB, free: 12.1 MB / 0.7761 GB Notification: Performance of SimCode: time 8.11e-07/0.01006, allocations: 0 / 0.817 GB, free: 12.1 MB / 0.7761 GB Notification: Performance of Templates: time 0.002807/0.01286, allocations: 0.8383 MB / 0.8178 GB, free: 11.29 MB / 0.7761 GB " [Timeout remaining time 300] make -j1 -f Buildings_12_Buildings.Controls.OBC.CDL.Discrete.Validation.Sampler.makefile [Timeout 300] (rm -f Buildings_12_Buildings.Controls.OBC.CDL.Discrete.Validation.Sampler.pipe ; mkfifo Buildings_12_Buildings.Controls.OBC.CDL.Discrete.Validation.Sampler.pipe ; head -c 1048576 < Buildings_12_Buildings.Controls.OBC.CDL.Discrete.Validation.Sampler.pipe >> ../files/Buildings_12_Buildings.Controls.OBC.CDL.Discrete.Validation.Sampler.sim & ./Buildings_12_Buildings.Controls.OBC.CDL.Discrete.Validation.Sampler -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Buildings_12_Buildings.Controls.OBC.CDL.Discrete.Validation.Sampler.pipe 2>&1) [Timeout 240] diffSimulationResults("Buildings_12_Buildings.Controls.OBC.CDL.Discrete.Validation.Sampler_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_12.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.32455109199509]