Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_8_Buildings.Controls.OBC.CDL.Discrete.Examples.UnitDelay.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+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/Buildings 8.1.4-maint.8.1.x/package.mo", uses=false) Using package Buildings with version 8.1.4 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.x/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 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.Examples.UnitDelay,fileNamePrefix="Buildings_8_Buildings_Controls_OBC_CDL_Discrete_Examples_UnitDelay",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Controls.OBC.CDL.Discrete.Examples.UnitDelay,fileNamePrefix="Buildings_8_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/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009086/0.0009088, allocations: 91.77 kB / 15.36 MB, free: 0.7383 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.005313/0.005313, allocations: 172.2 kB / 16.26 MB, free: 6.676 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.183/1.183, allocations: 205.4 MB / 222.4 MB, free: 5.559 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.x/package.mo): time 1.491/1.491, allocations: 292.7 MB / 0.5502 GB, free: 14.46 MB / 462.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.0004566/0.0004567, allocations: 14.78 kB / 0.6744 GB, free: 25.96 MB / 0.5294 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1666/0.1671, allocations: 116.3 MB / 0.788 GB, free: 11.46 MB / 0.6075 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Discrete.Examples.UnitDelay): time 0.0006781/0.1678, allocations: 405.5 kB / 0.7884 GB, free: 11.07 MB / 0.6075 GB Notification: Performance of NFInst.instExpressions: time 0.001107/0.1689, allocations: 1.044 MB / 0.7894 GB, free: 10.01 MB / 0.6075 GB Notification: Performance of NFInst.updateImplicitVariability: time 2.719e-05/0.169, allocations: 0 / 0.7894 GB, free: 10.01 MB / 0.6075 GB Notification: Performance of NFTyping.typeComponents: time 1.57e-05/0.169, allocations: 3.938 kB / 0.7894 GB, free: 10.01 MB / 0.6075 GB Notification: Performance of NFTyping.typeBindings: time 5.357e-05/0.169, allocations: 7.922 kB / 0.7894 GB, free: 10 MB / 0.6075 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001829/0.1692, allocations: 31.98 kB / 0.7895 GB, free: 9.969 MB / 0.6075 GB Notification: Performance of NFFlatten.flatten: time 6.09e-05/0.1693, allocations: 39.91 kB / 0.7895 GB, free: 9.93 MB / 0.6075 GB Notification: Performance of NFFlatten.resolveConnections: time 7.31e-05/0.1694, allocations: 7.984 kB / 0.7895 GB, free: 9.922 MB / 0.6075 GB Notification: Performance of NFEvalConstants.evaluate: time 4.991e-05/0.1694, allocations: 19.88 kB / 0.7895 GB, free: 9.902 MB / 0.6075 GB Notification: Performance of NFSimplifyModel.simplify: time 4.247e-05/0.1695, allocations: 19.92 kB / 0.7895 GB, free: 9.883 MB / 0.6075 GB Notification: Performance of NFPackage.collectConstants: time 1.051e-05/0.1695, allocations: 0 / 0.7895 GB, free: 9.883 MB / 0.6075 GB Notification: Performance of NFFlatten.collectFunctions: time 5.634e-05/0.1696, allocations: 15.98 kB / 0.7896 GB, free: 9.867 MB / 0.6075 GB Notification: Performance of NFScalarize.scalarize: time 1.763e-05/0.1696, allocations: 15.91 kB / 0.7896 GB, free: 9.852 MB / 0.6075 GB Notification: Performance of NFVerifyModel.verify: time 3.432e-05/0.1696, allocations: 37.64 kB / 0.7896 GB, free: 9.809 MB / 0.6075 GB Notification: Performance of NFConvertDAE.convert: time 9.014e-05/0.1697, allocations: 47.84 kB / 0.7897 GB, free: 9.762 MB / 0.6075 GB Notification: Performance of FrontEnd - DAE generated: time 3.086e-06/0.1697, allocations: 0 / 0.7897 GB, free: 9.762 MB / 0.6075 GB Notification: Performance of FrontEnd: time 1.143e-06/0.1697, allocations: 0 / 0.7897 GB, free: 9.762 MB / 0.6075 GB Notification: Performance of Transformations before backend: time 2.826e-06/0.1697, allocations: 0 / 0.7897 GB, free: 9.762 MB / 0.6075 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.0003973/0.1701, allocations: 359.7 kB / 0.79 GB, free: 9.359 MB / 0.6075 GB Notification: Performance of prepare preOptimizeDAE: time 3.694e-05/0.1702, allocations: 12.03 kB / 0.79 GB, free: 9.348 MB / 0.6075 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.006e-05/0.1702, allocations: 30.75 kB / 0.79 GB, free: 9.309 MB / 0.6075 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.261e-05/0.1702, allocations: 4.844 kB / 0.79 GB, free: 9.305 MB / 0.6075 GB Notification: Performance of preOpt evaluateParameters (simulation): time 8.833e-05/0.1703, allocations: 168.3 kB / 0.7902 GB, free: 9.102 MB / 0.6075 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.004e-05/0.1704, allocations: 4.312 kB / 0.7902 GB, free: 9.098 MB / 0.6075 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.61e-05/0.1704, allocations: 12.36 kB / 0.7902 GB, free: 9.086 MB / 0.6075 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001662/0.1705, allocations: 66.17 kB / 0.7903 GB, free: 9.016 MB / 0.6075 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.213e-06/0.1706, allocations: 3.938 kB / 0.7903 GB, free: 9.012 MB / 0.6075 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.894e-06/0.1706, allocations: 0 / 0.7903 GB, free: 9.012 MB / 0.6075 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.659e-06/0.1706, allocations: 4 kB / 0.7903 GB, free: 9.008 MB / 0.6075 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001751/0.1708, allocations: 51.95 kB / 0.7903 GB, free: 8.957 MB / 0.6075 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003877/0.1712, allocations: 276.8 kB / 0.7906 GB, free: 8.637 MB / 0.6075 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001321/0.1713, allocations: 62.48 kB / 0.7907 GB, free: 8.566 MB / 0.6075 GB Notification: Performance of preOpt resolveLoops (simulation): time 8.951e-05/0.1714, allocations: 28.94 kB / 0.7907 GB, free: 8.535 MB / 0.6075 GB Notification: Performance of preOpt evalFunc (simulation): time 1.728e-05/0.1714, allocations: 3.938 kB / 0.7907 GB, free: 8.531 MB / 0.6075 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002191/0.1716, allocations: 79.38 kB / 0.7908 GB, free: 8.441 MB / 0.6075 GB Notification: Performance of pre-optimization done (n=5): time 1.112e-06/0.1717, allocations: 0 / 0.7908 GB, free: 8.441 MB / 0.6075 GB Notification: Performance of matching and sorting (n=5): time 0.0003574/0.172, allocations: 121.8 kB / 0.7909 GB, free: 8.316 MB / 0.6075 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.624e-05/0.1721, allocations: 55.41 kB / 0.7909 GB, free: 8.25 MB / 0.6075 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.117e-05/0.1722, allocations: 113.8 kB / 0.791 GB, free: 8.129 MB / 0.6075 GB Notification: Performance of collectPreVariables (initialization): time 1.589e-05/0.1722, allocations: 29.7 kB / 0.7911 GB, free: 8.094 MB / 0.6075 GB Notification: Performance of collectInitialEqns (initialization): time 3.957e-05/0.1722, allocations: 88.03 kB / 0.7912 GB, free: 8.004 MB / 0.6075 GB Notification: Performance of collectInitialBindings (initialization): time 2.431e-05/0.1723, allocations: 15.84 kB / 0.7912 GB, free: 7.988 MB / 0.6075 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.307e-05/0.1723, allocations: 9.719 kB / 0.7912 GB, free: 7.973 MB / 0.6075 GB Notification: Performance of setup shared object (initialization): time 0.0001029/0.1724, allocations: 326.8 kB / 0.7915 GB, free: 7.645 MB / 0.6075 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001031/0.1725, allocations: 27.98 kB / 0.7915 GB, free: 7.617 MB / 0.6075 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001068/0.1726, allocations: 55.39 kB / 0.7916 GB, free: 7.551 MB / 0.6075 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001999/0.1728, allocations: 87.34 kB / 0.7917 GB, free: 7.453 MB / 0.6075 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.954e-06/0.1728, allocations: 0 / 0.7917 GB, free: 7.453 MB / 0.6075 GB Notification: Performance of matching and sorting (n=7) (initialization): time 0.0002526/0.1731, allocations: 113.5 kB / 0.7918 GB, free: 7.336 MB / 0.6075 GB Notification: Performance of prepare postOptimizeDAE: time 1.52e-05/0.1731, allocations: 8 kB / 0.7918 GB, free: 7.328 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.278e-06/0.1731, allocations: 3.938 kB / 0.7918 GB, free: 7.324 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (initialization): time 8.797e-06/0.1731, allocations: 0 / 0.7918 GB, free: 7.324 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.648e-05/0.1732, allocations: 20.11 kB / 0.7918 GB, free: 7.305 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.292e-06/0.1732, allocations: 4 kB / 0.7918 GB, free: 7.301 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.927e-05/0.1733, allocations: 11.98 kB / 0.7918 GB, free: 7.289 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.915e-06/0.1733, allocations: 0 / 0.7918 GB, free: 7.289 MB / 0.6075 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 7.219e-05/0.1734, allocations: 117.8 kB / 0.7919 GB, free: 7.164 MB / 0.6075 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.064e-05/0.1734, allocations: 4 kB / 0.7919 GB, free: 7.16 MB / 0.6075 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000259/0.1737, allocations: 105.5 kB / 0.792 GB, free: 7.047 MB / 0.6075 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.814e-06/0.1737, allocations: 0 / 0.792 GB, free: 7.047 MB / 0.6075 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.869e-06/0.1737, allocations: 0 / 0.792 GB, free: 7.047 MB / 0.6075 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.097e-06/0.1737, allocations: 7.922 kB / 0.792 GB, free: 7.039 MB / 0.6075 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003903/0.1741, allocations: 354.4 kB / 0.7924 GB, free: 6.637 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.473e-06/0.1741, allocations: 3.938 kB / 0.7924 GB, free: 6.633 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.754e-05/0.1742, allocations: 15.98 kB / 0.7924 GB, free: 6.617 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.583e-06/0.1742, allocations: 0 / 0.7924 GB, free: 6.617 MB / 0.6075 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.432e-06/0.1742, allocations: 0 / 0.7924 GB, free: 6.617 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.203e-06/0.1742, allocations: 0 / 0.7924 GB, free: 6.617 MB / 0.6075 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.52e-07/0.1742, allocations: 0 / 0.7924 GB, free: 6.617 MB / 0.6075 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002504/0.1745, allocations: 195.4 kB / 0.7926 GB, free: 6.41 MB / 0.6075 GB Notification: Performance of postOpt removeConstants (simulation): time 4.005e-05/0.1745, allocations: 85.02 kB / 0.7927 GB, free: 6.309 MB / 0.6075 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.38e-05/0.1745, allocations: 3.938 kB / 0.7927 GB, free: 6.305 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.691e-05/0.1746, allocations: 12.23 kB / 0.7927 GB, free: 6.293 MB / 0.6075 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.488e-05/0.1747, allocations: 7.938 kB / 0.7927 GB, free: 6.285 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.991e-06/0.1747, allocations: 4 kB / 0.7927 GB, free: 6.281 MB / 0.6075 GB Notification: Performance of sorting global known variables: time 4.001e-05/0.1747, allocations: 91.27 kB / 0.7928 GB, free: 6.191 MB / 0.6075 GB Notification: Performance of sort global known variables: time 1e-07/0.1747, allocations: 0 / 0.7928 GB, free: 6.191 MB / 0.6075 GB Notification: Performance of remove unused functions: time 0.0002227/0.175, allocations: 12 kB / 0.7928 GB, free: 6.18 MB / 0.6075 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.0005217/0.1755, allocations: 0.7241 MB / 0.7935 GB, free: 5.43 MB / 0.6075 GB Notification: Performance of simCode: created initialization part: time 0.0002294/0.1757, allocations: 71.89 kB / 0.7936 GB, free: 5.359 MB / 0.6075 GB Notification: Performance of simCode: created event and clocks part: time 1.793e-06/0.1757, allocations: 0 / 0.7936 GB, free: 5.359 MB / 0.6075 GB Notification: Performance of simCode: created simulation system equations: time 9.89e-05/0.1758, allocations: 27.98 kB / 0.7936 GB, free: 5.332 MB / 0.6075 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002381/0.1761, allocations: 20.17 kB / 0.7936 GB, free: 5.312 MB / 0.6075 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001342/0.1774, allocations: 1.401 MB / 0.795 GB, free: 3.816 MB / 0.6075 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00021/0.1777, allocations: 0.6848 MB / 0.7956 GB, free: 3.105 MB / 0.6075 GB Notification: Performance of simCode: alias equations: time 2.471e-05/0.1777, allocations: 0 / 0.7956 GB, free: 3.105 MB / 0.6075 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.134e-05/0.1777, allocations: 15.44 kB / 0.7957 GB, free: 3.09 MB / 0.6075 GB Notification: Performance of SimCode: time 2.3e-07/0.1777, allocations: 0 / 0.7957 GB, free: 3.09 MB / 0.6075 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.5204/0.6982, allocations: 1.431 MB / 0.7971 GB, free: 1.785 MB / 0.6075 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002455/0.6984, allocations: 204.2 kB / 0.7973 GB, free: 1.527 MB / 0.6075 GB Notification: Performance of buildModelFMU: Generate platform static: time 2.436/3.134, allocations: 0 / 0.7973 GB, free: 1.527 MB / 0.6075 GB (rm -f Buildings_8_Buildings.Controls.OBC.CDL.Discrete.Examples.UnitDelay.pipe ; mkfifo Buildings_8_Buildings.Controls.OBC.CDL.Discrete.Examples.UnitDelay.pipe ; head -c 1048576 < Buildings_8_Buildings.Controls.OBC.CDL.Discrete.Examples.UnitDelay.pipe >> ../files/Buildings_8_Buildings.Controls.OBC.CDL.Discrete.Examples.UnitDelay.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_Buildings_8_Buildings_Controls_OBC_CDL_Discrete_Examples_UnitDelay_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Buildings_8_Buildings_Controls_OBC_CDL_Discrete_Examples_UnitDelay.fmu > Buildings_8_Buildings.Controls.OBC.CDL.Discrete.Examples.UnitDelay.pipe 2>&1)