Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_11_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.001679/0.001679, allocations: 80.41 kB / 20.23 MB, free: 4.199 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.002157/0.002157, allocations: 161.7 kB / 23.55 MB, free: 0.8906 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.503/1.503, allocations: 177.1 MB / 203.9 MB, free: 5.582 MB / 186.7 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.2-maint.11.x/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.2-maint.11.x/package.mo): time 2.79/2.79, allocations: 359 MB / 0.6048 GB, free: 10.95 MB / 0.573 GB " [Timeout remaining time 176] Using package Buildings with version 11.1.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.2-maint.11.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_11_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_11_Buildings.Controls.OBC.CDL.Discrete.Validation.UnitDelay") [Timeout 300] "Notification: Performance of FrontEnd - loaded program: time 2.815e-06/2.815e-06, allocations: 0.6562 kB / 0.7864 GB, free: 12.83 MB / 0.7448 GB Notification: Performance of FrontEnd - Absyn->SCode: time 3.306e-05/3.588e-05, allocations: 2.312 kB / 0.7864 GB, free: 12.83 MB / 0.7448 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Discrete.Validation.UnitDelay): time 0.002083/0.002119, allocations: 0.6731 MB / 0.787 GB, free: 12.17 MB / 0.7448 GB Notification: Performance of NFInst.instExpressions: time 0.001821/0.003941, allocations: 1.078 MB / 0.7881 GB, free: 11.08 MB / 0.7448 GB Notification: Performance of NFInst.updateImplicitVariability: time 6.422e-05/0.004005, allocations: 0 / 0.7881 GB, free: 11.08 MB / 0.7448 GB Notification: Performance of NFTyping.typeComponents: time 3.263e-05/0.004037, allocations: 5 kB / 0.7881 GB, free: 11.08 MB / 0.7448 GB Notification: Performance of NFTyping.typeBindings: time 7.791e-05/0.004115, allocations: 7.938 kB / 0.7881 GB, free: 11.07 MB / 0.7448 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003301/0.004445, allocations: 44.95 kB / 0.7881 GB, free: 11.03 MB / 0.7448 GB Notification: Performance of NFFlatten.flatten: time 0.0002689/0.004714, allocations: 43.86 kB / 0.7882 GB, free: 10.98 MB / 0.7448 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001046/0.004819, allocations: 7.984 kB / 0.7882 GB, free: 10.98 MB / 0.7448 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001034/0.004922, allocations: 29.75 kB / 0.7882 GB, free: 10.95 MB / 0.7448 GB Notification: Performance of NFSimplifyModel.simplify: time 5.409e-05/0.004976, allocations: 11.92 kB / 0.7882 GB, free: 10.94 MB / 0.7448 GB Notification: Performance of NFPackage.collectConstants: time 1.855e-05/0.004995, allocations: 4 kB / 0.7882 GB, free: 10.93 MB / 0.7448 GB Notification: Performance of NFFlatten.collectFunctions: time 8.115e-05/0.005076, allocations: 19.98 kB / 0.7882 GB, free: 10.91 MB / 0.7448 GB Notification: Performance of NFScalarize.scalarize: time 2.599e-05/0.005102, allocations: 11.97 kB / 0.7882 GB, free: 10.9 MB / 0.7448 GB Notification: Performance of NFVerifyModel.verify: time 4.175e-05/0.005144, allocations: 16.75 kB / 0.7883 GB, free: 10.89 MB / 0.7448 GB Notification: Performance of NFConvertDAE.convert: time 0.0001676/0.005311, allocations: 59.78 kB / 0.7883 GB, free: 10.83 MB / 0.7448 GB Notification: Performance of FrontEnd - DAE generated: time 3.667e-06/0.005315, allocations: 0.6875 kB / 0.7883 GB, free: 10.83 MB / 0.7448 GB Notification: Performance of FrontEnd: time 1.122e-06/0.005316, allocations: 0 / 0.7883 GB, free: 10.83 MB / 0.7448 GB Notification: Performance of Transformations before backend: time 6.271e-06/0.005323, allocations: 1.344 kB / 0.7883 GB, free: 10.83 MB / 0.7448 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 6 * Number of variables: 6 Notification: Performance of Generate backend data structure: time 0.000658/0.005981, allocations: 286.1 kB / 0.7886 GB, free: 10.52 MB / 0.7448 GB Notification: Performance of prepare preOptimizeDAE: time 4.612e-05/0.006027, allocations: 8.031 kB / 0.7886 GB, free: 10.51 MB / 0.7448 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001689/0.006196, allocations: 18.17 kB / 0.7886 GB, free: 10.49 MB / 0.7448 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001764/0.006372, allocations: 109.8 kB / 0.7887 GB, free: 10.36 MB / 0.7448 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.925e-05/0.006391, allocations: 4.375 kB / 0.7887 GB, free: 10.36 MB / 0.7448 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.693e-05/0.006408, allocations: 1.438 kB / 0.7887 GB, free: 10.36 MB / 0.7448 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006152/0.007023, allocations: 62.17 kB / 0.7888 GB, free: 10.29 MB / 0.7448 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.205e-05/0.007035, allocations: 1.594 kB / 0.7888 GB, free: 10.29 MB / 0.7448 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.04e-05/0.007056, allocations: 8.359 kB / 0.7888 GB, free: 10.28 MB / 0.7448 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.6e-06/0.007061, allocations: 384 / 0.7888 GB, free: 10.28 MB / 0.7448 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003198/0.007381, allocations: 41.55 kB / 0.7888 GB, free: 10.24 MB / 0.7448 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006364/0.008018, allocations: 216.6 kB / 0.789 GB, free: 10 MB / 0.7448 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002051/0.008223, allocations: 44.16 kB / 0.7891 GB, free: 9.949 MB / 0.7448 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001623/0.008385, allocations: 28.86 kB / 0.7891 GB, free: 9.918 MB / 0.7448 GB Notification: Performance of preOpt evalFunc (simulation): time 2.737e-05/0.008412, allocations: 4 kB / 0.7891 GB, free: 9.914 MB / 0.7448 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003273/0.00874, allocations: 68.95 kB / 0.7892 GB, free: 9.836 MB / 0.7448 GB Notification: Performance of pre-optimization done (n=5): time 1.583e-06/0.008741, allocations: 0 / 0.7892 GB, free: 9.836 MB / 0.7448 GB Notification: Performance of matching and sorting (n=5): time 0.0006455/0.009387, allocations: 108.2 kB / 0.7893 GB, free: 9.727 MB / 0.7448 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.47e-05/0.009462, allocations: 59.34 kB / 0.7893 GB, free: 9.656 MB / 0.7448 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001472/0.009609, allocations: 105.8 kB / 0.7894 GB, free: 9.543 MB / 0.7448 GB Notification: Performance of collectPreVariables (initialization): time 3.511e-05/0.009644, allocations: 25.7 kB / 0.7895 GB, free: 9.512 MB / 0.7448 GB Notification: Performance of collectInitialEqns (initialization): time 0.000101/0.009745, allocations: 104 kB / 0.7896 GB, free: 9.406 MB / 0.7448 GB Notification: Performance of collectInitialBindings (initialization): time 3.114e-05/0.009776, allocations: 7.953 kB / 0.7896 GB, free: 9.398 MB / 0.7448 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.659e-05/0.009853, allocations: 26.39 kB / 0.7896 GB, free: 9.367 MB / 0.7448 GB Notification: Performance of setup shared object (initialization): time 0.0002756/0.01013, allocations: 310.8 kB / 0.7899 GB, free: 9.055 MB / 0.7448 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001688/0.0103, allocations: 25.88 kB / 0.7899 GB, free: 9.031 MB / 0.7448 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000189/0.01049, allocations: 51.72 kB / 0.79 GB, free: 8.969 MB / 0.7448 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003168/0.0108, allocations: 73.88 kB / 0.79 GB, free: 8.887 MB / 0.7448 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.307e-06/0.01081, allocations: 0 / 0.79 GB, free: 8.887 MB / 0.7448 GB Notification: Performance of matching and sorting (n=7) (initialization): time 0.0004507/0.01126, allocations: 103.3 kB / 0.7901 GB, free: 8.781 MB / 0.7448 GB Notification: Performance of prepare postOptimizeDAE: time 2.908e-05/0.01129, allocations: 7.938 kB / 0.7902 GB, free: 8.773 MB / 0.7448 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.674e-06/0.01129, allocations: 4.5 kB / 0.7902 GB, free: 8.77 MB / 0.7448 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.405e-05/0.01132, allocations: 1.031 kB / 0.7902 GB, free: 8.77 MB / 0.7448 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001707/0.01149, allocations: 23.92 kB / 0.7902 GB, free: 8.746 MB / 0.7448 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.384e-06/0.0115, allocations: 0.75 kB / 0.7902 GB, free: 8.746 MB / 0.7448 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001092/0.01161, allocations: 4 kB / 0.7902 GB, free: 8.742 MB / 0.7448 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.854e-05/0.01163, allocations: 18.03 kB / 0.7902 GB, free: 8.727 MB / 0.7448 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 4 * Number of states: 0 () * Number of discrete variables: 4 (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 (7): * Single equations (assignments): 7 * 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.0001931/0.01183, allocations: 113.8 kB / 0.7903 GB, free: 8.605 MB / 0.7448 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.348e-05/0.01187, allocations: 11.89 kB / 0.7903 GB, free: 8.594 MB / 0.7448 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004694/0.01234, allocations: 99.73 kB / 0.7904 GB, free: 8.496 MB / 0.7448 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.128e-06/0.01234, allocations: 0 / 0.7904 GB, free: 8.496 MB / 0.7448 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.706e-06/0.01235, allocations: 0 / 0.7904 GB, free: 8.496 MB / 0.7448 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.47e-06/0.01236, allocations: 0 / 0.7904 GB, free: 8.496 MB / 0.7448 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007175/0.01308, allocations: 282.7 kB / 0.7907 GB, free: 8.184 MB / 0.7448 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.993e-06/0.01308, allocations: 4.531 kB / 0.7907 GB, free: 8.18 MB / 0.7448 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.57e-05/0.01317, allocations: 8.703 kB / 0.7907 GB, free: 8.172 MB / 0.7448 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.957e-06/0.01317, allocations: 0 / 0.7907 GB, free: 8.172 MB / 0.7448 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.282e-05/0.01318, allocations: 4.469 kB / 0.7907 GB, free: 8.168 MB / 0.7448 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.655e-06/0.01319, allocations: 5.5 kB / 0.7907 GB, free: 8.164 MB / 0.7448 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.734e-06/0.01319, allocations: 0 / 0.7907 GB, free: 8.164 MB / 0.7448 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005014/0.01369, allocations: 184.3 kB / 0.7909 GB, free: 7.969 MB / 0.7448 GB Notification: Performance of postOpt removeConstants (simulation): time 1.592e-05/0.01371, allocations: 0 / 0.7909 GB, free: 7.969 MB / 0.7448 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.136e-05/0.01374, allocations: 7.984 kB / 0.7909 GB, free: 7.961 MB / 0.7448 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000127/0.01386, allocations: 4.844 kB / 0.7909 GB, free: 7.957 MB / 0.7448 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.243e-05/0.01396, allocations: 7.984 kB / 0.7909 GB, free: 7.949 MB / 0.7448 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.338e-06/0.01397, allocations: 1.344 kB / 0.7909 GB, free: 7.949 MB / 0.7448 GB Notification: Performance of sorting global known variables: time 9.874e-05/0.01407, allocations: 83.28 kB / 0.791 GB, free: 7.867 MB / 0.7448 GB Notification: Performance of sort global known variables: time 1.1e-07/0.01407, allocations: 0 / 0.791 GB, free: 7.867 MB / 0.7448 GB Notification: Performance of remove unused functions: time 0.0004515/0.01452, allocations: 12.56 kB / 0.791 GB, free: 7.855 MB / 0.7448 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 3 (unitDelay1.sampleTrigger,$whenCondition1,unitDelay1.y) * Number of discrete states: 1 (unitDelay1.u) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (5): * Single equations (assignments): 4 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 1 * 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.0003079/0.01482, allocations: 103.9 kB / 0.7911 GB, free: 7.746 MB / 0.7448 GB Notification: Performance of simCode: created initialization part: time 0.000387/0.01521, allocations: 57.7 kB / 0.7911 GB, free: 7.691 MB / 0.7448 GB Notification: Performance of simCode: created event and clocks part: time 2.835e-06/0.01521, allocations: 0 / 0.7911 GB, free: 7.691 MB / 0.7448 GB Notification: Performance of simCode: created simulation system equations: time 0.0001616/0.01538, allocations: 32.78 kB / 0.7912 GB, free: 7.66 MB / 0.7448 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004629/0.01584, allocations: 16.95 kB / 0.7912 GB, free: 7.648 MB / 0.7448 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006366/0.01648, allocations: 132.8 kB / 0.7913 GB, free: 7.492 MB / 0.7448 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002867/0.01676, allocations: 71.33 kB / 0.7914 GB, free: 7.402 MB / 0.7448 GB Notification: Performance of simCode: alias equations: time 5.364e-05/0.01682, allocations: 4 kB / 0.7914 GB, free: 7.398 MB / 0.7448 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.189e-05/0.01686, allocations: 8.5 kB / 0.7914 GB, free: 7.391 MB / 0.7448 GB Notification: Performance of SimCode: time 6.01e-07/0.01686, allocations: 0 / 0.7914 GB, free: 7.391 MB / 0.7448 GB Notification: Performance of Templates: time 0.005337/0.0222, allocations: 0.8106 MB / 0.7922 GB, free: 6.613 MB / 0.7448 GB " [Timeout remaining time 300] make -j1 -f Buildings_11_Buildings.Controls.OBC.CDL.Discrete.Validation.UnitDelay.makefile [Timeout 300] (rm -f Buildings_11_Buildings.Controls.OBC.CDL.Discrete.Validation.UnitDelay.pipe ; mkfifo Buildings_11_Buildings.Controls.OBC.CDL.Discrete.Validation.UnitDelay.pipe ; head -c 1048576 < Buildings_11_Buildings.Controls.OBC.CDL.Discrete.Validation.UnitDelay.pipe >> ../files/Buildings_11_Buildings.Controls.OBC.CDL.Discrete.Validation.UnitDelay.sim & ./Buildings_11_Buildings.Controls.OBC.CDL.Discrete.Validation.UnitDelay -abortSlowSimulation -alarm=400 -emit_protected -lv LOG_STATS > Buildings_11_Buildings.Controls.OBC.CDL.Discrete.Validation.UnitDelay.pipe 2>&1) [Timeout 400] diffSimulationResults("Buildings_11_Buildings.Controls.OBC.CDL.Discrete.Validation.UnitDelay_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_11.x/Buildings_Controls_OBC_CDL_Discrete_Validation_UnitDelay.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_11_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: 7.797538944054395]