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.001411/0.001411, allocations: 101.5 kB / 15.06 MB, free: 1.094 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.001761/0.001761, allocations: 177.3 kB / 15.95 MB, free: 208 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.774/1.774, allocations: 205.4 MB / 222.1 MB, free: 5.668 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.726/1.726, allocations: 251.9 MB / 0.51 GB, free: 4.902 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.0005378/0.0005379, allocations: 23.44 kB / 0.6241 GB, free: 1.188 MB / 0.5137 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.592/0.5925, allocations: 106.3 MB / 0.728 GB, free: 11.45 MB / 0.545 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Discrete.Examples.Sampler): time 0.001829/0.5944, allocations: 1.096 MB / 0.7291 GB, free: 10.34 MB / 0.545 GB Notification: Performance of NFInst.instExpressions: time 0.0005801/0.595, allocations: 208.3 kB / 0.7293 GB, free: 10.13 MB / 0.545 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.114e-05/0.5951, allocations: 0 / 0.7293 GB, free: 10.13 MB / 0.545 GB Notification: Performance of NFTyping.typeComponents: time 1.901e-05/0.5951, allocations: 3.938 kB / 0.7293 GB, free: 10.13 MB / 0.545 GB Notification: Performance of NFTyping.typeBindings: time 6.739e-05/0.5952, allocations: 7.984 kB / 0.7293 GB, free: 10.12 MB / 0.545 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001782/0.5954, allocations: 15.98 kB / 0.7293 GB, free: 10.11 MB / 0.545 GB Notification: Performance of NFFlatten.flatten: time 7.319e-05/0.5954, allocations: 27.89 kB / 0.7293 GB, free: 10.08 MB / 0.545 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001064/0.5955, allocations: 11.98 kB / 0.7293 GB, free: 10.07 MB / 0.545 GB Notification: Performance of NFEvalConstants.evaluate: time 7.359e-05/0.5956, allocations: 19.98 kB / 0.7293 GB, free: 10.05 MB / 0.545 GB Notification: Performance of NFSimplifyModel.simplify: time 4.835e-05/0.5957, allocations: 11.92 kB / 0.7293 GB, free: 10.04 MB / 0.545 GB Notification: Performance of NFPackage.collectConstants: time 1.454e-05/0.5957, allocations: 0 / 0.7293 GB, free: 10.04 MB / 0.545 GB Notification: Performance of NFFlatten.collectFunctions: time 1.187e-05/0.5957, allocations: 4 kB / 0.7294 GB, free: 10.03 MB / 0.545 GB Notification: Performance of NFScalarize.scalarize: time 1.954e-05/0.5957, allocations: 7.938 kB / 0.7294 GB, free: 10.02 MB / 0.545 GB Notification: Performance of NFVerifyModel.verify: time 4.783e-05/0.5958, allocations: 29.7 kB / 0.7294 GB, free: 9.988 MB / 0.545 GB Notification: Performance of NFConvertDAE.convert: time 8.273e-05/0.5959, allocations: 35.92 kB / 0.7294 GB, free: 9.953 MB / 0.545 GB Notification: Performance of FrontEnd - DAE generated: time 2.645e-06/0.5959, allocations: 3.938 kB / 0.7294 GB, free: 9.949 MB / 0.545 GB Notification: Performance of FrontEnd: time 1.513e-06/0.5959, allocations: 0 / 0.7294 GB, free: 9.949 MB / 0.545 GB Notification: Performance of Transformations before backend: time 4.138e-06/0.5959, allocations: 0 / 0.7294 GB, free: 9.949 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.000579/0.5965, allocations: 365.2 kB / 0.7298 GB, free: 9.547 MB / 0.545 GB Notification: Performance of prepare preOptimizeDAE: time 3.91e-05/0.5965, allocations: 8.031 kB / 0.7298 GB, free: 9.539 MB / 0.545 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.057e-05/0.5966, allocations: 11.89 kB / 0.7298 GB, free: 9.527 MB / 0.545 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001335/0.5967, allocations: 167 kB / 0.73 GB, free: 9.324 MB / 0.545 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.828e-05/0.5968, allocations: 8 kB / 0.73 GB, free: 9.316 MB / 0.545 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.711e-05/0.5968, allocations: 3.938 kB / 0.73 GB, free: 9.312 MB / 0.545 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002272/0.597, allocations: 73.66 kB / 0.73 GB, free: 9.234 MB / 0.545 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.738e-06/0.597, allocations: 0 / 0.73 GB, free: 9.234 MB / 0.545 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.265e-05/0.5971, allocations: 0 / 0.73 GB, free: 9.234 MB / 0.545 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.671e-06/0.5971, allocations: 0 / 0.73 GB, free: 9.234 MB / 0.545 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001912/0.5973, allocations: 51.95 kB / 0.7301 GB, free: 9.184 MB / 0.545 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004349/0.5977, allocations: 276.8 kB / 0.7303 GB, free: 8.863 MB / 0.545 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001746/0.5979, allocations: 66.48 kB / 0.7304 GB, free: 8.789 MB / 0.545 GB Notification: Performance of preOpt evalFunc (simulation): time 2.365e-05/0.5979, allocations: 4.062 kB / 0.7304 GB, free: 8.785 MB / 0.545 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002115/0.5982, allocations: 75.5 kB / 0.7305 GB, free: 8.699 MB / 0.545 GB Notification: Performance of pre-optimization done (n=6): time 1.412e-06/0.5982, allocations: 0 / 0.7305 GB, free: 8.699 MB / 0.545 GB Notification: Performance of matching and sorting (n=6): time 0.0004321/0.5986, allocations: 141.6 kB / 0.7306 GB, free: 8.555 MB / 0.545 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.58e-05/0.5987, allocations: 55.41 kB / 0.7307 GB, free: 8.488 MB / 0.545 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.619e-05/0.5987, allocations: 105.8 kB / 0.7308 GB, free: 8.375 MB / 0.545 GB Notification: Performance of collectPreVariables (initialization): time 2.727e-05/0.5988, allocations: 29.7 kB / 0.7308 GB, free: 8.34 MB / 0.545 GB Notification: Performance of collectInitialEqns (initialization): time 4.986e-05/0.5988, allocations: 95.98 kB / 0.7309 GB, free: 8.242 MB / 0.545 GB Notification: Performance of collectInitialBindings (initialization): time 1.965e-05/0.5989, allocations: 7.906 kB / 0.7309 GB, free: 8.234 MB / 0.545 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.73e-06/0.5989, allocations: 4 kB / 0.7309 GB, free: 8.23 MB / 0.545 GB Notification: Performance of setup shared object (initialization): time 0.0001161/0.599, allocations: 318.8 kB / 0.7312 GB, free: 7.91 MB / 0.545 GB Notification: Performance of preBalanceInitialSystem (initialization): time 9.307e-05/0.5991, allocations: 23.98 kB / 0.7312 GB, free: 7.887 MB / 0.545 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001075/0.5992, allocations: 59.41 kB / 0.7313 GB, free: 7.816 MB / 0.545 GB Notification: Performance of analyzeInitialSystem (initialization): time 9.903e-05/0.5993, allocations: 27.98 kB / 0.7313 GB, free: 7.789 MB / 0.545 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.824e-06/0.5993, allocations: 4 kB / 0.7313 GB, free: 7.785 MB / 0.545 GB Notification: Performance of matching and sorting (n=8) (initialization): time 0.0002489/0.5996, allocations: 117.4 kB / 0.7314 GB, free: 7.664 MB / 0.545 GB Notification: Performance of prepare postOptimizeDAE: time 1.849e-05/0.5996, allocations: 9.875 kB / 0.7314 GB, free: 7.656 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.11e-06/0.5996, allocations: 0 / 0.7314 GB, free: 7.656 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.306e-05/0.5996, allocations: 0 / 0.7314 GB, free: 7.656 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.877e-05/0.5998, allocations: 20.08 kB / 0.7315 GB, free: 7.637 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.724e-06/0.5998, allocations: 7.938 kB / 0.7315 GB, free: 7.629 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.166e-05/0.5998, allocations: 7.984 kB / 0.7315 GB, free: 7.621 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.063e-05/0.5999, allocations: 11.95 kB / 0.7315 GB, free: 7.609 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 9.558e-05/0.6, allocations: 117.8 kB / 0.7316 GB, free: 7.484 MB / 0.545 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.367e-05/0.6, allocations: 7.906 kB / 0.7316 GB, free: 7.477 MB / 0.545 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002922/0.6003, allocations: 114.1 kB / 0.7317 GB, free: 7.359 MB / 0.545 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.318e-06/0.6003, allocations: 4.547 kB / 0.7317 GB, free: 7.355 MB / 0.545 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.398e-06/0.6003, allocations: 0 / 0.7317 GB, free: 7.355 MB / 0.545 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.327e-06/0.6003, allocations: 0 / 0.7317 GB, free: 7.355 MB / 0.545 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004558/0.6008, allocations: 370.5 kB / 0.7321 GB, free: 6.938 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.412e-06/0.6008, allocations: 0 / 0.7321 GB, free: 6.938 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.098e-05/0.6009, allocations: 11.98 kB / 0.7321 GB, free: 6.926 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.974e-06/0.6009, allocations: 0 / 0.7321 GB, free: 6.926 MB / 0.545 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.167e-06/0.6009, allocations: 0 / 0.7321 GB, free: 6.926 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.342e-06/0.6009, allocations: 8 kB / 0.7321 GB, free: 6.918 MB / 0.545 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.002e-06/0.6009, allocations: 0 / 0.7321 GB, free: 6.918 MB / 0.545 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003111/0.6012, allocations: 203.4 kB / 0.7323 GB, free: 6.703 MB / 0.545 GB Notification: Performance of postOpt removeConstants (simulation): time 3.987e-05/0.6013, allocations: 89.05 kB / 0.7324 GB, free: 6.598 MB / 0.545 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.603e-05/0.6013, allocations: 3.938 kB / 0.7324 GB, free: 6.594 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.764e-05/0.6014, allocations: 11.98 kB / 0.7324 GB, free: 6.582 MB / 0.545 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.178e-05/0.6014, allocations: 7.984 kB / 0.7324 GB, free: 6.574 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.288e-05/0.6015, allocations: 0 / 0.7324 GB, free: 6.574 MB / 0.545 GB Notification: Performance of sorting global known variables: time 3.967e-05/0.6015, allocations: 87.23 kB / 0.7325 GB, free: 6.488 MB / 0.545 GB Notification: Performance of sort global known variables: time 1.2e-07/0.6015, allocations: 0 / 0.7325 GB, free: 6.488 MB / 0.545 GB Notification: Performance of remove unused functions: time 0.0002291/0.6017, allocations: 12 kB / 0.7325 GB, free: 6.477 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.000112/0.6019, allocations: 103.2 kB / 0.7326 GB, free: 6.367 MB / 0.545 GB Notification: Performance of simCode: created initialization part: time 0.0002484/0.6021, allocations: 71.88 kB / 0.7327 GB, free: 6.297 MB / 0.545 GB Notification: Performance of simCode: created event and clocks part: time 1.583e-06/0.6021, allocations: 0 / 0.7327 GB, free: 6.297 MB / 0.545 GB Notification: Performance of simCode: created simulation system equations: time 0.0001118/0.6022, allocations: 44.11 kB / 0.7327 GB, free: 6.254 MB / 0.545 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001806/0.6024, allocations: 10.73 kB / 0.7327 GB, free: 6.246 MB / 0.545 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003207/0.6028, allocations: 140.7 kB / 0.7328 GB, free: 6.078 MB / 0.545 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002886/0.6031, allocations: 0.6926 MB / 0.7335 GB, free: 5.359 MB / 0.545 GB Notification: Performance of simCode: alias equations: time 2.971e-05/0.6031, allocations: 3.938 kB / 0.7335 GB, free: 5.352 MB / 0.545 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.976e-05/0.6031, allocations: 11.44 kB / 0.7335 GB, free: 5.34 MB / 0.545 GB Notification: Performance of SimCode: time 3.91e-07/0.6031, allocations: 3.938 kB / 0.7335 GB, free: 5.336 MB / 0.545 GB Notification: Performance of Templates: time 0.00273/0.6059, allocations: 0.5289 MB / 0.7341 GB, free: 4.812 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: