Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_8_Buildings.Controls.OBC.CDL.Discrete.Examples.Sampler.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.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.1.4 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.x/package.mo) Running command: translateModel(Buildings.Controls.OBC.CDL.Discrete.Examples.Sampler,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_8_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_Buildings.Controls.OBC.CDL.Discrete.Examples.Sampler") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.x/package.mo): time 1.598/1.598, allocations: 289.7 MB / 302.2 MB, free: 2.16 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.001012/0.001012, allocations: 183.3 kB / 371.6 MB, free: 3.402 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.463/1.463, allocations: 205.1 MB / 0.6309 GB, free: 11.75 MB / 474.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0008953/0.0008953, allocations: 88.55 kB / 0.745 GB, free: 54.59 MB / 0.5573 GB Notification: Performance of FrontEnd - loaded program: time 3.418e-05/3.422e-05, allocations: 4 kB / 0.8662 GB, free: 15.05 MB / 0.6042 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2954/0.2955, allocations: 116.3 MB / 0.9798 GB, free: 10.59 MB / 0.7136 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.9388/1.234, allocations: 138.9 MB / 1.115 GB, free: 44.78 MB / 0.7448 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002135/1.235, allocations: 76.2 kB / 1.115 GB, free: 44.75 MB / 0.7448 GB Notification: Performance of FrontEnd - DAE generated: time 0.003192/1.238, allocations: 1.079 MB / 1.117 GB, free: 44.03 MB / 0.7448 GB Notification: Performance of FrontEnd: time 1.904e-06/1.238, allocations: 0 / 1.117 GB, free: 44.03 MB / 0.7448 GB Notification: Performance of Transformations before backend: time 8.767e-06/1.238, allocations: 0 / 1.117 GB, free: 44.03 MB / 0.7448 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.0004067/1.238, allocations: 367 kB / 1.117 GB, free: 43.65 MB / 0.7448 GB Notification: Performance of prepare preOptimizeDAE: time 4.855e-05/1.238, allocations: 12.03 kB / 1.117 GB, free: 43.64 MB / 0.7448 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.314e-05/1.238, allocations: 8.5 kB / 1.117 GB, free: 43.64 MB / 0.7448 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001093/1.238, allocations: 172.4 kB / 1.117 GB, free: 43.43 MB / 0.7448 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.921e-05/1.239, allocations: 0.5156 kB / 1.117 GB, free: 43.43 MB / 0.7448 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.987e-05/1.239, allocations: 11.27 kB / 1.117 GB, free: 43.42 MB / 0.7448 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000137/1.239, allocations: 51.31 kB / 1.117 GB, free: 43.38 MB / 0.7448 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.081e-05/1.239, allocations: 0 / 1.117 GB, free: 43.38 MB / 0.7448 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.917e-05/1.239, allocations: 4.594 kB / 1.117 GB, free: 43.38 MB / 0.7448 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.616e-06/1.239, allocations: 3.281 kB / 1.117 GB, free: 43.38 MB / 0.7448 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 5.948e-05/1.239, allocations: 22.72 kB / 1.117 GB, free: 43.36 MB / 0.7448 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004215/1.239, allocations: 272.1 kB / 1.117 GB, free: 43.08 MB / 0.7448 GB Notification: Performance of preOpt comSubExp (simulation): time 9.179e-05/1.239, allocations: 51.12 kB / 1.117 GB, free: 43.03 MB / 0.7448 GB Notification: Performance of preOpt resolveLoops (simulation): time 3.499e-05/1.239, allocations: 19.67 kB / 1.117 GB, free: 43.02 MB / 0.7448 GB Notification: Performance of preOpt evalFunc (simulation): time 2.236e-05/1.239, allocations: 0 / 1.117 GB, free: 43.02 MB / 0.7448 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001105/1.24, allocations: 64.98 kB / 1.118 GB, free: 42.95 MB / 0.7448 GB Notification: Performance of pre-optimization done (n=6): time 1.011e-06/1.24, allocations: 0 / 1.118 GB, free: 42.95 MB / 0.7448 GB Notification: Performance of matching and sorting (n=6): time 0.0001829/1.24, allocations: 71.98 kB / 1.118 GB, free: 42.89 MB / 0.7448 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.731e-05/1.24, allocations: 55.41 kB / 1.118 GB, free: 42.83 MB / 0.7448 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.146e-05/1.24, allocations: 99.62 kB / 1.118 GB, free: 42.73 MB / 0.7448 GB Notification: Performance of collectPreVariables (initialization): time 1.238e-05/1.24, allocations: 25.7 kB / 1.118 GB, free: 42.7 MB / 0.7448 GB Notification: Performance of collectInitialEqns (initialization): time 4.37e-05/1.24, allocations: 87 kB / 1.118 GB, free: 42.62 MB / 0.7448 GB Notification: Performance of collectInitialBindings (initialization): time 2.209e-05/1.24, allocations: 19.81 kB / 1.118 GB, free: 42.6 MB / 0.7448 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.891e-06/1.24, allocations: 3.75 kB / 1.118 GB, free: 42.6 MB / 0.7448 GB Notification: Performance of setup shared object (initialization): time 6.126e-05/1.24, allocations: 318.3 kB / 1.118 GB, free: 42.28 MB / 0.7448 GB Notification: Performance of preBalanceInitialSystem (initialization): time 2.707e-05/1.24, allocations: 12.59 kB / 1.118 GB, free: 42.27 MB / 0.7448 GB Notification: Performance of partitionIndependentBlocks (initialization): time 4.713e-05/1.24, allocations: 43.19 kB / 1.118 GB, free: 42.23 MB / 0.7448 GB Notification: Performance of analyzeInitialSystem (initialization): time 4.054e-05/1.24, allocations: 19.73 kB / 1.118 GB, free: 42.21 MB / 0.7448 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.593e-06/1.24, allocations: 0 / 1.118 GB, free: 42.21 MB / 0.7448 GB Notification: Performance of matching and sorting (n=8) (initialization): time 0.0001183/1.24, allocations: 79.95 kB / 1.118 GB, free: 42.14 MB / 0.7448 GB Notification: Performance of prepare postOptimizeDAE: time 1.935e-05/1.24, allocations: 4 kB / 1.118 GB, free: 42.14 MB / 0.7448 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.541e-06/1.24, allocations: 4.094 kB / 1.118 GB, free: 42.14 MB / 0.7448 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.854e-05/1.24, allocations: 5.688 kB / 1.118 GB, free: 42.13 MB / 0.7448 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001199/1.24, allocations: 20 kB / 1.118 GB, free: 42.12 MB / 0.7448 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.346e-06/1.241, allocations: 3.938 kB / 1.118 GB, free: 42.12 MB / 0.7448 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.737e-05/1.241, allocations: 11.47 kB / 1.118 GB, free: 42.11 MB / 0.7448 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.382e-05/1.241, allocations: 4 kB / 1.118 GB, free: 42.11 MB / 0.7448 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 () * 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.516e-05/1.241, allocations: 114.5 kB / 1.119 GB, free: 41.99 MB / 0.7448 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.255e-05/1.241, allocations: 7.906 kB / 1.119 GB, free: 41.98 MB / 0.7448 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000152/1.241, allocations: 83.83 kB / 1.119 GB, free: 41.93 MB / 0.7448 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.866e-06/1.241, allocations: 0.5156 kB / 1.119 GB, free: 41.93 MB / 0.7448 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.118e-06/1.241, allocations: 0 / 1.119 GB, free: 41.93 MB / 0.7448 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.861e-06/1.241, allocations: 0.6562 kB / 1.119 GB, free: 41.93 MB / 0.7448 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002453/1.241, allocations: 331.9 kB / 1.119 GB, free: 41.59 MB / 0.7448 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.064e-06/1.241, allocations: 0.6875 kB / 1.119 GB, free: 41.59 MB / 0.7448 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.745e-05/1.241, allocations: 15.28 kB / 1.119 GB, free: 41.57 MB / 0.7448 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.055e-06/1.241, allocations: 0.8438 kB / 1.119 GB, free: 41.57 MB / 0.7448 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.148e-05/1.241, allocations: 0 / 1.119 GB, free: 41.57 MB / 0.7448 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.265e-06/1.241, allocations: 0.6875 kB / 1.119 GB, free: 41.57 MB / 0.7448 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.41e-07/1.241, allocations: 0.6562 kB / 1.119 GB, free: 41.57 MB / 0.7448 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000127/1.241, allocations: 179.6 kB / 1.119 GB, free: 41.41 MB / 0.7448 GB Notification: Performance of postOpt removeConstants (simulation): time 2.957e-05/1.241, allocations: 81.02 kB / 1.119 GB, free: 41.31 MB / 0.7448 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.726e-05/1.241, allocations: 0 / 1.119 GB, free: 41.31 MB / 0.7448 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.658e-05/1.242, allocations: 15.47 kB / 1.119 GB, free: 41.3 MB / 0.7448 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.978e-05/1.242, allocations: 7.422 kB / 1.119 GB, free: 41.29 MB / 0.7448 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.076e-05/1.242, allocations: 4 kB / 1.119 GB, free: 41.29 MB / 0.7448 GB Notification: Performance of sorting global known variables: time 3.322e-05/1.242, allocations: 84.22 kB / 1.119 GB, free: 41.21 MB / 0.7448 GB Notification: Performance of sort global known variables: time 1.4e-07/1.242, allocations: 0 / 1.119 GB, free: 41.21 MB / 0.7448 GB Notification: Performance of remove unused functions: time 0.0002194/1.242, allocations: 18.77 kB / 1.119 GB, free: 41.2 MB / 0.7448 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 () * 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.0002057/1.242, allocations: 112.1 kB / 1.119 GB, free: 41.08 MB / 0.7448 GB Notification: Performance of simCode: created initialization part: time 0.0001317/1.242, allocations: 45.94 kB / 1.119 GB, free: 41.05 MB / 0.7448 GB Notification: Performance of simCode: created event and clocks part: time 4.609e-06/1.242, allocations: 4 kB / 1.119 GB, free: 41.05 MB / 0.7448 GB Notification: Performance of simCode: created simulation system equations: time 5.001e-05/1.242, allocations: 26.77 kB / 1.119 GB, free: 41.03 MB / 0.7448 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002039/1.243, allocations: 5.672 kB / 1.119 GB, free: 41.03 MB / 0.7448 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002831/1.243, allocations: 78.12 kB / 1.12 GB, free: 40.95 MB / 0.7448 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001864/1.243, allocations: 0.684 MB / 1.12 GB, free: 40.24 MB / 0.7448 GB Notification: Performance of simCode: alias equations: time 4.013e-05/1.243, allocations: 11.31 kB / 1.12 GB, free: 40.23 MB / 0.7448 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.442e-05/1.243, allocations: 8.75 kB / 1.12 GB, free: 40.23 MB / 0.7448 GB Notification: Performance of SimCode: time 3.41e-07/1.243, allocations: 0 / 1.12 GB, free: 40.23 MB / 0.7448 GB Notification: Performance of Templates: time 0.003315/1.246, allocations: 0.6664 MB / 1.121 GB, free: 39.86 MB / 0.7448 GB make -j1 -f Buildings_8_Buildings.Controls.OBC.CDL.Discrete.Examples.Sampler.makefile (rm -f Buildings_8_Buildings.Controls.OBC.CDL.Discrete.Examples.Sampler.pipe ; mkfifo Buildings_8_Buildings.Controls.OBC.CDL.Discrete.Examples.Sampler.pipe ; head -c 1048576 < Buildings_8_Buildings.Controls.OBC.CDL.Discrete.Examples.Sampler.pipe >> ../files/Buildings_8_Buildings.Controls.OBC.CDL.Discrete.Examples.Sampler.sim & ./Buildings_8_Buildings.Controls.OBC.CDL.Discrete.Examples.Sampler -abortSlowSimulation -alarm=480 -lv LOG_STATS > Buildings_8_Buildings.Controls.OBC.CDL.Discrete.Examples.Sampler.pipe 2>&1)