Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_maint.8.0.x_Buildings.Controls.OBC.CDL.Discrete.Examples.UnitDelay.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.0.1-maint.8.0.x/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Using package Buildings with version 8.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.0.1-maint.8.0.x/package.mo) Running command: "" <> buildModelFMU(Buildings.Controls.OBC.CDL.Discrete.Examples.UnitDelay,fileNamePrefix="Buildings_maint_8_0_x_Buildings_Controls_OBC_CDL_Discrete_Examples_UnitDelay",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Controls.OBC.CDL.Discrete.Examples.UnitDelay,fileNamePrefix="Buildings_maint_8_0_x_Buildings_Controls_OBC_CDL_Discrete_Examples_UnitDelay",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.0.1-maint.8.0.x/package.mo): time 1.495/1.495, allocations: 288.4 MB / 303.6 MB, free: 8.164 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001057/0.001057, allocations: 176.5 kB / 372.2 MB, free: 10.12 MB / 298.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.219/1.219, allocations: 205.4 MB / 0.631 GB, free: 9.875 MB / 458.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0007698/0.0007698, allocations: 101 kB / 0.7444 GB, free: 5.793 MB / 0.5573 GB Notification: Performance of FrontEnd - loaded program: time 0.0003272/0.0003272, allocations: 17.61 kB / 0.8676 GB, free: 141.7 MB / 0.6198 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.156/0.1564, allocations: 115.3 MB / 0.9802 GB, free: 27.22 MB / 0.6198 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Discrete.Examples.UnitDelay): time 0.000762/0.1572, allocations: 382.1 kB / 0.9806 GB, free: 26.85 MB / 0.6198 GB Notification: Performance of NFInst.instExpressions: time 0.001032/0.1583, allocations: 1.029 MB / 0.9816 GB, free: 25.8 MB / 0.6198 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.674e-05/0.1583, allocations: 0 / 0.9816 GB, free: 25.8 MB / 0.6198 GB Notification: Performance of NFTyping.typeComponents: time 1.45e-05/0.1583, allocations: 7.938 kB / 0.9816 GB, free: 25.8 MB / 0.6198 GB Notification: Performance of NFTyping.typeBindings: time 5.439e-05/0.1584, allocations: 7.938 kB / 0.9816 GB, free: 25.79 MB / 0.6198 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002027/0.1586, allocations: 27.97 kB / 0.9816 GB, free: 25.76 MB / 0.6198 GB Notification: Performance of NFFlatten.flatten: time 5.793e-05/0.1587, allocations: 39.84 kB / 0.9817 GB, free: 25.72 MB / 0.6198 GB Notification: Performance of NFFlatten.resolveConnections: time 8.188e-05/0.1588, allocations: 12 kB / 0.9817 GB, free: 25.71 MB / 0.6198 GB Notification: Performance of NFEvalConstants.evaluate: time 5.285e-05/0.1588, allocations: 15.91 kB / 0.9817 GB, free: 25.7 MB / 0.6198 GB Notification: Performance of NFSimplifyModel.simplify: time 4.235e-05/0.1589, allocations: 15.92 kB / 0.9817 GB, free: 25.68 MB / 0.6198 GB Notification: Performance of NFPackage.collectConstants: time 1.082e-05/0.1589, allocations: 4 kB / 0.9817 GB, free: 25.68 MB / 0.6198 GB Notification: Performance of NFFlatten.collectFunctions: time 5.365e-05/0.1589, allocations: 19.98 kB / 0.9817 GB, free: 25.66 MB / 0.6198 GB Notification: Performance of NFScalarize.scalarize: time 1.18e-05/0.159, allocations: 0 / 0.9817 GB, free: 25.66 MB / 0.6198 GB Notification: Performance of NFVerifyModel.verify: time 3.684e-05/0.159, allocations: 41.62 kB / 0.9818 GB, free: 25.61 MB / 0.6198 GB Notification: Performance of NFConvertDAE.convert: time 8.055e-05/0.1591, allocations: 39.92 kB / 0.9818 GB, free: 25.57 MB / 0.6198 GB Notification: Performance of FrontEnd - DAE generated: time 5.15e-06/0.1591, allocations: 0 / 0.9818 GB, free: 25.57 MB / 0.6198 GB Notification: Performance of FrontEnd: time 1.383e-06/0.1591, allocations: 0 / 0.9818 GB, free: 25.57 MB / 0.6198 GB Notification: Performance of Transformations before backend: time 4.699e-06/0.1591, allocations: 0 / 0.9818 GB, free: 25.57 MB / 0.6198 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.0004321/0.1596, allocations: 356.6 kB / 0.9821 GB, free: 25.17 MB / 0.6198 GB Notification: Performance of prepare preOptimizeDAE: time 4.192e-05/0.1596, allocations: 8.031 kB / 0.9821 GB, free: 25.16 MB / 0.6198 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.524e-05/0.1596, allocations: 42.69 kB / 0.9822 GB, free: 25.11 MB / 0.6198 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.646e-05/0.1597, allocations: 4.844 kB / 0.9822 GB, free: 25.11 MB / 0.6198 GB Notification: Performance of preOpt evaluateParameters (simulation): time 8.618e-05/0.1598, allocations: 168.3 kB / 0.9823 GB, free: 24.91 MB / 0.6198 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.374e-05/0.1598, allocations: 384 / 0.9823 GB, free: 24.91 MB / 0.6198 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.445e-05/0.1598, allocations: 4.375 kB / 0.9824 GB, free: 24.9 MB / 0.6198 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001816/0.16, allocations: 70.16 kB / 0.9824 GB, free: 24.83 MB / 0.6198 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.001e-05/0.16, allocations: 7.938 kB / 0.9824 GB, free: 24.82 MB / 0.6198 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.396e-06/0.16, allocations: 0 / 0.9824 GB, free: 24.82 MB / 0.6198 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.078e-06/0.16, allocations: 0 / 0.9824 GB, free: 24.82 MB / 0.6198 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001624/0.1602, allocations: 55.83 kB / 0.9825 GB, free: 24.77 MB / 0.6198 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003291/0.1605, allocations: 280.8 kB / 0.9827 GB, free: 24.44 MB / 0.6198 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001159/0.1607, allocations: 54.53 kB / 0.9828 GB, free: 24.38 MB / 0.6198 GB Notification: Performance of preOpt resolveLoops (simulation): time 8.319e-05/0.1608, allocations: 36.94 kB / 0.9828 GB, free: 24.34 MB / 0.6198 GB Notification: Performance of preOpt evalFunc (simulation): time 2.049e-05/0.1608, allocations: 3.984 kB / 0.9828 GB, free: 24.34 MB / 0.6198 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001609/0.161, allocations: 75.31 kB / 0.9829 GB, free: 24.25 MB / 0.6198 GB Notification: Performance of pre-optimization done (n=5): time 1.262e-06/0.161, allocations: 0 / 0.9829 GB, free: 24.25 MB / 0.6198 GB Notification: Performance of matching and sorting (n=5): time 0.0003338/0.1613, allocations: 121.6 kB / 0.983 GB, free: 24.12 MB / 0.6198 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.328e-05/0.1613, allocations: 51.41 kB / 0.9831 GB, free: 24.06 MB / 0.6198 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.973e-05/0.1614, allocations: 105.8 kB / 0.9832 GB, free: 23.95 MB / 0.6198 GB Notification: Performance of collectPreVariables (initialization): time 8.526e-06/0.1614, allocations: 25.7 kB / 0.9832 GB, free: 23.92 MB / 0.6198 GB Notification: Performance of collectInitialEqns (initialization): time 2.763e-05/0.1614, allocations: 100 kB / 0.9833 GB, free: 23.82 MB / 0.6198 GB Notification: Performance of collectInitialBindings (initialization): time 1.32e-05/0.1615, allocations: 7.844 kB / 0.9833 GB, free: 23.81 MB / 0.6198 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.769e-06/0.1615, allocations: 4 kB / 0.9833 GB, free: 23.8 MB / 0.6198 GB Notification: Performance of setup shared object (initialization): time 3.952e-05/0.1615, allocations: 318.8 kB / 0.9836 GB, free: 23.48 MB / 0.6198 GB Notification: Performance of preBalanceInitialSystem (initialization): time 8.804e-05/0.1616, allocations: 27.97 kB / 0.9836 GB, free: 23.46 MB / 0.6198 GB Notification: Performance of partitionIndependentBlocks (initialization): time 8.923e-05/0.1617, allocations: 55.38 kB / 0.9837 GB, free: 23.39 MB / 0.6198 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001842/0.1619, allocations: 87.39 kB / 0.9838 GB, free: 23.29 MB / 0.6198 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.705e-06/0.1619, allocations: 0 / 0.9838 GB, free: 23.29 MB / 0.6198 GB Notification: Performance of matching and sorting (n=7) (initialization): time 0.0002224/0.1621, allocations: 117.5 kB / 0.9839 GB, free: 23.17 MB / 0.6198 GB Notification: Performance of prepare postOptimizeDAE: time 1.173e-05/0.1622, allocations: 4 kB / 0.9839 GB, free: 23.17 MB / 0.6198 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.728e-06/0.1622, allocations: 4.25 kB / 0.9839 GB, free: 23.16 MB / 0.6198 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.095e-05/0.1622, allocations: 0 / 0.9839 GB, free: 23.16 MB / 0.6198 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.404e-05/0.1623, allocations: 19.98 kB / 0.9839 GB, free: 23.14 MB / 0.6198 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.069e-06/0.1623, allocations: 0 / 0.9839 GB, free: 23.14 MB / 0.6198 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.224e-05/0.1624, allocations: 12.03 kB / 0.9839 GB, free: 23.13 MB / 0.6198 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.746e-06/0.1624, allocations: 8 kB / 0.9839 GB, free: 23.12 MB / 0.6198 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 ($PRE.unitDelay1.y,unitDelay1.y,$whenCondition1,unitDelay1.sampleTrigger) * 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 5.063e-05/0.1624, allocations: 127 kB / 0.9841 GB, free: 22.99 MB / 0.6198 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.938e-06/0.1624, allocations: 4 kB / 0.9841 GB, free: 22.99 MB / 0.6198 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002248/0.1627, allocations: 101.6 kB / 0.9842 GB, free: 22.89 MB / 0.6198 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.756e-06/0.1627, allocations: 3.984 kB / 0.9842 GB, free: 22.88 MB / 0.6198 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.798e-06/0.1627, allocations: 0 / 0.9842 GB, free: 22.88 MB / 0.6198 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.695e-06/0.1627, allocations: 3.938 kB / 0.9842 GB, free: 22.88 MB / 0.6198 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002965/0.163, allocations: 354.4 kB / 0.9845 GB, free: 22.48 MB / 0.6198 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.874e-06/0.163, allocations: 0 / 0.9845 GB, free: 22.48 MB / 0.6198 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.53e-05/0.1631, allocations: 11.98 kB / 0.9845 GB, free: 22.46 MB / 0.6198 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.983e-06/0.1631, allocations: 0 / 0.9845 GB, free: 22.46 MB / 0.6198 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.662e-06/0.1631, allocations: 0 / 0.9845 GB, free: 22.46 MB / 0.6198 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.402e-06/0.1631, allocations: 7.938 kB / 0.9845 GB, free: 22.46 MB / 0.6198 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.12e-07/0.1631, allocations: 0 / 0.9845 GB, free: 22.46 MB / 0.6198 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002067/0.1633, allocations: 199.4 kB / 0.9847 GB, free: 22.25 MB / 0.6198 GB Notification: Performance of postOpt removeConstants (simulation): time 1.583e-05/0.1633, allocations: 85 kB / 0.9848 GB, free: 22.14 MB / 0.6198 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.395e-05/0.1634, allocations: 0 / 0.9848 GB, free: 22.14 MB / 0.6198 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.647e-05/0.1634, allocations: 12 kB / 0.9848 GB, free: 22.13 MB / 0.6198 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.821e-05/0.1635, allocations: 7.922 kB / 0.9848 GB, free: 22.12 MB / 0.6198 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.851e-06/0.1635, allocations: 8 kB / 0.9848 GB, free: 22.12 MB / 0.6198 GB Notification: Performance of sorting global known variables: time 2.17e-05/0.1635, allocations: 79.75 kB / 0.9849 GB, free: 22.04 MB / 0.6198 GB Notification: Performance of sort global known variables: time 1.01e-07/0.1635, allocations: 0 / 0.9849 GB, free: 22.04 MB / 0.6198 GB Notification: Performance of remove unused functions: time 0.0002067/0.1637, allocations: 16 kB / 0.9849 GB, free: 22.02 MB / 0.6198 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.000372/0.1641, allocations: 0.7244 MB / 0.9856 GB, free: 21.27 MB / 0.6198 GB Notification: Performance of simCode: created initialization part: time 0.0002065/0.1643, allocations: 75.89 kB / 0.9857 GB, free: 21.2 MB / 0.6198 GB Notification: Performance of simCode: created event and clocks part: time 1.643e-06/0.1643, allocations: 0 / 0.9857 GB, free: 21.2 MB / 0.6198 GB Notification: Performance of simCode: created simulation system equations: time 9.492e-05/0.1644, allocations: 35.91 kB / 0.9857 GB, free: 21.16 MB / 0.6198 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002201/0.1647, allocations: 7.938 kB / 0.9857 GB, free: 21.16 MB / 0.6198 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007022/0.1654, allocations: 0.4932 MB / 0.9862 GB, free: 20.61 MB / 0.6198 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 8.387e-05/0.1655, allocations: 0.6809 MB / 0.9869 GB, free: 19.9 MB / 0.6198 GB Notification: Performance of simCode: alias equations: time 2.492e-05/0.1655, allocations: 7.938 kB / 0.9869 GB, free: 19.89 MB / 0.6198 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.852e-05/0.1655, allocations: 11.44 kB / 0.9869 GB, free: 19.88 MB / 0.6198 GB Notification: Performance of SimCode: time 3.41e-07/0.1655, allocations: 4 kB / 0.9869 GB, free: 19.88 MB / 0.6198 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01032/0.1759, allocations: 1.431 MB / 0.9883 GB, free: 18.61 MB / 0.6198 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001245/0.176, allocations: 196 kB / 0.9885 GB, free: 18.37 MB / 0.6198 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.39/1.566, allocations: 4 kB / 0.9885 GB, free: 18.37 MB / 0.6198 GB (rm -f Buildings_maint.8.0.x_Buildings.Controls.OBC.CDL.Discrete.Examples.UnitDelay.pipe ; mkfifo Buildings_maint.8.0.x_Buildings.Controls.OBC.CDL.Discrete.Examples.UnitDelay.pipe ; head -c 1048576 < Buildings_maint.8.0.x_Buildings.Controls.OBC.CDL.Discrete.Examples.UnitDelay.pipe >> ../files/Buildings_maint.8.0.x_Buildings.Controls.OBC.CDL.Discrete.Examples.UnitDelay.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_Buildings_maint_8_0_x_Buildings_Controls_OBC_CDL_Discrete_Examples_UnitDelay_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Buildings_maint_8_0_x_Buildings_Controls_OBC_CDL_Discrete_Examples_UnitDelay.fmu > Buildings_maint.8.0.x_Buildings.Controls.OBC.CDL.Discrete.Examples.UnitDelay.pipe 2>&1)