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.001441/0.001441, allocations: 77.97 kB / 20.68 MB, free: 3.809 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.001927/0.001927, allocations: 177 kB / 24.08 MB, free: 416 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.9867/0.9867, allocations: 177.1 MB / 204.5 MB, free: 5.516 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 1.922/1.922, allocations: 377.9 MB / 0.624 GB, free: 8.387 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.837e-06/3.837e-06, allocations: 0 / 0.812 GB, free: 1.445 MB / 0.7605 GB Notification: Performance of FrontEnd - Absyn->SCode: time 3.933e-05/4.317e-05, allocations: 2.312 kB / 0.812 GB, free: 1.441 MB / 0.7605 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Discrete.Validation.Sampler): time 0.002792/0.002835, allocations: 0.6824 MB / 0.8126 GB, free: 0.7812 MB / 0.7605 GB Notification: Performance of NFInst.instExpressions: time 0.001826/0.004661, allocations: 1.113 MB / 0.8137 GB, free: 15.66 MB / 0.7761 GB Notification: Performance of NFInst.updateImplicitVariability: time 6.869e-05/0.00473, allocations: 0 / 0.8137 GB, free: 15.66 MB / 0.7761 GB Notification: Performance of NFTyping.typeComponents: time 4.057e-05/0.004771, allocations: 1.281 kB / 0.8137 GB, free: 15.66 MB / 0.7761 GB Notification: Performance of NFTyping.typeBindings: time 9.623e-05/0.004867, allocations: 11.86 kB / 0.8137 GB, free: 15.64 MB / 0.7761 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004203/0.005287, allocations: 47.7 kB / 0.8138 GB, free: 15.6 MB / 0.7761 GB Notification: Performance of NFFlatten.flatten: time 0.0001317/0.005419, allocations: 53.25 kB / 0.8138 GB, free: 15.55 MB / 0.7761 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001183/0.005537, allocations: 7.984 kB / 0.8139 GB, free: 15.54 MB / 0.7761 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001368/0.005674, allocations: 27.92 kB / 0.8139 GB, free: 15.51 MB / 0.7761 GB Notification: Performance of NFSimplifyModel.simplify: time 6.832e-05/0.005742, allocations: 15.97 kB / 0.8139 GB, free: 15.5 MB / 0.7761 GB Notification: Performance of NFPackage.collectConstants: time 2.399e-05/0.005766, allocations: 4.688 kB / 0.8139 GB, free: 15.49 MB / 0.7761 GB Notification: Performance of NFFlatten.collectFunctions: time 8.423e-05/0.00585, allocations: 19.98 kB / 0.8139 GB, free: 15.47 MB / 0.7761 GB Notification: Performance of NFScalarize.scalarize: time 3.101e-05/0.005881, allocations: 12.83 kB / 0.8139 GB, free: 15.46 MB / 0.7761 GB Notification: Performance of NFVerifyModel.verify: time 3.033e-05/0.005912, allocations: 15.98 kB / 0.8139 GB, free: 15.45 MB / 0.7761 GB Notification: Performance of NFConvertDAE.convert: time 0.0001836/0.006095, allocations: 52.45 kB / 0.814 GB, free: 15.39 MB / 0.7761 GB Notification: Performance of FrontEnd - DAE generated: time 5.721e-06/0.006101, allocations: 0 / 0.814 GB, free: 15.39 MB / 0.7761 GB Notification: Performance of FrontEnd: time 2.023e-06/0.006103, allocations: 0.5938 kB / 0.814 GB, free: 15.39 MB / 0.7761 GB Notification: Performance of Transformations before backend: time 6.772e-06/0.00611, allocations: 9.188 kB / 0.814 GB, free: 15.39 MB / 0.7761 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.0005553/0.006665, allocations: 380.5 kB / 0.8144 GB, free: 14.98 MB / 0.7761 GB Notification: Performance of prepare preOptimizeDAE: time 5.49e-05/0.00672, allocations: 18.23 kB / 0.8144 GB, free: 14.96 MB / 0.7761 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001316/0.006852, allocations: 8.891 kB / 0.8144 GB, free: 14.95 MB / 0.7761 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001122/0.006964, allocations: 112.6 kB / 0.8145 GB, free: 14.82 MB / 0.7761 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.435e-05/0.006978, allocations: 384 / 0.8145 GB, free: 14.82 MB / 0.7761 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.275e-05/0.006991, allocations: 4.375 kB / 0.8145 GB, free: 14.81 MB / 0.7761 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001541/0.007145, allocations: 62.94 kB / 0.8146 GB, free: 14.74 MB / 0.7761 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.348e-06/0.007154, allocations: 0.9375 kB / 0.8146 GB, free: 14.74 MB / 0.7761 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.125e-05/0.007166, allocations: 4.359 kB / 0.8146 GB, free: 14.74 MB / 0.7761 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.522e-06/0.007172, allocations: 1.906 kB / 0.8146 GB, free: 14.74 MB / 0.7761 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.79e-05/0.00721, allocations: 19.86 kB / 0.8146 GB, free: 14.72 MB / 0.7761 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004072/0.007617, allocations: 256.3 kB / 0.8148 GB, free: 14.44 MB / 0.7761 GB Notification: Performance of preOpt comSubExp (simulation): time 9.609e-05/0.007713, allocations: 36.16 kB / 0.8149 GB, free: 14.39 MB / 0.7761 GB Notification: Performance of preOpt resolveLoops (simulation): time 2.613e-05/0.007739, allocations: 15.67 kB / 0.8149 GB, free: 14.38 MB / 0.7761 GB Notification: Performance of preOpt evalFunc (simulation): time 2.982e-05/0.007769, allocations: 4.625 kB / 0.8149 GB, free: 14.37 MB / 0.7761 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001145/0.007884, allocations: 66.34 kB / 0.815 GB, free: 14.29 MB / 0.7761 GB Notification: Performance of pre-optimization done (n=6): time 1.854e-06/0.007886, allocations: 0 / 0.815 GB, free: 14.29 MB / 0.7761 GB Notification: Performance of matching and sorting (n=6): time 0.0002025/0.008088, allocations: 69.61 kB / 0.815 GB, free: 14.22 MB / 0.7761 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.025e-05/0.008128, allocations: 52.84 kB / 0.8151 GB, free: 14.16 MB / 0.7761 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.935e-05/0.008228, allocations: 169.9 kB / 0.8152 GB, free: 13.97 MB / 0.7761 GB Notification: Performance of collectPreVariables (initialization): time 1.552e-05/0.008243, allocations: 25.7 kB / 0.8153 GB, free: 13.94 MB / 0.7761 GB Notification: Performance of collectInitialEqns (initialization): time 6.34e-05/0.008307, allocations: 134.8 kB / 0.8154 GB, free: 13.8 MB / 0.7761 GB Notification: Performance of collectInitialBindings (initialization): time 2.799e-05/0.008335, allocations: 16.42 kB / 0.8154 GB, free: 13.79 MB / 0.7761 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.023e-05/0.008385, allocations: 31.83 kB / 0.8154 GB, free: 13.75 MB / 0.7761 GB Notification: Performance of setup shared object (initialization): time 0.000174/0.008559, allocations: 492.1 kB / 0.8159 GB, free: 13.26 MB / 0.7761 GB Notification: Performance of preBalanceInitialSystem (initialization): time 2.59e-05/0.008585, allocations: 8.516 kB / 0.8159 GB, free: 13.25 MB / 0.7761 GB Notification: Performance of partitionIndependentBlocks (initialization): time 5.315e-05/0.008638, allocations: 55.5 kB / 0.816 GB, free: 13.18 MB / 0.7761 GB Notification: Performance of analyzeInitialSystem (initialization): time 8.224e-05/0.00872, allocations: 51.53 kB / 0.816 GB, free: 13.11 MB / 0.7761 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.528e-06/0.008725, allocations: 5.031 kB / 0.816 GB, free: 13.11 MB / 0.7761 GB Notification: Performance of matching and sorting (n=8) (initialization): time 0.000141/0.008866, allocations: 63 kB / 0.8161 GB, free: 13.04 MB / 0.7761 GB Notification: Performance of prepare postOptimizeDAE: time 2.103e-05/0.008887, allocations: 7.984 kB / 0.8161 GB, free: 13.04 MB / 0.7761 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.327e-06/0.008896, allocations: 9.219 kB / 0.8161 GB, free: 13.03 MB / 0.7761 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.653e-05/0.008913, allocations: 0 / 0.8161 GB, free: 13.03 MB / 0.7761 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001034/0.009016, allocations: 12 kB / 0.8161 GB, free: 13.02 MB / 0.7761 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.931e-06/0.009022, allocations: 3.938 kB / 0.8161 GB, free: 13.01 MB / 0.7761 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.32e-05/0.009065, allocations: 12.58 kB / 0.8161 GB, free: 13 MB / 0.7761 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.383e-05/0.009079, allocations: 8.719 kB / 0.8161 GB, free: 12.99 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 9.636e-05/0.009175, allocations: 156.6 kB / 0.8163 GB, free: 12.83 MB / 0.7761 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.3e-05/0.009198, allocations: 8.453 kB / 0.8163 GB, free: 12.82 MB / 0.7761 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001536/0.009352, allocations: 75.47 kB / 0.8164 GB, free: 12.74 MB / 0.7761 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.146e-06/0.009355, allocations: 0 / 0.8164 GB, free: 12.74 MB / 0.7761 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.424e-06/0.009357, allocations: 0 / 0.8164 GB, free: 12.74 MB / 0.7761 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.308e-06/0.009362, allocations: 0 / 0.8164 GB, free: 12.74 MB / 0.7761 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003237/0.009685, allocations: 299.4 kB / 0.8166 GB, free: 12.42 MB / 0.7761 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.315e-06/0.009688, allocations: 0 / 0.8166 GB, free: 12.42 MB / 0.7761 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.363e-05/0.009741, allocations: 4 kB / 0.8166 GB, free: 12.41 MB / 0.7761 GB Notification: Performance of postOpt tearingSystem (simulation): time 9.367e-06/0.009751, allocations: 8.438 kB / 0.8167 GB, free: 12.41 MB / 0.7761 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.651e-05/0.009767, allocations: 3.984 kB / 0.8167 GB, free: 12.4 MB / 0.7761 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.745e-06/0.00977, allocations: 0.6875 kB / 0.8167 GB, free: 12.4 MB / 0.7761 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.913e-06/0.009772, allocations: 0 / 0.8167 GB, free: 12.4 MB / 0.7761 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001846/0.009957, allocations: 217.6 kB / 0.8169 GB, free: 12.17 MB / 0.7761 GB Notification: Performance of postOpt removeConstants (simulation): time 1.026e-05/0.009967, allocations: 0 / 0.8169 GB, free: 12.17 MB / 0.7761 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.378e-05/0.009981, allocations: 3.984 kB / 0.8169 GB, free: 12.17 MB / 0.7761 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.729e-05/0.01007, allocations: 11.97 kB / 0.8169 GB, free: 12.16 MB / 0.7761 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.052e-05/0.01011, allocations: 12.86 kB / 0.8169 GB, free: 12.14 MB / 0.7761 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.332e-05/0.01012, allocations: 0 / 0.8169 GB, free: 12.14 MB / 0.7761 GB Notification: Performance of sorting global known variables: time 5.355e-05/0.01018, allocations: 130.8 kB / 0.817 GB, free: 12.02 MB / 0.7761 GB Notification: Performance of sort global known variables: time 7e-08/0.01018, allocations: 0 / 0.817 GB, free: 12.02 MB / 0.7761 GB Notification: Performance of remove unused functions: time 0.0002703/0.01045, allocations: 15.95 kB / 0.817 GB, free: 12 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.000175/0.01062, allocations: 113.5 kB / 0.8171 GB, free: 11.89 MB / 0.7761 GB Notification: Performance of simCode: created initialization part: time 0.000124/0.01074, allocations: 39.59 kB / 0.8172 GB, free: 11.84 MB / 0.7761 GB Notification: Performance of simCode: created event and clocks part: time 2.244e-06/0.01075, allocations: 0 / 0.8172 GB, free: 11.84 MB / 0.7761 GB Notification: Performance of simCode: created simulation system equations: time 4.351e-05/0.01079, allocations: 23.61 kB / 0.8172 GB, free: 11.82 MB / 0.7761 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003145/0.0111, allocations: 14.31 kB / 0.8172 GB, free: 11.8 MB / 0.7761 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005756/0.01168, allocations: 138.3 kB / 0.8173 GB, free: 11.64 MB / 0.7761 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 5.002e-05/0.01173, allocations: 63.2 kB / 0.8174 GB, free: 11.56 MB / 0.7761 GB Notification: Performance of simCode: alias equations: time 3.206e-05/0.01176, allocations: 0.9062 kB / 0.8174 GB, free: 11.56 MB / 0.7761 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.277e-05/0.01184, allocations: 75.05 kB / 0.8175 GB, free: 11.48 MB / 0.7761 GB Notification: Performance of SimCode: time 1.222e-06/0.01184, allocations: 0 / 0.8175 GB, free: 11.48 MB / 0.7761 GB Notification: Performance of Templates: time 0.004008/0.01584, allocations: 0.9222 MB / 0.8184 GB, free: 10.6 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.193765340838581]