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.001869/0.001869, allocations: 83.69 kB / 20.24 MB, free: 4.184 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.001956/0.001956, allocations: 161.3 kB / 23.55 MB, free: 0.8711 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 1.721/1.721, allocations: 177.1 MB / 203.9 MB, free: 5.617 MB / 186.7 MB " [Timeout remaining time 178] 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 3.089/3.089, allocations: 377.8 MB / 0.6232 GB, free: 8.531 MB / 0.5886 GB " [Timeout remaining time 176] 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.725e-06/2.725e-06, allocations: 0 / 0.8108 GB, free: 2.105 MB / 0.7605 GB Notification: Performance of FrontEnd - Absyn->SCode: time 3.248e-05/3.521e-05, allocations: 8.125 kB / 0.8108 GB, free: 2.098 MB / 0.7605 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Discrete.Validation.UnitDelay): time 0.002725/0.00276, allocations: 0.6772 MB / 0.8115 GB, free: 1.445 MB / 0.7605 GB Notification: Performance of NFInst.instExpressions: time 0.002235/0.004995, allocations: 1.085 MB / 0.8125 GB, free: 356 kB / 0.7605 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.545e-05/0.005051, allocations: 1.156 kB / 0.8125 GB, free: 356 kB / 0.7605 GB Notification: Performance of NFTyping.typeComponents: time 3.451e-05/0.005085, allocations: 3.938 kB / 0.8125 GB, free: 352 kB / 0.7605 GB Notification: Performance of NFTyping.typeBindings: time 0.0001002/0.005186, allocations: 7.922 kB / 0.8125 GB, free: 344 kB / 0.7605 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003753/0.005561, allocations: 49.17 kB / 0.8126 GB, free: 296 kB / 0.7605 GB Notification: Performance of NFFlatten.flatten: time 0.0001375/0.005698, allocations: 43.86 kB / 0.8126 GB, free: 252 kB / 0.7605 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001077/0.005806, allocations: 15.98 kB / 0.8126 GB, free: 236 kB / 0.7605 GB Notification: Performance of NFEvalConstants.evaluate: time 0.000112/0.005918, allocations: 24.7 kB / 0.8127 GB, free: 212 kB / 0.7605 GB Notification: Performance of NFSimplifyModel.simplify: time 7.043e-05/0.005988, allocations: 23.95 kB / 0.8127 GB, free: 188 kB / 0.7605 GB Notification: Performance of NFPackage.collectConstants: time 2.307e-05/0.006012, allocations: 4.938 kB / 0.8127 GB, free: 184 kB / 0.7605 GB Notification: Performance of NFFlatten.collectFunctions: time 9.223e-05/0.006104, allocations: 19.94 kB / 0.8127 GB, free: 164 kB / 0.7605 GB Notification: Performance of NFScalarize.scalarize: time 3.288e-05/0.006137, allocations: 11.92 kB / 0.8127 GB, free: 152 kB / 0.7605 GB Notification: Performance of NFVerifyModel.verify: time 4.579e-05/0.006182, allocations: 12.61 kB / 0.8127 GB, free: 140 kB / 0.7605 GB Notification: Performance of NFConvertDAE.convert: time 0.0002096/0.006392, allocations: 76.23 kB / 0.8128 GB, free: 64 kB / 0.7605 GB Notification: Performance of FrontEnd - DAE generated: time 3.717e-06/0.006396, allocations: 0 / 0.8128 GB, free: 64 kB / 0.7605 GB Notification: Performance of FrontEnd: time 9.72e-07/0.006397, allocations: 0.5 kB / 0.8128 GB, free: 64 kB / 0.7605 GB Notification: Performance of Transformations before backend: time 4.459e-06/0.006401, allocations: 1.25 kB / 0.8128 GB, free: 64 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.0007544/0.007156, allocations: 380.2 kB / 0.8132 GB, free: 15.65 MB / 0.7761 GB Notification: Performance of prepare preOptimizeDAE: time 4.58e-05/0.007201, allocations: 8.031 kB / 0.8132 GB, free: 15.64 MB / 0.7761 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001589/0.00736, allocations: 19.22 kB / 0.8132 GB, free: 15.63 MB / 0.7761 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001543/0.007515, allocations: 108.6 kB / 0.8133 GB, free: 15.5 MB / 0.7761 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.94e-05/0.007534, allocations: 4.375 kB / 0.8133 GB, free: 15.49 MB / 0.7761 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.953e-05/0.007554, allocations: 8.375 kB / 0.8133 GB, free: 15.48 MB / 0.7761 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002227/0.007776, allocations: 54.17 kB / 0.8134 GB, free: 15.43 MB / 0.7761 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.153e-05/0.007788, allocations: 4.188 kB / 0.8134 GB, free: 15.42 MB / 0.7761 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.991e-05/0.007808, allocations: 5 kB / 0.8134 GB, free: 15.42 MB / 0.7761 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.739e-06/0.007812, allocations: 384 / 0.8134 GB, free: 15.42 MB / 0.7761 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001966/0.008009, allocations: 29.45 kB / 0.8134 GB, free: 15.39 MB / 0.7761 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007072/0.008716, allocations: 287.7 kB / 0.8137 GB, free: 15.07 MB / 0.7761 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002159/0.008932, allocations: 60.2 kB / 0.8137 GB, free: 15 MB / 0.7761 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001183/0.00905, allocations: 27.8 kB / 0.8137 GB, free: 14.97 MB / 0.7761 GB Notification: Performance of preOpt evalFunc (simulation): time 2.861e-05/0.009079, allocations: 0.5 kB / 0.8138 GB, free: 14.97 MB / 0.7761 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002274/0.009307, allocations: 78.27 kB / 0.8138 GB, free: 14.88 MB / 0.7761 GB Notification: Performance of pre-optimization done (n=6): time 1.493e-06/0.009308, allocations: 0 / 0.8138 GB, free: 14.88 MB / 0.7761 GB Notification: Performance of matching and sorting (n=6): time 0.000496/0.009804, allocations: 110.9 kB / 0.8139 GB, free: 14.77 MB / 0.7761 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.725e-05/0.009871, allocations: 51.41 kB / 0.814 GB, free: 14.71 MB / 0.7761 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002193/0.01009, allocations: 177.9 kB / 0.8141 GB, free: 14.52 MB / 0.7761 GB Notification: Performance of collectPreVariables (initialization): time 3.163e-05/0.01012, allocations: 25.7 kB / 0.8142 GB, free: 14.48 MB / 0.7761 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001146/0.01024, allocations: 139.3 kB / 0.8143 GB, free: 14.34 MB / 0.7761 GB Notification: Performance of collectInitialBindings (initialization): time 2.567e-05/0.01026, allocations: 8.438 kB / 0.8143 GB, free: 14.34 MB / 0.7761 GB Notification: Performance of simplifyInitialFunctions (initialization): time 8.644e-05/0.01035, allocations: 36.23 kB / 0.8143 GB, free: 14.29 MB / 0.7761 GB Notification: Performance of setup shared object (initialization): time 0.0003437/0.01069, allocations: 0.4884 MB / 0.8148 GB, free: 13.79 MB / 0.7761 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001136/0.01081, allocations: 20.8 kB / 0.8148 GB, free: 13.77 MB / 0.7761 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001671/0.01097, allocations: 70.36 kB / 0.8149 GB, free: 13.68 MB / 0.7761 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000272/0.01125, allocations: 96.25 kB / 0.815 GB, free: 13.57 MB / 0.7761 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.685e-06/0.01125, allocations: 1.156 kB / 0.815 GB, free: 13.57 MB / 0.7761 GB Notification: Performance of matching and sorting (n=9) (initialization): time 0.0003547/0.0116, allocations: 106.9 kB / 0.8151 GB, free: 13.46 MB / 0.7761 GB Notification: Performance of prepare postOptimizeDAE: time 2.516e-05/0.01163, allocations: 7.938 kB / 0.8151 GB, free: 13.45 MB / 0.7761 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.841e-06/0.01163, allocations: 0.625 kB / 0.8151 GB, free: 13.45 MB / 0.7761 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.095e-05/0.01165, allocations: 4 kB / 0.8151 GB, free: 13.45 MB / 0.7761 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001534/0.01181, allocations: 21.23 kB / 0.8151 GB, free: 13.43 MB / 0.7761 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.923e-06/0.01182, allocations: 0 / 0.8151 GB, free: 13.43 MB / 0.7761 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.619e-05/0.0119, allocations: 7.938 kB / 0.8151 GB, free: 13.42 MB / 0.7761 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.848e-05/0.01192, allocations: 9.266 kB / 0.8152 GB, free: 13.41 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 0.0001668/0.01209, allocations: 160.6 kB / 0.8153 GB, free: 13.25 MB / 0.7761 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.086e-05/0.01213, allocations: 20.12 kB / 0.8153 GB, free: 13.23 MB / 0.7761 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003269/0.01245, allocations: 98.62 kB / 0.8154 GB, free: 13.12 MB / 0.7761 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.056e-06/0.01246, allocations: 0.8125 kB / 0.8154 GB, free: 13.12 MB / 0.7761 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.188e-06/0.01246, allocations: 0 / 0.8154 GB, free: 13.12 MB / 0.7761 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.948e-06/0.01247, allocations: 1.625 kB / 0.8154 GB, free: 13.12 MB / 0.7761 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006204/0.01309, allocations: 341.4 kB / 0.8158 GB, free: 12.75 MB / 0.7761 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.194e-06/0.01309, allocations: 0 / 0.8158 GB, free: 12.75 MB / 0.7761 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.653e-05/0.01315, allocations: 8.844 kB / 0.8158 GB, free: 12.74 MB / 0.7761 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.625e-06/0.01316, allocations: 0 / 0.8158 GB, free: 12.74 MB / 0.7761 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.362e-05/0.01317, allocations: 4 kB / 0.8158 GB, free: 12.74 MB / 0.7761 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.803e-06/0.01317, allocations: 3.438 kB / 0.8158 GB, free: 12.74 MB / 0.7761 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.142e-06/0.01317, allocations: 0 / 0.8158 GB, free: 12.74 MB / 0.7761 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004352/0.01361, allocations: 243.8 kB / 0.816 GB, free: 12.48 MB / 0.7761 GB Notification: Performance of postOpt removeConstants (simulation): time 1.039e-05/0.01362, allocations: 0 / 0.816 GB, free: 12.48 MB / 0.7761 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.264e-05/0.01364, allocations: 0 / 0.816 GB, free: 12.48 MB / 0.7761 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001099/0.01375, allocations: 4 kB / 0.816 GB, free: 12.48 MB / 0.7761 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.374e-05/0.01383, allocations: 7.984 kB / 0.816 GB, free: 12.47 MB / 0.7761 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.237e-05/0.01384, allocations: 4 kB / 0.816 GB, free: 12.46 MB / 0.7761 GB Notification: Performance of sorting global known variables: time 0.0001194/0.01396, allocations: 131.8 kB / 0.8161 GB, free: 12.34 MB / 0.7761 GB Notification: Performance of sort global known variables: time 1.3e-07/0.01396, allocations: 3.938 kB / 0.8161 GB, free: 12.33 MB / 0.7761 GB Notification: Performance of remove unused functions: time 0.0004364/0.01439, allocations: 17.88 kB / 0.8162 GB, free: 12.32 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.0002366/0.01463, allocations: 107.2 kB / 0.8163 GB, free: 12.2 MB / 0.7761 GB Notification: Performance of simCode: created initialization part: time 0.0003383/0.01497, allocations: 64.5 kB / 0.8163 GB, free: 12.14 MB / 0.7761 GB Notification: Performance of simCode: created event and clocks part: time 2.385e-06/0.01497, allocations: 0 / 0.8163 GB, free: 12.14 MB / 0.7761 GB Notification: Performance of simCode: created simulation system equations: time 0.0001399/0.01511, allocations: 32.52 kB / 0.8164 GB, free: 12.1 MB / 0.7761 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004311/0.01554, allocations: 24.66 kB / 0.8164 GB, free: 12.08 MB / 0.7761 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004953/0.01604, allocations: 146.1 kB / 0.8165 GB, free: 11.91 MB / 0.7761 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001089/0.01615, allocations: 71.2 kB / 0.8166 GB, free: 11.82 MB / 0.7761 GB Notification: Performance of simCode: alias equations: time 4.161e-05/0.01619, allocations: 7.156 kB / 0.8166 GB, free: 11.82 MB / 0.7761 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.272e-05/0.01623, allocations: 12.5 kB / 0.8166 GB, free: 11.8 MB / 0.7761 GB Notification: Performance of SimCode: time 5.21e-07/0.01623, allocations: 0 / 0.8166 GB, free: 11.8 MB / 0.7761 GB Notification: Performance of Templates: time 0.005484/0.02172, allocations: 0.8407 MB / 0.8174 GB, free: 11 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","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_12_Buildings.Controls.OBC.CDL.Discrete.Validation.UnitDelay.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 300] "" [Timeout remaining time 300] Reference file matches [Calling sys.exit(0), Time elapsed: 8.352012743009254]