Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_8_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 8.1.4-maint.8.1.x/package.mo", uses=false) Using package Buildings with version 8.1.4 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.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_8_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_8_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.001642/0.001642, allocations: 110.3 kB / 16.37 MB, free: 6.02 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.001703/0.001702, allocations: 193.5 kB / 17.31 MB, free: 5.617 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.663/1.663, allocations: 205.1 MB / 223.2 MB, free: 12.26 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.x/package.mo): time 1.918/1.918, allocations: 292.3 MB / 0.5496 GB, free: 17.52 MB / 462.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.002103/0.002103, allocations: 71.89 kB / 0.6729 GB, free: 5.855 MB / 0.545 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3338/0.3359, allocations: 114.6 MB / 0.7848 GB, free: 3.184 MB / 0.6544 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Discrete.Examples.Sampler): time 0.002346/0.3383, allocations: 0.67 MB / 0.7855 GB, free: 2.512 MB / 0.6544 GB Notification: Performance of NFInst.instExpressions: time 0.00143/0.3398, allocations: 1.047 MB / 0.7865 GB, free: 1.449 MB / 0.6544 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.314e-05/0.3398, allocations: 0 / 0.7865 GB, free: 1.449 MB / 0.6544 GB Notification: Performance of NFTyping.typeComponents: time 3.733e-05/0.3399, allocations: 7.938 kB / 0.7865 GB, free: 1.441 MB / 0.6544 GB Notification: Performance of NFTyping.typeBindings: time 7.446e-05/0.34, allocations: 3.938 kB / 0.7865 GB, free: 1.438 MB / 0.6544 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003041/0.3403, allocations: 35.91 kB / 0.7865 GB, free: 1.402 MB / 0.6544 GB Notification: Performance of NFFlatten.flatten: time 0.0001089/0.3404, allocations: 55.77 kB / 0.7866 GB, free: 1.348 MB / 0.6544 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001036/0.3405, allocations: 8 kB / 0.7866 GB, free: 1.34 MB / 0.6544 GB Notification: Performance of NFEvalConstants.evaluate: time 7.878e-05/0.3406, allocations: 15.98 kB / 0.7866 GB, free: 1.324 MB / 0.6544 GB Notification: Performance of NFSimplifyModel.simplify: time 6.135e-05/0.3407, allocations: 19.92 kB / 0.7866 GB, free: 1.305 MB / 0.6544 GB Notification: Performance of NFPackage.collectConstants: time 1.603e-05/0.3407, allocations: 8 kB / 0.7866 GB, free: 1.297 MB / 0.6544 GB Notification: Performance of NFFlatten.collectFunctions: time 6.964e-05/0.3408, allocations: 15.98 kB / 0.7867 GB, free: 1.281 MB / 0.6544 GB Notification: Performance of NFScalarize.scalarize: time 3.251e-05/0.3408, allocations: 23.91 kB / 0.7867 GB, free: 1.258 MB / 0.6544 GB Notification: Performance of NFVerifyModel.verify: time 3.53e-05/0.3409, allocations: 11.94 kB / 0.7867 GB, free: 1.246 MB / 0.6544 GB Notification: Performance of NFConvertDAE.convert: time 0.0001411/0.341, allocations: 59.78 kB / 0.7867 GB, free: 1.188 MB / 0.6544 GB Notification: Performance of FrontEnd - DAE generated: time 8.636e-06/0.341, allocations: 0 / 0.7867 GB, free: 1.188 MB / 0.6544 GB Notification: Performance of FrontEnd: time 2.134e-06/0.341, allocations: 3.938 kB / 0.7868 GB, free: 1.184 MB / 0.6544 GB Notification: Performance of Transformations before backend: time 1.084e-05/0.341, allocations: 0 / 0.7868 GB, free: 1.184 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.000661/0.3417, allocations: 375.3 kB / 0.7871 GB, free: 0.7656 MB / 0.6544 GB Notification: Performance of prepare preOptimizeDAE: time 3.829e-05/0.3418, allocations: 12.03 kB / 0.7871 GB, free: 0.7539 MB / 0.6544 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.087e-05/0.3418, allocations: 4.844 kB / 0.7871 GB, free: 0.75 MB / 0.6544 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001205/0.3419, allocations: 164.4 kB / 0.7873 GB, free: 0.5508 MB / 0.6544 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.367e-05/0.3419, allocations: 384 / 0.7873 GB, free: 0.5508 MB / 0.6544 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.214e-05/0.342, allocations: 8.359 kB / 0.7873 GB, free: 0.543 MB / 0.6544 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002031/0.3422, allocations: 58.23 kB / 0.7873 GB, free: 492 kB / 0.6544 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.587e-06/0.3422, allocations: 192 / 0.7873 GB, free: 492 kB / 0.6544 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.575e-05/0.3422, allocations: 11.94 kB / 0.7874 GB, free: 480 kB / 0.6544 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.434e-06/0.3422, allocations: 4 kB / 0.7874 GB, free: 476 kB / 0.6544 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001891/0.3424, allocations: 43.89 kB / 0.7874 GB, free: 432 kB / 0.6544 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005422/0.343, allocations: 280.8 kB / 0.7877 GB, free: 100 kB / 0.6544 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001645/0.3432, allocations: 54.48 kB / 0.7877 GB, free: 36 kB / 0.6544 GB Notification: Performance of preOpt resolveLoops (simulation): time 9.521e-05/0.3433, allocations: 32.97 kB / 0.7878 GB, free: 0 / 0.6544 GB Notification: Performance of preOpt evalFunc (simulation): time 2.298e-05/0.3433, allocations: 0 / 0.7878 GB, free: 0 / 0.6544 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.5951/0.9384, allocations: 79.23 kB / 0.7878 GB, free: 48.83 MB / 0.6544 GB Notification: Performance of pre-optimization done (n=6): time 3.326e-06/0.9384, allocations: 1.938 kB / 0.7878 GB, free: 48.83 MB / 0.6544 GB Notification: Performance of matching and sorting (n=6): time 0.0004665/0.9389, allocations: 115.6 kB / 0.7879 GB, free: 48.8 MB / 0.6544 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.817e-05/0.9389, allocations: 51.97 kB / 0.788 GB, free: 48.73 MB / 0.6544 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.285e-05/0.939, allocations: 110.5 kB / 0.7881 GB, free: 48.64 MB / 0.6544 GB Notification: Performance of collectPreVariables (initialization): time 1.111e-05/0.939, allocations: 28.84 kB / 0.7881 GB, free: 48.61 MB / 0.6544 GB Notification: Performance of collectInitialEqns (initialization): time 3.589e-05/0.9391, allocations: 89.55 kB / 0.7882 GB, free: 48.52 MB / 0.6544 GB Notification: Performance of collectInitialBindings (initialization): time 2.116e-05/0.9391, allocations: 5.656 kB / 0.7882 GB, free: 48.52 MB / 0.6544 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.711e-05/0.9392, allocations: 25.09 kB / 0.7882 GB, free: 48.51 MB / 0.6544 GB Notification: Performance of setup shared object (initialization): time 5.946e-05/0.9392, allocations: 317.1 kB / 0.7885 GB, free: 48.2 MB / 0.6544 GB Notification: Performance of preBalanceInitialSystem (initialization): time 9.616e-05/0.9393, allocations: 29.02 kB / 0.7886 GB, free: 48.2 MB / 0.6544 GB Notification: Performance of partitionIndependentBlocks (initialization): time 9.678e-05/0.9394, allocations: 50.5 kB / 0.7886 GB, free: 48.16 MB / 0.6544 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001893/0.9396, allocations: 79.89 kB / 0.7887 GB, free: 48.13 MB / 0.6544 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.366e-06/0.9397, allocations: 3.75 kB / 0.7887 GB, free: 48.13 MB / 0.6544 GB Notification: Performance of matching and sorting (n=8) (initialization): time 0.0002327/0.9399, allocations: 109.4 kB / 0.7888 GB, free: 48.1 MB / 0.6544 GB Notification: Performance of prepare postOptimizeDAE: time 1.928e-05/0.9399, allocations: 5.375 kB / 0.7888 GB, free: 48.1 MB / 0.6544 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.452e-06/0.9399, allocations: 0 / 0.7888 GB, free: 48.1 MB / 0.6544 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.871e-05/0.94, allocations: 4.906 kB / 0.7888 GB, free: 48.1 MB / 0.6544 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001188/0.9401, allocations: 11.89 kB / 0.7888 GB, free: 48.1 MB / 0.6544 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.166e-06/0.9401, allocations: 3.438 kB / 0.7888 GB, free: 48.1 MB / 0.6544 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.978e-05/0.9402, allocations: 17.42 kB / 0.7888 GB, free: 48.1 MB / 0.6544 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.103e-05/0.9402, allocations: 3.625 kB / 0.7888 GB, free: 48.1 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 6.828e-05/0.9403, allocations: 114.2 kB / 0.789 GB, free: 47.98 MB / 0.6544 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.436e-05/0.9403, allocations: 11.09 kB / 0.789 GB, free: 47.98 MB / 0.6544 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002812/0.9406, allocations: 106.5 kB / 0.7891 GB, free: 47.95 MB / 0.6544 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.669e-06/0.9406, allocations: 3.141 kB / 0.7891 GB, free: 47.95 MB / 0.6544 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.212e-06/0.9406, allocations: 0 / 0.7891 GB, free: 47.95 MB / 0.6544 GB Notification: Performance of postOpt removeConstants (simulation): time 3.007e-05/0.9406, allocations: 80.7 kB / 0.7891 GB, free: 47.85 MB / 0.6544 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.746e-05/0.9406, allocations: 0 / 0.7891 GB, free: 47.85 MB / 0.6544 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.892e-05/0.9407, allocations: 12.53 kB / 0.7892 GB, free: 47.85 MB / 0.6544 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.895e-05/0.9408, allocations: 7.484 kB / 0.7892 GB, free: 47.85 MB / 0.6544 GB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.0002693/0.9411, allocations: 184.8 kB / 0.7893 GB, free: 47.74 MB / 0.6544 GB Notification: Performance of postOpt symbolicJacobianDAE (simulation): time 0.0002523/0.9413, allocations: 267.8 kB / 0.7896 GB, free: 47.54 MB / 0.6544 GB Notification: Performance of postOpt setEvaluationStage (simulation): time 9.779e-05/0.9414, allocations: 30.81 kB / 0.7896 GB, free: 47.54 MB / 0.6544 GB Notification: Performance of sorting global known variables: time 2.501e-05/0.9415, allocations: 86.56 kB / 0.7897 GB, free: 47.46 MB / 0.6544 GB Notification: Performance of Backend: time 5.51e-07/0.9415, allocations: 1.031 kB / 0.7897 GB, free: 47.46 MB / 0.6544 GB Notification: Performance of simCode: created initialization part: time 0.0004828/0.942, allocations: 126.6 kB / 0.7898 GB, free: 47.4 MB / 0.6544 GB Notification: Performance of SimCode: time 0.0005145/0.9425, allocations: 0.5659 MB / 0.7904 GB, free: 46.83 MB / 0.6544 GB Notification: Performance of Templates: time 0.003666/0.9462, allocations: 0.8923 MB / 0.7913 GB, free: 46.83 MB / 0.6544 GB make -j1 -f Buildings_8_Buildings.Controls.OBC.CDL.Discrete.Examples.Sampler.makefile (rm -f Buildings_8_Buildings.Controls.OBC.CDL.Discrete.Examples.Sampler.pipe ; mkfifo Buildings_8_Buildings.Controls.OBC.CDL.Discrete.Examples.Sampler.pipe ; head -c 1048576 < Buildings_8_Buildings.Controls.OBC.CDL.Discrete.Examples.Sampler.pipe >> ../files/Buildings_8_Buildings.Controls.OBC.CDL.Discrete.Examples.Sampler.sim & ./Buildings_8_Buildings.Controls.OBC.CDL.Discrete.Examples.Sampler -abortSlowSimulation -alarm=480 -lv LOG_STATS > Buildings_8_Buildings.Controls.OBC.CDL.Discrete.Examples.Sampler.pipe 2>&1)