Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_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.001889/0.001889, allocations: 85.48 kB / 19.44 MB, free: 340 kB / 13.93 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.00247/0.00247, allocations: 173.6 kB / 22.76 MB, free: 1.664 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.622/1.622, allocations: 177.1 MB / 203.1 MB, free: 5.617 MB / 186.7 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings master/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings master/package.mo): time 3.376/3.376, allocations: 429.5 MB / 0.6729 GB, free: 4.008 MB / 0.6355 GB " [Timeout remaining time 176] Using package Buildings with version 14.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings master/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_latest_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_latest_Buildings.Controls.OBC.CDL.Discrete.Validation.UnitDelay") [Timeout 300] "Notification: Performance of FrontEnd - loaded program: time 1.984e-06/1.984e-06, allocations: 0 / 0.8774 GB, free: 6.684 MB / 0.8386 GB Notification: Performance of FrontEnd - Absyn->SCode: time 2.659e-05/2.857e-05, allocations: 2.312 kB / 0.8774 GB, free: 6.68 MB / 0.8386 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Discrete.Validation.UnitDelay): time 0.001957/0.001986, allocations: 0.6732 MB / 0.8781 GB, free: 6.035 MB / 0.8386 GB Notification: Performance of NFInst.instExpressions: time 0.001692/0.003678, allocations: 1.094 MB / 0.8792 GB, free: 4.93 MB / 0.8386 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.423e-05/0.003722, allocations: 1.406 kB / 0.8792 GB, free: 4.93 MB / 0.8386 GB Notification: Performance of NFTyping.typeComponents: time 2.571e-05/0.003747, allocations: 3.938 kB / 0.8792 GB, free: 4.926 MB / 0.8386 GB Notification: Performance of NFTyping.typeBindings: time 7.98e-05/0.003827, allocations: 11.92 kB / 0.8792 GB, free: 4.914 MB / 0.8386 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002869/0.004114, allocations: 48.36 kB / 0.8792 GB, free: 4.867 MB / 0.8386 GB Notification: Performance of NFFlatten.flatten: time 0.0001055/0.00422, allocations: 39.86 kB / 0.8793 GB, free: 4.828 MB / 0.8386 GB Notification: Performance of NFFlatten.resolveConnections: time 8.877e-05/0.004308, allocations: 16.72 kB / 0.8793 GB, free: 4.812 MB / 0.8386 GB Notification: Performance of NFEvalConstants.evaluate: time 8.562e-05/0.004394, allocations: 23.98 kB / 0.8793 GB, free: 4.789 MB / 0.8386 GB Notification: Performance of NFSimplifyModel.simplify: time 5.822e-05/0.004452, allocations: 17.02 kB / 0.8793 GB, free: 4.773 MB / 0.8386 GB Notification: Performance of NFPackage.collectConstants: time 1.858e-05/0.004471, allocations: 4 kB / 0.8793 GB, free: 4.77 MB / 0.8386 GB Notification: Performance of NFFlatten.collectFunctions: time 7.619e-05/0.004547, allocations: 27.91 kB / 0.8793 GB, free: 4.742 MB / 0.8386 GB Notification: Performance of NFScalarize.scalarize: time 2.477e-05/0.004572, allocations: 12.64 kB / 0.8793 GB, free: 4.73 MB / 0.8386 GB Notification: Performance of NFVerifyModel.verify: time 3.404e-05/0.004606, allocations: 13.19 kB / 0.8794 GB, free: 4.719 MB / 0.8386 GB Notification: Performance of NFConvertDAE.convert: time 0.0001579/0.004764, allocations: 67.77 kB / 0.8794 GB, free: 4.652 MB / 0.8386 GB Notification: Performance of FrontEnd - DAE generated: time 2.865e-06/0.004767, allocations: 0 / 0.8794 GB, free: 4.652 MB / 0.8386 GB Notification: Performance of FrontEnd: time 1.263e-06/0.004768, allocations: 0 / 0.8794 GB, free: 4.652 MB / 0.8386 GB Notification: Performance of Transformations before backend: time 4.578e-06/0.004772, allocations: 4.875 kB / 0.8794 GB, free: 4.648 MB / 0.8386 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.0005862/0.005359, allocations: 388.1 kB / 0.8798 GB, free: 4.23 MB / 0.8386 GB Notification: Performance of prepare preOptimizeDAE: time 4.475e-05/0.005403, allocations: 13.38 kB / 0.8798 GB, free: 4.219 MB / 0.8386 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001052/0.005509, allocations: 4.938 kB / 0.8798 GB, free: 4.215 MB / 0.8386 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001335/0.005642, allocations: 124.5 kB / 0.8799 GB, free: 4.066 MB / 0.8386 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.314e-05/0.005655, allocations: 3.812 kB / 0.8799 GB, free: 4.066 MB / 0.8386 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.238e-05/0.005668, allocations: 8.375 kB / 0.8799 GB, free: 4.059 MB / 0.8386 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001722/0.00584, allocations: 58.17 kB / 0.88 GB, free: 3.996 MB / 0.8386 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.887e-06/0.005849, allocations: 192 / 0.88 GB, free: 3.996 MB / 0.8386 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.16e-05/0.00586, allocations: 4.375 kB / 0.88 GB, free: 3.992 MB / 0.8386 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.158e-06/0.005864, allocations: 384 / 0.88 GB, free: 3.992 MB / 0.8386 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001348/0.005999, allocations: 31.92 kB / 0.88 GB, free: 3.961 MB / 0.8386 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005251/0.006524, allocations: 279.8 kB / 0.8803 GB, free: 3.652 MB / 0.8386 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000153/0.006677, allocations: 56.05 kB / 0.8804 GB, free: 3.586 MB / 0.8386 GB Notification: Performance of preOpt resolveLoops (simulation): time 7.783e-05/0.006755, allocations: 28.3 kB / 0.8804 GB, free: 3.555 MB / 0.8386 GB Notification: Performance of preOpt evalFunc (simulation): time 2.253e-05/0.006778, allocations: 0 / 0.8804 GB, free: 3.555 MB / 0.8386 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001621/0.00694, allocations: 78.48 kB / 0.8805 GB, free: 3.465 MB / 0.8386 GB Notification: Performance of pre-optimization done (n=6): time 1.132e-06/0.006941, allocations: 0 / 0.8805 GB, free: 3.465 MB / 0.8386 GB Notification: Performance of matching and sorting (n=6): time 0.000359/0.0073, allocations: 106.8 kB / 0.8806 GB, free: 3.355 MB / 0.8386 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.447e-05/0.007354, allocations: 59.39 kB / 0.8806 GB, free: 3.285 MB / 0.8386 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003668/0.007721, allocations: 169.9 kB / 0.8808 GB, free: 3.102 MB / 0.8386 GB Notification: Performance of collectPreVariables (initialization): time 2.671e-05/0.007748, allocations: 33.7 kB / 0.8808 GB, free: 3.062 MB / 0.8386 GB Notification: Performance of collectInitialEqns (initialization): time 8.554e-05/0.007833, allocations: 130.9 kB / 0.8809 GB, free: 2.93 MB / 0.8386 GB Notification: Performance of collectInitialBindings (initialization): time 2.565e-05/0.007859, allocations: 15.97 kB / 0.881 GB, free: 2.914 MB / 0.8386 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.106e-05/0.00792, allocations: 35.36 kB / 0.881 GB, free: 2.871 MB / 0.8386 GB Notification: Performance of setup shared object (initialization): time 0.0002636/0.008184, allocations: 0.4884 MB / 0.8815 GB, free: 2.371 MB / 0.8386 GB Notification: Performance of preBalanceInitialSystem (initialization): time 8.485e-05/0.008269, allocations: 19.98 kB / 0.8815 GB, free: 2.352 MB / 0.8386 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000134/0.008403, allocations: 66.42 kB / 0.8815 GB, free: 2.266 MB / 0.8386 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001934/0.008596, allocations: 94.34 kB / 0.8816 GB, free: 2.152 MB / 0.8386 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.884e-06/0.008598, allocations: 0 / 0.8816 GB, free: 2.152 MB / 0.8386 GB Notification: Performance of matching and sorting (n=9) (initialization): time 0.0002718/0.00887, allocations: 105.5 kB / 0.8817 GB, free: 2.043 MB / 0.8386 GB Notification: Performance of prepare postOptimizeDAE: time 2.256e-05/0.008892, allocations: 14.44 kB / 0.8818 GB, free: 2.031 MB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.939e-06/0.008897, allocations: 0 / 0.8818 GB, free: 2.031 MB / 0.8386 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.53e-05/0.008912, allocations: 0 / 0.8818 GB, free: 2.031 MB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001176/0.00903, allocations: 32.27 kB / 0.8818 GB, free: 2 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.48e-06/0.009036, allocations: 0 / 0.8818 GB, free: 2 MB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.121e-05/0.009097, allocations: 15.89 kB / 0.8818 GB, free: 1.984 MB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.273e-05/0.009109, allocations: 4 kB / 0.8818 GB, free: 1.98 MB / 0.8386 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.0001414/0.009251, allocations: 168.5 kB / 0.882 GB, free: 1.805 MB / 0.8386 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.208e-05/0.009273, allocations: 11.94 kB / 0.882 GB, free: 1.793 MB / 0.8386 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002345/0.009507, allocations: 86.05 kB / 0.8821 GB, free: 1.699 MB / 0.8386 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.662e-06/0.009514, allocations: 4 kB / 0.8821 GB, free: 1.695 MB / 0.8386 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.717e-06/0.009518, allocations: 0 / 0.8821 GB, free: 1.695 MB / 0.8386 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.885e-06/0.009521, allocations: 0 / 0.8821 GB, free: 1.695 MB / 0.8386 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004431/0.009964, allocations: 345.4 kB / 0.8824 GB, free: 1.316 MB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.388e-06/0.009968, allocations: 3.984 kB / 0.8824 GB, free: 1.312 MB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.089e-05/0.01002, allocations: 11.94 kB / 0.8824 GB, free: 1.301 MB / 0.8386 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.054e-06/0.01002, allocations: 0 / 0.8824 GB, free: 1.301 MB / 0.8386 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.925e-06/0.01003, allocations: 0 / 0.8824 GB, free: 1.301 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.192e-06/0.01003, allocations: 0 / 0.8824 GB, free: 1.301 MB / 0.8386 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.002e-06/0.01003, allocations: 0 / 0.8824 GB, free: 1.301 MB / 0.8386 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003111/0.01034, allocations: 239.8 kB / 0.8826 GB, free: 1.047 MB / 0.8386 GB Notification: Performance of postOpt removeConstants (simulation): time 1.216e-05/0.01035, allocations: 7.953 kB / 0.8826 GB, free: 1.039 MB / 0.8386 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.561e-05/0.01037, allocations: 4 kB / 0.8826 GB, free: 1.035 MB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.928e-05/0.01044, allocations: 4 kB / 0.8826 GB, free: 1.031 MB / 0.8386 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.195e-05/0.01048, allocations: 3.984 kB / 0.8827 GB, free: 1.027 MB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.122e-05/0.01049, allocations: 8 kB / 0.8827 GB, free: 1.02 MB / 0.8386 GB Notification: Performance of sorting global known variables: time 7.951e-05/0.01057, allocations: 123.2 kB / 0.8828 GB, free: 0.8984 MB / 0.8386 GB Notification: Performance of sort global known variables: time 6e-08/0.01057, allocations: 0 / 0.8828 GB, free: 0.8984 MB / 0.8386 GB Notification: Performance of remove unused functions: time 0.0002672/0.01084, allocations: 23.92 kB / 0.8828 GB, free: 0.875 MB / 0.8386 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.0001857/0.01102, allocations: 99.38 kB / 0.8829 GB, free: 0.7695 MB / 0.8386 GB Notification: Performance of simCode: created initialization part: time 0.0002522/0.01128, allocations: 75.72 kB / 0.883 GB, free: 0.6914 MB / 0.8386 GB Notification: Performance of simCode: created event and clocks part: time 1.763e-06/0.01128, allocations: 0 / 0.883 GB, free: 0.6914 MB / 0.8386 GB Notification: Performance of simCode: created simulation system equations: time 9.793e-05/0.01138, allocations: 35.67 kB / 0.883 GB, free: 0.6523 MB / 0.8386 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002632/0.01164, allocations: 15.92 kB / 0.883 GB, free: 0.6367 MB / 0.8386 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003682/0.01201, allocations: 138.2 kB / 0.8831 GB, free: 484 kB / 0.8386 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 9.042e-05/0.0121, allocations: 71.33 kB / 0.8832 GB, free: 392 kB / 0.8386 GB Notification: Performance of simCode: alias equations: time 3.227e-05/0.01213, allocations: 8.312 kB / 0.8832 GB, free: 384 kB / 0.8386 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.916e-05/0.01216, allocations: 8.5 kB / 0.8832 GB, free: 376 kB / 0.8386 GB Notification: Performance of SimCode: time 5.72e-07/0.01216, allocations: 7.938 kB / 0.8832 GB, free: 368 kB / 0.8386 GB Notification: Performance of Templates: time 0.004216/0.01638, allocations: 0.8497 MB / 0.8841 GB, free: 15.53 MB / 0.8542 GB " [Timeout remaining time 300] make -j1 -f Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Validation.UnitDelay.makefile [Timeout 300] (rm -f Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Validation.UnitDelay.pipe ; mkfifo Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Validation.UnitDelay.pipe ; head -c 1048576 < Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Validation.UnitDelay.pipe >> ../files/Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Validation.UnitDelay.sim & ./Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Validation.UnitDelay -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Validation.UnitDelay.pipe 2>&1) [Timeout 240] diffSimulationResults("Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Validation.UnitDelay_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Controls_OBC_CDL_Discrete_Validation_UnitDelay.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_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.632178580970503]