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.001946/0.001946, allocations: 80.3 kB / 19.18 MB, free: 2.516 MB / 14.72 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.002394/0.002394, allocations: 159.2 kB / 22.45 MB, free: 5.375 MB / 14.72 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.515/1.515, allocations: 177.1 MB / 202.8 MB, free: 9.172 MB / 190.1 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 2.943/2.943, allocations: 377.8 MB / 0.6221 GB, free: 12.65 MB / 0.5919 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.675e-06/2.675e-06, allocations: 0 / 0.9814 GB, free: 12.04 MB / 0.9356 GB Notification: Performance of FrontEnd - Absyn->SCode: time 3.486e-05/3.753e-05, allocations: 6.219 kB / 0.9814 GB, free: 12.03 MB / 0.9356 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Discrete.Validation.UnitDelay): time 0.002601/0.002639, allocations: 0.6624 MB / 0.9821 GB, free: 11.37 MB / 0.9356 GB Notification: Performance of NFInst.instExpressions: time 0.002287/0.004925, allocations: 1.088 MB / 0.9831 GB, free: 10.27 MB / 0.9356 GB Notification: Performance of NFInst.updateImplicitVariability: time 6.776e-05/0.004993, allocations: 0 / 0.9831 GB, free: 10.27 MB / 0.9356 GB Notification: Performance of NFTyping.typeComponents: time 4.329e-05/0.005036, allocations: 3.938 kB / 0.9831 GB, free: 10.26 MB / 0.9356 GB Notification: Performance of NFTyping.typeBindings: time 9.564e-05/0.005132, allocations: 11.86 kB / 0.9831 GB, free: 10.25 MB / 0.9356 GB Notification: Performance of NFTyping.typeClassSections: time 0.000409/0.005541, allocations: 39.84 kB / 0.9832 GB, free: 10.21 MB / 0.9356 GB Notification: Performance of NFFlatten.flatten: time 0.0001522/0.005693, allocations: 47.84 kB / 0.9832 GB, free: 10.16 MB / 0.9356 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001329/0.005826, allocations: 11.98 kB / 0.9832 GB, free: 10.15 MB / 0.9356 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001069/0.005933, allocations: 23.92 kB / 0.9833 GB, free: 10.13 MB / 0.9356 GB Notification: Performance of NFSimplifyModel.simplify: time 7.012e-05/0.006003, allocations: 19.95 kB / 0.9833 GB, free: 10.11 MB / 0.9356 GB Notification: Performance of NFPackage.collectConstants: time 2.273e-05/0.006026, allocations: 12 kB / 0.9833 GB, free: 10.1 MB / 0.9356 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001007/0.006127, allocations: 27.81 kB / 0.9833 GB, free: 10.07 MB / 0.9356 GB Notification: Performance of NFScalarize.scalarize: time 3.294e-05/0.00616, allocations: 11.92 kB / 0.9833 GB, free: 10.06 MB / 0.9356 GB Notification: Performance of NFVerifyModel.verify: time 4.83e-05/0.006208, allocations: 11.98 kB / 0.9833 GB, free: 10.05 MB / 0.9356 GB Notification: Performance of NFConvertDAE.convert: time 0.0002062/0.006414, allocations: 67.77 kB / 0.9834 GB, free: 9.98 MB / 0.9356 GB Notification: Performance of FrontEnd - DAE generated: time 3.566e-06/0.006418, allocations: 0 / 0.9834 GB, free: 9.98 MB / 0.9356 GB Notification: Performance of FrontEnd: time 2.225e-06/0.00642, allocations: 0 / 0.9834 GB, free: 9.98 MB / 0.9356 GB Notification: Performance of Transformations before backend: time 9.247e-06/0.006429, allocations: 0 / 0.9834 GB, free: 9.98 MB / 0.9356 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.0006768/0.007106, allocations: 286.2 kB / 0.9837 GB, free: 9.668 MB / 0.9356 GB Notification: Performance of prepare preOptimizeDAE: time 4.899e-05/0.007155, allocations: 12.03 kB / 0.9837 GB, free: 9.656 MB / 0.9356 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001174/0.007272, allocations: 12.89 kB / 0.9837 GB, free: 9.645 MB / 0.9356 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001423/0.007415, allocations: 105.8 kB / 0.9838 GB, free: 9.516 MB / 0.9356 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.55e-05/0.00743, allocations: 8.359 kB / 0.9838 GB, free: 9.508 MB / 0.9356 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.01e-05/0.00745, allocations: 4.375 kB / 0.9838 GB, free: 9.504 MB / 0.9356 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002747/0.007725, allocations: 62.17 kB / 0.9839 GB, free: 9.438 MB / 0.9356 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.003e-05/0.007735, allocations: 192 / 0.9839 GB, free: 9.438 MB / 0.9356 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.265e-05/0.007748, allocations: 384 / 0.9839 GB, free: 9.438 MB / 0.9356 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.4e-06/0.007753, allocations: 384 / 0.9839 GB, free: 9.438 MB / 0.9356 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002659/0.008019, allocations: 47.89 kB / 0.9839 GB, free: 9.391 MB / 0.9356 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005805/0.008599, allocations: 228.4 kB / 0.9841 GB, free: 9.137 MB / 0.9356 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002387/0.008838, allocations: 50.55 kB / 0.9842 GB, free: 9.078 MB / 0.9356 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001503/0.008988, allocations: 32.89 kB / 0.9842 GB, free: 9.043 MB / 0.9356 GB Notification: Performance of preOpt evalFunc (simulation): time 3.394e-05/0.009022, allocations: 4 kB / 0.9842 GB, free: 9.039 MB / 0.9356 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003015/0.009324, allocations: 79.31 kB / 0.9843 GB, free: 8.949 MB / 0.9356 GB Notification: Performance of pre-optimization done (n=6): time 1.643e-06/0.009326, allocations: 0 / 0.9843 GB, free: 8.949 MB / 0.9356 GB Notification: Performance of matching and sorting (n=6): time 0.0006042/0.00993, allocations: 113.6 kB / 0.9844 GB, free: 8.832 MB / 0.9356 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.556e-05/0.009995, allocations: 59.34 kB / 0.9845 GB, free: 8.762 MB / 0.9356 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001404/0.01014, allocations: 113.8 kB / 0.9846 GB, free: 8.641 MB / 0.9356 GB Notification: Performance of collectPreVariables (initialization): time 3.131e-05/0.01017, allocations: 25.7 kB / 0.9846 GB, free: 8.609 MB / 0.9356 GB Notification: Performance of collectInitialEqns (initialization): time 9.066e-05/0.01026, allocations: 96.08 kB / 0.9847 GB, free: 8.512 MB / 0.9356 GB Notification: Performance of collectInitialBindings (initialization): time 2.68e-05/0.01028, allocations: 7.906 kB / 0.9847 GB, free: 8.504 MB / 0.9356 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.736e-05/0.01036, allocations: 29.7 kB / 0.9847 GB, free: 8.469 MB / 0.9356 GB Notification: Performance of setup shared object (initialization): time 0.0001929/0.01055, allocations: 314.8 kB / 0.985 GB, free: 8.152 MB / 0.9356 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001579/0.01071, allocations: 31.97 kB / 0.9851 GB, free: 8.121 MB / 0.9356 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001852/0.0109, allocations: 52.28 kB / 0.9851 GB, free: 8.055 MB / 0.9356 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000347/0.01124, allocations: 88.19 kB / 0.9852 GB, free: 7.953 MB / 0.9356 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.239e-05/0.01126, allocations: 4 kB / 0.9852 GB, free: 7.949 MB / 0.9356 GB Notification: Performance of matching and sorting (n=9) (initialization): time 0.0004377/0.01169, allocations: 109.7 kB / 0.9853 GB, free: 7.836 MB / 0.9356 GB Notification: Performance of prepare postOptimizeDAE: time 2.594e-05/0.01172, allocations: 7.938 kB / 0.9853 GB, free: 7.828 MB / 0.9356 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.937e-06/0.01173, allocations: 7.938 kB / 0.9853 GB, free: 7.82 MB / 0.9356 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.838e-05/0.01175, allocations: 0 / 0.9853 GB, free: 7.82 MB / 0.9356 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001611/0.01191, allocations: 15.98 kB / 0.9853 GB, free: 7.805 MB / 0.9356 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.835e-06/0.01192, allocations: 160 / 0.9853 GB, free: 7.805 MB / 0.9356 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001358/0.01205, allocations: 31.81 kB / 0.9854 GB, free: 7.773 MB / 0.9356 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.286e-05/0.01207, allocations: 0 / 0.9854 GB, free: 7.773 MB / 0.9356 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.0001277/0.01219, allocations: 117.8 kB / 0.9855 GB, free: 7.648 MB / 0.9356 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.063e-05/0.01221, allocations: 3.938 kB / 0.9855 GB, free: 7.645 MB / 0.9356 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004341/0.01265, allocations: 102.1 kB / 0.9856 GB, free: 7.539 MB / 0.9356 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.296e-06/0.01265, allocations: 0 / 0.9856 GB, free: 7.539 MB / 0.9356 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.721e-06/0.01266, allocations: 0 / 0.9856 GB, free: 7.539 MB / 0.9356 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.639e-06/0.01266, allocations: 0 / 0.9856 GB, free: 7.539 MB / 0.9356 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006554/0.01332, allocations: 310.1 kB / 0.9859 GB, free: 7.199 MB / 0.9356 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.064e-06/0.01332, allocations: 0 / 0.9859 GB, free: 7.199 MB / 0.9356 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.862e-05/0.01341, allocations: 8.375 kB / 0.9859 GB, free: 7.191 MB / 0.9356 GB Notification: Performance of postOpt tearingSystem (simulation): time 6.362e-06/0.01341, allocations: 3.984 kB / 0.9859 GB, free: 7.188 MB / 0.9356 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.772e-05/0.01343, allocations: 8 kB / 0.9859 GB, free: 7.18 MB / 0.9356 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.151e-06/0.01344, allocations: 4 kB / 0.9859 GB, free: 7.176 MB / 0.9356 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.172e-06/0.01344, allocations: 0 / 0.9859 GB, free: 7.176 MB / 0.9356 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004634/0.0139, allocations: 191.4 kB / 0.9861 GB, free: 6.973 MB / 0.9356 GB Notification: Performance of postOpt removeConstants (simulation): time 2.23e-05/0.01392, allocations: 11.94 kB / 0.9861 GB, free: 6.961 MB / 0.9356 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.708e-05/0.01395, allocations: 0 / 0.9861 GB, free: 6.961 MB / 0.9356 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001336/0.01409, allocations: 8 kB / 0.9861 GB, free: 6.953 MB / 0.9356 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.473e-05/0.01415, allocations: 7.922 kB / 0.9861 GB, free: 6.945 MB / 0.9356 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.265e-05/0.01416, allocations: 4 kB / 0.9861 GB, free: 6.941 MB / 0.9356 GB Notification: Performance of sorting global known variables: time 7.874e-05/0.01424, allocations: 87.27 kB / 0.9862 GB, free: 6.855 MB / 0.9356 GB Notification: Performance of sort global known variables: time 1e-07/0.01424, allocations: 0 / 0.9862 GB, free: 6.855 MB / 0.9356 GB Notification: Performance of remove unused functions: time 0.0004406/0.01468, allocations: 12 kB / 0.9862 GB, free: 6.844 MB / 0.9356 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.0002653/0.01495, allocations: 103.7 kB / 0.9863 GB, free: 6.734 MB / 0.9356 GB Notification: Performance of simCode: created initialization part: time 0.0004001/0.01535, allocations: 75.88 kB / 0.9864 GB, free: 6.66 MB / 0.9356 GB Notification: Performance of simCode: created event and clocks part: time 2.394e-06/0.01535, allocations: 0 / 0.9864 GB, free: 6.66 MB / 0.9356 GB Notification: Performance of simCode: created simulation system equations: time 0.0001696/0.01552, allocations: 27.92 kB / 0.9864 GB, free: 6.633 MB / 0.9356 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004585/0.01598, allocations: 15.92 kB / 0.9864 GB, free: 6.617 MB / 0.9356 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005088/0.01649, allocations: 129.2 kB / 0.9865 GB, free: 6.465 MB / 0.9356 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001034/0.01659, allocations: 67.34 kB / 0.9866 GB, free: 6.379 MB / 0.9356 GB Notification: Performance of simCode: alias equations: time 5.751e-05/0.01665, allocations: 11.92 kB / 0.9866 GB, free: 6.367 MB / 0.9356 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.989e-05/0.01669, allocations: 8.5 kB / 0.9866 GB, free: 6.359 MB / 0.9356 GB Notification: Performance of SimCode: time 3.8e-07/0.01669, allocations: 4 kB / 0.9866 GB, free: 6.355 MB / 0.9356 GB Notification: Performance of Templates: time 0.00512/0.02181, allocations: 0.8288 MB / 0.9874 GB, free: 5.543 MB / 0.9356 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=400 -emit_protected -lv LOG_STATS > Buildings_12_Buildings.Controls.OBC.CDL.Discrete.Validation.UnitDelay.pipe 2>&1) [Timeout 400] 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.457072708755732]