Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Discrete.Examples.Sampler.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.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 7.0.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/package.mo) Running command: translateModel(Buildings.Controls.OBC.CDL.Discrete.Examples.Sampler,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Discrete.Examples.Sampler") translateModel(Buildings.Controls.OBC.CDL.Discrete.Examples.Sampler,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Discrete.Examples.Sampler") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/package.mo): time 1.429/1.429, allocations: 252 MB / 268 MB, free: 10.87 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001157/0.001157, allocations: 170.6 kB / 327.6 MB, free: 2.105 MB / 250.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.829/1.829, allocations: 205.4 MB / 0.5786 GB, free: 20.44 MB / 426.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0009765/0.0009764, allocations: 91.91 kB / 0.6832 GB, free: 13.22 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 0.0003032/0.0003033, allocations: 8.969 kB / 0.7976 GB, free: 135 MB / 0.6042 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1595/0.1599, allocations: 106.3 MB / 0.9015 GB, free: 63.83 MB / 0.6042 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Discrete.Examples.Sampler): time 0.001334/0.1612, allocations: 1.105 MB / 0.9025 GB, free: 62.71 MB / 0.6042 GB Notification: Performance of NFInst.instExpressions: time 0.0004067/0.1617, allocations: 212.3 kB / 0.9027 GB, free: 62.5 MB / 0.6042 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.291e-05/0.1617, allocations: 0 / 0.9027 GB, free: 62.5 MB / 0.6042 GB Notification: Performance of NFTyping.typeComponents: time 1.743e-05/0.1618, allocations: 7.938 kB / 0.9028 GB, free: 62.49 MB / 0.6042 GB Notification: Performance of NFTyping.typeBindings: time 9.708e-05/0.1619, allocations: 11.94 kB / 0.9028 GB, free: 62.48 MB / 0.6042 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001815/0.1621, allocations: 19.97 kB / 0.9028 GB, free: 62.46 MB / 0.6042 GB Notification: Performance of NFFlatten.flatten: time 6.773e-05/0.1621, allocations: 43.84 kB / 0.9028 GB, free: 62.42 MB / 0.6042 GB Notification: Performance of NFFlatten.resolveConnections: time 9.315e-05/0.1622, allocations: 8 kB / 0.9028 GB, free: 62.41 MB / 0.6042 GB Notification: Performance of NFEvalConstants.evaluate: time 6.201e-05/0.1623, allocations: 15.92 kB / 0.9028 GB, free: 62.39 MB / 0.6042 GB Notification: Performance of NFSimplifyModel.simplify: time 4.227e-05/0.1624, allocations: 15.92 kB / 0.9029 GB, free: 62.38 MB / 0.6042 GB Notification: Performance of NFPackage.collectConstants: time 1.949e-05/0.1624, allocations: 4 kB / 0.9029 GB, free: 62.38 MB / 0.6042 GB Notification: Performance of NFFlatten.collectFunctions: time 1.057e-05/0.1624, allocations: 0 / 0.9029 GB, free: 62.38 MB / 0.6042 GB Notification: Performance of NFScalarize.scalarize: time 2.385e-05/0.1624, allocations: 15.97 kB / 0.9029 GB, free: 62.36 MB / 0.6042 GB Notification: Performance of NFVerifyModel.verify: time 4.288e-05/0.1625, allocations: 49.52 kB / 0.9029 GB, free: 62.3 MB / 0.6042 GB Notification: Performance of NFConvertDAE.convert: time 6.267e-05/0.1625, allocations: 23.94 kB / 0.903 GB, free: 62.28 MB / 0.6042 GB Notification: Performance of FrontEnd - DAE generated: time 3.817e-06/0.1626, allocations: 0 / 0.903 GB, free: 62.28 MB / 0.6042 GB Notification: Performance of FrontEnd: time 1.913e-06/0.1626, allocations: 0 / 0.903 GB, free: 62.28 MB / 0.6042 GB Notification: Performance of Transformations before backend: time 4.188e-06/0.1626, allocations: 4 kB / 0.903 GB, free: 62.28 MB / 0.6042 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.0004648/0.163, allocations: 359.7 kB / 0.9033 GB, free: 61.88 MB / 0.6042 GB Notification: Performance of prepare preOptimizeDAE: time 3.781e-05/0.1631, allocations: 12.03 kB / 0.9033 GB, free: 61.86 MB / 0.6042 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.602e-05/0.1631, allocations: 4.844 kB / 0.9033 GB, free: 61.86 MB / 0.6042 GB Notification: Performance of preOpt evaluateParameters (simulation): time 7.747e-05/0.1632, allocations: 172.4 kB / 0.9035 GB, free: 61.65 MB / 0.6042 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.291e-05/0.1632, allocations: 384 / 0.9035 GB, free: 61.65 MB / 0.6042 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.434e-05/0.1633, allocations: 4.375 kB / 0.9035 GB, free: 61.65 MB / 0.6042 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001884/0.1634, allocations: 70.22 kB / 0.9036 GB, free: 61.57 MB / 0.6042 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.245e-06/0.1635, allocations: 4.188 kB / 0.9036 GB, free: 61.57 MB / 0.6042 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.16e-05/0.1635, allocations: 7.922 kB / 0.9036 GB, free: 61.56 MB / 0.6042 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.88e-06/0.1635, allocations: 0 / 0.9036 GB, free: 61.56 MB / 0.6042 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001748/0.1637, allocations: 51.91 kB / 0.9036 GB, free: 61.51 MB / 0.6042 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000327/0.164, allocations: 280.8 kB / 0.9039 GB, free: 61.19 MB / 0.6042 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000139/0.1642, allocations: 58.48 kB / 0.9039 GB, free: 61.12 MB / 0.6042 GB Notification: Performance of preOpt resolveLoops (simulation): time 9.032e-05/0.1643, allocations: 40.91 kB / 0.904 GB, free: 61.08 MB / 0.6042 GB Notification: Performance of preOpt evalFunc (simulation): time 2.142e-05/0.1643, allocations: 0 / 0.904 GB, free: 61.08 MB / 0.6042 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001799/0.1645, allocations: 83.31 kB / 0.9041 GB, free: 60.98 MB / 0.6042 GB Notification: Performance of pre-optimization done (n=6): time 1.713e-06/0.1645, allocations: 0 / 0.9041 GB, free: 60.98 MB / 0.6042 GB Notification: Performance of matching and sorting (n=6): time 0.0003656/0.1649, allocations: 133.6 kB / 0.9042 GB, free: 60.85 MB / 0.6042 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.252e-05/0.1649, allocations: 55.41 kB / 0.9042 GB, free: 60.78 MB / 0.6042 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.544e-05/0.165, allocations: 109.8 kB / 0.9043 GB, free: 60.66 MB / 0.6042 GB Notification: Performance of collectPreVariables (initialization): time 8.966e-06/0.165, allocations: 25.7 kB / 0.9044 GB, free: 60.63 MB / 0.6042 GB Notification: Performance of collectInitialEqns (initialization): time 2.373e-05/0.165, allocations: 92.08 kB / 0.9045 GB, free: 60.54 MB / 0.6042 GB Notification: Performance of collectInitialBindings (initialization): time 1.793e-05/0.165, allocations: 15.8 kB / 0.9045 GB, free: 60.52 MB / 0.6042 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.46e-06/0.165, allocations: 4 kB / 0.9045 GB, free: 60.52 MB / 0.6042 GB Notification: Performance of setup shared object (initialization): time 3.981e-05/0.1651, allocations: 314.8 kB / 0.9048 GB, free: 60.2 MB / 0.6042 GB Notification: Performance of preBalanceInitialSystem (initialization): time 8.803e-05/0.1652, allocations: 23.98 kB / 0.9048 GB, free: 60.18 MB / 0.6042 GB Notification: Performance of partitionIndependentBlocks (initialization): time 9.395e-05/0.1653, allocations: 63.42 kB / 0.9049 GB, free: 60.11 MB / 0.6042 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001783/0.1655, allocations: 95.27 kB / 0.9049 GB, free: 60 MB / 0.6042 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.904e-06/0.1655, allocations: 0 / 0.9049 GB, free: 60 MB / 0.6042 GB Notification: Performance of matching and sorting (n=8) (initialization): time 0.0002253/0.1657, allocations: 109.7 kB / 0.905 GB, free: 59.89 MB / 0.6042 GB Notification: Performance of prepare postOptimizeDAE: time 1.358e-05/0.1657, allocations: 15.92 kB / 0.9051 GB, free: 59.87 MB / 0.6042 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.36e-06/0.1657, allocations: 0 / 0.9051 GB, free: 59.87 MB / 0.6042 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.266e-05/0.1658, allocations: 0 / 0.9051 GB, free: 59.87 MB / 0.6042 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000114/0.1659, allocations: 16 kB / 0.9051 GB, free: 59.86 MB / 0.6042 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.484e-06/0.1659, allocations: 8.141 kB / 0.9051 GB, free: 59.85 MB / 0.6042 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.995e-05/0.166, allocations: 8 kB / 0.9051 GB, free: 59.84 MB / 0.6042 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.085e-06/0.166, allocations: 0 / 0.9051 GB, free: 59.84 MB / 0.6042 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 5.541e-05/0.166, allocations: 125.7 kB / 0.9052 GB, free: 59.71 MB / 0.6042 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.305e-05/0.1661, allocations: 11.89 kB / 0.9052 GB, free: 59.7 MB / 0.6042 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002534/0.1663, allocations: 114 kB / 0.9053 GB, free: 59.58 MB / 0.6042 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.324e-06/0.1663, allocations: 0.5625 kB / 0.9053 GB, free: 59.58 MB / 0.6042 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.596e-06/0.1663, allocations: 4 kB / 0.9053 GB, free: 59.57 MB / 0.6042 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.815e-06/0.1663, allocations: 0 / 0.9053 GB, free: 59.57 MB / 0.6042 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003355/0.1667, allocations: 366.4 kB / 0.9057 GB, free: 59.16 MB / 0.6042 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.633e-06/0.1667, allocations: 0 / 0.9057 GB, free: 59.16 MB / 0.6042 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.631e-05/0.1668, allocations: 12 kB / 0.9057 GB, free: 59.15 MB / 0.6042 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.495e-06/0.1668, allocations: 7.984 kB / 0.9057 GB, free: 59.14 MB / 0.6042 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.554e-06/0.1668, allocations: 0 / 0.9057 GB, free: 59.14 MB / 0.6042 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.405e-06/0.1668, allocations: 3.984 kB / 0.9057 GB, free: 59.14 MB / 0.6042 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.52e-07/0.1668, allocations: 0 / 0.9057 GB, free: 59.14 MB / 0.6042 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002324/0.167, allocations: 211.3 kB / 0.9059 GB, free: 58.91 MB / 0.6042 GB Notification: Performance of postOpt removeConstants (simulation): time 1.811e-05/0.1671, allocations: 85.03 kB / 0.906 GB, free: 58.81 MB / 0.6042 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.395e-05/0.1671, allocations: 4 kB / 0.906 GB, free: 58.81 MB / 0.6042 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.294e-05/0.1672, allocations: 15.98 kB / 0.906 GB, free: 58.79 MB / 0.6042 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.38e-05/0.1672, allocations: 0 / 0.906 GB, free: 58.79 MB / 0.6042 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.381e-05/0.1672, allocations: 11.88 kB / 0.906 GB, free: 58.78 MB / 0.6042 GB Notification: Performance of sorting global known variables: time 2.474e-05/0.1673, allocations: 91.27 kB / 0.9061 GB, free: 58.69 MB / 0.6042 GB Notification: Performance of sort global known variables: time 1.4e-07/0.1673, allocations: 0 / 0.9061 GB, free: 58.69 MB / 0.6042 GB Notification: Performance of remove unused functions: time 0.0002084/0.1675, allocations: 8 kB / 0.9061 GB, free: 58.68 MB / 0.6042 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 8.054e-05/0.1676, allocations: 95.25 kB / 0.9062 GB, free: 58.58 MB / 0.6042 GB Notification: Performance of simCode: created initialization part: time 0.0002233/0.1678, allocations: 79.89 kB / 0.9063 GB, free: 58.5 MB / 0.6042 GB Notification: Performance of simCode: created event and clocks part: time 1.573e-06/0.1678, allocations: 0 / 0.9063 GB, free: 58.5 MB / 0.6042 GB Notification: Performance of simCode: created simulation system equations: time 0.0001021/0.1679, allocations: 35.97 kB / 0.9063 GB, free: 58.47 MB / 0.6042 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002374/0.1682, allocations: 10.41 kB / 0.9063 GB, free: 58.46 MB / 0.6042 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002746/0.1685, allocations: 182.4 kB / 0.9065 GB, free: 58.25 MB / 0.6042 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 9.054e-05/0.1686, allocations: 0.6848 MB / 0.9072 GB, free: 57.54 MB / 0.6042 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.662e-05/0.1686, allocations: 7.438 kB / 0.9072 GB, free: 57.53 MB / 0.6042 GB Notification: Performance of SimCode: time 2.2e-07/0.1686, allocations: 0 / 0.9072 GB, free: 57.53 MB / 0.6042 GB Notification: Performance of Templates: time 0.00175/0.1703, allocations: 0.7644 MB / 0.9079 GB, free: 56.77 MB / 0.6042 GB make -j1 -f Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Discrete.Examples.Sampler.makefile (rm -f Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Discrete.Examples.Sampler.pipe ; mkfifo Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Discrete.Examples.Sampler.pipe ; head -c 1048576 < Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Discrete.Examples.Sampler.pipe >> ../files/Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Discrete.Examples.Sampler.sim & ./Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Discrete.Examples.Sampler -abortSlowSimulation -alarm=480 -lv LOG_STATS > Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Discrete.Examples.Sampler.pipe 2>&1)