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.001195/0.001195, allocations: 109.4 kB / 15.69 MB, free: 128 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001219/0.001219, allocations: 187.9 kB / 16.62 MB, free: 6.582 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.635/1.635, allocations: 205.1 MB / 222.5 MB, free: 4.543 MB / 174.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.815/1.815, allocations: 292.3 MB / 0.549 GB, free: 12.77 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.001466/0.001466, allocations: 76.48 kB / 0.6723 GB, free: 25.87 MB / 0.5294 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3093/0.3108, allocations: 114.5 MB / 0.7841 GB, free: 12.75 MB / 0.6075 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Discrete.Examples.Sampler): time 0.002419/0.3133, allocations: 0.6698 MB / 0.7848 GB, free: 12.07 MB / 0.6075 GB Notification: Performance of NFInst.instExpressions: time 0.001504/0.3148, allocations: 1.051 MB / 0.7858 GB, free: 11.01 MB / 0.6075 GB Notification: Performance of NFInst.updateImplicitVariability: time 6.046e-05/0.3149, allocations: 0 / 0.7858 GB, free: 11.01 MB / 0.6075 GB Notification: Performance of NFTyping.typeComponents: time 3.857e-05/0.3149, allocations: 3.938 kB / 0.7858 GB, free: 11 MB / 0.6075 GB Notification: Performance of NFTyping.typeBindings: time 8.021e-05/0.315, allocations: 3.938 kB / 0.7858 GB, free: 11 MB / 0.6075 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003243/0.3153, allocations: 47.83 kB / 0.7859 GB, free: 10.95 MB / 0.6075 GB Notification: Performance of NFFlatten.flatten: time 0.0001125/0.3155, allocations: 43.91 kB / 0.7859 GB, free: 10.91 MB / 0.6075 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001323/0.3156, allocations: 12 kB / 0.7859 GB, free: 10.9 MB / 0.6075 GB Notification: Performance of NFEvalConstants.evaluate: time 8.5e-05/0.3157, allocations: 15.92 kB / 0.7859 GB, free: 10.88 MB / 0.6075 GB Notification: Performance of NFSimplifyModel.simplify: time 6.506e-05/0.3158, allocations: 23.91 kB / 0.786 GB, free: 10.86 MB / 0.6075 GB Notification: Performance of NFPackage.collectConstants: time 1.675e-05/0.3158, allocations: 4 kB / 0.786 GB, free: 10.86 MB / 0.6075 GB Notification: Performance of NFFlatten.collectFunctions: time 8.762e-05/0.3159, allocations: 19.98 kB / 0.786 GB, free: 10.84 MB / 0.6075 GB Notification: Performance of NFScalarize.scalarize: time 2.123e-05/0.3159, allocations: 11.92 kB / 0.786 GB, free: 10.82 MB / 0.6075 GB Notification: Performance of NFVerifyModel.verify: time 4.133e-05/0.316, allocations: 19.92 kB / 0.786 GB, free: 10.8 MB / 0.6075 GB Notification: Performance of NFConvertDAE.convert: time 0.0001423/0.3161, allocations: 63.78 kB / 0.7861 GB, free: 10.74 MB / 0.6075 GB Notification: Performance of FrontEnd - DAE generated: time 5.781e-06/0.3161, allocations: 0 / 0.7861 GB, free: 10.74 MB / 0.6075 GB Notification: Performance of FrontEnd: time 2.434e-06/0.3161, allocations: 0 / 0.7861 GB, free: 10.74 MB / 0.6075 GB Notification: Performance of Transformations before backend: time 6.172e-06/0.3161, allocations: 0 / 0.7861 GB, free: 10.74 MB / 0.6075 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.0006397/0.3168, allocations: 359.4 kB / 0.7864 GB, free: 10.34 MB / 0.6075 GB Notification: Performance of prepare preOptimizeDAE: time 4.169e-05/0.3168, allocations: 8.031 kB / 0.7864 GB, free: 10.33 MB / 0.6075 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.12e-05/0.3169, allocations: 12.78 kB / 0.7864 GB, free: 10.32 MB / 0.6075 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001254/0.317, allocations: 160.4 kB / 0.7866 GB, free: 10.12 MB / 0.6075 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.482e-05/0.317, allocations: 20.34 kB / 0.7866 GB, free: 10.11 MB / 0.6075 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.788e-05/0.3171, allocations: 4.375 kB / 0.7866 GB, free: 10.1 MB / 0.6075 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001985/0.3173, allocations: 58.23 kB / 0.7867 GB, free: 10.04 MB / 0.6075 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.995e-06/0.3173, allocations: 192 / 0.7867 GB, free: 10.04 MB / 0.6075 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.287e-05/0.3173, allocations: 3.938 kB / 0.7867 GB, free: 10.04 MB / 0.6075 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.129e-06/0.3173, allocations: 0 / 0.7867 GB, free: 10.04 MB / 0.6075 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001792/0.3175, allocations: 43.89 kB / 0.7867 GB, free: 9.992 MB / 0.6075 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004546/0.318, allocations: 284.7 kB / 0.787 GB, free: 9.664 MB / 0.6075 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001662/0.3181, allocations: 62.48 kB / 0.787 GB, free: 9.594 MB / 0.6075 GB Notification: Performance of preOpt resolveLoops (simulation): time 9.62e-05/0.3182, allocations: 32.97 kB / 0.7871 GB, free: 9.559 MB / 0.6075 GB Notification: Performance of preOpt evalFunc (simulation): time 2.195e-05/0.3183, allocations: 0 / 0.7871 GB, free: 9.559 MB / 0.6075 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001964/0.3185, allocations: 79.31 kB / 0.7871 GB, free: 9.469 MB / 0.6075 GB Notification: Performance of pre-optimization done (n=6): time 1.313e-06/0.3185, allocations: 0 / 0.7871 GB, free: 9.469 MB / 0.6075 GB Notification: Performance of matching and sorting (n=6): time 0.0004084/0.3189, allocations: 117.6 kB / 0.7873 GB, free: 9.348 MB / 0.6075 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.491e-05/0.3189, allocations: 51.41 kB / 0.7873 GB, free: 9.285 MB / 0.6075 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.32e-05/0.319, allocations: 106.3 kB / 0.7874 GB, free: 9.172 MB / 0.6075 GB Notification: Performance of collectPreVariables (initialization): time 1.997e-05/0.3191, allocations: 33.7 kB / 0.7874 GB, free: 9.133 MB / 0.6075 GB Notification: Performance of collectInitialEqns (initialization): time 5.289e-05/0.3191, allocations: 84.05 kB / 0.7875 GB, free: 9.047 MB / 0.6075 GB Notification: Performance of collectInitialBindings (initialization): time 2.358e-05/0.3192, allocations: 16.95 kB / 0.7875 GB, free: 9.031 MB / 0.6075 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.074e-05/0.3192, allocations: 17.72 kB / 0.7876 GB, free: 9.008 MB / 0.6075 GB Notification: Performance of setup shared object (initialization): time 0.0001463/0.3194, allocations: 322.8 kB / 0.7879 GB, free: 8.684 MB / 0.6075 GB Notification: Performance of preBalanceInitialSystem (initialization): time 9.212e-05/0.3195, allocations: 27.86 kB / 0.7879 GB, free: 8.656 MB / 0.6075 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001111/0.3196, allocations: 55.47 kB / 0.7879 GB, free: 8.59 MB / 0.6075 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002051/0.3198, allocations: 83.27 kB / 0.788 GB, free: 8.496 MB / 0.6075 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.215e-06/0.3198, allocations: 0 / 0.788 GB, free: 8.496 MB / 0.6075 GB Notification: Performance of matching and sorting (n=8) (initialization): time 0.0002461/0.3201, allocations: 101.5 kB / 0.7881 GB, free: 8.391 MB / 0.6075 GB Notification: Performance of prepare postOptimizeDAE: time 2.077e-05/0.3201, allocations: 11.98 kB / 0.7881 GB, free: 8.379 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.293e-06/0.3201, allocations: 0 / 0.7881 GB, free: 8.379 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.029e-05/0.3201, allocations: 4 kB / 0.7881 GB, free: 8.375 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001104/0.3202, allocations: 15.98 kB / 0.7881 GB, free: 8.359 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.023e-05/0.3203, allocations: 3.938 kB / 0.7882 GB, free: 8.355 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.643e-05/0.3203, allocations: 11.94 kB / 0.7882 GB, free: 8.344 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.619e-06/0.3204, allocations: 4.094 kB / 0.7882 GB, free: 8.34 MB / 0.6075 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.0001152/0.3205, allocations: 122.4 kB / 0.7883 GB, free: 8.211 MB / 0.6075 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.367e-05/0.3205, allocations: 11.84 kB / 0.7883 GB, free: 8.199 MB / 0.6075 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002797/0.3208, allocations: 98.02 kB / 0.7884 GB, free: 8.098 MB / 0.6075 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.212e-06/0.3208, allocations: 4 kB / 0.7884 GB, free: 8.094 MB / 0.6075 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.722e-06/0.3208, allocations: 0 / 0.7884 GB, free: 8.094 MB / 0.6075 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.479e-06/0.3208, allocations: 0 / 0.7884 GB, free: 8.094 MB / 0.6075 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004487/0.3213, allocations: 358.5 kB / 0.7887 GB, free: 7.688 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.703e-06/0.3213, allocations: 0 / 0.7887 GB, free: 7.688 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.707e-05/0.3213, allocations: 11.98 kB / 0.7887 GB, free: 7.676 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.583e-06/0.3214, allocations: 48 / 0.7887 GB, free: 7.676 MB / 0.6075 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.391e-05/0.3214, allocations: 3.984 kB / 0.7888 GB, free: 7.672 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.272e-06/0.3214, allocations: 0 / 0.7888 GB, free: 7.672 MB / 0.6075 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.92e-07/0.3214, allocations: 4 kB / 0.7888 GB, free: 7.668 MB / 0.6075 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003039/0.3217, allocations: 199.6 kB / 0.7889 GB, free: 7.457 MB / 0.6075 GB Notification: Performance of postOpt removeConstants (simulation): time 5.418e-05/0.3218, allocations: 81.02 kB / 0.789 GB, free: 7.359 MB / 0.6075 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.943e-05/0.3218, allocations: 8 kB / 0.789 GB, free: 7.352 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.401e-05/0.3219, allocations: 11.98 kB / 0.789 GB, free: 7.34 MB / 0.6075 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.563e-05/0.3219, allocations: 0 / 0.789 GB, free: 7.34 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.52e-05/0.322, allocations: 7.938 kB / 0.789 GB, free: 7.332 MB / 0.6075 GB Notification: Performance of sorting global known variables: time 4.68e-05/0.322, allocations: 91.27 kB / 0.7891 GB, free: 7.242 MB / 0.6075 GB Notification: Performance of sort global known variables: time 1.2e-07/0.322, allocations: 0 / 0.7891 GB, free: 7.242 MB / 0.6075 GB Notification: Performance of remove unused functions: time 0.0002329/0.3223, allocations: 16 kB / 0.7892 GB, free: 7.227 MB / 0.6075 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.0001527/0.3224, allocations: 95.25 kB / 0.7892 GB, free: 7.125 MB / 0.6075 GB Notification: Performance of simCode: created initialization part: time 0.0002521/0.3227, allocations: 71.88 kB / 0.7893 GB, free: 7.055 MB / 0.6075 GB Notification: Performance of simCode: created event and clocks part: time 1.873e-06/0.3227, allocations: 0 / 0.7893 GB, free: 7.055 MB / 0.6075 GB Notification: Performance of simCode: created simulation system equations: time 0.0001054/0.3228, allocations: 32.11 kB / 0.7893 GB, free: 7.023 MB / 0.6075 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002626/0.3231, allocations: 16.86 kB / 0.7894 GB, free: 7.008 MB / 0.6075 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003224/0.3234, allocations: 129.5 kB / 0.7895 GB, free: 6.855 MB / 0.6075 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003138/0.3237, allocations: 0.6807 MB / 0.7901 GB, free: 6.148 MB / 0.6075 GB Notification: Performance of simCode: alias equations: time 3.263e-05/0.3238, allocations: 3.984 kB / 0.7901 GB, free: 6.145 MB / 0.6075 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.185e-05/0.3238, allocations: 11.44 kB / 0.7902 GB, free: 6.133 MB / 0.6075 GB Notification: Performance of SimCode: time 2.61e-07/0.3238, allocations: 4 kB / 0.7902 GB, free: 6.129 MB / 0.6075 GB Notification: Performance of Templates: time 0.003407/0.3272, allocations: 0.7837 MB / 0.7909 GB, free: 5.355 MB / 0.6075 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)