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.001244/0.001244, allocations: 115.3 kB / 15.34 MB, free: 0.5156 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.001364/0.001364, allocations: 189.6 kB / 16.25 MB, free: 6.629 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.809/1.809, allocations: 205.1 MB / 222.1 MB, free: 4.719 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.7/1.7, allocations: 251.7 MB / 0.5089 GB, free: 3.355 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.001422/0.001422, allocations: 59.91 kB / 0.6218 GB, free: 1.883 MB / 0.5137 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7052/0.7066, allocations: 104.7 MB / 0.724 GB, free: 13.11 MB / 0.545 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Discrete.Examples.Sampler): time 0.003376/0.71, allocations: 1.428 MB / 0.7254 GB, free: 11.67 MB / 0.545 GB Notification: Performance of NFInst.instExpressions: time 0.000689/0.7108, allocations: 224.2 kB / 0.7256 GB, free: 11.45 MB / 0.545 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.111e-05/0.7108, allocations: 4 kB / 0.7256 GB, free: 11.45 MB / 0.545 GB Notification: Performance of NFTyping.typeComponents: time 3.997e-05/0.7109, allocations: 3.984 kB / 0.7256 GB, free: 11.44 MB / 0.545 GB Notification: Performance of NFTyping.typeBindings: time 6.888e-05/0.711, allocations: 3.938 kB / 0.7256 GB, free: 11.44 MB / 0.545 GB Notification: Performance of NFTyping.typeClassSections: time 0.000217/0.7112, allocations: 23.97 kB / 0.7257 GB, free: 11.41 MB / 0.545 GB Notification: Performance of NFFlatten.flatten: time 0.0001025/0.7113, allocations: 51.8 kB / 0.7257 GB, free: 11.36 MB / 0.545 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001226/0.7114, allocations: 11.98 kB / 0.7257 GB, free: 11.35 MB / 0.545 GB Notification: Performance of NFEvalConstants.evaluate: time 7.567e-05/0.7115, allocations: 8 kB / 0.7257 GB, free: 11.34 MB / 0.545 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002036/0.7117, allocations: 31.84 kB / 0.7258 GB, free: 11.31 MB / 0.545 GB Notification: Performance of NFPackage.collectConstants: time 2.172e-05/0.7118, allocations: 4 kB / 0.7258 GB, free: 11.31 MB / 0.545 GB Notification: Performance of NFFlatten.collectFunctions: time 1.701e-05/0.7118, allocations: 7.938 kB / 0.7258 GB, free: 11.3 MB / 0.545 GB Notification: Performance of NFScalarize.scalarize: time 2.801e-05/0.7118, allocations: 7.984 kB / 0.7258 GB, free: 11.29 MB / 0.545 GB Notification: Performance of NFVerifyModel.verify: time 5.844e-05/0.7119, allocations: 15.92 kB / 0.7258 GB, free: 11.28 MB / 0.545 GB Notification: Performance of NFConvertDAE.convert: time 0.0001537/0.712, allocations: 39.81 kB / 0.7258 GB, free: 11.24 MB / 0.545 GB Notification: Performance of FrontEnd - DAE generated: time 7.504e-06/0.7121, allocations: 8 kB / 0.7258 GB, free: 11.23 MB / 0.545 GB Notification: Performance of FrontEnd: time 3.166e-06/0.7121, allocations: 0 / 0.7258 GB, free: 11.23 MB / 0.545 GB Notification: Performance of Transformations before backend: time 1.197e-05/0.7121, allocations: 0 / 0.7258 GB, free: 11.23 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.0008767/0.713, allocations: 365.3 kB / 0.7262 GB, free: 10.82 MB / 0.545 GB Notification: Performance of prepare preOptimizeDAE: time 5.23e-05/0.7131, allocations: 8.031 kB / 0.7262 GB, free: 10.82 MB / 0.545 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.529e-05/0.7131, allocations: 4.938 kB / 0.7262 GB, free: 10.81 MB / 0.545 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002244/0.7133, allocations: 176.3 kB / 0.7264 GB, free: 10.6 MB / 0.545 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.895e-05/0.7134, allocations: 8.375 kB / 0.7264 GB, free: 10.59 MB / 0.545 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.753e-05/0.7134, allocations: 4.375 kB / 0.7264 GB, free: 10.59 MB / 0.545 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002396/0.7136, allocations: 66.16 kB / 0.7264 GB, free: 10.52 MB / 0.545 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.335e-06/0.7136, allocations: 192 / 0.7264 GB, free: 10.52 MB / 0.545 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.599e-05/0.7137, allocations: 3.938 kB / 0.7264 GB, free: 10.52 MB / 0.545 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.594e-06/0.7137, allocations: 0 / 0.7264 GB, free: 10.52 MB / 0.545 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001834/0.7139, allocations: 43.95 kB / 0.7265 GB, free: 10.47 MB / 0.545 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005639/0.7144, allocations: 272.9 kB / 0.7267 GB, free: 10.16 MB / 0.545 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001903/0.7146, allocations: 62.42 kB / 0.7268 GB, free: 10.09 MB / 0.545 GB Notification: Performance of preOpt resolveLoops (simulation): time 9.372e-05/0.7147, allocations: 24.97 kB / 0.7268 GB, free: 10.06 MB / 0.545 GB Notification: Performance of preOpt evalFunc (simulation): time 3.551e-05/0.7148, allocations: 4 kB / 0.7268 GB, free: 10.05 MB / 0.545 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.00021/0.715, allocations: 75.38 kB / 0.7269 GB, free: 9.969 MB / 0.545 GB Notification: Performance of pre-optimization done (n=6): time 1.433e-06/0.715, allocations: 0 / 0.7269 GB, free: 9.969 MB / 0.545 GB Notification: Performance of matching and sorting (n=6): time 0.0004658/0.7155, allocations: 125.5 kB / 0.727 GB, free: 9.84 MB / 0.545 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.732e-05/0.7156, allocations: 55.41 kB / 0.7271 GB, free: 9.773 MB / 0.545 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001628/0.7157, allocations: 105.8 kB / 0.7272 GB, free: 9.66 MB / 0.545 GB Notification: Performance of collectPreVariables (initialization): time 2.631e-05/0.7158, allocations: 29.7 kB / 0.7272 GB, free: 9.625 MB / 0.545 GB Notification: Performance of collectInitialEqns (initialization): time 8.087e-05/0.7159, allocations: 88.08 kB / 0.7273 GB, free: 9.535 MB / 0.545 GB Notification: Performance of collectInitialBindings (initialization): time 2.876e-05/0.7159, allocations: 15.88 kB / 0.7273 GB, free: 9.52 MB / 0.545 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.07e-05/0.716, allocations: 25.7 kB / 0.7273 GB, free: 9.488 MB / 0.545 GB Notification: Performance of setup shared object (initialization): time 0.0001991/0.7162, allocations: 314.8 kB / 0.7276 GB, free: 9.172 MB / 0.545 GB Notification: Performance of preBalanceInitialSystem (initialization): time 9.628e-05/0.7163, allocations: 23.97 kB / 0.7277 GB, free: 9.148 MB / 0.545 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001134/0.7164, allocations: 47.42 kB / 0.7277 GB, free: 9.09 MB / 0.545 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002097/0.7166, allocations: 91.25 kB / 0.7278 GB, free: 8.988 MB / 0.545 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.425e-06/0.7166, allocations: 0 / 0.7278 GB, free: 8.988 MB / 0.545 GB Notification: Performance of matching and sorting (n=8) (initialization): time 0.0002411/0.7169, allocations: 109.5 kB / 0.7279 GB, free: 8.875 MB / 0.545 GB Notification: Performance of prepare postOptimizeDAE: time 1.729e-05/0.7169, allocations: 4 kB / 0.7279 GB, free: 8.871 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.969e-06/0.7169, allocations: 0 / 0.7279 GB, free: 8.871 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.39e-05/0.7169, allocations: 4 kB / 0.7279 GB, free: 8.867 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001044/0.717, allocations: 15.92 kB / 0.7279 GB, free: 8.852 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.225e-06/0.7171, allocations: 0 / 0.7279 GB, free: 8.852 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.863e-05/0.7171, allocations: 15.94 kB / 0.7279 GB, free: 8.836 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.043e-05/0.7172, allocations: 7.984 kB / 0.7279 GB, free: 8.828 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 (sampler1.firstTrigger,$PRE.sampler1.firstTrigger,sampler1.sampleTrigger,$whenCondition1,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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0002131/0.7174, allocations: 117.8 kB / 0.728 GB, free: 8.703 MB / 0.545 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.233e-05/0.7174, allocations: 4.5 kB / 0.7281 GB, free: 8.699 MB / 0.545 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003181/0.7177, allocations: 106 kB / 0.7282 GB, free: 8.59 MB / 0.545 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.545e-06/0.7177, allocations: 64 / 0.7282 GB, free: 8.59 MB / 0.545 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.697e-06/0.7177, allocations: 4 kB / 0.7282 GB, free: 8.586 MB / 0.545 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.246e-06/0.7177, allocations: 0 / 0.7282 GB, free: 8.586 MB / 0.545 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004733/0.7182, allocations: 350.5 kB / 0.7285 GB, free: 8.188 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.352e-06/0.7182, allocations: 0 / 0.7285 GB, free: 8.188 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.605e-05/0.7183, allocations: 15.92 kB / 0.7285 GB, free: 8.172 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.843e-06/0.7183, allocations: 0 / 0.7285 GB, free: 8.172 MB / 0.545 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.137e-05/0.7183, allocations: 0 / 0.7285 GB, free: 8.172 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.193e-06/0.7183, allocations: 4 kB / 0.7285 GB, free: 8.168 MB / 0.545 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.71e-07/0.7183, allocations: 0 / 0.7285 GB, free: 8.168 MB / 0.545 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003197/0.7187, allocations: 199.3 kB / 0.7287 GB, free: 7.957 MB / 0.545 GB Notification: Performance of postOpt removeConstants (simulation): time 4.016e-05/0.7187, allocations: 81.05 kB / 0.7288 GB, free: 7.859 MB / 0.545 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.967e-05/0.7187, allocations: 8 kB / 0.7288 GB, free: 7.852 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.345e-05/0.7188, allocations: 7.984 kB / 0.7288 GB, free: 7.844 MB / 0.545 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.069e-05/0.7189, allocations: 4 kB / 0.7288 GB, free: 7.84 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.835e-05/0.7189, allocations: 3.938 kB / 0.7288 GB, free: 7.836 MB / 0.545 GB Notification: Performance of sorting global known variables: time 8.98e-05/0.719, allocations: 91.27 kB / 0.7289 GB, free: 7.746 MB / 0.545 GB Notification: Performance of sort global known variables: time 1.1e-07/0.719, allocations: 0 / 0.7289 GB, free: 7.746 MB / 0.545 GB Notification: Performance of remove unused functions: time 0.0002302/0.7193, allocations: 8 kB / 0.7289 GB, free: 7.738 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0001724/0.7194, allocations: 107.2 kB / 0.729 GB, free: 7.625 MB / 0.545 GB Notification: Performance of simCode: created initialization part: time 0.0002715/0.7197, allocations: 63.88 kB / 0.7291 GB, free: 7.562 MB / 0.545 GB Notification: Performance of simCode: created event and clocks part: time 2.966e-06/0.7197, allocations: 4.188 kB / 0.7291 GB, free: 7.559 MB / 0.545 GB Notification: Performance of simCode: created simulation system equations: time 0.0001093/0.7198, allocations: 31.98 kB / 0.7291 GB, free: 7.527 MB / 0.545 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002924/0.7201, allocations: 10.45 kB / 0.7291 GB, free: 7.52 MB / 0.545 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004637/0.7206, allocations: 145 kB / 0.7292 GB, free: 7.352 MB / 0.545 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000438/0.7211, allocations: 0.6884 MB / 0.7299 GB, free: 6.637 MB / 0.545 GB Notification: Performance of simCode: alias equations: time 3.588e-05/0.7211, allocations: 11.73 kB / 0.7299 GB, free: 6.625 MB / 0.545 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.827e-05/0.7212, allocations: 11.44 kB / 0.7299 GB, free: 6.613 MB / 0.545 GB Notification: Performance of SimCode: time 1.9e-07/0.7212, allocations: 0 / 0.7299 GB, free: 6.613 MB / 0.545 GB Notification: Performance of Templates: time 0.003513/0.7247, allocations: 0.5982 MB / 0.7305 GB, free: 6.02 MB / 0.545 GB make -j1 -f Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Discrete.Examples.Sampler.makefile (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)