Running: ./testmodel.py --libraries=/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_8.0.0_Buildings.Controls.OBC.CDL.Discrete.Examples.Sampler.conf.json loadFile("/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.0.0/package.mo", uses=false) loadFile("/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Using package Buildings with version 8.0.0 (/var/lib/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(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.0.0/package.mo): time 2.551/2.551, allocations: 284.8 MB / 297.3 MB, free: 6.328 MB / 234.7 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001533/0.001533, allocations: 188.6 kB / 365.7 MB, free: 2.578 MB / 298.7 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.998/1.998, allocations: 205.1 MB / 0.6241 GB, free: 8.207 MB / 474.7 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.00111/0.00111, allocations: 99.78 kB / 0.7372 GB, free: 40.76 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 5.134e-05/5.153e-05, allocations: 7.984 kB / 0.8574 GB, free: 13.7 MB / 0.6042 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.9255/0.9256, allocations: 115.2 MB / 0.97 GB, free: 78.29 MB / 0.6667 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.3108/1.236, allocations: 137.7 MB / 1.104 GB, free: 14.7 MB / 0.7136 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000259/1.237, allocations: 64.91 kB / 1.105 GB, free: 14.64 MB / 0.7136 GB Notification: Performance of FrontEnd - DAE generated: time 0.004838/1.242, allocations: 1.089 MB / 1.106 GB, free: 13.57 MB / 0.7136 GB Notification: Performance of FrontEnd: time 2.805e-06/1.242, allocations: 4 kB / 1.106 GB, free: 13.57 MB / 0.7136 GB Notification: Performance of Transformations before backend: time 6.994e-06/1.242, allocations: 2.844 kB / 1.106 GB, free: 13.57 MB / 0.7136 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.0006154/1.242, allocations: 361.7 kB / 1.106 GB, free: 13.18 MB / 0.7136 GB Notification: Performance of prepare preOptimizeDAE: time 4.41e-05/1.242, allocations: 8.031 kB / 1.106 GB, free: 13.17 MB / 0.7136 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.938e-05/1.242, allocations: 6.359 kB / 1.106 GB, free: 13.16 MB / 0.7136 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001352/1.243, allocations: 167.5 kB / 1.106 GB, free: 12.96 MB / 0.7136 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.271e-05/1.243, allocations: 7.984 kB / 1.106 GB, free: 12.95 MB / 0.7136 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.418e-05/1.243, allocations: 11.61 kB / 1.106 GB, free: 12.95 MB / 0.7136 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001551/1.243, allocations: 47.7 kB / 1.106 GB, free: 12.89 MB / 0.7136 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.392e-05/1.243, allocations: 1.5 kB / 1.106 GB, free: 12.89 MB / 0.7136 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.525e-05/1.243, allocations: 4 kB / 1.106 GB, free: 12.89 MB / 0.7136 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.648e-06/1.243, allocations: 4 kB / 1.106 GB, free: 12.89 MB / 0.7136 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 8.41e-05/1.243, allocations: 18.88 kB / 1.106 GB, free: 12.87 MB / 0.7136 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005562/1.244, allocations: 284.2 kB / 1.106 GB, free: 12.55 MB / 0.7136 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000128/1.244, allocations: 38.58 kB / 1.107 GB, free: 12.5 MB / 0.7136 GB Notification: Performance of preOpt resolveLoops (simulation): time 6.398e-05/1.244, allocations: 16.98 kB / 1.107 GB, free: 12.48 MB / 0.7136 GB Notification: Performance of preOpt evalFunc (simulation): time 2.587e-05/1.244, allocations: 0 / 1.107 GB, free: 12.48 MB / 0.7136 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000144/1.244, allocations: 69.92 kB / 1.107 GB, free: 12.4 MB / 0.7136 GB Notification: Performance of pre-optimization done (n=6): time 1.964e-06/1.244, allocations: 1.156 kB / 1.107 GB, free: 12.4 MB / 0.7136 GB Notification: Performance of matching and sorting (n=6): time 0.0002491/1.244, allocations: 69.69 kB / 1.107 GB, free: 12.33 MB / 0.7136 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.985e-05/1.244, allocations: 52.31 kB / 1.107 GB, free: 12.27 MB / 0.7136 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.752e-05/1.244, allocations: 103.8 kB / 1.107 GB, free: 12.16 MB / 0.7136 GB Notification: Performance of collectPreVariables (initialization): time 2.602e-05/1.244, allocations: 26.23 kB / 1.107 GB, free: 12.13 MB / 0.7136 GB Notification: Performance of collectInitialEqns (initialization): time 6.076e-05/1.244, allocations: 98.47 kB / 1.107 GB, free: 12.03 MB / 0.7136 GB Notification: Performance of collectInitialBindings (initialization): time 3.174e-05/1.245, allocations: 15.84 kB / 1.107 GB, free: 12.02 MB / 0.7136 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.216e-05/1.245, allocations: 11.56 kB / 1.107 GB, free: 12.01 MB / 0.7136 GB Notification: Performance of setup shared object (initialization): time 0.0001312/1.245, allocations: 310.8 kB / 1.107 GB, free: 11.7 MB / 0.7136 GB Notification: Performance of preBalanceInitialSystem (initialization): time 5.191e-05/1.245, allocations: 12 kB / 1.107 GB, free: 11.68 MB / 0.7136 GB Notification: Performance of partitionIndependentBlocks (initialization): time 9.905e-05/1.245, allocations: 44.05 kB / 1.107 GB, free: 11.63 MB / 0.7136 GB Notification: Performance of analyzeInitialSystem (initialization): time 6.743e-05/1.245, allocations: 19.8 kB / 1.107 GB, free: 11.61 MB / 0.7136 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.214e-06/1.245, allocations: 0.875 kB / 1.107 GB, free: 11.61 MB / 0.7136 GB Notification: Performance of matching and sorting (n=8) (initialization): time 0.0002067/1.245, allocations: 80.7 kB / 1.107 GB, free: 11.53 MB / 0.7136 GB Notification: Performance of prepare postOptimizeDAE: time 2.215e-05/1.245, allocations: 8 kB / 1.107 GB, free: 11.52 MB / 0.7136 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.493e-06/1.245, allocations: 0 / 1.107 GB, free: 11.52 MB / 0.7136 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.507e-05/1.245, allocations: 0 / 1.107 GB, free: 11.52 MB / 0.7136 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001901/1.245, allocations: 19.92 kB / 1.107 GB, free: 11.5 MB / 0.7136 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.134e-05/1.245, allocations: 4 kB / 1.107 GB, free: 11.5 MB / 0.7136 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001255/1.246, allocations: 17.11 kB / 1.107 GB, free: 11.48 MB / 0.7136 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.575e-05/1.246, allocations: 3.953 kB / 1.107 GB, free: 11.48 MB / 0.7136 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 9.323e-05/1.246, allocations: 110.6 kB / 1.108 GB, free: 11.37 MB / 0.7136 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.745e-05/1.246, allocations: 3.906 kB / 1.108 GB, free: 11.36 MB / 0.7136 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002315/1.246, allocations: 82.23 kB / 1.108 GB, free: 11.27 MB / 0.7136 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.028e-06/1.246, allocations: 4.094 kB / 1.108 GB, free: 11.27 MB / 0.7136 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.499e-06/1.246, allocations: 0 / 1.108 GB, free: 11.27 MB / 0.7136 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.097e-06/1.246, allocations: 4 kB / 1.108 GB, free: 11.27 MB / 0.7136 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004445/1.246, allocations: 326.5 kB / 1.108 GB, free: 10.89 MB / 0.7136 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.024e-06/1.247, allocations: 0 / 1.108 GB, free: 10.89 MB / 0.7136 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001164/1.247, allocations: 15.92 kB / 1.108 GB, free: 10.88 MB / 0.7136 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.679e-06/1.247, allocations: 1.375 kB / 1.108 GB, free: 10.88 MB / 0.7136 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.422e-05/1.247, allocations: 4 kB / 1.108 GB, free: 10.87 MB / 0.7136 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.274e-06/1.247, allocations: 4 kB / 1.108 GB, free: 10.87 MB / 0.7136 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.094e-06/1.247, allocations: 0 / 1.108 GB, free: 10.87 MB / 0.7136 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002275/1.247, allocations: 168.2 kB / 1.108 GB, free: 10.69 MB / 0.7136 GB Notification: Performance of postOpt removeConstants (simulation): time 5.382e-05/1.247, allocations: 85.02 kB / 1.108 GB, free: 10.59 MB / 0.7136 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.336e-05/1.247, allocations: 3.984 kB / 1.108 GB, free: 10.58 MB / 0.7136 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000159/1.247, allocations: 9.812 kB / 1.108 GB, free: 10.57 MB / 0.7136 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.001e-05/1.247, allocations: 11.98 kB / 1.108 GB, free: 10.56 MB / 0.7136 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.067e-05/1.247, allocations: 0 / 1.108 GB, free: 10.56 MB / 0.7136 GB Notification: Performance of sorting global known variables: time 6.057e-05/1.247, allocations: 87.23 kB / 1.108 GB, free: 10.48 MB / 0.7136 GB Notification: Performance of sort global known variables: time 2.575e-06/1.247, allocations: 0 / 1.108 GB, free: 10.48 MB / 0.7136 GB Notification: Performance of remove unused functions: time 0.0003175/1.248, allocations: 19.94 kB / 1.108 GB, free: 10.46 MB / 0.7136 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.0001861/1.248, allocations: 121.1 kB / 1.108 GB, free: 10.33 MB / 0.7136 GB Notification: Performance of simCode: created initialization part: time 0.000167/1.248, allocations: 39.94 kB / 1.109 GB, free: 10.3 MB / 0.7136 GB Notification: Performance of simCode: created event and clocks part: time 2.385e-06/1.248, allocations: 192 / 1.109 GB, free: 10.3 MB / 0.7136 GB Notification: Performance of simCode: created simulation system equations: time 8.304e-05/1.248, allocations: 31.92 kB / 1.109 GB, free: 10.27 MB / 0.7136 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002235/1.248, allocations: 5.406 kB / 1.109 GB, free: 10.26 MB / 0.7136 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002914/1.249, allocations: 79.33 kB / 1.109 GB, free: 10.16 MB / 0.7136 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000345/1.249, allocations: 0.6848 MB / 1.109 GB, free: 9.453 MB / 0.7136 GB Notification: Performance of simCode: alias equations: time 5.188e-05/1.249, allocations: 5.438 kB / 1.109 GB, free: 9.445 MB / 0.7136 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.691e-05/1.249, allocations: 11.44 kB / 1.109 GB, free: 9.434 MB / 0.7136 GB Notification: Performance of SimCode: time 6.61e-07/1.249, allocations: 4 kB / 1.109 GB, free: 9.43 MB / 0.7136 GB Notification: Performance of Templates: time 0.003848/1.253, allocations: 0.669 MB / 1.11 GB, free: 8.801 MB / 0.7136 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)