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 2.67/2.67, allocations: 287.5 MB / 303.2 MB, free: 8.277 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.001305/0.001305, allocations: 182.2 kB / 371.8 MB, free: 10.82 MB / 298.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.017/2.017, allocations: 205.4 MB / 0.6305 GB, free: 10.55 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.0008762/0.0008759, allocations: 97.95 kB / 0.7438 GB, free: 6.543 MB / 0.5573 GB Notification: Performance of FrontEnd - loaded program: time 0.0004902/0.0004903, allocations: 12.88 kB / 0.8667 GB, free: 140.6 MB / 0.6198 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2235/0.224, allocations: 115.3 MB / 0.9793 GB, free: 28.2 MB / 0.6198 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.9409/1.165, allocations: 137.8 MB / 1.114 GB, free: 15.87 MB / 0.6823 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002651/1.165, allocations: 79.03 kB / 1.114 GB, free: 15.86 MB / 0.6823 GB Notification: Performance of FrontEnd - DAE generated: time 0.005182/1.17, allocations: 1.093 MB / 1.115 GB, free: 31.52 MB / 0.698 GB Notification: Performance of FrontEnd: time 2.344e-06/1.171, allocations: 0 / 1.115 GB, free: 31.52 MB / 0.698 GB Notification: Performance of Transformations before backend: time 8.556e-06/1.171, allocations: 0 / 1.115 GB, free: 31.52 MB / 0.698 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.0006628/1.171, allocations: 370.1 kB / 1.115 GB, free: 31.15 MB / 0.698 GB Notification: Performance of prepare preOptimizeDAE: time 4.452e-05/1.171, allocations: 11.69 kB / 1.115 GB, free: 31.15 MB / 0.698 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.069e-05/1.171, allocations: 4.656 kB / 1.115 GB, free: 31.15 MB / 0.698 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001242/1.171, allocations: 170.2 kB / 1.116 GB, free: 30.95 MB / 0.698 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.585e-05/1.172, allocations: 2.016 kB / 1.116 GB, free: 30.95 MB / 0.698 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.141e-05/1.172, allocations: 7.844 kB / 1.116 GB, free: 30.95 MB / 0.698 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002886/1.172, allocations: 66.27 kB / 1.116 GB, free: 30.92 MB / 0.698 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.242e-05/1.172, allocations: 192 / 1.116 GB, free: 30.92 MB / 0.698 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.509e-05/1.172, allocations: 13.19 kB / 1.116 GB, free: 30.91 MB / 0.698 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.27e-06/1.172, allocations: 0 / 1.116 GB, free: 30.91 MB / 0.698 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002975/1.172, allocations: 55.83 kB / 1.116 GB, free: 30.91 MB / 0.698 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005459/1.173, allocations: 268.1 kB / 1.116 GB, free: 30.64 MB / 0.698 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002371/1.173, allocations: 66.31 kB / 1.116 GB, free: 30.61 MB / 0.698 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001613/1.173, allocations: 36.27 kB / 1.116 GB, free: 30.6 MB / 0.698 GB Notification: Performance of preOpt evalFunc (simulation): time 3.344e-05/1.173, allocations: 15.19 kB / 1.116 GB, free: 30.59 MB / 0.698 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002843/1.174, allocations: 72.06 kB / 1.116 GB, free: 30.55 MB / 0.698 GB Notification: Performance of pre-optimization done (n=6): time 2.966e-06/1.174, allocations: 0 / 1.116 GB, free: 30.55 MB / 0.698 GB Notification: Performance of matching and sorting (n=6): time 0.0006455/1.174, allocations: 140.9 kB / 1.116 GB, free: 30.51 MB / 0.698 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.045e-05/1.174, allocations: 51.41 kB / 1.116 GB, free: 30.45 MB / 0.698 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001118/1.174, allocations: 104.4 kB / 1.116 GB, free: 30.35 MB / 0.698 GB Notification: Performance of collectPreVariables (initialization): time 2.369e-05/1.174, allocations: 33.36 kB / 1.116 GB, free: 30.32 MB / 0.698 GB Notification: Performance of collectInitialEqns (initialization): time 6.043e-05/1.175, allocations: 80.14 kB / 1.117 GB, free: 30.23 MB / 0.698 GB Notification: Performance of collectInitialBindings (initialization): time 2.925e-05/1.175, allocations: 32.11 kB / 1.117 GB, free: 30.21 MB / 0.698 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.003e-06/1.175, allocations: 0 / 1.117 GB, free: 30.21 MB / 0.698 GB Notification: Performance of setup shared object (initialization): time 0.000143/1.175, allocations: 317.5 kB / 1.117 GB, free: 29.9 MB / 0.698 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00016/1.175, allocations: 28.44 kB / 1.117 GB, free: 29.9 MB / 0.698 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001726/1.175, allocations: 58.33 kB / 1.117 GB, free: 29.87 MB / 0.698 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003272/1.175, allocations: 98.66 kB / 1.117 GB, free: 29.82 MB / 0.698 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.088e-06/1.175, allocations: 0 / 1.117 GB, free: 29.82 MB / 0.698 GB Notification: Performance of matching and sorting (n=8) (initialization): time 0.0004685/1.176, allocations: 110.4 kB / 1.117 GB, free: 29.79 MB / 0.698 GB Notification: Performance of prepare postOptimizeDAE: time 1.968e-05/1.176, allocations: 7.938 kB / 1.117 GB, free: 29.78 MB / 0.698 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.137e-06/1.176, allocations: 3.844 kB / 1.117 GB, free: 29.78 MB / 0.698 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.769e-05/1.176, allocations: 0 / 1.117 GB, free: 29.78 MB / 0.698 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001672/1.176, allocations: 14.08 kB / 1.117 GB, free: 29.78 MB / 0.698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.131e-05/1.176, allocations: 10.72 kB / 1.117 GB, free: 29.78 MB / 0.698 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001149/1.176, allocations: 14.84 kB / 1.117 GB, free: 29.77 MB / 0.698 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.606e-05/1.176, allocations: 6.453 kB / 1.117 GB, free: 29.77 MB / 0.698 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 0.0001236/1.176, allocations: 124.5 kB / 1.117 GB, free: 29.65 MB / 0.698 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.674e-05/1.177, allocations: 3.969 kB / 1.117 GB, free: 29.65 MB / 0.698 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004368/1.177, allocations: 109.1 kB / 1.117 GB, free: 29.62 MB / 0.698 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.489e-06/1.177, allocations: 0 / 1.117 GB, free: 29.62 MB / 0.698 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.414e-06/1.177, allocations: 3.812 kB / 1.117 GB, free: 29.62 MB / 0.698 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.168e-06/1.177, allocations: 7.938 kB / 1.117 GB, free: 29.61 MB / 0.698 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006374/1.178, allocations: 357.8 kB / 1.118 GB, free: 29.31 MB / 0.698 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.045e-06/1.178, allocations: 3.938 kB / 1.118 GB, free: 29.31 MB / 0.698 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001105/1.178, allocations: 14.61 kB / 1.118 GB, free: 29.3 MB / 0.698 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.258e-06/1.178, allocations: 0 / 1.118 GB, free: 29.3 MB / 0.698 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.341e-05/1.178, allocations: 5.109 kB / 1.118 GB, free: 29.3 MB / 0.698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.866e-06/1.178, allocations: 0 / 1.118 GB, free: 29.3 MB / 0.698 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.146e-06/1.178, allocations: 0.625 kB / 1.118 GB, free: 29.3 MB / 0.698 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004516/1.178, allocations: 213.1 kB / 1.118 GB, free: 29.16 MB / 0.698 GB Notification: Performance of postOpt removeConstants (simulation): time 5.729e-05/1.178, allocations: 78.61 kB / 1.118 GB, free: 29.07 MB / 0.698 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.06e-05/1.178, allocations: 3.875 kB / 1.118 GB, free: 29.07 MB / 0.698 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001571/1.179, allocations: 13.67 kB / 1.118 GB, free: 29.07 MB / 0.698 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.164e-05/1.179, allocations: 2.578 kB / 1.118 GB, free: 29.07 MB / 0.698 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.421e-05/1.179, allocations: 11.75 kB / 1.118 GB, free: 29.06 MB / 0.698 GB Notification: Performance of sorting global known variables: time 6.479e-05/1.179, allocations: 89.91 kB / 1.118 GB, free: 28.98 MB / 0.698 GB Notification: Performance of sort global known variables: time 3.81e-07/1.179, allocations: 0 / 1.118 GB, free: 28.98 MB / 0.698 GB Notification: Performance of remove unused functions: time 0.0003496/1.179, allocations: 23.38 kB / 1.118 GB, free: 28.97 MB / 0.698 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 0.0001869/1.179, allocations: 109.8 kB / 1.118 GB, free: 28.88 MB / 0.698 GB Notification: Performance of simCode: created initialization part: time 0.0004197/1.18, allocations: 77.17 kB / 1.118 GB, free: 28.87 MB / 0.698 GB Notification: Performance of simCode: created event and clocks part: time 2.625e-06/1.18, allocations: 0 / 1.118 GB, free: 28.87 MB / 0.698 GB Notification: Performance of simCode: created simulation system equations: time 0.0001812/1.18, allocations: 39.77 kB / 1.118 GB, free: 28.86 MB / 0.698 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000345/1.18, allocations: 9.219 kB / 1.118 GB, free: 28.86 MB / 0.698 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004078/1.181, allocations: 145.4 kB / 1.119 GB, free: 28.74 MB / 0.698 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002884/1.181, allocations: 0.6827 MB / 1.119 GB, free: 28.04 MB / 0.698 GB Notification: Performance of simCode: alias equations: time 5.268e-05/1.181, allocations: 5.031 kB / 1.119 GB, free: 28.04 MB / 0.698 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.158e-05/1.181, allocations: 11.28 kB / 1.119 GB, free: 28.04 MB / 0.698 GB Notification: Performance of SimCode: time 9.52e-07/1.181, allocations: 0 / 1.119 GB, free: 28.04 MB / 0.698 GB Notification: Performance of Templates: time 0.003659/1.185, allocations: 0.6849 MB / 1.12 GB, free: 27.97 MB / 0.698 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)