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.001148/0.001148, allocations: 111.3 kB / 15.23 MB, free: 0.6602 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.00118/0.00118, allocations: 188.5 kB / 16.13 MB, free: 6.652 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.608/1.608, allocations: 205.1 MB / 222 MB, free: 4.742 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.861/1.861, allocations: 292.2 MB / 0.5484 GB, free: 13.71 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.001274/0.001274, allocations: 62.52 kB / 0.6708 GB, free: 26.28 MB / 0.5294 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2239/0.2252, allocations: 114.5 MB / 0.7827 GB, free: 14.06 MB / 0.6075 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Discrete.Examples.Sampler): time 0.001885/0.2271, allocations: 0.7309 MB / 0.7834 GB, free: 13.33 MB / 0.6075 GB Notification: Performance of NFInst.instExpressions: time 0.001212/0.2284, allocations: 1.052 MB / 0.7844 GB, free: 12.26 MB / 0.6075 GB Notification: Performance of NFInst.updateImplicitVariability: time 2.938e-05/0.2284, allocations: 0 / 0.7844 GB, free: 12.26 MB / 0.6075 GB Notification: Performance of NFTyping.typeComponents: time 2.673e-05/0.2284, allocations: 0 / 0.7844 GB, free: 12.26 MB / 0.6075 GB Notification: Performance of NFTyping.typeBindings: time 5.875e-05/0.2285, allocations: 3.938 kB / 0.7844 GB, free: 12.26 MB / 0.6075 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002193/0.2287, allocations: 39.95 kB / 0.7845 GB, free: 12.22 MB / 0.6075 GB Notification: Performance of NFFlatten.flatten: time 7.077e-05/0.2288, allocations: 39.86 kB / 0.7845 GB, free: 12.18 MB / 0.6075 GB Notification: Performance of NFFlatten.resolveConnections: time 7.969e-05/0.2289, allocations: 11.98 kB / 0.7845 GB, free: 12.17 MB / 0.6075 GB Notification: Performance of NFEvalConstants.evaluate: time 5.783e-05/0.229, allocations: 27.84 kB / 0.7845 GB, free: 12.14 MB / 0.6075 GB Notification: Performance of NFSimplifyModel.simplify: time 4.828e-05/0.229, allocations: 23.92 kB / 0.7846 GB, free: 12.12 MB / 0.6075 GB Notification: Performance of NFPackage.collectConstants: time 1.225e-05/0.229, allocations: 0 / 0.7846 GB, free: 12.12 MB / 0.6075 GB Notification: Performance of NFFlatten.collectFunctions: time 5.728e-05/0.2291, allocations: 15.98 kB / 0.7846 GB, free: 12.1 MB / 0.6075 GB Notification: Performance of NFScalarize.scalarize: time 2.588e-05/0.2291, allocations: 11.92 kB / 0.7846 GB, free: 12.09 MB / 0.6075 GB Notification: Performance of NFVerifyModel.verify: time 3.229e-05/0.2292, allocations: 15.92 kB / 0.7846 GB, free: 12.07 MB / 0.6075 GB Notification: Performance of NFConvertDAE.convert: time 0.0001145/0.2293, allocations: 51.86 kB / 0.7847 GB, free: 12.02 MB / 0.6075 GB Notification: Performance of FrontEnd - DAE generated: time 4.639e-06/0.2293, allocations: 4 kB / 0.7847 GB, free: 12.02 MB / 0.6075 GB Notification: Performance of FrontEnd: time 1.052e-06/0.2293, allocations: 0 / 0.7847 GB, free: 12.02 MB / 0.6075 GB Notification: Performance of Transformations before backend: time 4.839e-06/0.2293, allocations: 0 / 0.7847 GB, free: 12.02 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.0005868/0.2299, allocations: 367.7 kB / 0.785 GB, free: 11.61 MB / 0.6075 GB Notification: Performance of prepare preOptimizeDAE: time 3.5e-05/0.2299, allocations: 8.031 kB / 0.785 GB, free: 11.6 MB / 0.6075 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.779e-05/0.23, allocations: 8.844 kB / 0.785 GB, free: 11.59 MB / 0.6075 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001042/0.2301, allocations: 164.3 kB / 0.7852 GB, free: 11.39 MB / 0.6075 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.557e-05/0.2301, allocations: 12.36 kB / 0.7852 GB, free: 11.38 MB / 0.6075 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.429e-05/0.2301, allocations: 384 / 0.7852 GB, free: 11.38 MB / 0.6075 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001875/0.2303, allocations: 66.22 kB / 0.7853 GB, free: 11.31 MB / 0.6075 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.005e-05/0.2304, allocations: 8.188 kB / 0.7853 GB, free: 11.3 MB / 0.6075 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.373e-05/0.2304, allocations: 7.875 kB / 0.7853 GB, free: 11.3 MB / 0.6075 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.849e-06/0.2304, allocations: 0 / 0.7853 GB, free: 11.3 MB / 0.6075 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001684/0.2306, allocations: 43.95 kB / 0.7853 GB, free: 11.25 MB / 0.6075 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004162/0.231, allocations: 276.7 kB / 0.7856 GB, free: 10.93 MB / 0.6075 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001655/0.2312, allocations: 66.48 kB / 0.7856 GB, free: 10.86 MB / 0.6075 GB Notification: Performance of preOpt resolveLoops (simulation): time 9.297e-05/0.2313, allocations: 28.97 kB / 0.7857 GB, free: 10.83 MB / 0.6075 GB Notification: Performance of preOpt evalFunc (simulation): time 2.028e-05/0.2313, allocations: 0 / 0.7857 GB, free: 10.83 MB / 0.6075 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001922/0.2315, allocations: 71.38 kB / 0.7857 GB, free: 10.75 MB / 0.6075 GB Notification: Performance of pre-optimization done (n=6): time 1.203e-06/0.2315, allocations: 0 / 0.7857 GB, free: 10.75 MB / 0.6075 GB Notification: Performance of matching and sorting (n=6): time 0.0003993/0.2319, allocations: 121.6 kB / 0.7859 GB, free: 10.62 MB / 0.6075 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.801e-05/0.2319, allocations: 55.41 kB / 0.7859 GB, free: 10.55 MB / 0.6075 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.467e-05/0.232, allocations: 109.8 kB / 0.786 GB, free: 10.44 MB / 0.6075 GB Notification: Performance of collectPreVariables (initialization): time 1.391e-05/0.232, allocations: 25.7 kB / 0.786 GB, free: 10.41 MB / 0.6075 GB Notification: Performance of collectInitialEqns (initialization): time 3.849e-05/0.2321, allocations: 84.05 kB / 0.7861 GB, free: 10.32 MB / 0.6075 GB Notification: Performance of collectInitialBindings (initialization): time 1.93e-05/0.2321, allocations: 19.97 kB / 0.7861 GB, free: 10.3 MB / 0.6075 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.848e-05/0.2322, allocations: 25.7 kB / 0.7862 GB, free: 10.27 MB / 0.6075 GB Notification: Performance of setup shared object (initialization): time 0.0001042/0.2323, allocations: 318.8 kB / 0.7865 GB, free: 9.949 MB / 0.6075 GB Notification: Performance of preBalanceInitialSystem (initialization): time 9.307e-05/0.2324, allocations: 23.97 kB / 0.7865 GB, free: 9.926 MB / 0.6075 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001/0.2325, allocations: 47.41 kB / 0.7865 GB, free: 9.867 MB / 0.6075 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001843/0.2327, allocations: 83.28 kB / 0.7866 GB, free: 9.773 MB / 0.6075 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.694e-06/0.2327, allocations: 0 / 0.7866 GB, free: 9.773 MB / 0.6075 GB Notification: Performance of matching and sorting (n=8) (initialization): time 0.0002476/0.2329, allocations: 113.4 kB / 0.7867 GB, free: 9.656 MB / 0.6075 GB Notification: Performance of prepare postOptimizeDAE: time 1.409e-05/0.233, allocations: 12.09 kB / 0.7867 GB, free: 9.645 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.078e-06/0.233, allocations: 0 / 0.7867 GB, free: 9.645 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.125e-05/0.233, allocations: 3.938 kB / 0.7867 GB, free: 9.641 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.868e-05/0.2331, allocations: 15.98 kB / 0.7867 GB, free: 9.625 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.29e-06/0.2331, allocations: 0 / 0.7867 GB, free: 9.625 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.7e-05/0.2332, allocations: 11.92 kB / 0.7868 GB, free: 9.613 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.367e-06/0.2332, allocations: 4 kB / 0.7868 GB, free: 9.609 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 8.604e-05/0.2333, allocations: 122.4 kB / 0.7869 GB, free: 9.48 MB / 0.6075 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.486e-05/0.2333, allocations: 7.906 kB / 0.7869 GB, free: 9.473 MB / 0.6075 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002604/0.2336, allocations: 102.5 kB / 0.787 GB, free: 9.367 MB / 0.6075 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.148e-06/0.2336, allocations: 4 kB / 0.787 GB, free: 9.363 MB / 0.6075 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.258e-06/0.2336, allocations: 0 / 0.787 GB, free: 9.363 MB / 0.6075 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.689e-06/0.2336, allocations: 3.984 kB / 0.787 GB, free: 9.359 MB / 0.6075 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004008/0.234, allocations: 350.5 kB / 0.7873 GB, free: 8.961 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.465e-06/0.234, allocations: 11.92 kB / 0.7873 GB, free: 8.949 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.767e-05/0.2341, allocations: 8 kB / 0.7873 GB, free: 8.941 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.733e-06/0.2341, allocations: 0 / 0.7873 GB, free: 8.941 MB / 0.6075 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.777e-06/0.2341, allocations: 0 / 0.7873 GB, free: 8.941 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.483e-06/0.2341, allocations: 0 / 0.7873 GB, free: 8.941 MB / 0.6075 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.356e-06/0.2341, allocations: 7.984 kB / 0.7874 GB, free: 8.934 MB / 0.6075 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002664/0.2344, allocations: 191.5 kB / 0.7875 GB, free: 8.73 MB / 0.6075 GB Notification: Performance of postOpt removeConstants (simulation): time 3.146e-05/0.2344, allocations: 84.95 kB / 0.7876 GB, free: 8.629 MB / 0.6075 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.651e-05/0.2344, allocations: 3.984 kB / 0.7876 GB, free: 8.625 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.442e-05/0.2345, allocations: 12 kB / 0.7876 GB, free: 8.613 MB / 0.6075 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.523e-05/0.2346, allocations: 3.984 kB / 0.7876 GB, free: 8.609 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.44e-05/0.2346, allocations: 7.938 kB / 0.7876 GB, free: 8.602 MB / 0.6075 GB Notification: Performance of sorting global known variables: time 4.485e-05/0.2347, allocations: 83.28 kB / 0.7877 GB, free: 8.52 MB / 0.6075 GB Notification: Performance of sort global known variables: time 1.3e-07/0.2347, allocations: 0 / 0.7877 GB, free: 8.52 MB / 0.6075 GB Notification: Performance of remove unused functions: time 0.0002298/0.2349, allocations: 15.98 kB / 0.7877 GB, free: 8.504 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.0001201/0.235, allocations: 99.25 kB / 0.7878 GB, free: 8.398 MB / 0.6075 GB Notification: Performance of simCode: created initialization part: time 0.0002467/0.2353, allocations: 67.89 kB / 0.7879 GB, free: 8.332 MB / 0.6075 GB Notification: Performance of simCode: created event and clocks part: time 1.583e-06/0.2353, allocations: 0 / 0.7879 GB, free: 8.332 MB / 0.6075 GB Notification: Performance of simCode: created simulation system equations: time 0.0001047/0.2354, allocations: 27.97 kB / 0.7879 GB, free: 8.305 MB / 0.6075 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002693/0.2357, allocations: 10.44 kB / 0.7879 GB, free: 8.297 MB / 0.6075 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003198/0.236, allocations: 147.2 kB / 0.7881 GB, free: 8.129 MB / 0.6075 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002742/0.2363, allocations: 0.6809 MB / 0.7887 GB, free: 7.422 MB / 0.6075 GB Notification: Performance of simCode: alias equations: time 3.402e-05/0.2363, allocations: 4 kB / 0.7887 GB, free: 7.418 MB / 0.6075 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.522e-05/0.2364, allocations: 23.3 kB / 0.7888 GB, free: 7.395 MB / 0.6075 GB Notification: Performance of SimCode: time 2.41e-07/0.2364, allocations: 0 / 0.7888 GB, free: 7.395 MB / 0.6075 GB Notification: Performance of Templates: time 0.002879/0.2393, allocations: 0.7045 MB / 0.7895 GB, free: 6.699 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)