Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr IBPSA_latest_IBPSA.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.001669/0.001669, allocations: 115.1 kB / 19.7 MB, free: 2.203 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.002101/0.002101, allocations: 219.2 kB / 23 MB, free: 5.074 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.42/1.42, allocations: 230.6 MB / 256.8 MB, free: 8.047 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/IBPSA master/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IBPSA master/package.mo): time 0.9343/0.9343, allocations: 150 MB / 463.2 MB, free: 10.52 MB / 366.1 MB " [Timeout remaining time 179] Using package IBPSA with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/IBPSA 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: "" <> buildModelFMU(IBPSA.Controls.OBC.CDL.Discrete.Validation.UnitDelay,fileNamePrefix="IBPSA_latest_IBPSA_Controls_OBC_CDL_Discrete_Validation_UnitDelay",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(IBPSA.Controls.OBC.CDL.Discrete.Validation.UnitDelay,fileNamePrefix="IBPSA_latest_IBPSA_Controls_OBC_CDL_Discrete_Validation_UnitDelay",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: IBPSA requested package Modelica of version 4.0.0. Modelica 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001988/0.001988, allocations: 63.12 kB / 0.6413 GB, free: 10.46 MB / 478.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1808/0.1828, allocations: 89.17 MB / 0.7283 GB, free: 1.355 MB / 0.545 GB Notification: Performance of NFInst.instantiate(IBPSA.Controls.OBC.CDL.Discrete.Validation.UnitDelay): time 0.002026/0.1848, allocations: 0.6613 MB / 0.729 GB, free: 0.6953 MB / 0.545 GB Notification: Performance of NFInst.instExpressions: time 0.001735/0.1866, allocations: 1.108 MB / 0.7301 GB, free: 15.57 MB / 0.5606 GB Notification: Performance of NFInst.updateImplicitVariability: time 7.022e-05/0.1866, allocations: 4 kB / 0.7301 GB, free: 15.57 MB / 0.5606 GB Notification: Performance of NFTyping.typeComponents: time 3.775e-05/0.1867, allocations: 3.938 kB / 0.7301 GB, free: 15.57 MB / 0.5606 GB Notification: Performance of NFTyping.typeBindings: time 8.126e-05/0.1867, allocations: 11.88 kB / 0.7301 GB, free: 15.55 MB / 0.5606 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003115/0.1871, allocations: 43.83 kB / 0.7301 GB, free: 15.51 MB / 0.5606 GB Notification: Performance of NFFlatten.flatten: time 9.432e-05/0.1872, allocations: 43.91 kB / 0.7302 GB, free: 15.47 MB / 0.5606 GB Notification: Performance of NFFlatten.resolveConnections: time 9.532e-05/0.1872, allocations: 8 kB / 0.7302 GB, free: 15.46 MB / 0.5606 GB Notification: Performance of NFEvalConstants.evaluate: time 7.241e-05/0.1873, allocations: 23.86 kB / 0.7302 GB, free: 15.44 MB / 0.5606 GB Notification: Performance of NFSimplifyModel.simplify: time 6.227e-05/0.1874, allocations: 27.91 kB / 0.7302 GB, free: 15.41 MB / 0.5606 GB Notification: Performance of NFPackage.collectConstants: time 1.719e-05/0.1874, allocations: 8 kB / 0.7302 GB, free: 15.4 MB / 0.5606 GB Notification: Performance of NFFlatten.collectFunctions: time 7.493e-05/0.1875, allocations: 19.98 kB / 0.7302 GB, free: 15.38 MB / 0.5606 GB Notification: Performance of NFScalarize.scalarize: time 1.8e-05/0.1875, allocations: 7.984 kB / 0.7303 GB, free: 15.38 MB / 0.5606 GB Notification: Performance of NFVerifyModel.verify: time 3.865e-05/0.1875, allocations: 23.88 kB / 0.7303 GB, free: 15.35 MB / 0.5606 GB Notification: Performance of NFConvertDAE.convert: time 0.0001567/0.1877, allocations: 60.06 kB / 0.7303 GB, free: 15.29 MB / 0.5606 GB Notification: Performance of FrontEnd - DAE generated: time 4.198e-06/0.1877, allocations: 0 / 0.7303 GB, free: 15.29 MB / 0.5606 GB Notification: Performance of FrontEnd: time 1.353e-06/0.1877, allocations: 3.938 kB / 0.7303 GB, free: 15.29 MB / 0.5606 GB Notification: Performance of Transformations before backend: time 6.221e-06/0.1877, allocations: 0 / 0.7303 GB, free: 15.29 MB / 0.5606 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.0005459/0.1882, allocations: 286.2 kB / 0.7306 GB, free: 14.98 MB / 0.5606 GB Notification: Performance of prepare preOptimizeDAE: time 4.054e-05/0.1883, allocations: 16.03 kB / 0.7306 GB, free: 14.96 MB / 0.5606 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.135e-05/0.1883, allocations: 30.75 kB / 0.7307 GB, free: 14.92 MB / 0.5606 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.48e-05/0.1884, allocations: 8.922 kB / 0.7307 GB, free: 14.91 MB / 0.5606 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001137/0.1885, allocations: 118.4 kB / 0.7308 GB, free: 14.77 MB / 0.5606 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.068e-05/0.1885, allocations: 4.375 kB / 0.7308 GB, free: 14.77 MB / 0.5606 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.822e-05/0.1886, allocations: 8.359 kB / 0.7308 GB, free: 14.76 MB / 0.5606 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001871/0.1887, allocations: 66.2 kB / 0.7309 GB, free: 14.69 MB / 0.5606 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.025e-05/0.1888, allocations: 3.938 kB / 0.7309 GB, free: 14.69 MB / 0.5606 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.455e-06/0.1888, allocations: 0 / 0.7309 GB, free: 14.69 MB / 0.5606 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.263e-06/0.1888, allocations: 8 kB / 0.7309 GB, free: 14.68 MB / 0.5606 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001651/0.1889, allocations: 35.95 kB / 0.7309 GB, free: 14.64 MB / 0.5606 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004671/0.1894, allocations: 259.8 kB / 0.7311 GB, free: 14.35 MB / 0.5606 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001746/0.1896, allocations: 50.55 kB / 0.7312 GB, free: 14.29 MB / 0.5606 GB Notification: Performance of preOpt resolveLoops (simulation): time 9.259e-05/0.1897, allocations: 28.97 kB / 0.7312 GB, free: 14.26 MB / 0.5606 GB Notification: Performance of preOpt evalFunc (simulation): time 1.773e-05/0.1897, allocations: 0 / 0.7312 GB, free: 14.26 MB / 0.5606 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002186/0.1899, allocations: 71.38 kB / 0.7313 GB, free: 14.18 MB / 0.5606 GB Notification: Performance of pre-optimization done (n=6): time 1.152e-06/0.1899, allocations: 0 / 0.7313 GB, free: 14.18 MB / 0.5606 GB Notification: Performance of matching and sorting (n=6): time 0.0004043/0.1903, allocations: 129.5 kB / 0.7314 GB, free: 14.04 MB / 0.5606 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.868e-05/0.1904, allocations: 59.34 kB / 0.7315 GB, free: 13.97 MB / 0.5606 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.371e-05/0.1905, allocations: 105.8 kB / 0.7316 GB, free: 13.86 MB / 0.5606 GB Notification: Performance of collectPreVariables (initialization): time 2.264e-05/0.1905, allocations: 29.7 kB / 0.7316 GB, free: 13.82 MB / 0.5606 GB Notification: Performance of collectInitialEqns (initialization): time 5.637e-05/0.1905, allocations: 84.14 kB / 0.7317 GB, free: 13.74 MB / 0.5606 GB Notification: Performance of collectInitialBindings (initialization): time 2.558e-05/0.1906, allocations: 15.84 kB / 0.7317 GB, free: 13.72 MB / 0.5606 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.649e-05/0.1906, allocations: 25.7 kB / 0.7317 GB, free: 13.69 MB / 0.5606 GB Notification: Performance of setup shared object (initialization): time 0.0001482/0.1908, allocations: 318.8 kB / 0.732 GB, free: 13.37 MB / 0.5606 GB Notification: Performance of preBalanceInitialSystem (initialization): time 9.709e-05/0.1908, allocations: 31.97 kB / 0.7321 GB, free: 13.34 MB / 0.5606 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001241/0.191, allocations: 60.2 kB / 0.7321 GB, free: 13.27 MB / 0.5606 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002095/0.1912, allocations: 88.2 kB / 0.7322 GB, free: 13.16 MB / 0.5606 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.354e-06/0.1912, allocations: 0 / 0.7322 GB, free: 13.16 MB / 0.5606 GB Notification: Performance of matching and sorting (n=9) (initialization): time 0.0002659/0.1914, allocations: 109.7 kB / 0.7323 GB, free: 13.05 MB / 0.5606 GB Notification: Performance of prepare postOptimizeDAE: time 1.866e-05/0.1915, allocations: 13.88 kB / 0.7323 GB, free: 13.04 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.638e-06/0.1915, allocations: 3.938 kB / 0.7323 GB, free: 13.04 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.817e-05/0.1915, allocations: 0 / 0.7323 GB, free: 13.04 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001082/0.1916, allocations: 19.92 kB / 0.7323 GB, free: 13.02 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.675e-06/0.1916, allocations: 4 kB / 0.7323 GB, free: 13.01 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.958e-05/0.1917, allocations: 7.984 kB / 0.7323 GB, free: 13 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.148e-05/0.1917, allocations: 4 kB / 0.7324 GB, free: 13 MB / 0.5606 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 9.982e-05/0.1918, allocations: 117.8 kB / 0.7325 GB, free: 12.88 MB / 0.5606 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.329e-05/0.1918, allocations: 7.953 kB / 0.7325 GB, free: 12.87 MB / 0.5606 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002686/0.1921, allocations: 106 kB / 0.7326 GB, free: 12.76 MB / 0.5606 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.915e-06/0.1921, allocations: 0 / 0.7326 GB, free: 12.76 MB / 0.5606 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.557e-06/0.1921, allocations: 0 / 0.7326 GB, free: 12.76 MB / 0.5606 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.921e-06/0.1921, allocations: 3.984 kB / 0.7326 GB, free: 12.75 MB / 0.5606 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004361/0.1925, allocations: 325.6 kB / 0.7329 GB, free: 12.39 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.553e-06/0.1925, allocations: 4 kB / 0.7329 GB, free: 12.38 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.642e-05/0.1926, allocations: 7.984 kB / 0.7329 GB, free: 12.38 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.598e-06/0.1926, allocations: 4 kB / 0.7329 GB, free: 12.37 MB / 0.5606 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.268e-06/0.1926, allocations: 4 kB / 0.7329 GB, free: 12.37 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.513e-06/0.1926, allocations: 0 / 0.7329 GB, free: 12.37 MB / 0.5606 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.282e-06/0.1926, allocations: 384 / 0.7329 GB, free: 12.37 MB / 0.5606 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002776/0.1929, allocations: 199.4 kB / 0.7331 GB, free: 12.16 MB / 0.5606 GB Notification: Performance of postOpt removeConstants (simulation): time 1.235e-05/0.1929, allocations: 11.89 kB / 0.7331 GB, free: 12.14 MB / 0.5606 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.793e-05/0.1929, allocations: 4 kB / 0.7331 GB, free: 12.14 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.931e-05/0.193, allocations: 7.984 kB / 0.7331 GB, free: 12.13 MB / 0.5606 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.733e-05/0.193, allocations: 8.109 kB / 0.7331 GB, free: 12.12 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.005e-06/0.193, allocations: 7.938 kB / 0.7331 GB, free: 12.12 MB / 0.5606 GB Notification: Performance of sorting global known variables: time 4.738e-05/0.1931, allocations: 87.22 kB / 0.7332 GB, free: 12.03 MB / 0.5606 GB Notification: Performance of sort global known variables: time 5e-08/0.1931, allocations: 0 / 0.7332 GB, free: 12.03 MB / 0.5606 GB Notification: Performance of remove unused functions: time 0.0002522/0.1933, allocations: 12 kB / 0.7332 GB, free: 12.02 MB / 0.5606 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.0006043/0.1939, allocations: 0.732 MB / 0.7339 GB, free: 11.26 MB / 0.5606 GB Notification: Performance of simCode: created initialization part: time 0.0002528/0.1942, allocations: 68.14 kB / 0.734 GB, free: 11.2 MB / 0.5606 GB Notification: Performance of simCode: created event and clocks part: time 1.633e-06/0.1942, allocations: 0 / 0.734 GB, free: 11.2 MB / 0.5606 GB Notification: Performance of simCode: created simulation system equations: time 0.000102/0.1943, allocations: 27.92 kB / 0.734 GB, free: 11.17 MB / 0.5606 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002613/0.1945, allocations: 17.56 kB / 0.7341 GB, free: 11.15 MB / 0.5606 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001679/0.1962, allocations: 1.409 MB / 0.7354 GB, free: 9.637 MB / 0.5606 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002999/0.1965, allocations: 0.6884 MB / 0.7361 GB, free: 8.922 MB / 0.5606 GB Notification: Performance of simCode: alias equations: time 3.112e-05/0.1966, allocations: 7.984 kB / 0.7361 GB, free: 8.914 MB / 0.5606 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.101e-05/0.1966, allocations: 15.44 kB / 0.7361 GB, free: 8.898 MB / 0.5606 GB Notification: Performance of SimCode: time 2.61e-07/0.1966, allocations: 0 / 0.7361 GB, free: 8.898 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02822/0.2248, allocations: 1.908 MB / 0.738 GB, free: 7.125 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate platform static: time 11.31/11.54, allocations: 2.812 kB / 0.738 GB, free: 7.125 MB / 0.5606 GB " [Timeout remaining time 648] (rm -f IBPSA_latest_IBPSA.Controls.OBC.CDL.Discrete.Validation.UnitDelay.pipe ; mkfifo IBPSA_latest_IBPSA.Controls.OBC.CDL.Discrete.Validation.UnitDelay.pipe ; head -c 1048576 < IBPSA_latest_IBPSA.Controls.OBC.CDL.Discrete.Validation.UnitDelay.pipe >> ../files/IBPSA_latest_IBPSA.Controls.OBC.CDL.Discrete.Validation.UnitDelay.sim & python3 -m fmpy simulate --output-file IBPSA_latest_IBPSA.Controls.OBC.CDL.Discrete.Validation.UnitDelay_res.csv --start-time 0 --stop-time 1 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0004 IBPSA_latest_IBPSA_Controls_OBC_CDL_Discrete_Validation_UnitDelay.fmu > IBPSA_latest_IBPSA.Controls.OBC.CDL.Discrete.Validation.UnitDelay.pipe 2>&1) [Timeout 52.5] [Calling sys.exit(0), Time elapsed: 15.350692570998945] Failed to read output from testmodel.py, exit status != 0: 11.654821488002199 11.679654646 11.487411974 Calling exit ...