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.01026/0.01026, allocations: 99.05 kB / 15.73 MB, free: 6.004 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.00193/0.00193, allocations: 196 kB / 16.68 MB, free: 5.934 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.798/1.798, allocations: 205.1 MB / 222.5 MB, free: 4.52 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.55/1.55, allocations: 251.7 MB / 0.5094 GB, free: 3.094 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.001475/0.001475, allocations: 71.91 kB / 0.7258 GB, free: 9.039 MB / 0.545 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3095/0.311, allocations: 104.7 MB / 0.828 GB, free: 236 kB / 0.6387 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Discrete.Examples.Sampler): time 0.003338/0.3144, allocations: 1.375 MB / 0.8294 GB, free: 14.85 MB / 0.6544 GB Notification: Performance of NFInst.instExpressions: time 0.0006471/0.3151, allocations: 224.6 kB / 0.8296 GB, free: 14.62 MB / 0.6544 GB Notification: Performance of NFInst.updateImplicitVariability: time 6.192e-05/0.3152, allocations: 0 / 0.8296 GB, free: 14.62 MB / 0.6544 GB Notification: Performance of NFTyping.typeComponents: time 4.184e-05/0.3152, allocations: 3.938 kB / 0.8296 GB, free: 14.62 MB / 0.6544 GB Notification: Performance of NFTyping.typeBindings: time 0.000131/0.3154, allocations: 15.91 kB / 0.8296 GB, free: 14.61 MB / 0.6544 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003156/0.3157, allocations: 19.92 kB / 0.8296 GB, free: 14.59 MB / 0.6544 GB Notification: Performance of NFFlatten.flatten: time 0.000156/0.3159, allocations: 39.86 kB / 0.8297 GB, free: 14.55 MB / 0.6544 GB Notification: Performance of NFFlatten.resolveConnections: time 0.000156/0.316, allocations: 23.98 kB / 0.8297 GB, free: 14.52 MB / 0.6544 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001086/0.3162, allocations: 15.92 kB / 0.8297 GB, free: 14.51 MB / 0.6544 GB Notification: Performance of NFSimplifyModel.simplify: time 7.495e-05/0.3162, allocations: 23.84 kB / 0.8297 GB, free: 14.48 MB / 0.6544 GB Notification: Performance of NFPackage.collectConstants: time 2.069e-05/0.3163, allocations: 4 kB / 0.8297 GB, free: 14.48 MB / 0.6544 GB Notification: Performance of NFFlatten.collectFunctions: time 1.638e-05/0.3163, allocations: 4 kB / 0.8297 GB, free: 14.48 MB / 0.6544 GB Notification: Performance of NFScalarize.scalarize: time 3.107e-05/0.3163, allocations: 11.98 kB / 0.8297 GB, free: 14.46 MB / 0.6544 GB Notification: Performance of NFVerifyModel.verify: time 5.834e-05/0.3164, allocations: 15.94 kB / 0.8298 GB, free: 14.45 MB / 0.6544 GB Notification: Performance of NFConvertDAE.convert: time 0.0001501/0.3166, allocations: 43.75 kB / 0.8298 GB, free: 14.41 MB / 0.6544 GB Notification: Performance of FrontEnd - DAE generated: time 5.37e-06/0.3166, allocations: 0 / 0.8298 GB, free: 14.41 MB / 0.6544 GB Notification: Performance of FrontEnd: time 2.545e-06/0.3166, allocations: 0 / 0.8298 GB, free: 14.41 MB / 0.6544 GB Notification: Performance of Transformations before backend: time 8.536e-06/0.3166, allocations: 8 kB / 0.8298 GB, free: 14.4 MB / 0.6544 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.0007855/0.3174, allocations: 371.3 kB / 0.8302 GB, free: 13.98 MB / 0.6544 GB Notification: Performance of prepare preOptimizeDAE: time 5.458e-05/0.3174, allocations: 8.031 kB / 0.8302 GB, free: 13.98 MB / 0.6544 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.215e-05/0.3175, allocations: 0.9375 kB / 0.8302 GB, free: 13.98 MB / 0.6544 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001532/0.3177, allocations: 172.2 kB / 0.8303 GB, free: 13.77 MB / 0.6544 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.428e-05/0.3177, allocations: 384 / 0.8303 GB, free: 13.77 MB / 0.6544 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.431e-05/0.3177, allocations: 4.375 kB / 0.8303 GB, free: 13.77 MB / 0.6544 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002303/0.318, allocations: 70.16 kB / 0.8304 GB, free: 13.69 MB / 0.6544 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.203e-05/0.318, allocations: 4.188 kB / 0.8304 GB, free: 13.69 MB / 0.6544 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.457e-05/0.318, allocations: 3.938 kB / 0.8304 GB, free: 13.68 MB / 0.6544 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.931e-06/0.318, allocations: 0 / 0.8304 GB, free: 13.68 MB / 0.6544 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001823/0.3182, allocations: 43.95 kB / 0.8305 GB, free: 13.64 MB / 0.6544 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005054/0.3187, allocations: 264.9 kB / 0.8307 GB, free: 13.33 MB / 0.6544 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001698/0.3189, allocations: 66.42 kB / 0.8308 GB, free: 13.26 MB / 0.6544 GB Notification: Performance of preOpt resolveLoops (simulation): time 9.516e-05/0.319, allocations: 28.95 kB / 0.8308 GB, free: 13.23 MB / 0.6544 GB Notification: Performance of preOpt evalFunc (simulation): time 2.491e-05/0.319, allocations: 0 / 0.8308 GB, free: 13.23 MB / 0.6544 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002547/0.3193, allocations: 71.39 kB / 0.8309 GB, free: 13.14 MB / 0.6544 GB Notification: Performance of pre-optimization done (n=6): time 1.382e-06/0.3193, allocations: 4 kB / 0.8309 GB, free: 13.14 MB / 0.6544 GB Notification: Performance of matching and sorting (n=6): time 0.000449/0.3198, allocations: 125.5 kB / 0.831 GB, free: 13.01 MB / 0.6544 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.328e-05/0.3198, allocations: 51.41 kB / 0.831 GB, free: 12.95 MB / 0.6544 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.909e-05/0.3199, allocations: 106.3 kB / 0.8311 GB, free: 12.84 MB / 0.6544 GB Notification: Performance of collectPreVariables (initialization): time 1.7e-05/0.32, allocations: 25.7 kB / 0.8312 GB, free: 12.8 MB / 0.6544 GB Notification: Performance of collectInitialEqns (initialization): time 5.939e-05/0.32, allocations: 96.19 kB / 0.8313 GB, free: 12.71 MB / 0.6544 GB Notification: Performance of collectInitialBindings (initialization): time 2.408e-05/0.3201, allocations: 15.75 kB / 0.8313 GB, free: 12.69 MB / 0.6544 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.735e-05/0.3201, allocations: 21.72 kB / 0.8313 GB, free: 12.66 MB / 0.6544 GB Notification: Performance of setup shared object (initialization): time 0.0001129/0.3202, allocations: 322.8 kB / 0.8316 GB, free: 12.34 MB / 0.6544 GB Notification: Performance of preBalanceInitialSystem (initialization): time 9.401e-05/0.3203, allocations: 23.98 kB / 0.8316 GB, free: 12.32 MB / 0.6544 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001007/0.3204, allocations: 47.47 kB / 0.8317 GB, free: 12.26 MB / 0.6544 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002054/0.3207, allocations: 87.27 kB / 0.8318 GB, free: 12.16 MB / 0.6544 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.506e-06/0.3207, allocations: 0 / 0.8318 GB, free: 12.16 MB / 0.6544 GB Notification: Performance of matching and sorting (n=8) (initialization): time 0.0002513/0.3209, allocations: 101.7 kB / 0.8319 GB, free: 12.05 MB / 0.6544 GB Notification: Performance of prepare postOptimizeDAE: time 1.965e-05/0.321, allocations: 8 kB / 0.8319 GB, free: 12.05 MB / 0.6544 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.472e-06/0.321, allocations: 0 / 0.8319 GB, free: 12.05 MB / 0.6544 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.323e-05/0.321, allocations: 0 / 0.8319 GB, free: 12.05 MB / 0.6544 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000108/0.3211, allocations: 19.92 kB / 0.8319 GB, free: 12.03 MB / 0.6544 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.135e-06/0.3211, allocations: 0 / 0.8319 GB, free: 12.03 MB / 0.6544 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.471e-05/0.3212, allocations: 11.89 kB / 0.8319 GB, free: 12.02 MB / 0.6544 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.281e-05/0.3212, allocations: 4 kB / 0.8319 GB, free: 12.01 MB / 0.6544 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.0001011/0.3213, allocations: 117.8 kB / 0.832 GB, free: 11.89 MB / 0.6544 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.473e-05/0.3213, allocations: 8 kB / 0.832 GB, free: 11.88 MB / 0.6544 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002791/0.3216, allocations: 102 kB / 0.8321 GB, free: 11.77 MB / 0.6544 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.252e-06/0.3216, allocations: 4 kB / 0.8321 GB, free: 11.77 MB / 0.6544 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.282e-06/0.3217, allocations: 48 / 0.8321 GB, free: 11.77 MB / 0.6544 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.564e-06/0.3217, allocations: 11.91 kB / 0.8321 GB, free: 11.76 MB / 0.6544 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004477/0.3221, allocations: 342.5 kB / 0.8325 GB, free: 11.37 MB / 0.6544 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.448e-06/0.3221, allocations: 4 kB / 0.8325 GB, free: 11.36 MB / 0.6544 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.916e-05/0.3222, allocations: 15.92 kB / 0.8325 GB, free: 11.35 MB / 0.6544 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.206e-06/0.3222, allocations: 0 / 0.8325 GB, free: 11.35 MB / 0.6544 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.408e-06/0.3222, allocations: 0 / 0.8325 GB, free: 11.35 MB / 0.6544 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.793e-06/0.3222, allocations: 0 / 0.8325 GB, free: 11.35 MB / 0.6544 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.977e-06/0.3222, allocations: 3.984 kB / 0.8325 GB, free: 11.34 MB / 0.6544 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003034/0.3226, allocations: 199.5 kB / 0.8327 GB, free: 11.13 MB / 0.6544 GB Notification: Performance of postOpt removeConstants (simulation): time 4.284e-05/0.3226, allocations: 77.11 kB / 0.8327 GB, free: 11.04 MB / 0.6544 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.123e-05/0.3226, allocations: 7.984 kB / 0.8327 GB, free: 11.03 MB / 0.6544 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.616e-05/0.3227, allocations: 12 kB / 0.8328 GB, free: 11.02 MB / 0.6544 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.005e-05/0.3228, allocations: 3.984 kB / 0.8328 GB, free: 11.02 MB / 0.6544 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.948e-05/0.3228, allocations: 7.938 kB / 0.8328 GB, free: 11.01 MB / 0.6544 GB Notification: Performance of sorting global known variables: time 4.79e-05/0.3229, allocations: 83.28 kB / 0.8328 GB, free: 10.93 MB / 0.6544 GB Notification: Performance of sort global known variables: time 2.795e-06/0.3229, allocations: 0 / 0.8328 GB, free: 10.93 MB / 0.6544 GB Notification: Performance of remove unused functions: time 0.0002338/0.3231, allocations: 11.94 kB / 0.8329 GB, free: 10.91 MB / 0.6544 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.0001488/0.3233, allocations: 103.2 kB / 0.833 GB, free: 10.8 MB / 0.6544 GB Notification: Performance of simCode: created initialization part: time 0.0002561/0.3235, allocations: 67.83 kB / 0.833 GB, free: 10.74 MB / 0.6544 GB Notification: Performance of simCode: created event and clocks part: time 2.244e-06/0.3236, allocations: 4 kB / 0.833 GB, free: 10.73 MB / 0.6544 GB Notification: Performance of simCode: created simulation system equations: time 0.0001053/0.3237, allocations: 27.97 kB / 0.8331 GB, free: 10.71 MB / 0.6544 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003034/0.324, allocations: 15 kB / 0.8331 GB, free: 10.7 MB / 0.6544 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004672/0.3245, allocations: 137.5 kB / 0.8332 GB, free: 10.53 MB / 0.6544 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003437/0.3248, allocations: 0.6883 MB / 0.8339 GB, free: 9.816 MB / 0.6544 GB Notification: Performance of simCode: alias equations: time 3.999e-05/0.3249, allocations: 0 / 0.8339 GB, free: 9.816 MB / 0.6544 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.958e-05/0.3249, allocations: 11.44 kB / 0.8339 GB, free: 9.805 MB / 0.6544 GB Notification: Performance of SimCode: time 5.11e-07/0.3249, allocations: 0 / 0.8339 GB, free: 9.805 MB / 0.6544 GB Notification: Performance of Templates: time 0.003957/0.3289, allocations: 0.6604 MB / 0.8345 GB, free: 9.152 MB / 0.6544 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)