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.001193/0.001193, allocations: 115.8 kB / 16.37 MB, free: 5.996 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.001113/0.001113, allocations: 188 kB / 17.3 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.457/1.457, allocations: 205.1 MB / 223.2 MB, free: 12.25 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.776/1.776, allocations: 292.3 MB / 0.5496 GB, free: 17.49 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.001505/0.001505, allocations: 64.12 kB / 0.6729 GB, free: 5.82 MB / 0.545 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2287/0.2302, allocations: 114.6 MB / 0.7848 GB, free: 3.145 MB / 0.6544 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Discrete.Examples.Sampler): time 0.002048/0.2323, allocations: 0.67 MB / 0.7855 GB, free: 2.473 MB / 0.6544 GB Notification: Performance of NFInst.instExpressions: time 0.001269/0.2336, allocations: 1.043 MB / 0.7865 GB, free: 1.414 MB / 0.6544 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.237e-05/0.2337, allocations: 7.938 kB / 0.7865 GB, free: 1.406 MB / 0.6544 GB Notification: Performance of NFTyping.typeComponents: time 2.921e-05/0.2337, allocations: 0 / 0.7865 GB, free: 1.406 MB / 0.6544 GB Notification: Performance of NFTyping.typeBindings: time 5.951e-05/0.2338, allocations: 3.938 kB / 0.7865 GB, free: 1.402 MB / 0.6544 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002938/0.2341, allocations: 43.83 kB / 0.7865 GB, free: 1.359 MB / 0.6544 GB Notification: Performance of NFFlatten.flatten: time 0.0001059/0.2342, allocations: 51.84 kB / 0.7866 GB, free: 1.309 MB / 0.6544 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001021/0.2343, allocations: 11.98 kB / 0.7866 GB, free: 1.297 MB / 0.6544 GB Notification: Performance of NFEvalConstants.evaluate: time 6.7e-05/0.2344, allocations: 15.94 kB / 0.7866 GB, free: 1.281 MB / 0.6544 GB Notification: Performance of NFSimplifyModel.simplify: time 5.376e-05/0.2344, allocations: 19.91 kB / 0.7866 GB, free: 1.262 MB / 0.6544 GB Notification: Performance of NFPackage.collectConstants: time 1.732e-05/0.2345, allocations: 8 kB / 0.7866 GB, free: 1.254 MB / 0.6544 GB Notification: Performance of NFFlatten.collectFunctions: time 7.278e-05/0.2345, allocations: 31.84 kB / 0.7867 GB, free: 1.223 MB / 0.6544 GB Notification: Performance of NFScalarize.scalarize: time 1.975e-05/0.2346, allocations: 4 kB / 0.7867 GB, free: 1.219 MB / 0.6544 GB Notification: Performance of NFVerifyModel.verify: time 3.797e-05/0.2346, allocations: 19.92 kB / 0.7867 GB, free: 1.199 MB / 0.6544 GB Notification: Performance of NFConvertDAE.convert: time 0.0001368/0.2347, allocations: 59.78 kB / 0.7867 GB, free: 1.141 MB / 0.6544 GB Notification: Performance of FrontEnd - DAE generated: time 4.469e-06/0.2348, allocations: 0 / 0.7867 GB, free: 1.141 MB / 0.6544 GB Notification: Performance of FrontEnd: time 1.833e-06/0.2348, allocations: 0 / 0.7867 GB, free: 1.141 MB / 0.6544 GB Notification: Performance of Transformations before backend: time 9.368e-06/0.2348, allocations: 0 / 0.7867 GB, free: 1.141 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.0006272/0.2354, allocations: 367.4 kB / 0.7871 GB, free: 0.7305 MB / 0.6544 GB Notification: Performance of prepare preOptimizeDAE: time 3.9e-05/0.2355, allocations: 16.02 kB / 0.7871 GB, free: 0.7148 MB / 0.6544 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.928e-05/0.2355, allocations: 8.828 kB / 0.7871 GB, free: 0.707 MB / 0.6544 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001111/0.2356, allocations: 164.4 kB / 0.7873 GB, free: 0.5078 MB / 0.6544 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.58e-05/0.2356, allocations: 4.375 kB / 0.7873 GB, free: 0.5039 MB / 0.6544 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.792e-05/0.2357, allocations: 8.312 kB / 0.7873 GB, free: 0.4961 MB / 0.6544 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001978/0.2359, allocations: 62.22 kB / 0.7873 GB, free: 440 kB / 0.6544 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.065e-06/0.2359, allocations: 192 / 0.7873 GB, free: 440 kB / 0.6544 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.24e-05/0.2359, allocations: 3.938 kB / 0.7874 GB, free: 436 kB / 0.6544 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.382e-06/0.2359, allocations: 8 kB / 0.7874 GB, free: 428 kB / 0.6544 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001835/0.2361, allocations: 35.95 kB / 0.7874 GB, free: 392 kB / 0.6544 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004325/0.2365, allocations: 276.8 kB / 0.7877 GB, free: 64 kB / 0.6544 GB Notification: Performance of preOpt comSubExp (simulation): time 0.388/0.6246, allocations: 58.52 kB / 0.7877 GB, free: 48.95 MB / 0.6544 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002154/0.6249, allocations: 31.48 kB / 0.7877 GB, free: 48.94 MB / 0.6544 GB Notification: Performance of preOpt evalFunc (simulation): time 3.861e-05/0.6249, allocations: 4.406 kB / 0.7877 GB, free: 48.94 MB / 0.6544 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002662/0.6252, allocations: 73.14 kB / 0.7878 GB, free: 48.89 MB / 0.6544 GB Notification: Performance of pre-optimization done (n=6): time 2.945e-06/0.6252, allocations: 0 / 0.7878 GB, free: 48.89 MB / 0.6544 GB Notification: Performance of matching and sorting (n=6): time 0.0004274/0.6256, allocations: 127 kB / 0.7879 GB, free: 48.86 MB / 0.6544 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.286e-05/0.6257, allocations: 54 kB / 0.788 GB, free: 48.8 MB / 0.6544 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.148e-05/0.6258, allocations: 103.9 kB / 0.7881 GB, free: 48.7 MB / 0.6544 GB Notification: Performance of collectPreVariables (initialization): time 1.097e-05/0.6258, allocations: 26.83 kB / 0.7881 GB, free: 48.67 MB / 0.6544 GB Notification: Performance of collectInitialEqns (initialization): time 3.057e-05/0.6258, allocations: 87.58 kB / 0.7882 GB, free: 48.59 MB / 0.6544 GB Notification: Performance of collectInitialBindings (initialization): time 1.758e-05/0.6258, allocations: 10.34 kB / 0.7882 GB, free: 48.59 MB / 0.6544 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.16e-05/0.6259, allocations: 23.69 kB / 0.7882 GB, free: 48.57 MB / 0.6544 GB Notification: Performance of setup shared object (initialization): time 4.62e-05/0.6259, allocations: 323.8 kB / 0.7885 GB, free: 48.26 MB / 0.6544 GB Notification: Performance of preBalanceInitialSystem (initialization): time 9.165e-05/0.626, allocations: 20.62 kB / 0.7886 GB, free: 48.26 MB / 0.6544 GB Notification: Performance of partitionIndependentBlocks (initialization): time 9.748e-05/0.6261, allocations: 53.09 kB / 0.7886 GB, free: 48.23 MB / 0.6544 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001757/0.6263, allocations: 82.03 kB / 0.7887 GB, free: 48.2 MB / 0.6544 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.205e-06/0.6263, allocations: 2.344 kB / 0.7887 GB, free: 48.2 MB / 0.6544 GB Notification: Performance of matching and sorting (n=8) (initialization): time 0.0002263/0.6266, allocations: 106.2 kB / 0.7888 GB, free: 48.16 MB / 0.6544 GB Notification: Performance of prepare postOptimizeDAE: time 1.44e-05/0.6266, allocations: 5.406 kB / 0.7888 GB, free: 48.16 MB / 0.6544 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.119e-06/0.6266, allocations: 2.625 kB / 0.7888 GB, free: 48.16 MB / 0.6544 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.673e-05/0.6266, allocations: 3.281 kB / 0.7888 GB, free: 48.16 MB / 0.6544 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000117/0.6267, allocations: 13.03 kB / 0.7888 GB, free: 48.16 MB / 0.6544 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.933e-06/0.6268, allocations: 3.719 kB / 0.7888 GB, free: 48.16 MB / 0.6544 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.607e-05/0.6268, allocations: 14.02 kB / 0.7888 GB, free: 48.16 MB / 0.6544 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.105e-05/0.6268, allocations: 6.812 kB / 0.7888 GB, free: 48.16 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.516e-05/0.6269, allocations: 123 kB / 0.789 GB, free: 48.05 MB / 0.6544 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.107e-05/0.6269, allocations: 3.906 kB / 0.789 GB, free: 48.04 MB / 0.6544 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002611/0.6272, allocations: 99.72 kB / 0.7891 GB, free: 48.01 MB / 0.6544 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.517e-06/0.6272, allocations: 2.938 kB / 0.7891 GB, free: 48.01 MB / 0.6544 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.208e-06/0.6272, allocations: 0.6562 kB / 0.7891 GB, free: 48.01 MB / 0.6544 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.468e-06/0.6272, allocations: 5.109 kB / 0.7891 GB, free: 48.01 MB / 0.6544 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003813/0.6276, allocations: 356.8 kB / 0.7894 GB, free: 47.71 MB / 0.6544 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.352e-06/0.6276, allocations: 0 / 0.7894 GB, free: 47.71 MB / 0.6544 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.401e-05/0.6277, allocations: 9.25 kB / 0.7894 GB, free: 47.71 MB / 0.6544 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.793e-06/0.6277, allocations: 0.625 kB / 0.7894 GB, free: 47.71 MB / 0.6544 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.997e-06/0.6277, allocations: 2.969 kB / 0.7894 GB, free: 47.71 MB / 0.6544 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.503e-06/0.6277, allocations: 4.781 kB / 0.7894 GB, free: 47.71 MB / 0.6544 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.62e-07/0.6277, allocations: 0 / 0.7894 GB, free: 47.71 MB / 0.6544 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002337/0.628, allocations: 197 kB / 0.7896 GB, free: 47.58 MB / 0.6544 GB Notification: Performance of postOpt removeConstants (simulation): time 1.952e-05/0.628, allocations: 81.58 kB / 0.7897 GB, free: 47.48 MB / 0.6544 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.633e-05/0.628, allocations: 4.875 kB / 0.7897 GB, free: 47.48 MB / 0.6544 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.539e-05/0.6281, allocations: 9 kB / 0.7897 GB, free: 47.48 MB / 0.6544 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.04e-05/0.6282, allocations: 8.312 kB / 0.7897 GB, free: 47.48 MB / 0.6544 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.406e-05/0.6282, allocations: 6.703 kB / 0.7897 GB, free: 47.48 MB / 0.6544 GB Notification: Performance of sorting global known variables: time 2.423e-05/0.6282, allocations: 82.42 kB / 0.7898 GB, free: 47.41 MB / 0.6544 GB Notification: Performance of sort global known variables: time 1.1e-07/0.6282, allocations: 4.344 kB / 0.7898 GB, free: 47.41 MB / 0.6544 GB Notification: Performance of remove unused functions: time 0.0002488/0.6285, allocations: 9.75 kB / 0.7898 GB, free: 47.41 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.0001401/0.6286, allocations: 106.8 kB / 0.7899 GB, free: 47.32 MB / 0.6544 GB Notification: Performance of simCode: created initialization part: time 0.0002415/0.6289, allocations: 70.53 kB / 0.79 GB, free: 47.32 MB / 0.6544 GB Notification: Performance of simCode: created event and clocks part: time 2.314e-06/0.6289, allocations: 0.5 kB / 0.79 GB, free: 47.32 MB / 0.6544 GB Notification: Performance of simCode: created simulation system equations: time 0.0001026/0.629, allocations: 32.86 kB / 0.79 GB, free: 47.32 MB / 0.6544 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002585/0.6293, allocations: 17.58 kB / 0.79 GB, free: 47.32 MB / 0.6544 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003031/0.6296, allocations: 149.5 kB / 0.7902 GB, free: 47.19 MB / 0.6544 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001104/0.6297, allocations: 0.6832 MB / 0.7908 GB, free: 46.5 MB / 0.6544 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.62e-05/0.6297, allocations: 16.78 kB / 0.7908 GB, free: 46.49 MB / 0.6544 GB Notification: Performance of SimCode: time 2.1e-07/0.6297, allocations: 0 / 0.7908 GB, free: 46.49 MB / 0.6544 GB Notification: Performance of Templates: time 0.002345/0.6321, allocations: 0.8534 MB / 0.7917 GB, free: 46.48 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)