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.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001899/0.001899, allocations: 114 kB / 17.6 MB, free: 4.699 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.002172/0.002172, allocations: 186.7 kB / 20.78 MB, free: 1.539 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.46/1.46, allocations: 225.6 MB / 249.4 MB, free: 3.156 MB / 190.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.0-maint.11.x/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.0-maint.11.x/package.mo): time 2.793/2.793, allocations: 476.7 MB / 0.7629 GB, free: 15.14 MB / 0.6075 GB " [Timeout remaining time 177] Using package Buildings with version 11.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.0-maint.11.x/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Buildings.Controls.OBC.CDL.Discrete.Validation.UnitDelay,fileNamePrefix="Buildings_11_Buildings_Controls_OBC_CDL_Discrete_Validation_UnitDelay",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Controls.OBC.CDL.Discrete.Validation.UnitDelay,fileNamePrefix="Buildings_11_Buildings_Controls_OBC_CDL_Discrete_Validation_UnitDelay",fmuType="me",version="2.0",platforms={"static"}) [Timeout 300] "Notification: Performance of FrontEnd - loaded program: time 0.00193/0.00193, allocations: 67.89 kB / 1.107 GB, free: 5.113 MB / 0.8419 GB Notification: Performance of FrontEnd - Absyn->SCode: time 1.011/1.013, allocations: 168.7 MB / 1.271 GB, free: 7.703 MB / 0.9981 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Discrete.Validation.UnitDelay): time 0.001933/1.015, allocations: 0.6813 MB / 1.272 GB, free: 7.293 MB / 0.9981 GB Notification: Performance of NFInst.instExpressions: time 0.001416/1.016, allocations: 1.054 MB / 1.273 GB, free: 6.523 MB / 0.9981 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.734e-05/1.016, allocations: 0.9688 kB / 1.273 GB, free: 6.523 MB / 0.9981 GB Notification: Performance of NFTyping.typeComponents: time 2.831e-05/1.016, allocations: 4.734 kB / 1.273 GB, free: 6.52 MB / 0.9981 GB Notification: Performance of NFTyping.typeBindings: time 7.976e-05/1.016, allocations: 9.281 kB / 1.273 GB, free: 6.512 MB / 0.9981 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002999/1.017, allocations: 45.45 kB / 1.273 GB, free: 6.484 MB / 0.9981 GB Notification: Performance of NFFlatten.flatten: time 0.0001013/1.017, allocations: 42.08 kB / 1.273 GB, free: 6.465 MB / 0.9981 GB Notification: Performance of NFFlatten.resolveConnections: time 9.658e-05/1.017, allocations: 9.812 kB / 1.273 GB, free: 6.461 MB / 0.9981 GB Notification: Performance of NFEvalConstants.evaluate: time 7.49e-05/1.017, allocations: 24.84 kB / 1.273 GB, free: 6.445 MB / 0.9981 GB Notification: Performance of NFSimplifyModel.simplify: time 6.277e-05/1.017, allocations: 18.78 kB / 1.273 GB, free: 6.438 MB / 0.9981 GB Notification: Performance of NFPackage.collectConstants: time 1.521e-05/1.017, allocations: 3.25 kB / 1.273 GB, free: 6.438 MB / 0.9981 GB Notification: Performance of NFFlatten.collectFunctions: time 7.571e-05/1.017, allocations: 18.02 kB / 1.273 GB, free: 6.434 MB / 0.9981 GB Notification: Performance of NFScalarize.scalarize: time 1.679e-05/1.017, allocations: 7.797 kB / 1.273 GB, free: 6.43 MB / 0.9981 GB Notification: Performance of NFVerifyModel.verify: time 3.999e-05/1.017, allocations: 26.73 kB / 1.273 GB, free: 6.41 MB / 0.9981 GB Notification: Performance of NFConvertDAE.convert: time 0.00016/1.017, allocations: 48.69 kB / 1.273 GB, free: 6.395 MB / 0.9981 GB Notification: Performance of FrontEnd - DAE generated: time 3.747e-06/1.017, allocations: 4.594 kB / 1.273 GB, free: 6.391 MB / 0.9981 GB Notification: Performance of FrontEnd: time 1.492e-06/1.017, allocations: 0 / 1.273 GB, free: 6.391 MB / 0.9981 GB Notification: Performance of Transformations before backend: time 1.205e-05/1.017, allocations: 0.8438 kB / 1.273 GB, free: 6.391 MB / 0.9981 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.0004973/1.018, allocations: 353.8 kB / 1.274 GB, free: 6.023 MB / 0.9981 GB Notification: Performance of prepare preOptimizeDAE: time 3.978e-05/1.018, allocations: 9.25 kB / 1.274 GB, free: 6.023 MB / 0.9981 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.584e-05/1.018, allocations: 32.89 kB / 1.274 GB, free: 5.984 MB / 0.9981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.068e-05/1.018, allocations: 7.25 kB / 1.274 GB, free: 5.98 MB / 0.9981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 8.576e-05/1.018, allocations: 172 kB / 1.274 GB, free: 5.777 MB / 0.9981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.288e-05/1.018, allocations: 13.88 kB / 1.274 GB, free: 5.766 MB / 0.9981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.052e-05/1.018, allocations: 2.875 kB / 1.274 GB, free: 5.766 MB / 0.9981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001889/1.018, allocations: 55.36 kB / 1.274 GB, free: 5.73 MB / 0.9981 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.04e-05/1.018, allocations: 4.875 kB / 1.274 GB, free: 5.727 MB / 0.9981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.959e-06/1.018, allocations: 4.938 kB / 1.274 GB, free: 5.723 MB / 0.9981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.45e-06/1.018, allocations: 0.9375 kB / 1.274 GB, free: 5.723 MB / 0.9981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001889/1.018, allocations: 35.38 kB / 1.274 GB, free: 5.719 MB / 0.9981 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004276/1.019, allocations: 282.3 kB / 1.274 GB, free: 5.43 MB / 0.9981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001321/1.019, allocations: 44.8 kB / 1.274 GB, free: 5.398 MB / 0.9981 GB Notification: Performance of preOpt resolveLoops (simulation): time 9.048e-05/1.019, allocations: 25.28 kB / 1.274 GB, free: 5.387 MB / 0.9981 GB Notification: Performance of preOpt evalFunc (simulation): time 2.556e-05/1.019, allocations: 3.453 kB / 1.274 GB, free: 5.387 MB / 0.9981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002133/1.019, allocations: 77.23 kB / 1.275 GB, free: 5.324 MB / 0.9981 GB Notification: Performance of pre-optimization done (n=5): time 1.272e-06/1.019, allocations: 0 / 1.275 GB, free: 5.324 MB / 0.9981 GB Notification: Performance of matching and sorting (n=5): time 0.000392/1.02, allocations: 101.8 kB / 1.275 GB, free: 5.277 MB / 0.9981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.117e-05/1.02, allocations: 58.25 kB / 1.275 GB, free: 5.211 MB / 0.9981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.021e-05/1.02, allocations: 110.5 kB / 1.275 GB, free: 5.105 MB / 0.9981 GB Notification: Performance of collectPreVariables (initialization): time 1.21e-05/1.02, allocations: 30.48 kB / 1.275 GB, free: 5.07 MB / 0.9981 GB Notification: Performance of collectInitialEqns (initialization): time 3.353e-05/1.02, allocations: 89.78 kB / 1.275 GB, free: 4.98 MB / 0.9981 GB Notification: Performance of collectInitialBindings (initialization): time 1.938e-05/1.02, allocations: 14.66 kB / 1.275 GB, free: 4.969 MB / 0.9981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.276e-05/1.02, allocations: 25.88 kB / 1.275 GB, free: 4.945 MB / 0.9981 GB Notification: Performance of setup shared object (initialization): time 6.302e-05/1.02, allocations: 317.1 kB / 1.275 GB, free: 4.629 MB / 0.9981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 9.81e-05/1.02, allocations: 23.09 kB / 1.275 GB, free: 4.625 MB / 0.9981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000109/1.02, allocations: 53.95 kB / 1.275 GB, free: 4.582 MB / 0.9981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001939/1.02, allocations: 75.78 kB / 1.275 GB, free: 4.535 MB / 0.9981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.244e-06/1.02, allocations: 0 / 1.275 GB, free: 4.535 MB / 0.9981 GB Notification: Performance of matching and sorting (n=7) (initialization): time 0.0002524/1.021, allocations: 106.9 kB / 1.275 GB, free: 4.477 MB / 0.9981 GB Notification: Performance of prepare postOptimizeDAE: time 1.816e-05/1.021, allocations: 11.5 kB / 1.275 GB, free: 4.473 MB / 0.9981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.901e-06/1.021, allocations: 0.9062 kB / 1.275 GB, free: 4.473 MB / 0.9981 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.277e-05/1.021, allocations: 4.25 kB / 1.275 GB, free: 4.473 MB / 0.9981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001083/1.021, allocations: 15.69 kB / 1.276 GB, free: 4.469 MB / 0.9981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.183e-06/1.021, allocations: 0.9375 kB / 1.276 GB, free: 4.469 MB / 0.9981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.442e-05/1.021, allocations: 8.328 kB / 1.276 GB, free: 4.469 MB / 0.9981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.041e-05/1.021, allocations: 6.375 kB / 1.276 GB, free: 4.465 MB / 0.9981 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 6.402e-05/1.021, allocations: 118 kB / 1.276 GB, free: 4.344 MB / 0.9981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.353e-05/1.021, allocations: 7.422 kB / 1.276 GB, free: 4.34 MB / 0.9981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002633/1.021, allocations: 92.53 kB / 1.276 GB, free: 4.281 MB / 0.9981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.086e-06/1.021, allocations: 0.7188 kB / 1.276 GB, free: 4.281 MB / 0.9981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.48e-06/1.021, allocations: 1.062 kB / 1.276 GB, free: 4.281 MB / 0.9981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.366e-06/1.021, allocations: 0 / 1.276 GB, free: 4.281 MB / 0.9981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003654/1.021, allocations: 346.3 kB / 1.276 GB, free: 3.953 MB / 0.9981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.603e-06/1.021, allocations: 0 / 1.276 GB, free: 3.953 MB / 0.9981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.756e-05/1.022, allocations: 7.875 kB / 1.276 GB, free: 3.953 MB / 0.9981 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.794e-06/1.022, allocations: 1 kB / 1.276 GB, free: 3.953 MB / 0.9981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.093e-05/1.022, allocations: 4.328 kB / 1.276 GB, free: 3.953 MB / 0.9981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.964e-06/1.022, allocations: 384 / 1.276 GB, free: 3.953 MB / 0.9981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.182e-06/1.022, allocations: 1 kB / 1.276 GB, free: 3.953 MB / 0.9981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000241/1.022, allocations: 189.6 kB / 1.276 GB, free: 3.797 MB / 0.9981 GB Notification: Performance of postOpt removeConstants (simulation): time 2.033e-05/1.022, allocations: 78.89 kB / 1.276 GB, free: 3.703 MB / 0.9981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.845e-05/1.022, allocations: 4.969 kB / 1.276 GB, free: 3.699 MB / 0.9981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.911e-05/1.022, allocations: 6.781 kB / 1.276 GB, free: 3.699 MB / 0.9981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.811e-05/1.022, allocations: 11.88 kB / 1.276 GB, free: 3.691 MB / 0.9981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.001e-06/1.022, allocations: 0.8438 kB / 1.276 GB, free: 3.691 MB / 0.9981 GB Notification: Performance of sorting global known variables: time 3.715e-05/1.022, allocations: 92.12 kB / 1.276 GB, free: 3.609 MB / 0.9981 GB Notification: Performance of sort global known variables: time 7e-08/1.022, allocations: 0 / 1.276 GB, free: 3.609 MB / 0.9981 GB Notification: Performance of remove unused functions: time 0.0002426/1.022, allocations: 16.84 kB / 1.276 GB, free: 3.602 MB / 0.9981 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.0004915/1.023, allocations: 0.7228 MB / 1.277 GB, free: 2.922 MB / 0.9981 GB Notification: Performance of simCode: created initialization part: time 0.0002582/1.023, allocations: 57.09 kB / 1.277 GB, free: 2.91 MB / 0.9981 GB Notification: Performance of simCode: created event and clocks part: time 1.964e-06/1.023, allocations: 0 / 1.277 GB, free: 2.91 MB / 0.9981 GB Notification: Performance of simCode: created simulation system equations: time 0.0001058/1.023, allocations: 24.97 kB / 1.277 GB, free: 2.906 MB / 0.9981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000266/1.023, allocations: 9.578 kB / 1.277 GB, free: 2.902 MB / 0.9981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001483/1.025, allocations: 1.381 MB / 1.279 GB, free: 17.62 MB / 1.014 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003477/1.025, allocations: 0.6847 MB / 1.279 GB, free: 16.93 MB / 1.014 GB Notification: Performance of simCode: alias equations: time 3.551e-05/1.025, allocations: 4.625 kB / 1.279 GB, free: 16.93 MB / 1.014 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.034e-05/1.025, allocations: 16.98 kB / 1.279 GB, free: 16.92 MB / 1.014 GB Notification: Performance of SimCode: time 5.21e-07/1.025, allocations: 0 / 1.279 GB, free: 16.92 MB / 1.014 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.09579/1.121, allocations: 1.699 MB / 1.281 GB, free: 16.54 MB / 1.014 GB Notification: Performance of buildModelFMU: Generate platform static: time 8.235/9.356, allocations: 11.31 kB / 1.281 GB, free: 16.53 MB / 1.014 GB " [Timeout remaining time 291] (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 & python3 -m fmpy simulate --output-file Buildings_11_Buildings.Controls.OBC.CDL.Discrete.Validation.UnitDelay_res.csv --start-time 0 --stop-time 1 --timeout 400 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0004 Buildings_11_Buildings_Controls_OBC_CDL_Discrete_Validation_UnitDelay.fmu > Buildings_11_Buildings.Controls.OBC.CDL.Discrete.Validation.UnitDelay.pipe 2>&1) [Timeout 420.0] [Calling os._exit(0), Time elapsed: 15.64482754599885] Failed to read output from testmodel.py, exit status != 0: 9.641993447992718 9.471193591 8.450707882 Calling exit ...