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.304/1.304, allocations: 252 MB / 267.9 MB, free: 10.93 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.001047/0.001047, allocations: 183.2 kB / 327.6 MB, free: 2.156 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.65/1.65, allocations: 205.4 MB / 0.5785 GB, free: 20.56 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.0007738/0.0007737, allocations: 88.23 kB / 0.6831 GB, free: 13.29 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 0.0003728/0.000373, allocations: 12.88 kB / 0.7974 GB, free: 135 MB / 0.6042 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1735/0.1739, allocations: 106.3 MB / 0.9012 GB, free: 64.06 MB / 0.6042 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.1495/0.3235, allocations: 131.7 MB / 1.03 GB, free: 12.21 MB / 0.6823 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002021/0.3237, allocations: 71.95 kB / 1.03 GB, free: 12.14 MB / 0.6823 GB Notification: Performance of FrontEnd - DAE generated: time 0.002302/0.3261, allocations: 0.8732 MB / 1.031 GB, free: 11.26 MB / 0.6823 GB Notification: Performance of FrontEnd: time 1.994e-06/0.3261, allocations: 0 / 1.031 GB, free: 11.26 MB / 0.6823 GB Notification: Performance of Transformations before backend: time 5.44e-06/0.3261, allocations: 0 / 1.031 GB, free: 11.26 MB / 0.6823 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.0004685/0.3266, allocations: 367.4 kB / 1.031 GB, free: 10.85 MB / 0.6823 GB Notification: Performance of prepare preOptimizeDAE: time 3.742e-05/0.3266, allocations: 8.031 kB / 1.031 GB, free: 10.84 MB / 0.6823 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.477e-05/0.3267, allocations: 8.844 kB / 1.031 GB, free: 10.84 MB / 0.6823 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001125/0.3268, allocations: 180.3 kB / 1.031 GB, free: 10.62 MB / 0.6823 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.393e-05/0.3268, allocations: 384 / 1.031 GB, free: 10.62 MB / 0.6823 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.387e-05/0.3268, allocations: 4.375 kB / 1.031 GB, free: 10.62 MB / 0.6823 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001873/0.327, allocations: 70.22 kB / 1.031 GB, free: 10.54 MB / 0.6823 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.927e-06/0.327, allocations: 4.172 kB / 1.031 GB, free: 10.54 MB / 0.6823 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.066e-05/0.327, allocations: 3.938 kB / 1.031 GB, free: 10.54 MB / 0.6823 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.17e-06/0.3271, allocations: 4 kB / 1.031 GB, free: 10.53 MB / 0.6823 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001835/0.3272, allocations: 55.95 kB / 1.031 GB, free: 10.48 MB / 0.6823 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003829/0.3276, allocations: 268.8 kB / 1.032 GB, free: 10.16 MB / 0.6823 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001522/0.3278, allocations: 66.48 kB / 1.032 GB, free: 10.09 MB / 0.6823 GB Notification: Performance of preOpt resolveLoops (simulation): time 9.852e-05/0.3279, allocations: 44.89 kB / 1.032 GB, free: 10.04 MB / 0.6823 GB Notification: Performance of preOpt evalFunc (simulation): time 1.67e-05/0.3279, allocations: 0 / 1.032 GB, free: 10.04 MB / 0.6823 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001944/0.3281, allocations: 75.39 kB / 1.032 GB, free: 9.957 MB / 0.6823 GB Notification: Performance of pre-optimization done (n=6): time 1.272e-06/0.3281, allocations: 0 / 1.032 GB, free: 9.957 MB / 0.6823 GB Notification: Performance of matching and sorting (n=6): time 0.0003893/0.3285, allocations: 133.6 kB / 1.032 GB, free: 9.82 MB / 0.6823 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.534e-05/0.3286, allocations: 59.41 kB / 1.032 GB, free: 9.75 MB / 0.6823 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.44e-05/0.3287, allocations: 105.9 kB / 1.032 GB, free: 9.637 MB / 0.6823 GB Notification: Performance of collectPreVariables (initialization): time 1.474e-05/0.3287, allocations: 29.7 kB / 1.032 GB, free: 9.602 MB / 0.6823 GB Notification: Performance of collectInitialEqns (initialization): time 5.452e-05/0.3288, allocations: 92.02 kB / 1.032 GB, free: 9.508 MB / 0.6823 GB Notification: Performance of collectInitialBindings (initialization): time 1.877e-05/0.3288, allocations: 11.91 kB / 1.032 GB, free: 9.496 MB / 0.6823 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.537e-06/0.3288, allocations: 0 / 1.032 GB, free: 9.496 MB / 0.6823 GB Notification: Performance of setup shared object (initialization): time 0.0001109/0.3289, allocations: 314.8 kB / 1.033 GB, free: 9.18 MB / 0.6823 GB Notification: Performance of preBalanceInitialSystem (initialization): time 9.579e-05/0.329, allocations: 31.97 kB / 1.033 GB, free: 9.148 MB / 0.6823 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001026/0.3291, allocations: 55.41 kB / 1.033 GB, free: 9.082 MB / 0.6823 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001937/0.3293, allocations: 87.28 kB / 1.033 GB, free: 8.984 MB / 0.6823 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.094e-06/0.3293, allocations: 4 kB / 1.033 GB, free: 8.98 MB / 0.6823 GB Notification: Performance of matching and sorting (n=8) (initialization): time 0.0002498/0.3296, allocations: 117.4 kB / 1.033 GB, free: 8.859 MB / 0.6823 GB Notification: Performance of prepare postOptimizeDAE: time 1.637e-05/0.3296, allocations: 11.94 kB / 1.033 GB, free: 8.848 MB / 0.6823 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.689e-06/0.3296, allocations: 0 / 1.033 GB, free: 8.848 MB / 0.6823 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.389e-05/0.3297, allocations: 0 / 1.033 GB, free: 8.848 MB / 0.6823 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001019/0.3298, allocations: 15.98 kB / 1.033 GB, free: 8.832 MB / 0.6823 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.753e-06/0.3298, allocations: 8.25 kB / 1.033 GB, free: 8.824 MB / 0.6823 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.622e-05/0.3299, allocations: 15.92 kB / 1.033 GB, free: 8.809 MB / 0.6823 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.636e-06/0.3299, allocations: 4 kB / 1.033 GB, free: 8.805 MB / 0.6823 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 8.006e-05/0.33, allocations: 119.5 kB / 1.033 GB, free: 8.68 MB / 0.6823 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.371e-05/0.33, allocations: 7.906 kB / 1.033 GB, free: 8.672 MB / 0.6823 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002766/0.3303, allocations: 118.5 kB / 1.033 GB, free: 8.551 MB / 0.6823 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.525e-06/0.3303, allocations: 0 / 1.033 GB, free: 8.551 MB / 0.6823 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.607e-06/0.3303, allocations: 0 / 1.033 GB, free: 8.551 MB / 0.6823 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.536e-06/0.3303, allocations: 0 / 1.033 GB, free: 8.551 MB / 0.6823 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004336/0.3307, allocations: 370.4 kB / 1.033 GB, free: 8.133 MB / 0.6823 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.094e-06/0.3307, allocations: 0 / 1.033 GB, free: 8.133 MB / 0.6823 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.146e-05/0.3308, allocations: 11.98 kB / 1.034 GB, free: 8.121 MB / 0.6823 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.595e-06/0.3308, allocations: 0 / 1.034 GB, free: 8.121 MB / 0.6823 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.165e-05/0.3308, allocations: 4 kB / 1.034 GB, free: 8.117 MB / 0.6823 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.875e-06/0.3308, allocations: 3.984 kB / 1.034 GB, free: 8.113 MB / 0.6823 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.353e-06/0.3308, allocations: 0 / 1.034 GB, free: 8.113 MB / 0.6823 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002698/0.3311, allocations: 203.4 kB / 1.034 GB, free: 7.898 MB / 0.6823 GB Notification: Performance of postOpt removeConstants (simulation): time 3.414e-05/0.3312, allocations: 85.02 kB / 1.034 GB, free: 7.797 MB / 0.6823 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.472e-05/0.3312, allocations: 4 kB / 1.034 GB, free: 7.793 MB / 0.6823 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.455e-05/0.3313, allocations: 16.03 kB / 1.034 GB, free: 7.777 MB / 0.6823 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.752e-05/0.3314, allocations: 11.97 kB / 1.034 GB, free: 7.766 MB / 0.6823 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.039e-05/0.3314, allocations: 11.81 kB / 1.034 GB, free: 7.754 MB / 0.6823 GB Notification: Performance of sorting global known variables: time 3.726e-05/0.3314, allocations: 83.28 kB / 1.034 GB, free: 7.672 MB / 0.6823 GB Notification: Performance of sort global known variables: time 2.2e-07/0.3314, allocations: 0 / 1.034 GB, free: 7.672 MB / 0.6823 GB Notification: Performance of remove unused functions: time 0.0002092/0.3316, allocations: 8 kB / 1.034 GB, free: 7.664 MB / 0.6823 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 9.256e-05/0.3317, allocations: 99.25 kB / 1.034 GB, free: 7.559 MB / 0.6823 GB Notification: Performance of simCode: created initialization part: time 0.0002343/0.332, allocations: 79.88 kB / 1.034 GB, free: 7.48 MB / 0.6823 GB Notification: Performance of simCode: created event and clocks part: time 1.623e-06/0.332, allocations: 0 / 1.034 GB, free: 7.48 MB / 0.6823 GB Notification: Performance of simCode: created simulation system equations: time 0.0001046/0.3321, allocations: 36.17 kB / 1.034 GB, free: 7.445 MB / 0.6823 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002378/0.3324, allocations: 14.22 kB / 1.034 GB, free: 7.434 MB / 0.6823 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003204/0.3327, allocations: 140.6 kB / 1.034 GB, free: 7.262 MB / 0.6823 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002477/0.3329, allocations: 0.6809 MB / 1.035 GB, free: 6.555 MB / 0.6823 GB Notification: Performance of simCode: alias equations: time 3.211e-05/0.333, allocations: 4 kB / 1.035 GB, free: 6.551 MB / 0.6823 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.906e-05/0.333, allocations: 11.44 kB / 1.035 GB, free: 6.539 MB / 0.6823 GB Notification: Performance of SimCode: time 2.51e-07/0.333, allocations: 0 / 1.035 GB, free: 6.539 MB / 0.6823 GB Notification: Performance of Templates: time 0.002253/0.3353, allocations: 0.5393 MB / 1.035 GB, free: 6.008 MB / 0.6823 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)