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.001404/0.001404, allocations: 100.3 kB / 19.69 MB, free: 1.805 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.00149/0.00149, allocations: 213.5 kB / 22.99 MB, free: 4.605 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.533/1.533, allocations: 230.6 MB / 256.8 MB, free: 7.785 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.9765/0.9765, allocations: 149.9 MB / 463 MB, free: 10.34 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.002344/0.002344, allocations: 62.41 kB / 0.6411 GB, free: 10.11 MB / 478.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1865/0.1889, allocations: 89.18 MB / 0.7281 GB, free: 1.008 MB / 0.545 GB Notification: Performance of NFInst.instantiate(IBPSA.Controls.OBC.CDL.Discrete.Validation.UnitDelay): time 0.002074/0.1909, allocations: 0.6504 MB / 0.7288 GB, free: 368 kB / 0.545 GB Notification: Performance of NFInst.instExpressions: time 0.001677/0.1926, allocations: 1.081 MB / 0.7298 GB, free: 15.27 MB / 0.5606 GB Notification: Performance of NFInst.updateImplicitVariability: time 6.569e-05/0.1927, allocations: 4 kB / 0.7298 GB, free: 15.26 MB / 0.5606 GB Notification: Performance of NFTyping.typeComponents: time 3.722e-05/0.1927, allocations: 7.875 kB / 0.7298 GB, free: 15.25 MB / 0.5606 GB Notification: Performance of NFTyping.typeBindings: time 8.211e-05/0.1928, allocations: 3.938 kB / 0.7299 GB, free: 15.25 MB / 0.5606 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003734/0.1932, allocations: 47.83 kB / 0.7299 GB, free: 15.2 MB / 0.5606 GB Notification: Performance of NFFlatten.flatten: time 0.0001181/0.1933, allocations: 43.84 kB / 0.7299 GB, free: 15.16 MB / 0.5606 GB Notification: Performance of NFFlatten.resolveConnections: time 9.781e-05/0.1934, allocations: 8 kB / 0.7299 GB, free: 15.15 MB / 0.5606 GB Notification: Performance of NFEvalConstants.evaluate: time 8.216e-05/0.1935, allocations: 19.92 kB / 0.73 GB, free: 15.13 MB / 0.5606 GB Notification: Performance of NFSimplifyModel.simplify: time 5.571e-05/0.1935, allocations: 23.92 kB / 0.73 GB, free: 15.11 MB / 0.5606 GB Notification: Performance of NFPackage.collectConstants: time 1.715e-05/0.1935, allocations: 4 kB / 0.73 GB, free: 15.11 MB / 0.5606 GB Notification: Performance of NFFlatten.collectFunctions: time 8.089e-05/0.1936, allocations: 27.91 kB / 0.73 GB, free: 15.08 MB / 0.5606 GB Notification: Performance of NFScalarize.scalarize: time 2.455e-05/0.1936, allocations: 7.984 kB / 0.73 GB, free: 15.07 MB / 0.5606 GB Notification: Performance of NFVerifyModel.verify: time 4.369e-05/0.1937, allocations: 23.88 kB / 0.73 GB, free: 15.05 MB / 0.5606 GB Notification: Performance of NFConvertDAE.convert: time 0.0001557/0.1938, allocations: 60.06 kB / 0.7301 GB, free: 14.99 MB / 0.5606 GB Notification: Performance of FrontEnd - DAE generated: time 4.809e-06/0.1938, allocations: 0 / 0.7301 GB, free: 14.99 MB / 0.5606 GB Notification: Performance of FrontEnd: time 1.783e-06/0.1938, allocations: 0 / 0.7301 GB, free: 14.99 MB / 0.5606 GB Notification: Performance of Transformations before backend: time 6.463e-06/0.1939, allocations: 0 / 0.7301 GB, free: 14.99 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.0005513/0.1944, allocations: 282.2 kB / 0.7304 GB, free: 14.68 MB / 0.5606 GB Notification: Performance of prepare preOptimizeDAE: time 4.428e-05/0.1945, allocations: 16.03 kB / 0.7304 GB, free: 14.66 MB / 0.5606 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.158e-05/0.1945, allocations: 34.75 kB / 0.7304 GB, free: 14.62 MB / 0.5606 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.414e-05/0.1946, allocations: 8.922 kB / 0.7304 GB, free: 14.61 MB / 0.5606 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001259/0.1947, allocations: 118.4 kB / 0.7305 GB, free: 14.47 MB / 0.5606 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.425e-05/0.1947, allocations: 384 / 0.7305 GB, free: 14.47 MB / 0.5606 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.667e-05/0.1948, allocations: 8.375 kB / 0.7306 GB, free: 14.46 MB / 0.5606 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002079/0.195, allocations: 58.22 kB / 0.7306 GB, free: 14.4 MB / 0.5606 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.795e-05/0.195, allocations: 11.94 kB / 0.7306 GB, free: 14.39 MB / 0.5606 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.2e-05/0.195, allocations: 7.938 kB / 0.7306 GB, free: 14.38 MB / 0.5606 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.338e-06/0.195, allocations: 0 / 0.7306 GB, free: 14.38 MB / 0.5606 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001829/0.1952, allocations: 39.97 kB / 0.7307 GB, free: 14.34 MB / 0.5606 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004992/0.1957, allocations: 251.8 kB / 0.7309 GB, free: 14.05 MB / 0.5606 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001742/0.1959, allocations: 50.55 kB / 0.731 GB, free: 14 MB / 0.5606 GB Notification: Performance of preOpt resolveLoops (simulation): time 9.575e-05/0.1959, allocations: 24.97 kB / 0.731 GB, free: 13.97 MB / 0.5606 GB Notification: Performance of preOpt evalFunc (simulation): time 2.241e-05/0.196, allocations: 3.984 kB / 0.731 GB, free: 13.96 MB / 0.5606 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002268/0.1962, allocations: 75.39 kB / 0.7311 GB, free: 13.88 MB / 0.5606 GB Notification: Performance of pre-optimization done (n=6): time 1.442e-06/0.1962, allocations: 0 / 0.7311 GB, free: 13.88 MB / 0.5606 GB Notification: Performance of matching and sorting (n=6): time 0.0004215/0.1966, allocations: 121.5 kB / 0.7312 GB, free: 13.75 MB / 0.5606 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.504e-05/0.1967, allocations: 55.41 kB / 0.7312 GB, free: 13.69 MB / 0.5606 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001167/0.1968, allocations: 109.8 kB / 0.7313 GB, free: 13.57 MB / 0.5606 GB Notification: Performance of collectPreVariables (initialization): time 1.955e-05/0.1968, allocations: 25.7 kB / 0.7314 GB, free: 13.54 MB / 0.5606 GB Notification: Performance of collectInitialEqns (initialization): time 5.962e-05/0.1969, allocations: 88.14 kB / 0.7314 GB, free: 13.45 MB / 0.5606 GB Notification: Performance of collectInitialBindings (initialization): time 2.252e-05/0.1969, allocations: 15.83 kB / 0.7315 GB, free: 13.43 MB / 0.5606 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.156e-05/0.1969, allocations: 29.72 kB / 0.7315 GB, free: 13.4 MB / 0.5606 GB Notification: Performance of setup shared object (initialization): time 0.0001432/0.1971, allocations: 318.8 kB / 0.7318 GB, free: 13.08 MB / 0.5606 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000107/0.1972, allocations: 27.98 kB / 0.7318 GB, free: 13.05 MB / 0.5606 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000122/0.1973, allocations: 56.2 kB / 0.7319 GB, free: 12.98 MB / 0.5606 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002178/0.1975, allocations: 96.19 kB / 0.732 GB, free: 12.87 MB / 0.5606 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.104e-06/0.1975, allocations: 192 / 0.732 GB, free: 12.87 MB / 0.5606 GB Notification: Performance of matching and sorting (n=9) (initialization): time 0.0002765/0.1978, allocations: 105.5 kB / 0.7321 GB, free: 12.76 MB / 0.5606 GB Notification: Performance of prepare postOptimizeDAE: time 1.914e-05/0.1978, allocations: 11.92 kB / 0.7321 GB, free: 12.75 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.075e-06/0.1978, allocations: 0 / 0.7321 GB, free: 12.75 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.653e-05/0.1979, allocations: 7.938 kB / 0.7321 GB, free: 12.74 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001123/0.198, allocations: 20.14 kB / 0.7321 GB, free: 12.72 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.51e-06/0.198, allocations: 0 / 0.7321 GB, free: 12.72 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.103e-05/0.198, allocations: 8 kB / 0.7321 GB, free: 12.71 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.413e-05/0.1981, allocations: 4 kB / 0.7321 GB, free: 12.71 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 0.0001015/0.1982, allocations: 121.8 kB / 0.7322 GB, free: 12.58 MB / 0.5606 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.544e-05/0.1982, allocations: 7.953 kB / 0.7322 GB, free: 12.57 MB / 0.5606 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002805/0.1985, allocations: 102 kB / 0.7323 GB, free: 12.47 MB / 0.5606 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.577e-06/0.1985, allocations: 4 kB / 0.7323 GB, free: 12.46 MB / 0.5606 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.96e-06/0.1985, allocations: 4 kB / 0.7323 GB, free: 12.46 MB / 0.5606 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.426e-06/0.1985, allocations: 0 / 0.7323 GB, free: 12.46 MB / 0.5606 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005142/0.199, allocations: 325.9 kB / 0.7326 GB, free: 12.09 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.115e-05/0.199, allocations: 11.92 kB / 0.7327 GB, free: 12.08 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.816e-05/0.1991, allocations: 4 kB / 0.7327 GB, free: 12.08 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.126e-06/0.1991, allocations: 0 / 0.7327 GB, free: 12.08 MB / 0.5606 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.379e-05/0.1991, allocations: 7.984 kB / 0.7327 GB, free: 12.07 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.933e-06/0.1991, allocations: 0 / 0.7327 GB, free: 12.07 MB / 0.5606 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.91e-07/0.1991, allocations: 4 kB / 0.7327 GB, free: 12.07 MB / 0.5606 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003039/0.1994, allocations: 191.4 kB / 0.7329 GB, free: 11.86 MB / 0.5606 GB Notification: Performance of postOpt removeConstants (simulation): time 1.969e-05/0.1994, allocations: 11.89 kB / 0.7329 GB, free: 11.85 MB / 0.5606 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.944e-05/0.1994, allocations: 3.984 kB / 0.7329 GB, free: 11.85 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.862e-05/0.1995, allocations: 7.938 kB / 0.7329 GB, free: 11.84 MB / 0.5606 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.288e-05/0.1995, allocations: 11.92 kB / 0.7329 GB, free: 11.83 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.127e-06/0.1995, allocations: 4 kB / 0.7329 GB, free: 11.82 MB / 0.5606 GB Notification: Performance of sorting global known variables: time 5.777e-05/0.1996, allocations: 79.28 kB / 0.733 GB, free: 11.75 MB / 0.5606 GB Notification: Performance of sort global known variables: time 1e-07/0.1996, allocations: 0 / 0.733 GB, free: 11.75 MB / 0.5606 GB Notification: Performance of remove unused functions: time 0.00025/0.1999, allocations: 23.98 kB / 0.733 GB, free: 11.72 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.0006938/0.2005, allocations: 0.7164 MB / 0.7337 GB, free: 10.98 MB / 0.5606 GB Notification: Performance of simCode: created initialization part: time 0.0002651/0.2008, allocations: 63.89 kB / 0.7338 GB, free: 10.92 MB / 0.5606 GB Notification: Performance of simCode: created event and clocks part: time 3.146e-06/0.2008, allocations: 0 / 0.7338 GB, free: 10.92 MB / 0.5606 GB Notification: Performance of simCode: created simulation system equations: time 0.0001192/0.2009, allocations: 40.22 kB / 0.7338 GB, free: 10.88 MB / 0.5606 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002715/0.2012, allocations: 11.88 kB / 0.7338 GB, free: 10.87 MB / 0.5606 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001747/0.203, allocations: 1.411 MB / 0.7352 GB, free: 9.352 MB / 0.5606 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 6.37e-05/0.203, allocations: 71.33 kB / 0.7352 GB, free: 9.262 MB / 0.5606 GB Notification: Performance of simCode: alias equations: time 3.745e-05/0.2031, allocations: 4 kB / 0.7352 GB, free: 9.258 MB / 0.5606 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.697e-05/0.2031, allocations: 15.44 kB / 0.7353 GB, free: 9.242 MB / 0.5606 GB Notification: Performance of SimCode: time 4.01e-07/0.2031, allocations: 0 / 0.7353 GB, free: 9.242 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03041/0.2335, allocations: 2.333 MB / 0.7375 GB, free: 7.055 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate platform static: time 11.16/11.39, allocations: 4.062 kB / 0.7375 GB, free: 7.051 MB / 0.5606 GB " [Timeout remaining time 649] (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.456359623931348] Failed to read output from testmodel.py, exit status != 0: 11.500772196333855 11.517042899 11.319804861 Calling exit ...