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.002135/0.002135, allocations: 88.72 kB / 19.44 MB, free: 356 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.002704/0.002704, allocations: 157.7 kB / 22.75 MB, free: 1.684 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.601/1.601, allocations: 177.1 MB / 203.1 MB, free: 5.598 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.303/3.303, allocations: 429.6 MB / 0.673 GB, free: 3.902 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 5.791e-06/5.791e-06, allocations: 4.766 kB / 0.8776 GB, free: 6.535 MB / 0.8386 GB Notification: Performance of FrontEnd - Absyn->SCode: time 3.514e-05/4.093e-05, allocations: 2.312 kB / 0.8776 GB, free: 6.531 MB / 0.8386 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Discrete.Validation.UnitDelay): time 0.002159/0.0022, allocations: 0.6658 MB / 0.8782 GB, free: 5.895 MB / 0.8386 GB Notification: Performance of NFInst.instExpressions: time 0.001873/0.004073, allocations: 1.088 MB / 0.8793 GB, free: 4.797 MB / 0.8386 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.489e-05/0.004128, allocations: 4 kB / 0.8793 GB, free: 4.793 MB / 0.8386 GB Notification: Performance of NFTyping.typeComponents: time 3.324e-05/0.004161, allocations: 4.531 kB / 0.8793 GB, free: 4.789 MB / 0.8386 GB Notification: Performance of NFTyping.typeBindings: time 7.76e-05/0.004239, allocations: 1.062 kB / 0.8793 GB, free: 4.789 MB / 0.8386 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003353/0.004574, allocations: 47.7 kB / 0.8793 GB, free: 4.742 MB / 0.8386 GB Notification: Performance of NFFlatten.flatten: time 0.0001237/0.004698, allocations: 48.59 kB / 0.8794 GB, free: 4.695 MB / 0.8386 GB Notification: Performance of NFFlatten.resolveConnections: time 8.871e-05/0.004787, allocations: 7.984 kB / 0.8794 GB, free: 4.688 MB / 0.8386 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001119/0.004898, allocations: 33.19 kB / 0.8794 GB, free: 4.656 MB / 0.8386 GB Notification: Performance of NFSimplifyModel.simplify: time 5.036e-05/0.004949, allocations: 11.98 kB / 0.8794 GB, free: 4.645 MB / 0.8386 GB Notification: Performance of NFPackage.collectConstants: time 2.219e-05/0.004971, allocations: 4 kB / 0.8794 GB, free: 4.641 MB / 0.8386 GB Notification: Performance of NFFlatten.collectFunctions: time 8.113e-05/0.005052, allocations: 27.84 kB / 0.8795 GB, free: 4.613 MB / 0.8386 GB Notification: Performance of NFScalarize.scalarize: time 2.698e-05/0.005079, allocations: 12.77 kB / 0.8795 GB, free: 4.602 MB / 0.8386 GB Notification: Performance of NFVerifyModel.verify: time 3.862e-05/0.005118, allocations: 8 kB / 0.8795 GB, free: 4.594 MB / 0.8386 GB Notification: Performance of NFConvertDAE.convert: time 0.0001805/0.005298, allocations: 72.27 kB / 0.8796 GB, free: 4.523 MB / 0.8386 GB Notification: Performance of FrontEnd - DAE generated: time 2.043e-06/0.0053, allocations: 1.094 kB / 0.8796 GB, free: 4.523 MB / 0.8386 GB Notification: Performance of FrontEnd: time 3.486e-06/0.005304, allocations: 4 kB / 0.8796 GB, free: 4.52 MB / 0.8386 GB Notification: Performance of Transformations before backend: time 4.529e-06/0.005308, allocations: 0 / 0.8796 GB, free: 4.52 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.0006328/0.005941, allocations: 291 kB / 0.8798 GB, free: 4.203 MB / 0.8386 GB Notification: Performance of prepare preOptimizeDAE: time 4.296e-05/0.005984, allocations: 8.938 kB / 0.8799 GB, free: 4.195 MB / 0.8386 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001229/0.006107, allocations: 8.938 kB / 0.8799 GB, free: 4.188 MB / 0.8386 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001257/0.006233, allocations: 109.7 kB / 0.88 GB, free: 4.055 MB / 0.8386 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.595e-05/0.006249, allocations: 12.03 kB / 0.88 GB, free: 4.047 MB / 0.8386 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.462e-05/0.006263, allocations: 4.375 kB / 0.88 GB, free: 4.043 MB / 0.8386 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002237/0.006487, allocations: 66.16 kB / 0.88 GB, free: 3.973 MB / 0.8386 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.886e-06/0.006496, allocations: 192 / 0.88 GB, free: 3.973 MB / 0.8386 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.098e-05/0.006507, allocations: 384 / 0.88 GB, free: 3.973 MB / 0.8386 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.418e-06/0.006516, allocations: 4.375 kB / 0.88 GB, free: 3.969 MB / 0.8386 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002178/0.006734, allocations: 43.83 kB / 0.8801 GB, free: 3.926 MB / 0.8386 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005031/0.007237, allocations: 217.2 kB / 0.8803 GB, free: 3.684 MB / 0.8386 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001881/0.007425, allocations: 56.61 kB / 0.8804 GB, free: 3.621 MB / 0.8386 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001106/0.007536, allocations: 32.95 kB / 0.8804 GB, free: 3.586 MB / 0.8386 GB Notification: Performance of preOpt evalFunc (simulation): time 2.386e-05/0.00756, allocations: 0 / 0.8804 GB, free: 3.586 MB / 0.8386 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002504/0.00781, allocations: 75.33 kB / 0.8805 GB, free: 3.5 MB / 0.8386 GB Notification: Performance of pre-optimization done (n=6): time 1.192e-06/0.007811, allocations: 0 / 0.8805 GB, free: 3.5 MB / 0.8386 GB Notification: Performance of matching and sorting (n=6): time 0.0004802/0.008291, allocations: 125.6 kB / 0.8806 GB, free: 3.371 MB / 0.8386 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.296e-05/0.008354, allocations: 55.34 kB / 0.8806 GB, free: 3.305 MB / 0.8386 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001335/0.008488, allocations: 113.8 kB / 0.8807 GB, free: 3.184 MB / 0.8386 GB Notification: Performance of collectPreVariables (initialization): time 2.582e-05/0.008514, allocations: 25.7 kB / 0.8808 GB, free: 3.152 MB / 0.8386 GB Notification: Performance of collectInitialEqns (initialization): time 7.889e-05/0.008593, allocations: 88.12 kB / 0.8808 GB, free: 3.062 MB / 0.8386 GB Notification: Performance of collectInitialBindings (initialization): time 4.077e-05/0.008633, allocations: 23.97 kB / 0.8809 GB, free: 3.039 MB / 0.8386 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.853e-05/0.008692, allocations: 25.72 kB / 0.8809 GB, free: 3.008 MB / 0.8386 GB Notification: Performance of setup shared object (initialization): time 0.0002059/0.008898, allocations: 314.8 kB / 0.8812 GB, free: 2.691 MB / 0.8386 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001247/0.009022, allocations: 27.98 kB / 0.8812 GB, free: 2.664 MB / 0.8386 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001423/0.009165, allocations: 52.27 kB / 0.8813 GB, free: 2.598 MB / 0.8386 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002593/0.009424, allocations: 96.19 kB / 0.8814 GB, free: 2.488 MB / 0.8386 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.444e-06/0.009427, allocations: 0 / 0.8814 GB, free: 2.488 MB / 0.8386 GB Notification: Performance of matching and sorting (n=9) (initialization): time 0.0003519/0.009778, allocations: 117.5 kB / 0.8815 GB, free: 2.367 MB / 0.8386 GB Notification: Performance of prepare postOptimizeDAE: time 1.809e-05/0.009796, allocations: 7.938 kB / 0.8815 GB, free: 2.359 MB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.656e-06/0.009805, allocations: 4 kB / 0.8815 GB, free: 2.355 MB / 0.8386 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.924e-05/0.009824, allocations: 4.156 kB / 0.8815 GB, free: 2.352 MB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001223/0.009947, allocations: 19.92 kB / 0.8815 GB, free: 2.332 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.122e-06/0.009953, allocations: 0 / 0.8815 GB, free: 2.332 MB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.663e-05/0.01004, allocations: 15.89 kB / 0.8815 GB, free: 2.316 MB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.569e-05/0.01006, allocations: 7.984 kB / 0.8815 GB, free: 2.309 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.000111/0.01017, allocations: 117.1 kB / 0.8816 GB, free: 2.188 MB / 0.8386 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.497e-05/0.01019, allocations: 7.938 kB / 0.8816 GB, free: 2.18 MB / 0.8386 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003196/0.01051, allocations: 102 kB / 0.8817 GB, free: 2.07 MB / 0.8386 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.139e-05/0.01052, allocations: 4 kB / 0.8817 GB, free: 2.066 MB / 0.8386 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.234e-06/0.01053, allocations: 4 kB / 0.8818 GB, free: 2.062 MB / 0.8386 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.192e-06/0.01054, allocations: 3.984 kB / 0.8818 GB, free: 2.059 MB / 0.8386 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004974/0.01103, allocations: 294.1 kB / 0.882 GB, free: 1.734 MB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.783e-06/0.01104, allocations: 3.984 kB / 0.882 GB, free: 1.73 MB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.355e-05/0.0111, allocations: 8 kB / 0.882 GB, free: 1.723 MB / 0.8386 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.786e-06/0.01111, allocations: 7.875 kB / 0.8821 GB, free: 1.715 MB / 0.8386 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.565e-06/0.01111, allocations: 0 / 0.8821 GB, free: 1.715 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.989e-06/0.01112, allocations: 4.359 kB / 0.8821 GB, free: 1.711 MB / 0.8386 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.52e-07/0.01112, allocations: 4 kB / 0.8821 GB, free: 1.707 MB / 0.8386 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003685/0.01149, allocations: 195.5 kB / 0.8823 GB, free: 1.5 MB / 0.8386 GB Notification: Performance of postOpt removeConstants (simulation): time 1.173e-05/0.0115, allocations: 3.953 kB / 0.8823 GB, free: 1.496 MB / 0.8386 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.014e-05/0.01152, allocations: 7.984 kB / 0.8823 GB, free: 1.488 MB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.049e-05/0.01161, allocations: 4 kB / 0.8823 GB, free: 1.484 MB / 0.8386 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.226e-05/0.01165, allocations: 3.984 kB / 0.8823 GB, free: 1.48 MB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.126e-05/0.01166, allocations: 8 kB / 0.8823 GB, free: 1.473 MB / 0.8386 GB Notification: Performance of sorting global known variables: time 6.768e-05/0.01173, allocations: 83.58 kB / 0.8824 GB, free: 1.391 MB / 0.8386 GB Notification: Performance of sort global known variables: time 8e-08/0.01173, allocations: 4 kB / 0.8824 GB, free: 1.387 MB / 0.8386 GB Notification: Performance of remove unused functions: time 0.0002655/0.012, allocations: 23.92 kB / 0.8824 GB, free: 1.363 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.0001792/0.01218, allocations: 99.38 kB / 0.8825 GB, free: 1.258 MB / 0.8386 GB Notification: Performance of simCode: created initialization part: time 0.0003035/0.01248, allocations: 63.89 kB / 0.8825 GB, free: 1.195 MB / 0.8386 GB Notification: Performance of simCode: created event and clocks part: time 2.424e-06/0.01248, allocations: 0 / 0.8825 GB, free: 1.195 MB / 0.8386 GB Notification: Performance of simCode: created simulation system equations: time 0.0001254/0.01261, allocations: 32.28 kB / 0.8826 GB, free: 1.164 MB / 0.8386 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002801/0.01289, allocations: 15.88 kB / 0.8826 GB, free: 1.148 MB / 0.8386 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004102/0.0133, allocations: 140.5 kB / 0.8827 GB, free: 0.9844 MB / 0.8386 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 9.886e-05/0.0134, allocations: 67.34 kB / 0.8828 GB, free: 0.8984 MB / 0.8386 GB Notification: Performance of simCode: alias equations: time 3.918e-05/0.01344, allocations: 7.984 kB / 0.8828 GB, free: 0.8906 MB / 0.8386 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.277e-05/0.01347, allocations: 8.5 kB / 0.8828 GB, free: 0.8828 MB / 0.8386 GB Notification: Performance of SimCode: time 5.01e-07/0.01347, allocations: 0 / 0.8828 GB, free: 0.8828 MB / 0.8386 GB Notification: Performance of Templates: time 0.004303/0.01777, allocations: 0.8381 MB / 0.8836 GB, free: 68 kB / 0.8386 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=800 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Validation.UnitDelay.pipe 2>&1) [Timeout 800] 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.482933711959049]