Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_maint.8.0.x_Buildings.Controls.OBC.CDL.Discrete.Examples.Sampler.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.0.1-maint.8.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 8.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.0.1-maint.8.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.8.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.8.0.x_Buildings.Controls.OBC.CDL.Discrete.Examples.Sampler") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.0.1-maint.8.0.x/package.mo): time 1.637/1.637, allocations: 285.6 MB / 293.1 MB, free: 10.21 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.001287/0.001287, allocations: 180.9 kB / 361.4 MB, free: 6.816 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.7/1.7, allocations: 205.2 MB / 0.62 GB, free: 11.63 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.0009892/0.0009895, allocations: 92.75 kB / 0.733 GB, free: 44.18 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 1.809e-05/1.811e-05, allocations: 4 kB / 0.8518 GB, free: 2.73 MB / 0.5886 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7203/0.7204, allocations: 115.3 MB / 0.9644 GB, free: 78.93 MB / 0.6667 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.2017/0.9222, allocations: 137.2 MB / 1.098 GB, free: 2.625 MB / 0.698 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002425/0.9225, allocations: 74.61 kB / 1.098 GB, free: 2.555 MB / 0.698 GB Notification: Performance of FrontEnd - DAE generated: time 0.003396/0.9259, allocations: 1.081 MB / 1.1 GB, free: 1.5 MB / 0.698 GB Notification: Performance of FrontEnd: time 1.583e-06/0.9259, allocations: 0 / 1.1 GB, free: 1.5 MB / 0.698 GB Notification: Performance of Transformations before backend: time 8.055e-06/0.9259, allocations: 1.531 kB / 1.1 GB, free: 1.5 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.0004891/0.9264, allocations: 363.7 kB / 1.1 GB, free: 1.102 MB / 0.698 GB Notification: Performance of prepare preOptimizeDAE: time 5.088e-05/0.9265, allocations: 8.031 kB / 1.1 GB, free: 1.094 MB / 0.698 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.277e-05/0.9265, allocations: 5.625 kB / 1.1 GB, free: 1.09 MB / 0.698 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001465/0.9267, allocations: 172.5 kB / 1.1 GB, free: 0.8828 MB / 0.698 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.162e-05/0.9267, allocations: 4 kB / 1.1 GB, free: 0.8789 MB / 0.698 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.418e-05/0.9267, allocations: 0 / 1.1 GB, free: 0.8789 MB / 0.698 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0001078/0.9268, allocations: 20 kB / 1.1 GB, free: 0.8594 MB / 0.698 GB Notification: Performance of preOpt clockPartitioning (simulation): time 9.734e-05/0.9269, allocations: 46.27 kB / 1.1 GB, free: 0.8086 MB / 0.698 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.266e-06/0.927, allocations: 0 / 1.1 GB, free: 0.8086 MB / 0.698 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.276e-05/0.927, allocations: 0.6562 kB / 1.1 GB, free: 0.8086 MB / 0.698 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.592e-06/0.927, allocations: 4.844 kB / 1.1 GB, free: 0.8047 MB / 0.698 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004549/0.9275, allocations: 259.4 kB / 1.1 GB, free: 0.5156 MB / 0.698 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001035/0.9276, allocations: 44.95 kB / 1.1 GB, free: 476 kB / 0.698 GB Notification: Performance of preOpt resolveLoops (simulation): time 2.978e-05/0.9276, allocations: 12.98 kB / 1.1 GB, free: 460 kB / 0.698 GB Notification: Performance of preOpt evalFunc (simulation): time 2.257e-05/0.9276, allocations: 4.625 kB / 1.1 GB, free: 456 kB / 0.698 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001228/0.9278, allocations: 56.83 kB / 1.1 GB, free: 388 kB / 0.698 GB Notification: Performance of pre-optimization done (n=6): time 1.703e-06/0.9278, allocations: 0 / 1.1 GB, free: 388 kB / 0.698 GB Notification: Performance of matching and sorting (n=6): time 0.0001971/0.928, allocations: 74.28 kB / 1.101 GB, free: 308 kB / 0.698 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.784e-05/0.928, allocations: 52.12 kB / 1.101 GB, free: 244 kB / 0.698 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.642e-05/0.9281, allocations: 94.34 kB / 1.101 GB, free: 144 kB / 0.698 GB Notification: Performance of collectPreVariables (initialization): time 1.982e-05/0.9282, allocations: 29.7 kB / 1.101 GB, free: 108 kB / 0.698 GB Notification: Performance of collectInitialEqns (initialization): time 4.719e-05/0.9282, allocations: 88.64 kB / 1.101 GB, free: 16 kB / 0.698 GB Notification: Performance of collectInitialBindings (initialization): time 1.925e-05/0.9282, allocations: 12.55 kB / 1.101 GB, free: 4 kB / 0.698 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.262e-06/0.9282, allocations: 4 kB / 1.101 GB, free: 0 / 0.698 GB Notification: Performance of setup shared object (initialization): time 0.0001464/0.9284, allocations: 322.8 kB / 1.101 GB, free: 15.68 MB / 0.7136 GB Notification: Performance of preBalanceInitialSystem (initialization): time 2.949e-05/0.9284, allocations: 12.56 kB / 1.101 GB, free: 15.67 MB / 0.7136 GB Notification: Performance of partitionIndependentBlocks (initialization): time 4.603e-05/0.9285, allocations: 40.2 kB / 1.101 GB, free: 15.62 MB / 0.7136 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001564/0.9287, allocations: 24.36 kB / 1.101 GB, free: 15.6 MB / 0.7136 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.936e-06/0.9287, allocations: 0 / 1.101 GB, free: 15.6 MB / 0.7136 GB Notification: Performance of matching and sorting (n=8) (initialization): time 0.0001994/0.9289, allocations: 86.27 kB / 1.101 GB, free: 15.51 MB / 0.7136 GB Notification: Performance of prepare postOptimizeDAE: time 2.161e-05/0.9289, allocations: 12.42 kB / 1.101 GB, free: 15.5 MB / 0.7136 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.223e-06/0.9289, allocations: 0 / 1.101 GB, free: 15.5 MB / 0.7136 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.879e-05/0.9289, allocations: 4 kB / 1.101 GB, free: 15.5 MB / 0.7136 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001237/0.9291, allocations: 22.92 kB / 1.101 GB, free: 15.48 MB / 0.7136 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.22e-06/0.9291, allocations: 0 / 1.101 GB, free: 15.48 MB / 0.7136 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.247e-05/0.9292, allocations: 8 kB / 1.101 GB, free: 15.47 MB / 0.7136 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.19e-05/0.9292, allocations: 4 kB / 1.101 GB, free: 15.47 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 8.207e-05/0.9293, allocations: 114.3 kB / 1.101 GB, free: 15.36 MB / 0.7136 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.604e-05/0.9293, allocations: 7.906 kB / 1.101 GB, free: 15.35 MB / 0.7136 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001517/0.9295, allocations: 74.25 kB / 1.102 GB, free: 15.27 MB / 0.7136 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.325e-06/0.9295, allocations: 0 / 1.102 GB, free: 15.27 MB / 0.7136 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.048e-06/0.9295, allocations: 96 / 1.102 GB, free: 15.27 MB / 0.7136 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.09e-06/0.9295, allocations: 7.984 kB / 1.102 GB, free: 15.26 MB / 0.7136 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000274/0.9298, allocations: 303.2 kB / 1.102 GB, free: 14.92 MB / 0.7136 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.007e-06/0.9298, allocations: 0 / 1.102 GB, free: 14.92 MB / 0.7136 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.872e-05/0.9299, allocations: 15.92 kB / 1.102 GB, free: 14.9 MB / 0.7136 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.297e-06/0.9299, allocations: 0 / 1.102 GB, free: 14.9 MB / 0.7136 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.858e-06/0.9299, allocations: 0 / 1.102 GB, free: 14.9 MB / 0.7136 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.984e-06/0.9299, allocations: 4 kB / 1.102 GB, free: 14.9 MB / 0.7136 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.234e-06/0.9299, allocations: 0 / 1.102 GB, free: 14.9 MB / 0.7136 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001525/0.9301, allocations: 169 kB / 1.102 GB, free: 14.72 MB / 0.7136 GB Notification: Performance of postOpt removeConstants (simulation): time 3.941e-05/0.9301, allocations: 87.17 kB / 1.102 GB, free: 14.62 MB / 0.7136 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.915e-05/0.9301, allocations: 3.984 kB / 1.102 GB, free: 14.61 MB / 0.7136 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.994e-05/0.9303, allocations: 8 kB / 1.102 GB, free: 14.61 MB / 0.7136 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.121e-05/0.9303, allocations: 7.984 kB / 1.102 GB, free: 14.6 MB / 0.7136 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.047e-05/0.9303, allocations: 0 / 1.102 GB, free: 14.6 MB / 0.7136 GB Notification: Performance of sorting global known variables: time 4.161e-05/0.9304, allocations: 94.97 kB / 1.102 GB, free: 14.51 MB / 0.7136 GB Notification: Performance of sort global known variables: time 1.3e-07/0.9304, allocations: 0 / 1.102 GB, free: 14.51 MB / 0.7136 GB Notification: Performance of remove unused functions: time 0.0002657/0.9306, allocations: 19.98 kB / 1.102 GB, free: 14.49 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.0001858/0.9308, allocations: 116.5 kB / 1.102 GB, free: 14.37 MB / 0.7136 GB Notification: Performance of simCode: created initialization part: time 0.0001191/0.931, allocations: 35.98 kB / 1.102 GB, free: 14.33 MB / 0.7136 GB Notification: Performance of simCode: created event and clocks part: time 2.254e-06/0.931, allocations: 0 / 1.102 GB, free: 14.33 MB / 0.7136 GB Notification: Performance of simCode: created simulation system equations: time 5.284e-05/0.931, allocations: 23.94 kB / 1.102 GB, free: 14.31 MB / 0.7136 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002057/0.9312, allocations: 14.88 kB / 1.102 GB, free: 14.3 MB / 0.7136 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002641/0.9315, allocations: 74.34 kB / 1.102 GB, free: 14.2 MB / 0.7136 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002621/0.9318, allocations: 0.6892 MB / 1.103 GB, free: 13.49 MB / 0.7136 GB Notification: Performance of simCode: alias equations: time 3.362e-05/0.9318, allocations: 192 / 1.103 GB, free: 13.48 MB / 0.7136 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.23e-05/0.9319, allocations: 11.44 kB / 1.103 GB, free: 13.47 MB / 0.7136 GB Notification: Performance of SimCode: time 3.3e-07/0.9319, allocations: 0 / 1.103 GB, free: 13.47 MB / 0.7136 GB Notification: Performance of Templates: time 0.002809/0.9347, allocations: 0.6377 MB / 1.104 GB, free: 12.88 MB / 0.7136 GB make -j1 -f Buildings_maint.8.0.x_Buildings.Controls.OBC.CDL.Discrete.Examples.Sampler.makefile (rm -f Buildings_maint.8.0.x_Buildings.Controls.OBC.CDL.Discrete.Examples.Sampler.pipe ; mkfifo Buildings_maint.8.0.x_Buildings.Controls.OBC.CDL.Discrete.Examples.Sampler.pipe ; head -c 1048576 < Buildings_maint.8.0.x_Buildings.Controls.OBC.CDL.Discrete.Examples.Sampler.pipe >> ../files/Buildings_maint.8.0.x_Buildings.Controls.OBC.CDL.Discrete.Examples.Sampler.sim & ./Buildings_maint.8.0.x_Buildings.Controls.OBC.CDL.Discrete.Examples.Sampler -abortSlowSimulation -alarm=480 -lv LOG_STATS > Buildings_maint.8.0.x_Buildings.Controls.OBC.CDL.Discrete.Examples.Sampler.pipe 2>&1)