Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Examples.Sampler.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.0.0-master/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package Buildings with version 9.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.0.0-master/package.mo) Running command: translateModel(Buildings.Controls.OBC.CDL.Discrete.Examples.Sampler,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_latest_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_latest_Buildings.Controls.OBC.CDL.Discrete.Examples.Sampler") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.0.0-master/package.mo): time 1.559/1.559, allocations: 297.8 MB / 313.7 MB, free: 144 kB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0009868/0.0009869, allocations: 180.5 kB / 384.6 MB, free: 10.87 MB / 314.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.265/1.265, allocations: 223.2 MB / 0.6626 GB, free: 4.34 MB / 490.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.00072/0.0007201, allocations: 98.02 kB / 0.7808 GB, free: 43.55 MB / 0.5417 GB Notification: Performance of FrontEnd - loaded program: time 0.0003472/0.0003473, allocations: 12.53 kB / 0.9088 GB, free: 0.6562 MB / 0.6198 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.5306/0.5309, allocations: 120.3 MB / 1.026 GB, free: 56.16 MB / 0.698 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.1591/0.69, allocations: 141.2 MB / 1.164 GB, free: 1.039 MB / 0.7292 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000204/0.6903, allocations: 65.23 kB / 1.164 GB, free: 0.9766 MB / 0.7292 GB Notification: Performance of FrontEnd - DAE generated: time 0.002977/0.6933, allocations: 1.104 MB / 1.165 GB, free: 15.89 MB / 0.7448 GB Notification: Performance of FrontEnd: time 2.384e-06/0.6933, allocations: 5.062 kB / 1.165 GB, free: 15.89 MB / 0.7448 GB Notification: Performance of Transformations before backend: time 7.494e-06/0.6933, allocations: 4 kB / 1.165 GB, free: 15.89 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.0004104/0.6937, allocations: 375.2 kB / 1.166 GB, free: 15.47 MB / 0.7448 GB Notification: Performance of prepare preOptimizeDAE: time 3.417e-05/0.6938, allocations: 8.031 kB / 1.166 GB, free: 15.46 MB / 0.7448 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.061e-05/0.6938, allocations: 4.938 kB / 1.166 GB, free: 15.46 MB / 0.7448 GB Notification: Performance of preOpt evaluateParameters (simulation): time 8.866e-05/0.6939, allocations: 169.1 kB / 1.166 GB, free: 15.26 MB / 0.7448 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.412e-05/0.6939, allocations: 0.875 kB / 1.166 GB, free: 15.26 MB / 0.7448 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.416e-05/0.6939, allocations: 4.375 kB / 1.166 GB, free: 15.25 MB / 0.7448 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001756/0.6941, allocations: 72.47 kB / 1.166 GB, free: 15.18 MB / 0.7448 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.865e-06/0.6941, allocations: 192 / 1.166 GB, free: 15.18 MB / 0.7448 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.254e-05/0.6942, allocations: 4.875 kB / 1.166 GB, free: 15.18 MB / 0.7448 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.737e-06/0.6942, allocations: 0.75 kB / 1.166 GB, free: 15.18 MB / 0.7448 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001659/0.6944, allocations: 58.36 kB / 1.166 GB, free: 15.12 MB / 0.7448 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003735/0.6947, allocations: 276.1 kB / 1.166 GB, free: 14.8 MB / 0.7448 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000142/0.6949, allocations: 58.48 kB / 1.166 GB, free: 14.74 MB / 0.7448 GB Notification: Performance of preOpt resolveLoops (simulation): time 9.038e-05/0.695, allocations: 40.95 kB / 1.166 GB, free: 14.7 MB / 0.7448 GB Notification: Performance of preOpt evalFunc (simulation): time 2.108e-05/0.695, allocations: 1.125 kB / 1.166 GB, free: 14.7 MB / 0.7448 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001842/0.6952, allocations: 79.33 kB / 1.166 GB, free: 14.61 MB / 0.7448 GB Notification: Performance of pre-optimization done (n=6): time 3.997e-06/0.6952, allocations: 4 kB / 1.166 GB, free: 14.6 MB / 0.7448 GB Notification: Performance of matching and sorting (n=6): time 0.0003686/0.6956, allocations: 137.5 kB / 1.167 GB, free: 14.46 MB / 0.7448 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.978e-05/0.6956, allocations: 51.41 kB / 1.167 GB, free: 14.4 MB / 0.7448 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.551e-05/0.6957, allocations: 109.8 kB / 1.167 GB, free: 14.28 MB / 0.7448 GB Notification: Performance of collectPreVariables (initialization): time 1.355e-05/0.6957, allocations: 25.7 kB / 1.167 GB, free: 14.25 MB / 0.7448 GB Notification: Performance of collectInitialEqns (initialization): time 3.606e-05/0.6958, allocations: 92.12 kB / 1.167 GB, free: 14.16 MB / 0.7448 GB Notification: Performance of collectInitialBindings (initialization): time 1.918e-05/0.6958, allocations: 11.75 kB / 1.167 GB, free: 14.14 MB / 0.7448 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.05e-06/0.6958, allocations: 4 kB / 1.167 GB, free: 14.14 MB / 0.7448 GB Notification: Performance of setup shared object (initialization): time 8.23e-05/0.6959, allocations: 314.8 kB / 1.167 GB, free: 13.82 MB / 0.7448 GB Notification: Performance of preBalanceInitialSystem (initialization): time 9.288e-05/0.696, allocations: 31.97 kB / 1.167 GB, free: 13.79 MB / 0.7448 GB Notification: Performance of partitionIndependentBlocks (initialization): time 9.74e-05/0.6961, allocations: 59.34 kB / 1.167 GB, free: 13.72 MB / 0.7448 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001833/0.6963, allocations: 87.34 kB / 1.167 GB, free: 13.62 MB / 0.7448 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.914e-06/0.6963, allocations: 7.875 kB / 1.167 GB, free: 13.62 MB / 0.7448 GB Notification: Performance of matching and sorting (n=8) (initialization): time 0.0002425/0.6966, allocations: 118.7 kB / 1.167 GB, free: 13.5 MB / 0.7448 GB Notification: Performance of prepare postOptimizeDAE: time 1.26e-05/0.6966, allocations: 8 kB / 1.167 GB, free: 13.49 MB / 0.7448 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.258e-06/0.6966, allocations: 0 / 1.167 GB, free: 13.49 MB / 0.7448 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.319e-05/0.6966, allocations: 0 / 1.167 GB, free: 13.49 MB / 0.7448 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001018/0.6967, allocations: 16.48 kB / 1.167 GB, free: 13.47 MB / 0.7448 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.083e-06/0.6967, allocations: 4 kB / 1.167 GB, free: 13.47 MB / 0.7448 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.581e-05/0.6968, allocations: 19.98 kB / 1.167 GB, free: 13.45 MB / 0.7448 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.758e-06/0.6968, allocations: 4 kB / 1.167 GB, free: 13.45 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 () * 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 7.51e-05/0.6969, allocations: 123 kB / 1.168 GB, free: 13.32 MB / 0.7448 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.095e-05/0.6969, allocations: 4 kB / 1.168 GB, free: 13.31 MB / 0.7448 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000252/0.6972, allocations: 118 kB / 1.168 GB, free: 13.2 MB / 0.7448 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.346e-06/0.6972, allocations: 3.984 kB / 1.168 GB, free: 13.19 MB / 0.7448 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.306e-06/0.6972, allocations: 0 / 1.168 GB, free: 13.19 MB / 0.7448 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.156e-06/0.6972, allocations: 0 / 1.168 GB, free: 13.19 MB / 0.7448 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003888/0.6976, allocations: 371.4 kB / 1.168 GB, free: 12.77 MB / 0.7448 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.493e-06/0.6976, allocations: 0 / 1.168 GB, free: 12.77 MB / 0.7448 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.699e-05/0.6977, allocations: 8 kB / 1.168 GB, free: 12.77 MB / 0.7448 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.733e-06/0.6977, allocations: 0 / 1.168 GB, free: 12.77 MB / 0.7448 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.039e-05/0.6977, allocations: 7.984 kB / 1.168 GB, free: 12.76 MB / 0.7448 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.293e-06/0.6977, allocations: 0 / 1.168 GB, free: 12.76 MB / 0.7448 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.31e-07/0.6977, allocations: 0 / 1.168 GB, free: 12.76 MB / 0.7448 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002457/0.698, allocations: 211.3 kB / 1.168 GB, free: 12.54 MB / 0.7448 GB Notification: Performance of postOpt removeConstants (simulation): time 2.87e-05/0.698, allocations: 77.11 kB / 1.168 GB, free: 12.44 MB / 0.7448 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.472e-05/0.698, allocations: 3.984 kB / 1.168 GB, free: 12.44 MB / 0.7448 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.663e-05/0.6981, allocations: 16 kB / 1.168 GB, free: 12.42 MB / 0.7448 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.664e-05/0.6982, allocations: 7.984 kB / 1.168 GB, free: 12.41 MB / 0.7448 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.556e-05/0.6982, allocations: 6.281 kB / 1.168 GB, free: 12.41 MB / 0.7448 GB Notification: Performance of sorting global known variables: time 3.823e-05/0.6982, allocations: 87.45 kB / 1.168 GB, free: 12.32 MB / 0.7448 GB Notification: Performance of sort global known variables: time 1.41e-07/0.6982, allocations: 0 / 1.168 GB, free: 12.32 MB / 0.7448 GB Notification: Performance of remove unused functions: time 0.0002282/0.6985, allocations: 23.94 kB / 1.169 GB, free: 12.3 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 () * 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.0001406/0.6986, allocations: 107.7 kB / 1.169 GB, free: 12.18 MB / 0.7448 GB Notification: Performance of simCode: created initialization part: time 0.0002284/0.6988, allocations: 80.06 kB / 1.169 GB, free: 12.11 MB / 0.7448 GB Notification: Performance of simCode: created event and clocks part: time 1.503e-06/0.6989, allocations: 0 / 1.169 GB, free: 12.11 MB / 0.7448 GB Notification: Performance of simCode: created simulation system equations: time 9.861e-05/0.699, allocations: 35.98 kB / 1.169 GB, free: 12.07 MB / 0.7448 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002376/0.6992, allocations: 16.17 kB / 1.169 GB, free: 12.05 MB / 0.7448 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002837/0.6995, allocations: 149 kB / 1.169 GB, free: 11.88 MB / 0.7448 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001914/0.6997, allocations: 0.6809 MB / 1.17 GB, free: 11.17 MB / 0.7448 GB Notification: Performance of simCode: alias equations: time 3.002e-05/0.6997, allocations: 4 kB / 1.17 GB, free: 11.17 MB / 0.7448 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.093e-05/0.6998, allocations: 11.42 kB / 1.17 GB, free: 11.16 MB / 0.7448 GB Notification: Performance of SimCode: time 2e-07/0.6998, allocations: 4 kB / 1.17 GB, free: 11.15 MB / 0.7448 GB Notification: Performance of Templates: time 0.002514/0.7023, allocations: 0.6778 MB / 1.17 GB, free: 10.49 MB / 0.7448 GB make -j1 -f Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Examples.Sampler.makefile (rm -f Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Examples.Sampler.pipe ; mkfifo Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Examples.Sampler.pipe ; head -c 1048576 < Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Examples.Sampler.pipe >> ../files/Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Examples.Sampler.sim & ./Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Examples.Sampler -abortSlowSimulation -alarm=480 -lv LOG_STATS > Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Examples.Sampler.pipe 2>&1)