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.0008189/0.0008189, allocations: 72.5 kB / 19.93 MB, free: 4.633 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.0008171/0.0008171, allocations: 177.9 kB / 23.21 MB, free: 1.348 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 0.9075/0.9075, allocations: 177.1 MB / 203.5 MB, free: 5.742 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.754/1.754, allocations: 377.8 MB / 0.6228 GB, free: 8.66 MB / 0.5886 GB " [Timeout remaining time 178] 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 3.266e-06/3.266e-06, allocations: 0 / 0.9822 GB, free: 2.113 MB / 0.9323 GB Notification: Performance of FrontEnd - Absyn->SCode: time 2.806e-05/3.133e-05, allocations: 2.281 kB / 0.9822 GB, free: 2.109 MB / 0.9323 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Discrete.Validation.UnitDelay): time 0.001587/0.001618, allocations: 0.6769 MB / 0.9828 GB, free: 1.438 MB / 0.9323 GB Notification: Performance of NFInst.instExpressions: time 0.001171/0.002789, allocations: 1.084 MB / 0.9839 GB, free: 348 kB / 0.9323 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.554e-05/0.002845, allocations: 0 / 0.9839 GB, free: 348 kB / 0.9323 GB Notification: Performance of NFTyping.typeComponents: time 3.852e-05/0.002883, allocations: 4 kB / 0.9839 GB, free: 344 kB / 0.9323 GB Notification: Performance of NFTyping.typeBindings: time 8.065e-05/0.002964, allocations: 19.86 kB / 0.9839 GB, free: 324 kB / 0.9323 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002848/0.003249, allocations: 43.77 kB / 0.984 GB, free: 280 kB / 0.9323 GB Notification: Performance of NFFlatten.flatten: time 8.896e-05/0.003338, allocations: 43.86 kB / 0.984 GB, free: 236 kB / 0.9323 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001012/0.003439, allocations: 11.97 kB / 0.984 GB, free: 224 kB / 0.9323 GB Notification: Performance of NFEvalConstants.evaluate: time 7.96e-05/0.003519, allocations: 27.98 kB / 0.984 GB, free: 196 kB / 0.9323 GB Notification: Performance of NFSimplifyModel.simplify: time 4.619e-05/0.003565, allocations: 11.92 kB / 0.984 GB, free: 184 kB / 0.9323 GB Notification: Performance of NFPackage.collectConstants: time 1.594e-05/0.003581, allocations: 4 kB / 0.984 GB, free: 180 kB / 0.9323 GB Notification: Performance of NFFlatten.collectFunctions: time 7.177e-05/0.003652, allocations: 23.97 kB / 0.9841 GB, free: 156 kB / 0.9323 GB Notification: Performance of NFScalarize.scalarize: time 1.981e-05/0.003672, allocations: 11.98 kB / 0.9841 GB, free: 144 kB / 0.9323 GB Notification: Performance of NFVerifyModel.verify: time 2.952e-05/0.003702, allocations: 15.94 kB / 0.9841 GB, free: 128 kB / 0.9323 GB Notification: Performance of NFConvertDAE.convert: time 0.0001353/0.003837, allocations: 67.81 kB / 0.9842 GB, free: 60 kB / 0.9323 GB Notification: Performance of FrontEnd - DAE generated: time 2.084e-06/0.003839, allocations: 0 / 0.9842 GB, free: 60 kB / 0.9323 GB Notification: Performance of FrontEnd: time 1.443e-06/0.003841, allocations: 0 / 0.9842 GB, free: 60 kB / 0.9323 GB Notification: Performance of Transformations before backend: time 5.23e-06/0.003846, allocations: 0 / 0.9842 GB, free: 60 kB / 0.9323 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.0004468/0.004293, allocations: 300.6 kB / 0.9845 GB, free: 15.73 MB / 0.948 GB Notification: Performance of prepare preOptimizeDAE: time 3.712e-05/0.00433, allocations: 11.97 kB / 0.9845 GB, free: 15.72 MB / 0.948 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.788e-05/0.004408, allocations: 8.891 kB / 0.9845 GB, free: 15.71 MB / 0.948 GB Notification: Performance of preOpt evaluateParameters (simulation): time 7.506e-05/0.004483, allocations: 109.7 kB / 0.9846 GB, free: 15.58 MB / 0.948 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.104e-05/0.004494, allocations: 384 / 0.9846 GB, free: 15.58 MB / 0.948 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.104e-05/0.004505, allocations: 12.38 kB / 0.9846 GB, free: 15.57 MB / 0.948 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001499/0.004655, allocations: 62.22 kB / 0.9846 GB, free: 15.5 MB / 0.948 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.095e-06/0.004663, allocations: 192 / 0.9846 GB, free: 15.5 MB / 0.948 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.105e-05/0.004674, allocations: 4.375 kB / 0.9847 GB, free: 15.5 MB / 0.948 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.909e-06/0.004679, allocations: 384 / 0.9847 GB, free: 15.5 MB / 0.948 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 9.809e-05/0.004777, allocations: 43.89 kB / 0.9847 GB, free: 15.46 MB / 0.948 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003553/0.005132, allocations: 228.4 kB / 0.9849 GB, free: 15.2 MB / 0.948 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001094/0.005241, allocations: 54.53 kB / 0.985 GB, free: 15.14 MB / 0.948 GB Notification: Performance of preOpt resolveLoops (simulation): time 5.127e-05/0.005293, allocations: 32.95 kB / 0.985 GB, free: 15.11 MB / 0.948 GB Notification: Performance of preOpt evalFunc (simulation): time 1.86e-05/0.005311, allocations: 0 / 0.985 GB, free: 15.11 MB / 0.948 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000137/0.005448, allocations: 75.33 kB / 0.9851 GB, free: 15.02 MB / 0.948 GB Notification: Performance of pre-optimization done (n=6): time 1.042e-06/0.005449, allocations: 0 / 0.9851 GB, free: 15.02 MB / 0.948 GB Notification: Performance of matching and sorting (n=6): time 0.0002653/0.005715, allocations: 121.6 kB / 0.9852 GB, free: 14.89 MB / 0.948 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.559e-05/0.00575, allocations: 51.41 kB / 0.9852 GB, free: 14.83 MB / 0.948 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.188e-05/0.005812, allocations: 109.8 kB / 0.9853 GB, free: 14.71 MB / 0.948 GB Notification: Performance of collectPreVariables (initialization): time 1.3e-05/0.005825, allocations: 29.7 kB / 0.9854 GB, free: 14.68 MB / 0.948 GB Notification: Performance of collectInitialEqns (initialization): time 3.748e-05/0.005863, allocations: 88.03 kB / 0.9854 GB, free: 14.59 MB / 0.948 GB Notification: Performance of collectInitialBindings (initialization): time 1.89e-05/0.005881, allocations: 19.89 kB / 0.9855 GB, free: 14.57 MB / 0.948 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.249e-05/0.005914, allocations: 21.72 kB / 0.9855 GB, free: 14.54 MB / 0.948 GB Notification: Performance of setup shared object (initialization): time 7.658e-05/0.005991, allocations: 318.8 kB / 0.9858 GB, free: 14.22 MB / 0.948 GB Notification: Performance of preBalanceInitialSystem (initialization): time 5.653e-05/0.006047, allocations: 23.98 kB / 0.9858 GB, free: 14.2 MB / 0.948 GB Notification: Performance of partitionIndependentBlocks (initialization): time 6.689e-05/0.006114, allocations: 64.22 kB / 0.9859 GB, free: 14.12 MB / 0.948 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001174/0.006231, allocations: 88.19 kB / 0.986 GB, free: 14.02 MB / 0.948 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.465e-06/0.006234, allocations: 0 / 0.986 GB, free: 14.02 MB / 0.948 GB Notification: Performance of matching and sorting (n=9) (initialization): time 0.0001519/0.006386, allocations: 109.6 kB / 0.9861 GB, free: 13.91 MB / 0.948 GB Notification: Performance of prepare postOptimizeDAE: time 1.688e-05/0.006403, allocations: 11.94 kB / 0.9861 GB, free: 13.89 MB / 0.948 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.45e-06/0.006408, allocations: 0 / 0.9861 GB, free: 13.89 MB / 0.948 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.416e-05/0.006422, allocations: 4 kB / 0.9861 GB, free: 13.89 MB / 0.948 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.504e-05/0.006497, allocations: 15.92 kB / 0.9861 GB, free: 13.88 MB / 0.948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.136e-05/0.006509, allocations: 4.312 kB / 0.9861 GB, free: 13.87 MB / 0.948 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.335e-05/0.006542, allocations: 7.953 kB / 0.9861 GB, free: 13.86 MB / 0.948 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.709e-06/0.006552, allocations: 8.328 kB / 0.9861 GB, free: 13.86 MB / 0.948 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.347e-05/0.006615, allocations: 121.8 kB / 0.9862 GB, free: 13.73 MB / 0.948 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.985e-06/0.006623, allocations: 11.88 kB / 0.9862 GB, free: 13.71 MB / 0.948 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001718/0.006795, allocations: 106.3 kB / 0.9863 GB, free: 13.61 MB / 0.948 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.144e-06/0.006797, allocations: 0 / 0.9863 GB, free: 13.61 MB / 0.948 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.348e-06/0.006801, allocations: 4 kB / 0.9863 GB, free: 13.6 MB / 0.948 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.347e-06/0.006805, allocations: 0 / 0.9863 GB, free: 13.6 MB / 0.948 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002609/0.007066, allocations: 302 kB / 0.9866 GB, free: 13.27 MB / 0.948 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.734e-06/0.007067, allocations: 4 kB / 0.9866 GB, free: 13.27 MB / 0.948 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.151e-05/0.007099, allocations: 11.98 kB / 0.9867 GB, free: 13.25 MB / 0.948 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.234e-06/0.007101, allocations: 0 / 0.9867 GB, free: 13.25 MB / 0.948 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.252e-06/0.007107, allocations: 0 / 0.9867 GB, free: 13.25 MB / 0.948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.904e-06/0.007109, allocations: 0 / 0.9867 GB, free: 13.25 MB / 0.948 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.062e-06/0.00711, allocations: 0 / 0.9867 GB, free: 13.25 MB / 0.948 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001504/0.007261, allocations: 199.5 kB / 0.9868 GB, free: 13.04 MB / 0.948 GB Notification: Performance of postOpt removeConstants (simulation): time 7.203e-06/0.007268, allocations: 3.953 kB / 0.9868 GB, free: 13.04 MB / 0.948 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.288e-05/0.007281, allocations: 4 kB / 0.9868 GB, free: 13.04 MB / 0.948 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 3.836e-05/0.007319, allocations: 7.984 kB / 0.9869 GB, free: 13.03 MB / 0.948 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.504e-05/0.007354, allocations: 7.984 kB / 0.9869 GB, free: 13.02 MB / 0.948 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.5e-06/0.00736, allocations: 3.938 kB / 0.9869 GB, free: 13.02 MB / 0.948 GB Notification: Performance of sorting global known variables: time 3.124e-05/0.007391, allocations: 91.27 kB / 0.987 GB, free: 12.93 MB / 0.948 GB Notification: Performance of sort global known variables: time 6e-08/0.007391, allocations: 0 / 0.987 GB, free: 12.93 MB / 0.948 GB Notification: Performance of remove unused functions: time 0.0001739/0.007565, allocations: 12 kB / 0.987 GB, free: 12.91 MB / 0.948 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.0001256/0.00769, allocations: 103.8 kB / 0.9871 GB, free: 12.8 MB / 0.948 GB Notification: Performance of simCode: created initialization part: time 0.0001512/0.007842, allocations: 67.89 kB / 0.9871 GB, free: 12.74 MB / 0.948 GB Notification: Performance of simCode: created event and clocks part: time 1.683e-06/0.007843, allocations: 0 / 0.9871 GB, free: 12.74 MB / 0.948 GB Notification: Performance of simCode: created simulation system equations: time 5.756e-05/0.007901, allocations: 31.97 kB / 0.9872 GB, free: 12.71 MB / 0.948 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001965/0.008097, allocations: 8.016 kB / 0.9872 GB, free: 12.7 MB / 0.948 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002829/0.00838, allocations: 162.6 kB / 0.9873 GB, free: 12.51 MB / 0.948 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 5.065e-05/0.008431, allocations: 71.59 kB / 0.9874 GB, free: 12.42 MB / 0.948 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.36e-05/0.008455, allocations: 12.5 kB / 0.9874 GB, free: 12.41 MB / 0.948 GB Notification: Performance of SimCode: time 7.91e-07/0.008455, allocations: 4 kB / 0.9874 GB, free: 12.4 MB / 0.948 GB Notification: Performance of Templates: time 0.001785/0.01024, allocations: 0.9028 MB / 0.9883 GB, free: 11.5 MB / 0.948 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: 6.484505324624479]