Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Discrete.Examples.Sampler.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/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 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/package.mo", uses=false) Using package Buildings with version 7.0.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/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 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: translateModel(Buildings.Controls.OBC.CDL.Discrete.Examples.Sampler,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_maint.7.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.7.0.x_Buildings.Controls.OBC.CDL.Discrete.Examples.Sampler") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009283/0.0009284, allocations: 85.94 kB / 15.06 MB, free: 1.09 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001325/0.001326, allocations: 168.7 kB / 15.95 MB, free: 204 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.764/1.764, allocations: 205.4 MB / 222.1 MB, free: 5.648 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/package.mo): time 1.601/1.601, allocations: 252 MB / 0.5102 GB, free: 4.816 MB / 414.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.0005391/0.0005393, allocations: 16 kB / 0.6243 GB, free: 1.148 MB / 0.5137 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.6052/0.6058, allocations: 106.3 MB / 0.7281 GB, free: 11.46 MB / 0.545 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Discrete.Examples.Sampler): time 0.002079/0.6079, allocations: 1.085 MB / 0.7292 GB, free: 10.37 MB / 0.545 GB Notification: Performance of NFInst.instExpressions: time 0.0006537/0.6086, allocations: 224.3 kB / 0.7294 GB, free: 10.14 MB / 0.545 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.512e-05/0.6087, allocations: 0 / 0.7294 GB, free: 10.14 MB / 0.545 GB Notification: Performance of NFTyping.typeComponents: time 2.692e-05/0.6087, allocations: 7.938 kB / 0.7294 GB, free: 10.14 MB / 0.545 GB Notification: Performance of NFTyping.typeBindings: time 8.317e-05/0.6088, allocations: 0 / 0.7294 GB, free: 10.14 MB / 0.545 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002193/0.609, allocations: 15.92 kB / 0.7294 GB, free: 10.12 MB / 0.545 GB Notification: Performance of NFFlatten.flatten: time 0.000177/0.6092, allocations: 35.92 kB / 0.7295 GB, free: 10.09 MB / 0.545 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001298/0.6094, allocations: 7.984 kB / 0.7295 GB, free: 10.08 MB / 0.545 GB Notification: Performance of NFEvalConstants.evaluate: time 8.974e-05/0.6094, allocations: 23.91 kB / 0.7295 GB, free: 10.05 MB / 0.545 GB Notification: Performance of NFSimplifyModel.simplify: time 6.628e-05/0.6095, allocations: 15.92 kB / 0.7295 GB, free: 10.04 MB / 0.545 GB Notification: Performance of NFPackage.collectConstants: time 2.13e-05/0.6096, allocations: 4 kB / 0.7295 GB, free: 10.04 MB / 0.545 GB Notification: Performance of NFFlatten.collectFunctions: time 1.426e-05/0.6096, allocations: 4 kB / 0.7295 GB, free: 10.03 MB / 0.545 GB Notification: Performance of NFScalarize.scalarize: time 2.429e-05/0.6096, allocations: 3.938 kB / 0.7295 GB, free: 10.03 MB / 0.545 GB Notification: Performance of NFVerifyModel.verify: time 5.008e-05/0.6097, allocations: 33.7 kB / 0.7296 GB, free: 9.988 MB / 0.545 GB Notification: Performance of NFConvertDAE.convert: time 0.0001165/0.6098, allocations: 31.94 kB / 0.7296 GB, free: 9.957 MB / 0.545 GB Notification: Performance of FrontEnd - DAE generated: time 1.018e-05/0.6098, allocations: 0 / 0.7296 GB, free: 9.957 MB / 0.545 GB Notification: Performance of FrontEnd: time 2.224e-06/0.6098, allocations: 0 / 0.7296 GB, free: 9.957 MB / 0.545 GB Notification: Performance of Transformations before backend: time 6.242e-06/0.6098, allocations: 0 / 0.7296 GB, free: 9.957 MB / 0.545 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.0007956/0.6106, allocations: 365.2 kB / 0.7299 GB, free: 9.555 MB / 0.545 GB Notification: Performance of prepare preOptimizeDAE: time 5.491e-05/0.6107, allocations: 8.031 kB / 0.73 GB, free: 9.547 MB / 0.545 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.44e-05/0.6107, allocations: 11.89 kB / 0.73 GB, free: 9.535 MB / 0.545 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001855/0.6109, allocations: 167 kB / 0.7301 GB, free: 9.332 MB / 0.545 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.804e-05/0.611, allocations: 7.938 kB / 0.7301 GB, free: 9.324 MB / 0.545 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.999e-05/0.611, allocations: 0 / 0.7301 GB, free: 9.324 MB / 0.545 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000256/0.6113, allocations: 77.59 kB / 0.7302 GB, free: 9.242 MB / 0.545 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.102e-05/0.6113, allocations: 0 / 0.7302 GB, free: 9.242 MB / 0.545 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.453e-05/0.6113, allocations: 0 / 0.7302 GB, free: 9.242 MB / 0.545 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.703e-06/0.6113, allocations: 0 / 0.7302 GB, free: 9.242 MB / 0.545 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001975/0.6115, allocations: 55.95 kB / 0.7303 GB, free: 9.188 MB / 0.545 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006026/0.6121, allocations: 276.8 kB / 0.7305 GB, free: 8.867 MB / 0.545 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001975/0.6124, allocations: 62.48 kB / 0.7306 GB, free: 8.797 MB / 0.545 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001123/0.6125, allocations: 40.91 kB / 0.7306 GB, free: 8.754 MB / 0.545 GB Notification: Performance of preOpt evalFunc (simulation): time 3.918e-05/0.6125, allocations: 3.984 kB / 0.7306 GB, free: 8.75 MB / 0.545 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002626/0.6128, allocations: 75.38 kB / 0.7307 GB, free: 8.664 MB / 0.545 GB Notification: Performance of pre-optimization done (n=6): time 1.342e-06/0.6128, allocations: 0 / 0.7307 GB, free: 8.664 MB / 0.545 GB Notification: Performance of matching and sorting (n=6): time 0.0004544/0.6133, allocations: 133.6 kB / 0.7308 GB, free: 8.527 MB / 0.545 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.629e-05/0.6133, allocations: 59.34 kB / 0.7309 GB, free: 8.457 MB / 0.545 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001002/0.6134, allocations: 110 kB / 0.731 GB, free: 8.34 MB / 0.545 GB Notification: Performance of collectPreVariables (initialization): time 1.893e-05/0.6135, allocations: 33.7 kB / 0.731 GB, free: 8.301 MB / 0.545 GB Notification: Performance of collectInitialEqns (initialization): time 9.33e-05/0.6136, allocations: 87.98 kB / 0.7311 GB, free: 8.211 MB / 0.545 GB Notification: Performance of collectInitialBindings (initialization): time 3.03e-05/0.6136, allocations: 19.95 kB / 0.7311 GB, free: 8.191 MB / 0.545 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.97e-06/0.6136, allocations: 0 / 0.7311 GB, free: 8.191 MB / 0.545 GB Notification: Performance of setup shared object (initialization): time 0.0001411/0.6138, allocations: 314.8 kB / 0.7314 GB, free: 7.875 MB / 0.545 GB Notification: Performance of preBalanceInitialSystem (initialization): time 8.962e-05/0.6139, allocations: 27.97 kB / 0.7314 GB, free: 7.848 MB / 0.545 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001065/0.614, allocations: 55.42 kB / 0.7315 GB, free: 7.781 MB / 0.545 GB Notification: Performance of analyzeInitialSystem (initialization): time 9.47e-05/0.6141, allocations: 31.97 kB / 0.7315 GB, free: 7.75 MB / 0.545 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.184e-06/0.6141, allocations: 8 kB / 0.7315 GB, free: 7.742 MB / 0.545 GB Notification: Performance of matching and sorting (n=8) (initialization): time 0.0002341/0.6143, allocations: 109.4 kB / 0.7316 GB, free: 7.629 MB / 0.545 GB Notification: Performance of prepare postOptimizeDAE: time 1.911e-05/0.6144, allocations: 9.562 kB / 0.7316 GB, free: 7.621 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.492e-06/0.6144, allocations: 256 / 0.7316 GB, free: 7.621 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.54e-05/0.6144, allocations: 4.094 kB / 0.7317 GB, free: 7.617 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00012/0.6145, allocations: 19.98 kB / 0.7317 GB, free: 7.598 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.131e-05/0.6145, allocations: 4 kB / 0.7317 GB, free: 7.594 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.284e-05/0.6146, allocations: 15.94 kB / 0.7317 GB, free: 7.578 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.568e-06/0.6146, allocations: 4 kB / 0.7317 GB, free: 7.574 MB / 0.545 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.0001214/0.6148, allocations: 117 kB / 0.7318 GB, free: 7.453 MB / 0.545 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.817e-05/0.6148, allocations: 7.906 kB / 0.7318 GB, free: 7.445 MB / 0.545 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002838/0.6151, allocations: 118 kB / 0.7319 GB, free: 7.324 MB / 0.545 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.208e-06/0.6151, allocations: 3.984 kB / 0.7319 GB, free: 7.32 MB / 0.545 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.568e-06/0.6151, allocations: 0 / 0.7319 GB, free: 7.32 MB / 0.545 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.367e-06/0.6151, allocations: 0 / 0.7319 GB, free: 7.32 MB / 0.545 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004865/0.6156, allocations: 366.5 kB / 0.7323 GB, free: 6.906 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.773e-06/0.6156, allocations: 0 / 0.7323 GB, free: 6.906 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.543e-05/0.6157, allocations: 8 kB / 0.7323 GB, free: 6.898 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.044e-06/0.6157, allocations: 3.938 kB / 0.7323 GB, free: 6.895 MB / 0.545 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.223e-05/0.6157, allocations: 11.98 kB / 0.7323 GB, free: 6.883 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.737e-06/0.6157, allocations: 4 kB / 0.7323 GB, free: 6.879 MB / 0.545 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.424e-06/0.6157, allocations: 7.891 kB / 0.7323 GB, free: 6.871 MB / 0.545 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002864/0.616, allocations: 199.4 kB / 0.7325 GB, free: 6.66 MB / 0.545 GB Notification: Performance of postOpt removeConstants (simulation): time 5.208e-05/0.6161, allocations: 85.05 kB / 0.7326 GB, free: 6.559 MB / 0.545 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.751e-05/0.6161, allocations: 3.984 kB / 0.7326 GB, free: 6.555 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.893e-05/0.6162, allocations: 8 kB / 0.7326 GB, free: 6.547 MB / 0.545 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.984e-05/0.6162, allocations: 11.92 kB / 0.7326 GB, free: 6.535 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.599e-05/0.6163, allocations: 3.953 kB / 0.7326 GB, free: 6.531 MB / 0.545 GB Notification: Performance of sorting global known variables: time 4.853e-05/0.6163, allocations: 91.45 kB / 0.7327 GB, free: 6.441 MB / 0.545 GB Notification: Performance of sort global known variables: time 1e-07/0.6163, allocations: 0 / 0.7327 GB, free: 6.441 MB / 0.545 GB Notification: Performance of remove unused functions: time 0.0002196/0.6165, allocations: 12 kB / 0.7327 GB, free: 6.43 MB / 0.545 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.0002481/0.6168, allocations: 106.1 kB / 0.7328 GB, free: 6.32 MB / 0.545 GB Notification: Performance of simCode: created initialization part: time 0.0002585/0.6171, allocations: 67.89 kB / 0.7329 GB, free: 6.254 MB / 0.545 GB Notification: Performance of simCode: created event and clocks part: time 1.954e-06/0.6171, allocations: 4.188 kB / 0.7329 GB, free: 6.25 MB / 0.545 GB Notification: Performance of simCode: created simulation system equations: time 0.0001087/0.6172, allocations: 35.97 kB / 0.7329 GB, free: 6.215 MB / 0.545 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002609/0.6175, allocations: 8 kB / 0.7329 GB, free: 6.207 MB / 0.545 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004792/0.618, allocations: 136.7 kB / 0.7331 GB, free: 6.043 MB / 0.545 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003095/0.6183, allocations: 0.6926 MB / 0.7337 GB, free: 5.324 MB / 0.545 GB Notification: Performance of simCode: alias equations: time 3.543e-05/0.6183, allocations: 3.938 kB / 0.7337 GB, free: 5.316 MB / 0.545 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.383e-05/0.6184, allocations: 11.44 kB / 0.7337 GB, free: 5.305 MB / 0.545 GB Notification: Performance of SimCode: time 5.51e-07/0.6184, allocations: 0 / 0.7337 GB, free: 5.305 MB / 0.545 GB Notification: Performance of Templates: time 0.003216/0.6216, allocations: 0.5436 MB / 0.7343 GB, free: 4.766 MB / 0.545 GB make -j1 -f Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Discrete.Examples.Sampler.makefile Environment - environmentSimulation: (rm -f Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Discrete.Examples.Sampler.pipe ; mkfifo Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Discrete.Examples.Sampler.pipe ; head -c 1048576 < Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Discrete.Examples.Sampler.pipe >> ../files/Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Discrete.Examples.Sampler.sim & ./Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Discrete.Examples.Sampler -abortSlowSimulation -alarm=480 -lv LOG_STATS > Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Discrete.Examples.Sampler.pipe 2>&1) Environment - environmentSimulation: