Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_8_Buildings.Controls.OBC.CDL.Discrete.Examples.ZeroOrderHold.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.ZeroOrderHold,fileNamePrefix="Buildings_8_Buildings_Controls_OBC_CDL_Discrete_Examples_ZeroOrderHold",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Controls.OBC.CDL.Discrete.Examples.ZeroOrderHold,fileNamePrefix="Buildings_8_Buildings_Controls_OBC_CDL_Discrete_Examples_ZeroOrderHold",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.0007055/0.0007055, allocations: 91.22 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.005214/0.005214, allocations: 170.5 kB / 16.26 MB, free: 6.613 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.181/1.181, allocations: 205.4 MB / 222.4 MB, free: 5.562 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.507/1.507, allocations: 292.7 MB / 0.5502 GB, free: 14.45 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.0004585/0.0004585, allocations: 16.41 kB / 0.6744 GB, free: 25.92 MB / 0.5294 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1764/0.1768, 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.ZeroOrderHold): time 0.0008032/0.1777, allocations: 417.4 kB / 0.7884 GB, free: 11.06 MB / 0.6075 GB Notification: Performance of NFInst.instExpressions: time 0.001202/0.1789, allocations: 1.06 MB / 0.7894 GB, free: 9.984 MB / 0.6075 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.216e-05/0.1789, allocations: 0 / 0.7894 GB, free: 9.984 MB / 0.6075 GB Notification: Performance of NFTyping.typeComponents: time 1.32e-05/0.179, allocations: 0 / 0.7894 GB, free: 9.984 MB / 0.6075 GB Notification: Performance of NFTyping.typeBindings: time 5.336e-05/0.179, allocations: 3.938 kB / 0.7894 GB, free: 9.98 MB / 0.6075 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002165/0.1792, allocations: 35.89 kB / 0.7895 GB, free: 9.945 MB / 0.6075 GB Notification: Performance of NFFlatten.flatten: time 7.381e-05/0.1793, allocations: 47.91 kB / 0.7895 GB, free: 9.898 MB / 0.6075 GB Notification: Performance of NFFlatten.resolveConnections: time 7.286e-05/0.1794, allocations: 8 kB / 0.7895 GB, free: 9.891 MB / 0.6075 GB Notification: Performance of NFEvalConstants.evaluate: time 6.612e-05/0.1795, allocations: 19.92 kB / 0.7895 GB, free: 9.871 MB / 0.6075 GB Notification: Performance of NFSimplifyModel.simplify: time 5.3e-05/0.1795, allocations: 23.91 kB / 0.7896 GB, free: 9.848 MB / 0.6075 GB Notification: Performance of NFPackage.collectConstants: time 1.169e-05/0.1796, allocations: 0 / 0.7896 GB, free: 9.848 MB / 0.6075 GB Notification: Performance of NFFlatten.collectFunctions: time 6.23e-05/0.1796, allocations: 23.92 kB / 0.7896 GB, free: 9.824 MB / 0.6075 GB Notification: Performance of NFScalarize.scalarize: time 1.764e-05/0.1796, allocations: 7.922 kB / 0.7896 GB, free: 9.816 MB / 0.6075 GB Notification: Performance of NFVerifyModel.verify: time 4.35e-05/0.1797, allocations: 37.64 kB / 0.7896 GB, free: 9.773 MB / 0.6075 GB Notification: Performance of NFConvertDAE.convert: time 0.0001141/0.1798, allocations: 63.77 kB / 0.7897 GB, free: 9.711 MB / 0.6075 GB Notification: Performance of FrontEnd - DAE generated: time 3.647e-06/0.1798, allocations: 0 / 0.7897 GB, free: 9.711 MB / 0.6075 GB Notification: Performance of FrontEnd: time 1.433e-06/0.1798, allocations: 0 / 0.7897 GB, free: 9.711 MB / 0.6075 GB Notification: Performance of Transformations before backend: time 3.757e-06/0.1798, allocations: 4 kB / 0.7897 GB, free: 9.707 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: 8 * Number of variables: 8 Notification: Performance of Generate backend data structure: time 0.000523/0.1804, allocations: 359.7 kB / 0.79 GB, free: 9.305 MB / 0.6075 GB Notification: Performance of prepare preOptimizeDAE: time 3.886e-05/0.1804, allocations: 12.03 kB / 0.7901 GB, free: 9.293 MB / 0.6075 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.012e-05/0.1805, allocations: 38.73 kB / 0.7901 GB, free: 9.246 MB / 0.6075 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.914e-05/0.1805, allocations: 8.844 kB / 0.7901 GB, free: 9.238 MB / 0.6075 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001024/0.1806, allocations: 168.3 kB / 0.7903 GB, free: 9.035 MB / 0.6075 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.11e-05/0.1806, allocations: 4.375 kB / 0.7903 GB, free: 9.031 MB / 0.6075 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.05e-05/0.1806, allocations: 384 / 0.7903 GB, free: 9.031 MB / 0.6075 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001988/0.1808, allocations: 78.09 kB / 0.7903 GB, free: 8.949 MB / 0.6075 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.915e-06/0.1809, allocations: 3.938 kB / 0.7903 GB, free: 8.945 MB / 0.6075 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.695e-05/0.1809, allocations: 4 kB / 0.7903 GB, free: 8.941 MB / 0.6075 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.482e-06/0.1809, allocations: 4 kB / 0.7904 GB, free: 8.938 MB / 0.6075 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001825/0.1811, allocations: 51.95 kB / 0.7904 GB, free: 8.887 MB / 0.6075 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00041/0.1815, allocations: 288.7 kB / 0.7907 GB, free: 8.555 MB / 0.6075 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001594/0.1817, allocations: 66.48 kB / 0.7907 GB, free: 8.48 MB / 0.6075 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.000105/0.1818, allocations: 32.97 kB / 0.7908 GB, free: 8.445 MB / 0.6075 GB Notification: Performance of preOpt evalFunc (simulation): time 1.955e-05/0.1818, allocations: 0 / 0.7908 GB, free: 8.445 MB / 0.6075 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000196/0.182, allocations: 83.38 kB / 0.7909 GB, free: 8.352 MB / 0.6075 GB Notification: Performance of pre-optimization done (n=7): time 1.153e-06/0.182, allocations: 0 / 0.7909 GB, free: 8.352 MB / 0.6075 GB Notification: Performance of matching and sorting (n=7): time 0.0004193/0.1824, allocations: 145.9 kB / 0.791 GB, free: 8.203 MB / 0.6075 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.679e-05/0.1825, allocations: 55.34 kB / 0.791 GB, free: 8.137 MB / 0.6075 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.688e-05/0.1826, allocations: 105.8 kB / 0.7911 GB, free: 8.023 MB / 0.6075 GB Notification: Performance of collectPreVariables (initialization): time 2.114e-05/0.1826, allocations: 25.7 kB / 0.7912 GB, free: 7.992 MB / 0.6075 GB Notification: Performance of collectInitialEqns (initialization): time 3.682e-05/0.1826, allocations: 92.03 kB / 0.7913 GB, free: 7.898 MB / 0.6075 GB Notification: Performance of collectInitialBindings (initialization): time 1.758e-05/0.1827, allocations: 15.75 kB / 0.7913 GB, free: 7.883 MB / 0.6075 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.708e-05/0.1827, allocations: 17.72 kB / 0.7913 GB, free: 7.859 MB / 0.6075 GB Notification: Performance of setup shared object (initialization): time 9.576e-05/0.1828, allocations: 326.8 kB / 0.7916 GB, free: 7.531 MB / 0.6075 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001112/0.1829, allocations: 27.98 kB / 0.7916 GB, free: 7.504 MB / 0.6075 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001145/0.183, allocations: 68.27 kB / 0.7917 GB, free: 7.422 MB / 0.6075 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000216/0.1833, allocations: 108.1 kB / 0.7918 GB, free: 7.301 MB / 0.6075 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.194e-06/0.1833, allocations: 0 / 0.7918 GB, free: 7.301 MB / 0.6075 GB Notification: Performance of matching and sorting (n=10) (initialization): time 0.0002679/0.1835, allocations: 121.6 kB / 0.7919 GB, free: 7.176 MB / 0.6075 GB Notification: Performance of prepare postOptimizeDAE: time 1.239e-05/0.1836, allocations: 8 kB / 0.7919 GB, free: 7.168 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.538e-06/0.1836, allocations: 0 / 0.7919 GB, free: 7.168 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.242e-05/0.1836, allocations: 4 kB / 0.7919 GB, free: 7.164 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001048/0.1837, allocations: 24.28 kB / 0.7919 GB, free: 7.141 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.135e-06/0.1837, allocations: 8 kB / 0.792 GB, free: 7.133 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.051e-05/0.1838, allocations: 23.88 kB / 0.792 GB, free: 7.109 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.819e-06/0.1838, allocations: 4 kB / 0.792 GB, free: 7.105 MB / 0.6075 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 (zerOrdHol.firstTrigger,$PRE.zerOrdHol.firstTrigger,zerOrdHol.sampleTrigger,$whenCondition1,$PRE.zerOrdHol.ySample,zerOrdHol.ySample) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (10): * Single equations (assignments): 10 * 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 8.415e-05/0.1839, allocations: 127.3 kB / 0.7921 GB, free: 6.977 MB / 0.6075 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.2e-05/0.1839, allocations: 4 kB / 0.7921 GB, free: 6.973 MB / 0.6075 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002741/0.1842, allocations: 117.9 kB / 0.7922 GB, free: 6.852 MB / 0.6075 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.284e-06/0.1842, allocations: 0 / 0.7922 GB, free: 6.852 MB / 0.6075 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.959e-06/0.1842, allocations: 8 kB / 0.7922 GB, free: 6.844 MB / 0.6075 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.835e-06/0.1842, allocations: 192 / 0.7922 GB, free: 6.844 MB / 0.6075 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004245/0.1846, allocations: 370.4 kB / 0.7926 GB, free: 6.426 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.522e-06/0.1847, allocations: 3.938 kB / 0.7926 GB, free: 6.422 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.449e-05/0.1847, allocations: 19.98 kB / 0.7926 GB, free: 6.402 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.475e-06/0.1847, allocations: 0 / 0.7926 GB, free: 6.402 MB / 0.6075 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.444e-06/0.1847, allocations: 0 / 0.7926 GB, free: 6.402 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.256e-06/0.1848, allocations: 3.938 kB / 0.7926 GB, free: 6.398 MB / 0.6075 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.002e-06/0.1848, allocations: 4 kB / 0.7926 GB, free: 6.395 MB / 0.6075 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002947/0.1851, allocations: 207.4 kB / 0.7928 GB, free: 6.176 MB / 0.6075 GB Notification: Performance of postOpt removeConstants (simulation): time 4.093e-05/0.1851, allocations: 84.95 kB / 0.7929 GB, free: 6.074 MB / 0.6075 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.806e-05/0.1851, allocations: 4 kB / 0.7929 GB, free: 6.07 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.304e-05/0.1852, allocations: 11.98 kB / 0.7929 GB, free: 6.059 MB / 0.6075 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.202e-05/0.1853, allocations: 7.922 kB / 0.7929 GB, free: 6.051 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.157e-05/0.1853, allocations: 4 kB / 0.7929 GB, free: 6.047 MB / 0.6075 GB Notification: Performance of sorting global known variables: time 3.408e-05/0.1853, allocations: 87.28 kB / 0.793 GB, free: 5.961 MB / 0.6075 GB Notification: Performance of sort global known variables: time 1.1e-07/0.1853, allocations: 0 / 0.793 GB, free: 5.961 MB / 0.6075 GB Notification: Performance of remove unused functions: time 0.0002284/0.1856, allocations: 16 kB / 0.793 GB, free: 5.945 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: 4 (zerOrdHol.sampleTrigger,$whenCondition1,zerOrdHol.ySample,zerOrdHol.firstTrigger) * Number of discrete states: 1 (zerOrdHol.ySample) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (7): * Single equations (assignments): 5 * 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.0005513/0.1861, allocations: 0.7475 MB / 0.7937 GB, free: 5.172 MB / 0.6075 GB Notification: Performance of simCode: created initialization part: time 0.000237/0.1864, allocations: 80.08 kB / 0.7938 GB, free: 5.094 MB / 0.6075 GB Notification: Performance of simCode: created event and clocks part: time 3.247e-06/0.1864, allocations: 4.062 kB / 0.7938 GB, free: 5.09 MB / 0.6075 GB Notification: Performance of simCode: created simulation system equations: time 0.0001078/0.1865, allocations: 39.91 kB / 0.7939 GB, free: 5.051 MB / 0.6075 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002334/0.1867, allocations: 14.89 kB / 0.7939 GB, free: 5.039 MB / 0.6075 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001383/0.1881, allocations: 1.442 MB / 0.7953 GB, free: 3.488 MB / 0.6075 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000202/0.1883, allocations: 0.6848 MB / 0.796 GB, free: 2.777 MB / 0.6075 GB Notification: Performance of simCode: alias equations: time 3.2e-05/0.1884, allocations: 7.984 kB / 0.796 GB, free: 2.77 MB / 0.6075 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.506e-05/0.1884, allocations: 19.38 kB / 0.796 GB, free: 2.75 MB / 0.6075 GB Notification: Performance of SimCode: time 2e-07/0.1884, allocations: 0 / 0.796 GB, free: 2.75 MB / 0.6075 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 3.952/4.14, allocations: 1.535 MB / 0.7975 GB, free: 1.355 MB / 0.6075 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002188/4.141, allocations: 209.2 kB / 0.7977 GB, free: 1.098 MB / 0.6075 GB Notification: Performance of buildModelFMU: Generate platform static: time 3/7.14, allocations: 4 kB / 0.7977 GB, free: 1.094 MB / 0.6075 GB (rm -f Buildings_8_Buildings.Controls.OBC.CDL.Discrete.Examples.ZeroOrderHold.pipe ; mkfifo Buildings_8_Buildings.Controls.OBC.CDL.Discrete.Examples.ZeroOrderHold.pipe ; head -c 1048576 < Buildings_8_Buildings.Controls.OBC.CDL.Discrete.Examples.ZeroOrderHold.pipe >> ../files/Buildings_8_Buildings.Controls.OBC.CDL.Discrete.Examples.ZeroOrderHold.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_Buildings_8_Buildings_Controls_OBC_CDL_Discrete_Examples_ZeroOrderHold_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Buildings_8_Buildings_Controls_OBC_CDL_Discrete_Examples_ZeroOrderHold.fmu > Buildings_8_Buildings.Controls.OBC.CDL.Discrete.Examples.ZeroOrderHold.pipe 2>&1)