Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_12_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.001893/0.001893, allocations: 117.4 kB / 17.17 MB, free: 5.977 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.002241/0.002241, allocations: 214.3 kB / 20.13 MB, free: 3.035 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.485/1.485, allocations: 230.6 MB / 253.5 MB, free: 15.11 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.1-maint.12.x/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.1-maint.12.x/package.mo): time 2.987/2.987, allocations: 0.49 GB / 0.7923 GB, free: 1.508 MB / 0.6231 GB " [Timeout remaining time 176] Using package Buildings with version 12.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.1-maint.12.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: "" <> buildModelFMU(Buildings.Controls.OBC.CDL.Discrete.Validation.UnitDelay,fileNamePrefix="Buildings_12_Buildings_Controls_OBC_CDL_Discrete_Validation_UnitDelay",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Controls.OBC.CDL.Discrete.Validation.UnitDelay,fileNamePrefix="Buildings_12_Buildings_Controls_OBC_CDL_Discrete_Validation_UnitDelay",fmuType="cs",version="2.0",platforms={"static"}) [Timeout 300] "Notification: Buildings 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.003318/0.003318, allocations: 71.91 kB / 1.15 GB, free: 15.45 MB / 0.9356 GB Notification: Performance of FrontEnd - Absyn->SCode: time 1.026/1.029, allocations: 176.1 MB / 1.321 GB, free: 24.79 MB / 1.061 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Discrete.Validation.UnitDelay): time 0.001827/1.031, allocations: 0.6776 MB / 1.322 GB, free: 24.36 MB / 1.061 GB Notification: Performance of NFInst.instExpressions: time 0.001117/1.032, allocations: 1.099 MB / 1.323 GB, free: 23.55 MB / 1.061 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.492e-05/1.032, allocations: 0 / 1.323 GB, free: 23.55 MB / 1.061 GB Notification: Performance of NFTyping.typeComponents: time 3.346e-05/1.032, allocations: 3.938 kB / 1.323 GB, free: 23.54 MB / 1.061 GB Notification: Performance of NFTyping.typeBindings: time 6.46e-05/1.032, allocations: 11.36 kB / 1.323 GB, free: 23.54 MB / 1.061 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002605/1.032, allocations: 43.19 kB / 1.323 GB, free: 23.51 MB / 1.061 GB Notification: Performance of NFFlatten.flatten: time 9.4e-05/1.032, allocations: 51.41 kB / 1.323 GB, free: 23.49 MB / 1.061 GB Notification: Performance of NFFlatten.resolveConnections: time 9.366e-05/1.033, allocations: 6.875 kB / 1.323 GB, free: 23.48 MB / 1.061 GB Notification: Performance of NFEvalConstants.evaluate: time 6.268e-05/1.033, allocations: 16 kB / 1.323 GB, free: 23.48 MB / 1.061 GB Notification: Performance of NFSimplifyModel.simplify: time 4.892e-05/1.033, allocations: 28.58 kB / 1.323 GB, free: 23.46 MB / 1.061 GB Notification: Performance of NFPackage.collectConstants: time 1.312e-05/1.033, allocations: 10.81 kB / 1.323 GB, free: 23.46 MB / 1.061 GB Notification: Performance of NFFlatten.collectFunctions: time 7.301e-05/1.033, allocations: 27.25 kB / 1.323 GB, free: 23.45 MB / 1.061 GB Notification: Performance of NFScalarize.scalarize: time 1.537e-05/1.033, allocations: 6.875 kB / 1.323 GB, free: 23.44 MB / 1.061 GB Notification: Performance of NFVerifyModel.verify: time 3.533e-05/1.033, allocations: 25.12 kB / 1.323 GB, free: 23.43 MB / 1.061 GB Notification: Performance of NFConvertDAE.convert: time 0.0001313/1.033, allocations: 60.27 kB / 1.323 GB, free: 23.4 MB / 1.061 GB Notification: Performance of FrontEnd - DAE generated: time 5.019e-06/1.033, allocations: 0 / 1.323 GB, free: 23.4 MB / 1.061 GB Notification: Performance of FrontEnd: time 1.784e-06/1.033, allocations: 0 / 1.323 GB, free: 23.4 MB / 1.061 GB Notification: Performance of Transformations before backend: time 6.082e-06/1.033, allocations: 0 / 1.323 GB, free: 23.4 MB / 1.061 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.0005049/1.033, allocations: 366.1 kB / 1.324 GB, free: 23.03 MB / 1.061 GB Notification: Performance of prepare preOptimizeDAE: time 4.656e-05/1.034, allocations: 18.17 kB / 1.324 GB, free: 23.02 MB / 1.061 GB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 1.804e-05/1.034, allocations: 192 / 1.324 GB, free: 23.02 MB / 1.061 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.319e-05/1.034, allocations: 37.31 kB / 1.324 GB, free: 22.98 MB / 1.061 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.828e-05/1.034, allocations: 7 kB / 1.324 GB, free: 22.98 MB / 1.061 GB Notification: Performance of preOpt evaluateParameters (simulation): time 8.333e-05/1.034, allocations: 171.1 kB / 1.324 GB, free: 22.77 MB / 1.061 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.427e-05/1.034, allocations: 7.156 kB / 1.324 GB, free: 22.77 MB / 1.061 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.341e-05/1.034, allocations: 3.156 kB / 1.324 GB, free: 22.77 MB / 1.061 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001913/1.034, allocations: 66.11 kB / 1.324 GB, free: 22.73 MB / 1.061 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.548e-06/1.034, allocations: 4 kB / 1.324 GB, free: 22.72 MB / 1.061 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.11e-05/1.034, allocations: 0 / 1.324 GB, free: 22.72 MB / 1.061 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.438e-06/1.034, allocations: 6.688 kB / 1.324 GB, free: 22.72 MB / 1.061 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001848/1.034, allocations: 39.52 kB / 1.324 GB, free: 22.71 MB / 1.061 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004305/1.035, allocations: 290.2 kB / 1.324 GB, free: 22.42 MB / 1.061 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000173/1.035, allocations: 58 kB / 1.324 GB, free: 22.38 MB / 1.061 GB Notification: Performance of preOpt resolveLoops (simulation): time 9.307e-05/1.035, allocations: 25.66 kB / 1.325 GB, free: 22.37 MB / 1.061 GB Notification: Performance of preOpt evalFunc (simulation): time 2.533e-05/1.035, allocations: 2.219 kB / 1.325 GB, free: 22.37 MB / 1.061 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000198/1.035, allocations: 72.8 kB / 1.325 GB, free: 22.32 MB / 1.061 GB Notification: Performance of pre-optimization done (n=6): time 1.593e-06/1.035, allocations: 0 / 1.325 GB, free: 22.32 MB / 1.061 GB Notification: Performance of matching and sorting (n=6): time 0.0004176/1.035, allocations: 125.3 kB / 1.325 GB, free: 22.26 MB / 1.061 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.106e-05/1.036, allocations: 53.81 kB / 1.325 GB, free: 22.2 MB / 1.061 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.882e-05/1.036, allocations: 108.7 kB / 1.325 GB, free: 22.09 MB / 1.061 GB Notification: Performance of collectPreVariables (initialization): time 1.333e-05/1.036, allocations: 32.45 kB / 1.325 GB, free: 22.05 MB / 1.061 GB Notification: Performance of collectInitialEqns (initialization): time 3.224e-05/1.036, allocations: 80.14 kB / 1.325 GB, free: 21.97 MB / 1.061 GB Notification: Performance of collectInitialBindings (initialization): time 1.948e-05/1.036, allocations: 18.25 kB / 1.325 GB, free: 21.96 MB / 1.061 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.859e-05/1.036, allocations: 22.22 kB / 1.325 GB, free: 21.94 MB / 1.061 GB Notification: Performance of setup shared object (initialization): time 6.083e-05/1.036, allocations: 325.9 kB / 1.325 GB, free: 21.62 MB / 1.061 GB Notification: Performance of preBalanceInitialSystem (initialization): time 9.767e-05/1.036, allocations: 24.78 kB / 1.325 GB, free: 21.61 MB / 1.061 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001047/1.036, allocations: 56.45 kB / 1.325 GB, free: 21.57 MB / 1.061 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001889/1.036, allocations: 90.89 kB / 1.325 GB, free: 21.5 MB / 1.061 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.214e-06/1.036, allocations: 256 / 1.325 GB, free: 21.5 MB / 1.061 GB Notification: Performance of matching and sorting (n=9) (initialization): time 0.0002533/1.036, allocations: 117.8 kB / 1.326 GB, free: 21.45 MB / 1.061 GB Notification: Performance of prepare postOptimizeDAE: time 1.424e-05/1.036, allocations: 5.219 kB / 1.326 GB, free: 21.45 MB / 1.061 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.294e-06/1.036, allocations: 6.5 kB / 1.326 GB, free: 21.44 MB / 1.061 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.854e-05/1.036, allocations: 0 / 1.326 GB, free: 21.44 MB / 1.061 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001167/1.037, allocations: 20.23 kB / 1.326 GB, free: 21.44 MB / 1.061 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.741e-06/1.037, allocations: 0 / 1.326 GB, free: 21.44 MB / 1.061 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.687e-05/1.037, allocations: 12.89 kB / 1.326 GB, free: 21.43 MB / 1.061 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.012e-05/1.037, allocations: 2.875 kB / 1.326 GB, free: 21.43 MB / 1.061 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 5.856e-05/1.037, allocations: 123.8 kB / 1.326 GB, free: 21.31 MB / 1.061 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.305e-05/1.037, allocations: 10.84 kB / 1.326 GB, free: 21.3 MB / 1.061 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002585/1.037, allocations: 108.2 kB / 1.326 GB, free: 21.24 MB / 1.061 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.156e-06/1.037, allocations: 0 / 1.326 GB, free: 21.24 MB / 1.061 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.689e-06/1.037, allocations: 0 / 1.326 GB, free: 21.24 MB / 1.061 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.457e-06/1.037, allocations: 0 / 1.326 GB, free: 21.24 MB / 1.061 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000362/1.037, allocations: 359.9 kB / 1.326 GB, free: 20.91 MB / 1.061 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.565e-06/1.037, allocations: 3.141 kB / 1.326 GB, free: 20.91 MB / 1.061 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.803e-05/1.037, allocations: 13.12 kB / 1.326 GB, free: 20.9 MB / 1.061 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.865e-06/1.037, allocations: 3.188 kB / 1.326 GB, free: 20.9 MB / 1.061 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.836e-06/1.037, allocations: 6.844 kB / 1.326 GB, free: 20.89 MB / 1.061 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.452e-06/1.037, allocations: 0 / 1.326 GB, free: 20.89 MB / 1.061 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.663e-06/1.037, allocations: 3.938 kB / 1.326 GB, free: 20.89 MB / 1.061 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002399/1.038, allocations: 188.7 kB / 1.326 GB, free: 20.74 MB / 1.061 GB Notification: Performance of postOpt removeConstants (simulation): time 2.65e-05/1.038, allocations: 83.94 kB / 1.327 GB, free: 20.64 MB / 1.061 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.048e-05/1.038, allocations: 3.281 kB / 1.327 GB, free: 20.64 MB / 1.061 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.287e-05/1.038, allocations: 9.625 kB / 1.327 GB, free: 20.64 MB / 1.061 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.202e-05/1.038, allocations: 9.75 kB / 1.327 GB, free: 20.64 MB / 1.061 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.813e-06/1.038, allocations: 4 kB / 1.327 GB, free: 20.63 MB / 1.061 GB Notification: Performance of sorting global known variables: time 3.216e-05/1.038, allocations: 87.88 kB / 1.327 GB, free: 20.55 MB / 1.061 GB Notification: Performance of sort global known variables: time 6e-08/1.038, allocations: 6.625 kB / 1.327 GB, free: 20.55 MB / 1.061 GB Notification: Performance of remove unused functions: time 0.0002505/1.038, allocations: 14.56 kB / 1.327 GB, free: 20.55 MB / 1.061 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.0004715/1.039, allocations: 0.7208 MB / 1.327 GB, free: 19.88 MB / 1.061 GB Notification: Performance of simCode: created initialization part: time 0.0002579/1.039, allocations: 71.41 kB / 1.327 GB, free: 19.86 MB / 1.061 GB Notification: Performance of simCode: created event and clocks part: time 1.724e-06/1.039, allocations: 0 / 1.327 GB, free: 19.86 MB / 1.061 GB Notification: Performance of simCode: created simulation system equations: time 0.0001034/1.039, allocations: 30.97 kB / 1.327 GB, free: 19.85 MB / 1.061 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002597/1.039, allocations: 13.34 kB / 1.327 GB, free: 19.84 MB / 1.061 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001295/1.041, allocations: 1.42 MB / 1.329 GB, free: 18.54 MB / 1.061 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001335/1.041, allocations: 0.6844 MB / 1.33 GB, free: 17.84 MB / 1.061 GB Notification: Performance of simCode: alias equations: time 3.036e-05/1.041, allocations: 5.75 kB / 1.33 GB, free: 17.84 MB / 1.061 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.908e-05/1.041, allocations: 17.77 kB / 1.33 GB, free: 17.82 MB / 1.061 GB Notification: Performance of SimCode: time 3.11e-07/1.041, allocations: 0 / 1.33 GB, free: 17.82 MB / 1.061 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01932/1.06, allocations: 1.816 MB / 1.331 GB, free: 17.41 MB / 1.061 GB Notification: Performance of buildModelFMU: Generate platform static: time 8.434/9.494, allocations: 8.062 kB / 1.331 GB, free: 17.41 MB / 1.061 GB " [Timeout remaining time 290] (rm -f Buildings_12_Buildings.Controls.OBC.CDL.Discrete.Validation.UnitDelay.pipe ; mkfifo Buildings_12_Buildings.Controls.OBC.CDL.Discrete.Validation.UnitDelay.pipe ; head -c 1048576 < Buildings_12_Buildings.Controls.OBC.CDL.Discrete.Validation.UnitDelay.pipe >> ../files/Buildings_12_Buildings.Controls.OBC.CDL.Discrete.Validation.UnitDelay.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_12_Buildings.Controls.OBC.CDL.Discrete.Validation.UnitDelay_res.mat --tempDir=temp_Buildings_12_Buildings_Controls_OBC_CDL_Discrete_Validation_UnitDelay_fmu --startTime=0 --stopTime=1 --stepSize=0.0004 --timeout=400 --tolerance=1e-06 Buildings_12_Buildings_Controls_OBC_CDL_Discrete_Validation_UnitDelay.fmu > Buildings_12_Buildings.Controls.OBC.CDL.Discrete.Validation.UnitDelay.pipe 2>&1) [Timeout 420.0] [Calling os._exit(0), Time elapsed: 16.037598645023536] Failed to read output from testmodel.py, exit status != 0: 9.62483936798526 9.647506183 8.60978641 Calling exit ...