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.Sampler.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.Sampler,fileNamePrefix="Buildings_maint_8_0_x_Buildings_Controls_OBC_CDL_Discrete_Examples_Sampler",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Controls.OBC.CDL.Discrete.Examples.Sampler,fileNamePrefix="Buildings_maint_8_0_x_Buildings_Controls_OBC_CDL_Discrete_Examples_Sampler",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.469/1.469, allocations: 288.4 MB / 303.6 MB, free: 8.203 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.0009509/0.0009509, allocations: 187 kB / 372.3 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.265/1.265, allocations: 205.4 MB / 0.631 GB, free: 9.785 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.0007774/0.0007776, allocations: 97.25 kB / 0.7444 GB, free: 5.699 MB / 0.5573 GB Notification: Performance of FrontEnd - loaded program: time 0.000367/0.000367, allocations: 15.22 kB / 0.8676 GB, free: 141.7 MB / 0.6198 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1735/0.1739, allocations: 115.3 MB / 0.9802 GB, free: 27.21 MB / 0.6198 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Discrete.Examples.Sampler): time 0.0007358/0.1747, allocations: 382.1 kB / 0.9806 GB, free: 26.84 MB / 0.6198 GB Notification: Performance of NFInst.instExpressions: time 0.001209/0.1759, allocations: 1.04 MB / 0.9816 GB, free: 25.78 MB / 0.6198 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.324e-05/0.176, allocations: 0 / 0.9816 GB, free: 25.78 MB / 0.6198 GB Notification: Performance of NFTyping.typeComponents: time 1.786e-05/0.176, allocations: 0 / 0.9816 GB, free: 25.78 MB / 0.6198 GB Notification: Performance of NFTyping.typeBindings: time 8.162e-05/0.1761, allocations: 3.938 kB / 0.9816 GB, free: 25.78 MB / 0.6198 GB Notification: Performance of NFTyping.typeClassSections: time 0.00028/0.1764, allocations: 35.95 kB / 0.9816 GB, free: 25.74 MB / 0.6198 GB Notification: Performance of NFFlatten.flatten: time 8.406e-05/0.1765, allocations: 39.86 kB / 0.9817 GB, free: 25.7 MB / 0.6198 GB Notification: Performance of NFFlatten.resolveConnections: time 0.000109/0.1766, allocations: 11.98 kB / 0.9817 GB, free: 25.69 MB / 0.6198 GB Notification: Performance of NFEvalConstants.evaluate: time 7.62e-05/0.1767, allocations: 11.92 kB / 0.9817 GB, free: 25.68 MB / 0.6198 GB Notification: Performance of NFSimplifyModel.simplify: time 5.674e-05/0.1768, allocations: 27.91 kB / 0.9817 GB, free: 25.65 MB / 0.6198 GB Notification: Performance of NFPackage.collectConstants: time 1.473e-05/0.1768, allocations: 0 / 0.9817 GB, free: 25.65 MB / 0.6198 GB Notification: Performance of NFFlatten.collectFunctions: time 6.996e-05/0.1769, allocations: 19.98 kB / 0.9817 GB, free: 25.63 MB / 0.6198 GB Notification: Performance of NFScalarize.scalarize: time 2.026e-05/0.1769, allocations: 4 kB / 0.9817 GB, free: 25.63 MB / 0.6198 GB Notification: Performance of NFVerifyModel.verify: time 4.952e-05/0.1769, allocations: 41.62 kB / 0.9818 GB, free: 25.58 MB / 0.6198 GB Notification: Performance of NFConvertDAE.convert: time 0.0001289/0.1771, allocations: 43.84 kB / 0.9818 GB, free: 25.54 MB / 0.6198 GB Notification: Performance of FrontEnd - DAE generated: time 9.127e-06/0.1771, allocations: 4 kB / 0.9818 GB, free: 25.54 MB / 0.6198 GB Notification: Performance of FrontEnd: time 1.873e-06/0.1771, allocations: 0 / 0.9818 GB, free: 25.54 MB / 0.6198 GB Notification: Performance of Transformations before backend: time 5.129e-06/0.1771, allocations: 0 / 0.9818 GB, free: 25.54 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: 7 * Number of variables: 7 Notification: Performance of Generate backend data structure: time 0.0006077/0.1777, allocations: 363.7 kB / 0.9822 GB, free: 25.13 MB / 0.6198 GB Notification: Performance of prepare preOptimizeDAE: time 5.025e-05/0.1778, allocations: 8.031 kB / 0.9822 GB, free: 25.12 MB / 0.6198 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.331e-05/0.1778, allocations: 30.75 kB / 0.9822 GB, free: 25.08 MB / 0.6198 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.122e-05/0.1779, allocations: 8.844 kB / 0.9822 GB, free: 25.07 MB / 0.6198 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001032/0.178, allocations: 172.3 kB / 0.9824 GB, free: 24.87 MB / 0.6198 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.08e-05/0.178, allocations: 4.312 kB / 0.9824 GB, free: 24.86 MB / 0.6198 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.801e-05/0.178, allocations: 16.31 kB / 0.9824 GB, free: 24.85 MB / 0.6198 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002188/0.1783, allocations: 62.22 kB / 0.9824 GB, free: 24.78 MB / 0.6198 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.226e-05/0.1783, allocations: 3.938 kB / 0.9824 GB, free: 24.78 MB / 0.6198 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.327e-05/0.1783, allocations: 4 kB / 0.9825 GB, free: 24.77 MB / 0.6198 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.406e-06/0.1783, allocations: 4 kB / 0.9825 GB, free: 24.77 MB / 0.6198 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00019/0.1785, allocations: 59.88 kB / 0.9825 GB, free: 24.71 MB / 0.6198 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004444/0.179, allocations: 276.8 kB / 0.9828 GB, free: 24.39 MB / 0.6198 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001558/0.1791, allocations: 62.55 kB / 0.9828 GB, free: 24.32 MB / 0.6198 GB Notification: Performance of preOpt resolveLoops (simulation): time 9.867e-05/0.1792, allocations: 36.97 kB / 0.9829 GB, free: 24.28 MB / 0.6198 GB Notification: Performance of preOpt evalFunc (simulation): time 3.043e-05/0.1793, allocations: 3.984 kB / 0.9829 GB, free: 24.28 MB / 0.6198 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002254/0.1795, allocations: 83.23 kB / 0.983 GB, free: 24.18 MB / 0.6198 GB Notification: Performance of pre-optimization done (n=6): time 1.533e-06/0.1795, allocations: 4 kB / 0.983 GB, free: 24.18 MB / 0.6198 GB Notification: Performance of matching and sorting (n=6): time 0.0004122/0.1799, allocations: 129.6 kB / 0.9831 GB, free: 24.05 MB / 0.6198 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.75e-05/0.18, allocations: 55.41 kB / 0.9831 GB, free: 23.98 MB / 0.6198 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.729e-05/0.1801, allocations: 109.8 kB / 0.9832 GB, free: 23.86 MB / 0.6198 GB Notification: Performance of collectPreVariables (initialization): time 1.238e-05/0.1801, allocations: 29.7 kB / 0.9833 GB, free: 23.83 MB / 0.6198 GB Notification: Performance of collectInitialEqns (initialization): time 3.145e-05/0.1801, allocations: 80.14 kB / 0.9833 GB, free: 23.75 MB / 0.6198 GB Notification: Performance of collectInitialBindings (initialization): time 1.887e-05/0.1802, allocations: 19.8 kB / 0.9834 GB, free: 23.73 MB / 0.6198 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.939e-06/0.1802, allocations: 0 / 0.9834 GB, free: 23.73 MB / 0.6198 GB Notification: Performance of setup shared object (initialization): time 5.723e-05/0.1802, allocations: 314.8 kB / 0.9837 GB, free: 23.41 MB / 0.6198 GB Notification: Performance of preBalanceInitialSystem (initialization): time 9.19e-05/0.1803, allocations: 39.91 kB / 0.9837 GB, free: 23.37 MB / 0.6198 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001022/0.1804, allocations: 55.41 kB / 0.9838 GB, free: 23.3 MB / 0.6198 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001841/0.1806, allocations: 87.34 kB / 0.9838 GB, free: 23.21 MB / 0.6198 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.044e-06/0.1806, allocations: 0 / 0.9838 GB, free: 23.21 MB / 0.6198 GB Notification: Performance of matching and sorting (n=8) (initialization): time 0.0002316/0.1809, allocations: 117.5 kB / 0.984 GB, free: 23.09 MB / 0.6198 GB Notification: Performance of prepare postOptimizeDAE: time 1.315e-05/0.1809, allocations: 4 kB / 0.984 GB, free: 23.08 MB / 0.6198 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.34e-06/0.1809, allocations: 0.5 kB / 0.984 GB, free: 23.08 MB / 0.6198 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.384e-05/0.1809, allocations: 4 kB / 0.984 GB, free: 23.08 MB / 0.6198 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001001/0.181, allocations: 16.08 kB / 0.984 GB, free: 23.06 MB / 0.6198 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.883e-06/0.181, allocations: 7.938 kB / 0.984 GB, free: 23.05 MB / 0.6198 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.789e-05/0.1811, allocations: 23.92 kB / 0.984 GB, free: 23.03 MB / 0.6198 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.043e-05/0.1811, allocations: 4 kB / 0.984 GB, free: 23.03 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: 5 ($PRE.sampler1.firstTrigger,sampler1.firstTrigger,$whenCondition1,sampler1.sampleTrigger,sampler1.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (8): * Single equations (assignments): 8 * 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 6.304e-05/0.1812, allocations: 121.8 kB / 0.9841 GB, free: 22.9 MB / 0.6198 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.049e-05/0.1812, allocations: 3.906 kB / 0.9841 GB, free: 22.89 MB / 0.6198 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002533/0.1815, allocations: 114 kB / 0.9842 GB, free: 22.78 MB / 0.6198 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.917e-06/0.1815, allocations: 7.938 kB / 0.9842 GB, free: 22.77 MB / 0.6198 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.499e-06/0.1815, allocations: 0 / 0.9842 GB, free: 22.77 MB / 0.6198 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.887e-06/0.1815, allocations: 0 / 0.9842 GB, free: 22.77 MB / 0.6198 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000337/0.1819, allocations: 366.5 kB / 0.9846 GB, free: 22.36 MB / 0.6198 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.182e-06/0.1819, allocations: 0 / 0.9846 GB, free: 22.36 MB / 0.6198 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.509e-05/0.1819, allocations: 11.98 kB / 0.9846 GB, free: 22.35 MB / 0.6198 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.493e-06/0.1819, allocations: 0 / 0.9846 GB, free: 22.35 MB / 0.6198 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.075e-06/0.1819, allocations: 3.938 kB / 0.9846 GB, free: 22.34 MB / 0.6198 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.222e-06/0.182, allocations: 0 / 0.9846 GB, free: 22.34 MB / 0.6198 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.52e-07/0.182, allocations: 0 / 0.9846 GB, free: 22.34 MB / 0.6198 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002249/0.1822, allocations: 211.4 kB / 0.9848 GB, free: 22.12 MB / 0.6198 GB Notification: Performance of postOpt removeConstants (simulation): time 1.796e-05/0.1822, allocations: 89.05 kB / 0.9849 GB, free: 22.02 MB / 0.6198 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.413e-05/0.1822, allocations: 0 / 0.9849 GB, free: 22.02 MB / 0.6198 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.788e-05/0.1823, allocations: 15.98 kB / 0.9849 GB, free: 22 MB / 0.6198 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.963e-05/0.1824, allocations: 11.92 kB / 0.9849 GB, free: 21.99 MB / 0.6198 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.251e-05/0.1824, allocations: 4 kB / 0.9849 GB, free: 21.98 MB / 0.6198 GB Notification: Performance of sorting global known variables: time 2.361e-05/0.1824, allocations: 83.47 kB / 0.985 GB, free: 21.9 MB / 0.6198 GB Notification: Performance of sort global known variables: time 9e-08/0.1824, allocations: 0 / 0.985 GB, free: 21.9 MB / 0.6198 GB Notification: Performance of remove unused functions: time 0.0002147/0.1826, allocations: 19.98 kB / 0.985 GB, free: 21.88 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: 4 (sampler1.sampleTrigger,$whenCondition1,sampler1.y,sampler1.firstTrigger) * Number of discrete states: 0 () * 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 (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.000415/0.1831, allocations: 0.7358 MB / 0.9857 GB, free: 21.12 MB / 0.6198 GB Notification: Performance of simCode: created initialization part: time 0.0002185/0.1833, allocations: 79.89 kB / 0.9858 GB, free: 21.04 MB / 0.6198 GB Notification: Performance of simCode: created event and clocks part: time 1.834e-06/0.1833, allocations: 0 / 0.9858 GB, free: 21.04 MB / 0.6198 GB Notification: Performance of simCode: created simulation system equations: time 9.841e-05/0.1834, allocations: 35.97 kB / 0.9859 GB, free: 21 MB / 0.6198 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002289/0.1836, allocations: 16.12 kB / 0.9859 GB, free: 20.99 MB / 0.6198 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007144/0.1844, allocations: 499.3 kB / 0.9863 GB, free: 20.45 MB / 0.6198 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 8.92e-05/0.1845, allocations: 0.6887 MB / 0.987 GB, free: 19.73 MB / 0.6198 GB Notification: Performance of simCode: alias equations: time 2.565e-05/0.1845, allocations: 7.75 kB / 0.987 GB, free: 19.73 MB / 0.6198 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.987e-05/0.1845, allocations: 11.44 kB / 0.987 GB, free: 19.71 MB / 0.6198 GB Notification: Performance of SimCode: time 2.1e-07/0.1845, allocations: 0 / 0.987 GB, free: 19.71 MB / 0.6198 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01069/0.1952, allocations: 1.46 MB / 0.9885 GB, free: 18.41 MB / 0.6198 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001389/0.1954, allocations: 203.8 kB / 0.9887 GB, free: 18.17 MB / 0.6198 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.465/1.661, allocations: 0 / 0.9887 GB, free: 18.17 MB / 0.6198 GB (rm -f Buildings_maint.8.0.x_Buildings.Controls.OBC.CDL.Discrete.Examples.Sampler.pipe ; mkfifo Buildings_maint.8.0.x_Buildings.Controls.OBC.CDL.Discrete.Examples.Sampler.pipe ; head -c 1048576 < Buildings_maint.8.0.x_Buildings.Controls.OBC.CDL.Discrete.Examples.Sampler.pipe >> ../files/Buildings_maint.8.0.x_Buildings.Controls.OBC.CDL.Discrete.Examples.Sampler.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_Buildings_maint_8_0_x_Buildings_Controls_OBC_CDL_Discrete_Examples_Sampler_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Buildings_maint_8_0_x_Buildings_Controls_OBC_CDL_Discrete_Examples_Sampler.fmu > Buildings_maint.8.0.x_Buildings.Controls.OBC.CDL.Discrete.Examples.Sampler.pipe 2>&1)