Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_8.0.0_Buildings.Controls.OBC.CDL.Discrete.Examples.Sampler.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.0.0/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.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.0.0/package.mo) Running command: "" <> buildModelFMU(Buildings.Controls.OBC.CDL.Discrete.Examples.Sampler,fileNamePrefix="Buildings_8_0_0_Buildings_Controls_OBC_CDL_Discrete_Examples_Sampler",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Controls.OBC.CDL.Discrete.Examples.Sampler,fileNamePrefix="Buildings_8_0_0_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.0/package.mo): time 1.53/1.53, allocations: 287.4 MB / 302.6 MB, free: 8.281 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.0009808/0.0009808, allocations: 187.8 kB / 371.1 MB, free: 10.82 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.24/1.24, allocations: 205.4 MB / 0.6298 GB, free: 10.55 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.000665/0.0006651, allocations: 96.89 kB / 0.7431 GB, free: 6.547 MB / 0.5573 GB Notification: Performance of FrontEnd - loaded program: time 0.0003459/0.0003461, allocations: 12.52 kB / 0.8662 GB, free: 140.6 MB / 0.6198 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1623/0.1627, allocations: 115.3 MB / 0.9787 GB, free: 28.09 MB / 0.6198 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Discrete.Examples.Sampler): time 0.0006531/0.1634, allocations: 393.8 kB / 0.9791 GB, free: 27.7 MB / 0.6198 GB Notification: Performance of NFInst.instExpressions: time 0.00098/0.1644, allocations: 1.024 MB / 0.9801 GB, free: 26.66 MB / 0.6198 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.961e-05/0.1645, allocations: 0 / 0.9801 GB, free: 26.66 MB / 0.6198 GB Notification: Performance of NFTyping.typeComponents: time 1.356e-05/0.1645, allocations: 7.922 kB / 0.9801 GB, free: 26.65 MB / 0.6198 GB Notification: Performance of NFTyping.typeBindings: time 6.044e-05/0.1646, allocations: 3.984 kB / 0.9801 GB, free: 26.65 MB / 0.6198 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002114/0.1648, allocations: 31.92 kB / 0.9802 GB, free: 26.62 MB / 0.6198 GB Notification: Performance of NFFlatten.flatten: time 6.289e-05/0.1648, allocations: 43.84 kB / 0.9802 GB, free: 26.57 MB / 0.6198 GB Notification: Performance of NFFlatten.resolveConnections: time 7.959e-05/0.1649, allocations: 15.97 kB / 0.9802 GB, free: 26.56 MB / 0.6198 GB Notification: Performance of NFEvalConstants.evaluate: time 5.219e-05/0.165, allocations: 19.92 kB / 0.9802 GB, free: 26.54 MB / 0.6198 GB Notification: Performance of NFSimplifyModel.simplify: time 4.253e-05/0.165, allocations: 19.92 kB / 0.9803 GB, free: 26.52 MB / 0.6198 GB Notification: Performance of NFPackage.collectConstants: time 1.125e-05/0.1651, allocations: 0 / 0.9803 GB, free: 26.52 MB / 0.6198 GB Notification: Performance of NFFlatten.collectFunctions: time 5.245e-05/0.1651, allocations: 11.98 kB / 0.9803 GB, free: 26.51 MB / 0.6198 GB Notification: Performance of NFScalarize.scalarize: time 1.581e-05/0.1651, allocations: 11.98 kB / 0.9803 GB, free: 26.5 MB / 0.6198 GB Notification: Performance of NFVerifyModel.verify: time 2.352e-05/0.1652, allocations: 29.7 kB / 0.9803 GB, free: 26.46 MB / 0.6198 GB Notification: Performance of NFConvertDAE.convert: time 7.615e-05/0.1652, allocations: 35.92 kB / 0.9803 GB, free: 26.43 MB / 0.6198 GB Notification: Performance of FrontEnd - DAE generated: time 4.639e-06/0.1653, allocations: 3.984 kB / 0.9803 GB, free: 26.42 MB / 0.6198 GB Notification: Performance of FrontEnd: time 1.694e-06/0.1653, allocations: 4 kB / 0.9804 GB, free: 26.42 MB / 0.6198 GB Notification: Performance of Transformations before backend: time 3.867e-06/0.1653, allocations: 0 / 0.9804 GB, free: 26.42 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.0004279/0.1657, allocations: 363.6 kB / 0.9807 GB, free: 26.01 MB / 0.6198 GB Notification: Performance of prepare preOptimizeDAE: time 3.586e-05/0.1657, allocations: 8.031 kB / 0.9807 GB, free: 26 MB / 0.6198 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.134e-05/0.1658, allocations: 38.75 kB / 0.9807 GB, free: 25.96 MB / 0.6198 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.371e-05/0.1658, allocations: 8.844 kB / 0.9808 GB, free: 25.95 MB / 0.6198 GB Notification: Performance of preOpt evaluateParameters (simulation): time 6.632e-05/0.1659, allocations: 172.3 kB / 0.9809 GB, free: 25.74 MB / 0.6198 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.068e-05/0.1659, allocations: 384 / 0.9809 GB, free: 25.74 MB / 0.6198 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.07e-05/0.1659, allocations: 8.375 kB / 0.9809 GB, free: 25.73 MB / 0.6198 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001655/0.1661, allocations: 62.22 kB / 0.981 GB, free: 25.67 MB / 0.6198 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.488e-06/0.1661, allocations: 3.938 kB / 0.981 GB, free: 25.66 MB / 0.6198 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.436e-06/0.1661, allocations: 4 kB / 0.981 GB, free: 25.66 MB / 0.6198 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.527e-06/0.1661, allocations: 4 kB / 0.981 GB, free: 25.66 MB / 0.6198 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001679/0.1663, allocations: 55.89 kB / 0.981 GB, free: 25.6 MB / 0.6198 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003397/0.1667, allocations: 284.8 kB / 0.9813 GB, free: 25.27 MB / 0.6198 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001381/0.1668, allocations: 58.55 kB / 0.9814 GB, free: 25.21 MB / 0.6198 GB Notification: Performance of preOpt resolveLoops (simulation): time 8.771e-05/0.1669, allocations: 40.97 kB / 0.9814 GB, free: 25.16 MB / 0.6198 GB Notification: Performance of preOpt evalFunc (simulation): time 1.655e-05/0.1669, allocations: 0 / 0.9814 GB, free: 25.16 MB / 0.6198 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001632/0.1671, allocations: 91.22 kB / 0.9815 GB, free: 25.06 MB / 0.6198 GB Notification: Performance of pre-optimization done (n=6): time 1.403e-06/0.1671, allocations: 0 / 0.9815 GB, free: 25.06 MB / 0.6198 GB Notification: Performance of matching and sorting (n=6): time 0.0003624/0.1675, allocations: 133.6 kB / 0.9816 GB, free: 24.93 MB / 0.6198 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.575e-05/0.1675, allocations: 51.41 kB / 0.9817 GB, free: 24.86 MB / 0.6198 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.872e-05/0.1676, allocations: 105.8 kB / 0.9818 GB, free: 24.75 MB / 0.6198 GB Notification: Performance of collectPreVariables (initialization): time 9.077e-06/0.1676, allocations: 25.7 kB / 0.9818 GB, free: 24.72 MB / 0.6198 GB Notification: Performance of collectInitialEqns (initialization): time 3.062e-05/0.1676, allocations: 84.14 kB / 0.9819 GB, free: 24.63 MB / 0.6198 GB Notification: Performance of collectInitialBindings (initialization): time 1.679e-05/0.1677, allocations: 15.81 kB / 0.9819 GB, free: 24.62 MB / 0.6198 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.308e-06/0.1677, allocations: 4 kB / 0.9819 GB, free: 24.61 MB / 0.6198 GB Notification: Performance of setup shared object (initialization): time 5.412e-05/0.1677, allocations: 318.8 kB / 0.9822 GB, free: 24.29 MB / 0.6198 GB Notification: Performance of preBalanceInitialSystem (initialization): time 8.773e-05/0.1678, allocations: 27.98 kB / 0.9822 GB, free: 24.27 MB / 0.6198 GB Notification: Performance of partitionIndependentBlocks (initialization): time 9.382e-05/0.1679, allocations: 63.34 kB / 0.9823 GB, free: 24.19 MB / 0.6198 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001681/0.1681, allocations: 91.33 kB / 0.9824 GB, free: 24.09 MB / 0.6198 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.224e-06/0.1681, allocations: 0 / 0.9824 GB, free: 24.09 MB / 0.6198 GB Notification: Performance of matching and sorting (n=8) (initialization): time 0.0002199/0.1683, allocations: 113.5 kB / 0.9825 GB, free: 23.97 MB / 0.6198 GB Notification: Performance of prepare postOptimizeDAE: time 1.201e-05/0.1684, allocations: 4 kB / 0.9825 GB, free: 23.97 MB / 0.6198 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.25e-06/0.1684, allocations: 8.094 kB / 0.9825 GB, free: 23.96 MB / 0.6198 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.106e-05/0.1684, allocations: 0 / 0.9825 GB, free: 23.96 MB / 0.6198 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.22e-05/0.1685, allocations: 15.98 kB / 0.9825 GB, free: 23.95 MB / 0.6198 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.159e-06/0.1685, allocations: 0 / 0.9825 GB, free: 23.95 MB / 0.6198 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.224e-05/0.1686, allocations: 19.92 kB / 0.9825 GB, free: 23.93 MB / 0.6198 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.897e-06/0.1686, allocations: 4 kB / 0.9825 GB, free: 23.92 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 5.338e-05/0.1686, allocations: 125.7 kB / 0.9827 GB, free: 23.79 MB / 0.6198 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.029e-05/0.1687, allocations: 7.906 kB / 0.9827 GB, free: 23.78 MB / 0.6198 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002346/0.1689, allocations: 114 kB / 0.9828 GB, free: 23.67 MB / 0.6198 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.013e-06/0.1689, allocations: 0 / 0.9828 GB, free: 23.67 MB / 0.6198 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.357e-06/0.1689, allocations: 0 / 0.9828 GB, free: 23.67 MB / 0.6198 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.815e-06/0.1689, allocations: 48 / 0.9828 GB, free: 23.67 MB / 0.6198 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003104/0.1692, allocations: 374.5 kB / 0.9831 GB, free: 23.25 MB / 0.6198 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.023e-06/0.1692, allocations: 0.625 kB / 0.9831 GB, free: 23.25 MB / 0.6198 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.35e-05/0.1693, allocations: 15.92 kB / 0.9831 GB, free: 23.23 MB / 0.6198 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.444e-06/0.1693, allocations: 4 kB / 0.9832 GB, free: 23.23 MB / 0.6198 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.274e-06/0.1693, allocations: 3.938 kB / 0.9832 GB, free: 23.22 MB / 0.6198 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.645e-06/0.1693, allocations: 8 kB / 0.9832 GB, free: 23.21 MB / 0.6198 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.72e-07/0.1693, allocations: 0 / 0.9832 GB, free: 23.21 MB / 0.6198 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002167/0.1696, allocations: 207.4 kB / 0.9834 GB, free: 23 MB / 0.6198 GB Notification: Performance of postOpt removeConstants (simulation): time 1.691e-05/0.1696, allocations: 85.02 kB / 0.9834 GB, free: 22.89 MB / 0.6198 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.306e-05/0.1696, allocations: 0 / 0.9834 GB, free: 22.89 MB / 0.6198 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.786e-05/0.1697, allocations: 11.98 kB / 0.9835 GB, free: 22.88 MB / 0.6198 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.224e-05/0.1697, allocations: 15.92 kB / 0.9835 GB, free: 22.87 MB / 0.6198 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.017e-05/0.1698, allocations: 0 / 0.9835 GB, free: 22.87 MB / 0.6198 GB Notification: Performance of sorting global known variables: time 2.152e-05/0.1698, allocations: 79.28 kB / 0.9835 GB, free: 22.79 MB / 0.6198 GB Notification: Performance of sort global known variables: time 1.1e-07/0.1698, allocations: 4 kB / 0.9835 GB, free: 22.79 MB / 0.6198 GB Notification: Performance of remove unused functions: time 0.0002018/0.17, allocations: 20 kB / 0.9836 GB, free: 22.77 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.0003819/0.1704, allocations: 0.7374 MB / 0.9843 GB, free: 22 MB / 0.6198 GB Notification: Performance of simCode: created initialization part: time 0.0002196/0.1706, allocations: 75.94 kB / 0.9844 GB, free: 21.93 MB / 0.6198 GB Notification: Performance of simCode: created event and clocks part: time 1.653e-06/0.1706, allocations: 192 / 0.9844 GB, free: 21.93 MB / 0.6198 GB Notification: Performance of simCode: created simulation system equations: time 9.748e-05/0.1707, allocations: 39.92 kB / 0.9844 GB, free: 21.89 MB / 0.6198 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002162/0.1709, allocations: 11.92 kB / 0.9844 GB, free: 21.88 MB / 0.6198 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007384/0.1717, allocations: 499.8 kB / 0.9849 GB, free: 21.34 MB / 0.6198 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 8.382e-05/0.1718, allocations: 0.6809 MB / 0.9855 GB, free: 20.63 MB / 0.6198 GB Notification: Performance of simCode: alias equations: time 2.9e-05/0.1718, allocations: 7.984 kB / 0.9856 GB, free: 20.62 MB / 0.6198 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.983e-05/0.1719, allocations: 11.44 kB / 0.9856 GB, free: 20.61 MB / 0.6198 GB Notification: Performance of SimCode: time 8.01e-07/0.1719, allocations: 0 / 0.9856 GB, free: 20.61 MB / 0.6198 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01004/0.1819, allocations: 1.466 MB / 0.987 GB, free: 19.27 MB / 0.6198 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001542/0.1821, allocations: 189.8 kB / 0.9872 GB, free: 19.04 MB / 0.6198 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.427/1.61, allocations: 4 kB / 0.9872 GB, free: 19.03 MB / 0.6198 GB (rm -f Buildings_8.0.0_Buildings.Controls.OBC.CDL.Discrete.Examples.Sampler.pipe ; mkfifo Buildings_8.0.0_Buildings.Controls.OBC.CDL.Discrete.Examples.Sampler.pipe ; head -c 1048576 < Buildings_8.0.0_Buildings.Controls.OBC.CDL.Discrete.Examples.Sampler.pipe >> ../files/Buildings_8.0.0_Buildings.Controls.OBC.CDL.Discrete.Examples.Sampler.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_Buildings_8_0_0_Buildings_Controls_OBC_CDL_Discrete_Examples_Sampler_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Buildings_8_0_0_Buildings_Controls_OBC_CDL_Discrete_Examples_Sampler.fmu > Buildings_8.0.0_Buildings.Controls.OBC.CDL.Discrete.Examples.Sampler.pipe 2>&1)