Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_12_Buildings.Controls.OBC.CDL.Discrete.Validation.UnitDelay.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.001493/0.001493, allocations: 71.75 kB / 20.97 MB, free: 3.582 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.001506/0.001506, allocations: 169 kB / 24.28 MB, free: 280 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.9614/0.9614, allocations: 177.1 MB / 204.6 MB, free: 5.648 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.934/1.934, allocations: 377.8 MB / 0.6239 GB, free: 8.566 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.UnitDelay,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|unitDelay1.u|unitDelay1.y",fileNamePrefix="Buildings_12_Buildings.Controls.OBC.CDL.Discrete.Validation.UnitDelay") translateModel(Buildings.Controls.OBC.CDL.Discrete.Validation.UnitDelay,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|unitDelay1.u|unitDelay1.y",fileNamePrefix="Buildings_12_Buildings.Controls.OBC.CDL.Discrete.Validation.UnitDelay") [Timeout 300] "Notification: Performance of FrontEnd - loaded program: time 2.766e-06/2.766e-06, allocations: 0 / 0.8115 GB, free: 2.105 MB / 0.7605 GB Notification: Performance of FrontEnd - Absyn->SCode: time 3.25e-05/3.527e-05, allocations: 2.312 kB / 0.8115 GB, free: 2.102 MB / 0.7605 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Discrete.Validation.UnitDelay): time 0.001431/0.001466, allocations: 0.6766 MB / 0.8122 GB, free: 1.449 MB / 0.7605 GB Notification: Performance of NFInst.instExpressions: time 0.00115/0.002616, allocations: 1.112 MB / 0.8133 GB, free: 332 kB / 0.7605 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.16e-05/0.002667, allocations: 1.188 kB / 0.8133 GB, free: 332 kB / 0.7605 GB Notification: Performance of NFTyping.typeComponents: time 2.659e-05/0.002694, allocations: 3.938 kB / 0.8133 GB, free: 328 kB / 0.7605 GB Notification: Performance of NFTyping.typeBindings: time 6.668e-05/0.00276, allocations: 11.92 kB / 0.8133 GB, free: 316 kB / 0.7605 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002684/0.003029, allocations: 44.53 kB / 0.8133 GB, free: 272 kB / 0.7605 GB Notification: Performance of NFFlatten.flatten: time 8.699e-05/0.003116, allocations: 47.84 kB / 0.8134 GB, free: 224 kB / 0.7605 GB Notification: Performance of NFFlatten.resolveConnections: time 8.885e-05/0.003205, allocations: 8.906 kB / 0.8134 GB, free: 216 kB / 0.7605 GB Notification: Performance of NFEvalConstants.evaluate: time 8.348e-05/0.003288, allocations: 27.95 kB / 0.8134 GB, free: 188 kB / 0.7605 GB Notification: Performance of NFSimplifyModel.simplify: time 3.974e-05/0.003328, allocations: 20.58 kB / 0.8134 GB, free: 168 kB / 0.7605 GB Notification: Performance of NFPackage.collectConstants: time 1.534e-05/0.003343, allocations: 4 kB / 0.8134 GB, free: 164 kB / 0.7605 GB Notification: Performance of NFFlatten.collectFunctions: time 5.643e-05/0.0034, allocations: 24.42 kB / 0.8134 GB, free: 140 kB / 0.7605 GB Notification: Performance of NFScalarize.scalarize: time 2.126e-05/0.003421, allocations: 16.5 kB / 0.8135 GB, free: 124 kB / 0.7605 GB Notification: Performance of NFVerifyModel.verify: time 2.99e-05/0.003451, allocations: 11.94 kB / 0.8135 GB, free: 112 kB / 0.7605 GB Notification: Performance of NFConvertDAE.convert: time 0.0001149/0.003566, allocations: 53.06 kB / 0.8135 GB, free: 60 kB / 0.7605 GB Notification: Performance of FrontEnd - DAE generated: time 2.625e-06/0.003568, allocations: 0 / 0.8135 GB, free: 60 kB / 0.7605 GB Notification: Performance of FrontEnd: time 1.002e-06/0.003569, allocations: 0 / 0.8135 GB, free: 60 kB / 0.7605 GB Notification: Performance of Transformations before backend: time 4.388e-06/0.003574, allocations: 2.312 kB / 0.8135 GB, free: 60 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.000404/0.003978, allocations: 384.5 kB / 0.8139 GB, free: 15.64 MB / 0.7761 GB Notification: Performance of prepare preOptimizeDAE: time 3.694e-05/0.004015, allocations: 8.031 kB / 0.8139 GB, free: 15.64 MB / 0.7761 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.773e-05/0.004112, allocations: 12.88 kB / 0.8139 GB, free: 15.62 MB / 0.7761 GB Notification: Performance of preOpt evaluateParameters (simulation): time 8.052e-05/0.004193, allocations: 112.6 kB / 0.814 GB, free: 15.49 MB / 0.7761 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.849e-05/0.004211, allocations: 8.375 kB / 0.814 GB, free: 15.48 MB / 0.7761 GB Notification: Performance of preOpt expandDerOperator (simulation): time 9.568e-06/0.004221, allocations: 1.031 kB / 0.814 GB, free: 15.48 MB / 0.7761 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001282/0.004349, allocations: 68.41 kB / 0.8141 GB, free: 15.41 MB / 0.7761 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.196e-06/0.004357, allocations: 4.188 kB / 0.8141 GB, free: 15.4 MB / 0.7761 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.187e-05/0.004369, allocations: 384 / 0.8141 GB, free: 15.4 MB / 0.7761 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.128e-05/0.004381, allocations: 4.359 kB / 0.8141 GB, free: 15.4 MB / 0.7761 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.092e-05/0.004421, allocations: 19.91 kB / 0.8141 GB, free: 15.38 MB / 0.7761 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003614/0.004783, allocations: 276.9 kB / 0.8144 GB, free: 15.07 MB / 0.7761 GB Notification: Performance of preOpt comSubExp (simulation): time 8.396e-05/0.004867, allocations: 47.52 kB / 0.8144 GB, free: 15.02 MB / 0.7761 GB Notification: Performance of preOpt resolveLoops (simulation): time 2.259e-05/0.004889, allocations: 12.94 kB / 0.8144 GB, free: 15 MB / 0.7761 GB Notification: Performance of preOpt evalFunc (simulation): time 1.762e-05/0.004907, allocations: 0 / 0.8144 GB, free: 15 MB / 0.7761 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 8.009e-05/0.004987, allocations: 69.11 kB / 0.8145 GB, free: 14.92 MB / 0.7761 GB Notification: Performance of pre-optimization done (n=6): time 8.82e-07/0.004988, allocations: 1.344 kB / 0.8145 GB, free: 14.92 MB / 0.7761 GB Notification: Performance of matching and sorting (n=6): time 0.0001754/0.005163, allocations: 69.64 kB / 0.8146 GB, free: 14.84 MB / 0.7761 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.468e-05/0.005198, allocations: 55.34 kB / 0.8146 GB, free: 14.78 MB / 0.7761 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.617e-05/0.005274, allocations: 177.9 kB / 0.8148 GB, free: 14.59 MB / 0.7761 GB Notification: Performance of collectPreVariables (initialization): time 1.276e-05/0.005287, allocations: 26.23 kB / 0.8148 GB, free: 14.55 MB / 0.7761 GB Notification: Performance of collectInitialEqns (initialization): time 4.334e-05/0.00533, allocations: 135.4 kB / 0.8149 GB, free: 14.42 MB / 0.7761 GB Notification: Performance of collectInitialBindings (initialization): time 1.515e-05/0.005346, allocations: 11.91 kB / 0.815 GB, free: 14.41 MB / 0.7761 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.196e-05/0.005387, allocations: 36.23 kB / 0.815 GB, free: 14.36 MB / 0.7761 GB Notification: Performance of setup shared object (initialization): time 0.0001073/0.005495, allocations: 492.1 kB / 0.8155 GB, free: 13.87 MB / 0.7761 GB Notification: Performance of preBalanceInitialSystem (initialization): time 2.095e-05/0.005516, allocations: 8.797 kB / 0.8155 GB, free: 13.86 MB / 0.7761 GB Notification: Performance of partitionIndependentBlocks (initialization): time 4.084e-05/0.005557, allocations: 58.38 kB / 0.8155 GB, free: 13.79 MB / 0.7761 GB Notification: Performance of analyzeInitialSystem (initialization): time 6.665e-05/0.005623, allocations: 72.27 kB / 0.8156 GB, free: 13.7 MB / 0.7761 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.074e-06/0.005625, allocations: 1.188 kB / 0.8156 GB, free: 13.7 MB / 0.7761 GB Notification: Performance of matching and sorting (n=9) (initialization): time 9.363e-05/0.005719, allocations: 82.42 kB / 0.8157 GB, free: 13.61 MB / 0.7761 GB Notification: Performance of prepare postOptimizeDAE: time 1.153e-05/0.00573, allocations: 8.656 kB / 0.8157 GB, free: 13.6 MB / 0.7761 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.919e-06/0.005735, allocations: 4 kB / 0.8157 GB, free: 13.6 MB / 0.7761 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.129e-05/0.005747, allocations: 0.5938 kB / 0.8157 GB, free: 13.6 MB / 0.7761 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.669e-05/0.005823, allocations: 23.92 kB / 0.8157 GB, free: 13.57 MB / 0.7761 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.961e-06/0.005829, allocations: 5.344 kB / 0.8157 GB, free: 13.57 MB / 0.7761 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.822e-05/0.005858, allocations: 11.94 kB / 0.8157 GB, free: 13.56 MB / 0.7761 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.494e-06/0.005865, allocations: 7.922 kB / 0.8157 GB, free: 13.55 MB / 0.7761 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 5 * Number of states: 0 () * Number of discrete variables: 6 (unitDelay1.u_internal,$PRE.unitDelay1.u_internal,unitDelay1.y,$PRE.unitDelay1.y,unitDelay1.sampleTrigger,$whenCondition1) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (9): * Single equations (assignments): 9 * 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.162e-05/0.005927, allocations: 161.5 kB / 0.8159 GB, free: 13.38 MB / 0.7761 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.066e-05/0.005937, allocations: 11.89 kB / 0.8159 GB, free: 13.37 MB / 0.7761 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.779e-05/0.006035, allocations: 74.89 kB / 0.816 GB, free: 13.29 MB / 0.7761 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.543e-06/0.006037, allocations: 0 / 0.816 GB, free: 13.29 MB / 0.7761 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.976e-06/0.00604, allocations: 1.281 kB / 0.816 GB, free: 13.29 MB / 0.7761 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.357e-06/0.006043, allocations: 0 / 0.816 GB, free: 13.29 MB / 0.7761 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000199/0.006242, allocations: 317.5 kB / 0.8163 GB, free: 12.94 MB / 0.7761 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.393e-06/0.006243, allocations: 4 kB / 0.8163 GB, free: 12.94 MB / 0.7761 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.587e-05/0.006269, allocations: 4.562 kB / 0.8163 GB, free: 12.93 MB / 0.7761 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.433e-06/0.006271, allocations: 0.7812 kB / 0.8163 GB, free: 12.93 MB / 0.7761 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.023e-06/0.006278, allocations: 7.922 kB / 0.8163 GB, free: 12.93 MB / 0.7761 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.21e-07/0.006278, allocations: 1.656 kB / 0.8163 GB, free: 12.93 MB / 0.7761 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.8e-07/0.006279, allocations: 0 / 0.8163 GB, free: 12.93 MB / 0.7761 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001701/0.006449, allocations: 219.8 kB / 0.8165 GB, free: 12.69 MB / 0.7761 GB Notification: Performance of postOpt removeConstants (simulation): time 5.511e-06/0.006454, allocations: 4 kB / 0.8165 GB, free: 12.69 MB / 0.7761 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.5e-05/0.006469, allocations: 0.875 kB / 0.8165 GB, free: 12.69 MB / 0.7761 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 3.448e-05/0.006504, allocations: 7.984 kB / 0.8165 GB, free: 12.68 MB / 0.7761 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.233e-05/0.006536, allocations: 0 / 0.8165 GB, free: 12.68 MB / 0.7761 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.452e-06/0.006543, allocations: 11.66 kB / 0.8165 GB, free: 12.67 MB / 0.7761 GB Notification: Performance of sorting global known variables: time 3.302e-05/0.006576, allocations: 127.2 kB / 0.8166 GB, free: 12.55 MB / 0.7761 GB Notification: Performance of sort global known variables: time 6e-08/0.006576, allocations: 0 / 0.8166 GB, free: 12.55 MB / 0.7761 GB Notification: Performance of remove unused functions: time 0.0001642/0.00674, allocations: 15.94 kB / 0.8167 GB, free: 12.53 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 (unitDelay1.sampleTrigger,$whenCondition1,unitDelay1.y,unitDelay1.u_internal) * Number of discrete states: 1 (unitDelay1.u_internal) * 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.0001046/0.006845, allocations: 107.2 kB / 0.8168 GB, free: 12.42 MB / 0.7761 GB Notification: Performance of simCode: created initialization part: time 0.000103/0.006948, allocations: 43.61 kB / 0.8168 GB, free: 12.37 MB / 0.7761 GB Notification: Performance of simCode: created event and clocks part: time 1.323e-06/0.006949, allocations: 0.5 kB / 0.8168 GB, free: 12.37 MB / 0.7761 GB Notification: Performance of simCode: created simulation system equations: time 3.094e-05/0.00698, allocations: 21.59 kB / 0.8168 GB, free: 12.35 MB / 0.7761 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001945/0.007174, allocations: 18.16 kB / 0.8168 GB, free: 12.33 MB / 0.7761 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004089/0.007583, allocations: 146.9 kB / 0.817 GB, free: 12.16 MB / 0.7761 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 3.534e-05/0.007619, allocations: 68.02 kB / 0.8171 GB, free: 12.08 MB / 0.7761 GB Notification: Performance of simCode: alias equations: time 2.086e-05/0.007639, allocations: 4 kB / 0.8171 GB, free: 12.07 MB / 0.7761 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.107e-05/0.00766, allocations: 8.5 kB / 0.8171 GB, free: 12.07 MB / 0.7761 GB Notification: Performance of SimCode: time 6.01e-07/0.007661, allocations: 0 / 0.8171 GB, free: 12.07 MB / 0.7761 GB Notification: Performance of Templates: time 0.002407/0.01007, allocations: 0.8485 MB / 0.8179 GB, free: 11.26 MB / 0.7761 GB " [Timeout remaining time 300] make -j1 -f Buildings_12_Buildings.Controls.OBC.CDL.Discrete.Validation.UnitDelay.makefile [Timeout 300] (rm -f Buildings_12_Buildings.Controls.OBC.CDL.Discrete.Validation.UnitDelay.pipe ; mkfifo Buildings_12_Buildings.Controls.OBC.CDL.Discrete.Validation.UnitDelay.pipe ; head -c 1048576 < Buildings_12_Buildings.Controls.OBC.CDL.Discrete.Validation.UnitDelay.pipe >> ../files/Buildings_12_Buildings.Controls.OBC.CDL.Discrete.Validation.UnitDelay.sim & ./Buildings_12_Buildings.Controls.OBC.CDL.Discrete.Validation.UnitDelay -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Buildings_12_Buildings.Controls.OBC.CDL.Discrete.Validation.UnitDelay.pipe 2>&1) [Timeout 240] diffSimulationResults("Buildings_12_Buildings.Controls.OBC.CDL.Discrete.Validation.UnitDelay_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_12.x/Buildings_Controls_OBC_CDL_Discrete_Validation_UnitDelay.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.183279664954171]