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: translateModel(Buildings.Controls.OBC.CDL.Discrete.Examples.Sampler,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_8.0.0_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_8.0.0_Buildings.Controls.OBC.CDL.Discrete.Examples.Sampler") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.0.0/package.mo): time 1.816/1.816, allocations: 287.4 MB / 303.2 MB, free: 8.207 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.001347/0.001347, allocations: 178.5 kB / 371.8 MB, free: 10.83 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.921/1.921, allocations: 205.4 MB / 0.6304 GB, free: 10.58 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.0008249/0.0008246, allocations: 92.95 kB / 0.7438 GB, free: 6.578 MB / 0.5573 GB Notification: Performance of FrontEnd - loaded program: time 0.0004878/0.0004881, allocations: 16.59 kB / 0.8667 GB, free: 140.5 MB / 0.6198 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2307/0.2312, allocations: 115.3 MB / 0.9793 GB, free: 28.2 MB / 0.6198 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Discrete.Examples.Sampler): time 0.0009343/0.2322, allocations: 389.8 kB / 0.9797 GB, free: 27.82 MB / 0.6198 GB Notification: Performance of NFInst.instExpressions: time 0.0011/0.2333, allocations: 1.028 MB / 0.9807 GB, free: 26.78 MB / 0.6198 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.385e-05/0.2334, allocations: 4 kB / 0.9807 GB, free: 26.77 MB / 0.6198 GB Notification: Performance of NFTyping.typeComponents: time 1.448e-05/0.2334, allocations: 3.938 kB / 0.9807 GB, free: 26.77 MB / 0.6198 GB Notification: Performance of NFTyping.typeBindings: time 7.003e-05/0.2335, allocations: 0 / 0.9807 GB, free: 26.77 MB / 0.6198 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002384/0.2337, allocations: 35.89 kB / 0.9807 GB, free: 26.73 MB / 0.6198 GB Notification: Performance of NFFlatten.flatten: time 7.504e-05/0.2338, allocations: 39.92 kB / 0.9807 GB, free: 26.7 MB / 0.6198 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001001/0.2339, allocations: 8 kB / 0.9808 GB, free: 26.69 MB / 0.6198 GB Notification: Performance of NFEvalConstants.evaluate: time 7.063e-05/0.234, allocations: 19.92 kB / 0.9808 GB, free: 26.67 MB / 0.6198 GB Notification: Performance of NFSimplifyModel.simplify: time 5.18e-05/0.234, allocations: 19.91 kB / 0.9808 GB, free: 26.65 MB / 0.6198 GB Notification: Performance of NFPackage.collectConstants: time 1.39e-05/0.2341, allocations: 4 kB / 0.9808 GB, free: 26.64 MB / 0.6198 GB Notification: Performance of NFFlatten.collectFunctions: time 6.419e-05/0.2341, allocations: 11.98 kB / 0.9808 GB, free: 26.63 MB / 0.6198 GB Notification: Performance of NFScalarize.scalarize: time 1.848e-05/0.2342, allocations: 11.92 kB / 0.9808 GB, free: 26.62 MB / 0.6198 GB Notification: Performance of NFVerifyModel.verify: time 3.647e-05/0.2342, allocations: 29.7 kB / 0.9808 GB, free: 26.59 MB / 0.6198 GB Notification: Performance of NFConvertDAE.convert: time 9.319e-05/0.2343, allocations: 35.92 kB / 0.9809 GB, free: 26.55 MB / 0.6198 GB Notification: Performance of FrontEnd - DAE generated: time 5.15e-06/0.2343, allocations: 4 kB / 0.9809 GB, free: 26.55 MB / 0.6198 GB Notification: Performance of FrontEnd: time 2.144e-06/0.2343, allocations: 0 / 0.9809 GB, free: 26.55 MB / 0.6198 GB Notification: Performance of Transformations before backend: time 4.448e-06/0.2343, allocations: 0 / 0.9809 GB, free: 26.55 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.0005112/0.2348, allocations: 367.6 kB / 0.9812 GB, free: 26.14 MB / 0.6198 GB Notification: Performance of prepare preOptimizeDAE: time 4.404e-05/0.2349, allocations: 8.031 kB / 0.9812 GB, free: 26.13 MB / 0.6198 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.061e-05/0.2349, allocations: 12.84 kB / 0.9813 GB, free: 26.12 MB / 0.6198 GB Notification: Performance of preOpt evaluateParameters (simulation): time 7.941e-05/0.235, allocations: 164.3 kB / 0.9814 GB, free: 25.92 MB / 0.6198 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.644e-05/0.2351, allocations: 4.375 kB / 0.9814 GB, free: 25.91 MB / 0.6198 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.257e-05/0.2351, allocations: 4.375 kB / 0.9814 GB, free: 25.91 MB / 0.6198 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001908/0.2353, allocations: 70.22 kB / 0.9815 GB, free: 25.84 MB / 0.6198 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.225e-06/0.2353, allocations: 192 / 0.9815 GB, free: 25.84 MB / 0.6198 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.138e-05/0.2353, allocations: 3.938 kB / 0.9815 GB, free: 25.83 MB / 0.6198 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.228e-06/0.2353, allocations: 0 / 0.9815 GB, free: 25.83 MB / 0.6198 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001747/0.2355, allocations: 51.95 kB / 0.9815 GB, free: 25.78 MB / 0.6198 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000383/0.2359, allocations: 276.8 kB / 0.9818 GB, free: 25.46 MB / 0.6198 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001473/0.236, allocations: 74.42 kB / 0.9819 GB, free: 25.38 MB / 0.6198 GB Notification: Performance of preOpt resolveLoops (simulation): time 9.1e-05/0.2361, allocations: 32.91 kB / 0.9819 GB, free: 25.34 MB / 0.6198 GB Notification: Performance of preOpt evalFunc (simulation): time 1.925e-05/0.2362, allocations: 4 kB / 0.9819 GB, free: 25.34 MB / 0.6198 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001819/0.2364, allocations: 87.3 kB / 0.982 GB, free: 25.24 MB / 0.6198 GB Notification: Performance of pre-optimization done (n=6): time 1.734e-06/0.2364, allocations: 0 / 0.982 GB, free: 25.24 MB / 0.6198 GB Notification: Performance of matching and sorting (n=6): time 0.0003747/0.2368, allocations: 145.5 kB / 0.9821 GB, free: 25.09 MB / 0.6198 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.392e-05/0.2368, allocations: 51.41 kB / 0.9822 GB, free: 25.03 MB / 0.6198 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.031e-05/0.2369, allocations: 105.8 kB / 0.9823 GB, free: 24.92 MB / 0.6198 GB Notification: Performance of collectPreVariables (initialization): time 1.011e-05/0.2369, allocations: 29.7 kB / 0.9823 GB, free: 24.88 MB / 0.6198 GB Notification: Performance of collectInitialEqns (initialization): time 2.773e-05/0.2369, allocations: 88.2 kB / 0.9824 GB, free: 24.79 MB / 0.6198 GB Notification: Performance of collectInitialBindings (initialization): time 1.562e-05/0.2369, allocations: 11.81 kB / 0.9824 GB, free: 24.78 MB / 0.6198 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.409e-06/0.2369, allocations: 4 kB / 0.9824 GB, free: 24.78 MB / 0.6198 GB Notification: Performance of setup shared object (initialization): time 5.473e-05/0.237, allocations: 322.8 kB / 0.9827 GB, free: 24.45 MB / 0.6198 GB Notification: Performance of preBalanceInitialSystem (initialization): time 9.301e-05/0.2371, allocations: 23.98 kB / 0.9827 GB, free: 24.43 MB / 0.6198 GB Notification: Performance of partitionIndependentBlocks (initialization): time 9.403e-05/0.2372, allocations: 55.41 kB / 0.9828 GB, free: 24.36 MB / 0.6198 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001787/0.2374, allocations: 91.33 kB / 0.9829 GB, free: 24.26 MB / 0.6198 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.567e-06/0.2374, allocations: 7.938 kB / 0.9829 GB, free: 24.25 MB / 0.6198 GB Notification: Performance of matching and sorting (n=8) (initialization): time 0.0002325/0.2376, allocations: 109.5 kB / 0.983 GB, free: 24.14 MB / 0.6198 GB Notification: Performance of prepare postOptimizeDAE: time 1.456e-05/0.2377, allocations: 8 kB / 0.983 GB, free: 24.13 MB / 0.6198 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.839e-06/0.2377, allocations: 4.031 kB / 0.983 GB, free: 24.13 MB / 0.6198 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.337e-05/0.2377, allocations: 4 kB / 0.983 GB, free: 24.12 MB / 0.6198 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.848e-05/0.2378, allocations: 19.98 kB / 0.983 GB, free: 24.11 MB / 0.6198 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.141e-06/0.2378, allocations: 4 kB / 0.983 GB, free: 24.1 MB / 0.6198 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.457e-05/0.2379, allocations: 15.92 kB / 0.983 GB, free: 24.09 MB / 0.6198 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.496e-06/0.2379, allocations: 0 / 0.983 GB, free: 24.09 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.757e-05/0.238, allocations: 121.8 kB / 0.9832 GB, free: 23.96 MB / 0.6198 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.093e-05/0.238, allocations: 8 kB / 0.9832 GB, free: 23.95 MB / 0.6198 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002483/0.2382, allocations: 114 kB / 0.9833 GB, free: 23.84 MB / 0.6198 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.577e-06/0.2382, allocations: 0 / 0.9833 GB, free: 23.84 MB / 0.6198 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.92e-07/0.2383, allocations: 0 / 0.9833 GB, free: 23.84 MB / 0.6198 GB Notification: Performance of postOpt removeConstants (simulation): time 1.748e-05/0.2383, allocations: 81.02 kB / 0.9834 GB, free: 23.74 MB / 0.6198 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.579e-05/0.2383, allocations: 11.98 kB / 0.9834 GB, free: 23.73 MB / 0.6198 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.253e-05/0.2384, allocations: 8 kB / 0.9834 GB, free: 23.72 MB / 0.6198 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.317e-05/0.2384, allocations: 11.92 kB / 0.9834 GB, free: 23.71 MB / 0.6198 GB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.0002554/0.2387, allocations: 188.9 kB / 0.9836 GB, free: 23.52 MB / 0.6198 GB Notification: Performance of postOpt detectDAEmodeSparsePattern (simulation): time 0.000234/0.2389, allocations: 279.3 kB / 0.9838 GB, free: 23.23 MB / 0.6198 GB Notification: Performance of postOpt setEvaluationStage (simulation): time 9.521e-05/0.239, allocations: 40.03 kB / 0.9839 GB, free: 23.19 MB / 0.6198 GB Notification: Performance of sorting global known variables: time 2.339e-05/0.239, allocations: 91.22 kB / 0.984 GB, free: 23.1 MB / 0.6198 GB Notification: Performance of Backend: time 2.11e-07/0.2391, allocations: 0 / 0.984 GB, free: 23.1 MB / 0.6198 GB Notification: Performance of simCode: created initialization part: time 0.0004065/0.2395, allocations: 124.4 kB / 0.9841 GB, free: 22.97 MB / 0.6198 GB Notification: Performance of SimCode: time 0.0003433/0.2398, allocations: 0.5877 MB / 0.9847 GB, free: 22.34 MB / 0.6198 GB Notification: Performance of Templates: time 0.002857/0.2427, allocations: 0.7663 MB / 0.9854 GB, free: 21.57 MB / 0.6198 GB make -j1 -f Buildings_8.0.0_Buildings.Controls.OBC.CDL.Discrete.Examples.Sampler.makefile (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 & ./Buildings_8.0.0_Buildings.Controls.OBC.CDL.Discrete.Examples.Sampler -abortSlowSimulation -alarm=480 -lv LOG_STATS > Buildings_8.0.0_Buildings.Controls.OBC.CDL.Discrete.Examples.Sampler.pipe 2>&1)