Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_8_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredSampler.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.TriggeredSampler,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_8_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredSampler") translateModel(Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredSampler,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_8_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredSampler") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001312/0.001312, allocations: 111.3 kB / 15.23 MB, free: 0.6406 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.001408/0.001408, allocations: 197 kB / 16.14 MB, free: 6.703 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.564/1.564, allocations: 205.1 MB / 222 MB, free: 4.77 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.72/1.72, allocations: 292.3 MB / 0.5484 GB, free: 13.64 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.001337/0.001337, allocations: 70.64 kB / 0.6708 GB, free: 26.61 MB / 0.5294 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2837/0.285, allocations: 114.6 MB / 0.7827 GB, free: 14 MB / 0.6075 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredSampler): time 0.002533/0.2876, allocations: 0.8281 MB / 0.7835 GB, free: 13.16 MB / 0.6075 GB Notification: Performance of NFInst.instExpressions: time 0.002295/0.29, allocations: 1.161 MB / 0.7846 GB, free: 11.99 MB / 0.6075 GB Notification: Performance of NFInst.updateImplicitVariability: time 6.414e-05/0.2901, allocations: 4 kB / 0.7846 GB, free: 11.98 MB / 0.6075 GB Notification: Performance of NFTyping.typeComponents: time 5.153e-05/0.2902, allocations: 3.938 kB / 0.7846 GB, free: 11.98 MB / 0.6075 GB Notification: Performance of NFTyping.typeBindings: time 9.451e-05/0.2903, allocations: 15.92 kB / 0.7846 GB, free: 11.96 MB / 0.6075 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005811/0.2909, allocations: 123 kB / 0.7848 GB, free: 11.85 MB / 0.6075 GB Notification: Performance of NFFlatten.flatten: time 0.0001623/0.291, allocations: 107.8 kB / 0.7849 GB, free: 11.74 MB / 0.6075 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001418/0.2912, allocations: 20.19 kB / 0.7849 GB, free: 11.72 MB / 0.6075 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001918/0.2914, allocations: 43.89 kB / 0.7849 GB, free: 11.68 MB / 0.6075 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001112/0.2915, allocations: 47.81 kB / 0.785 GB, free: 11.63 MB / 0.6075 GB Notification: Performance of NFPackage.collectConstants: time 3.48e-05/0.2916, allocations: 8 kB / 0.785 GB, free: 11.62 MB / 0.6075 GB Notification: Performance of NFFlatten.collectFunctions: time 9.613e-05/0.2917, allocations: 23.98 kB / 0.785 GB, free: 11.6 MB / 0.6075 GB Notification: Performance of NFScalarize.scalarize: time 2.996e-05/0.2917, allocations: 11.94 kB / 0.785 GB, free: 11.59 MB / 0.6075 GB Notification: Performance of NFVerifyModel.verify: time 8.784e-05/0.2918, allocations: 39.83 kB / 0.7851 GB, free: 11.55 MB / 0.6075 GB Notification: Performance of NFConvertDAE.convert: time 0.0002479/0.2921, allocations: 115.7 kB / 0.7852 GB, free: 11.43 MB / 0.6075 GB Notification: Performance of FrontEnd - DAE generated: time 4.799e-06/0.2921, allocations: 0 / 0.7852 GB, free: 11.43 MB / 0.6075 GB Notification: Performance of FrontEnd: time 1.883e-06/0.2921, allocations: 0 / 0.7852 GB, free: 11.43 MB / 0.6075 GB Notification: Performance of Transformations before backend: time 5.841e-06/0.2921, allocations: 4 kB / 0.7852 GB, free: 11.43 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: 10 * Number of variables: 10 Notification: Performance of Generate backend data structure: time 0.001008/0.2931, allocations: 421.2 kB / 0.7856 GB, free: 10.96 MB / 0.6075 GB Notification: Performance of prepare preOptimizeDAE: time 4.432e-05/0.2932, allocations: 8.031 kB / 0.7856 GB, free: 10.96 MB / 0.6075 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.623e-05/0.2933, allocations: 8.844 kB / 0.7856 GB, free: 10.95 MB / 0.6075 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002241/0.2935, allocations: 180.2 kB / 0.7858 GB, free: 10.73 MB / 0.6075 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.594e-05/0.2935, allocations: 8.375 kB / 0.7858 GB, free: 10.73 MB / 0.6075 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.343e-05/0.2936, allocations: 8.375 kB / 0.7858 GB, free: 10.72 MB / 0.6075 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000299/0.2939, allocations: 82.16 kB / 0.7859 GB, free: 10.63 MB / 0.6075 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.572e-05/0.2939, allocations: 3.938 kB / 0.7859 GB, free: 10.63 MB / 0.6075 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.667e-05/0.2939, allocations: 0 / 0.7859 GB, free: 10.63 MB / 0.6075 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.792e-06/0.294, allocations: 0 / 0.7859 GB, free: 10.63 MB / 0.6075 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002886/0.2943, allocations: 51.89 kB / 0.7859 GB, free: 10.58 MB / 0.6075 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007861/0.295, allocations: 348.6 kB / 0.7862 GB, free: 10.19 MB / 0.6075 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002393/0.2953, allocations: 62.58 kB / 0.7863 GB, free: 10.12 MB / 0.6075 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.000135/0.2955, allocations: 28.97 kB / 0.7863 GB, free: 10.09 MB / 0.6075 GB Notification: Performance of preOpt evalFunc (simulation): time 2.924e-05/0.2955, allocations: 0 / 0.7863 GB, free: 10.09 MB / 0.6075 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004663/0.296, allocations: 91.34 kB / 0.7864 GB, free: 9.984 MB / 0.6075 GB Notification: Performance of pre-optimization done (n=8): time 1.823e-06/0.296, allocations: 3.938 kB / 0.7864 GB, free: 9.98 MB / 0.6075 GB Notification: Performance of matching and sorting (n=8): time 0.0006794/0.2967, allocations: 153.5 kB / 0.7866 GB, free: 9.824 MB / 0.6075 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.929e-05/0.2967, allocations: 51.41 kB / 0.7866 GB, free: 9.762 MB / 0.6075 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001296/0.2969, allocations: 117.8 kB / 0.7867 GB, free: 9.637 MB / 0.6075 GB Notification: Performance of collectPreVariables (initialization): time 4.48e-05/0.2969, allocations: 33.7 kB / 0.7868 GB, free: 9.598 MB / 0.6075 GB Notification: Performance of collectInitialEqns (initialization): time 9.115e-05/0.297, allocations: 100 kB / 0.7869 GB, free: 9.496 MB / 0.6075 GB Notification: Performance of collectInitialBindings (initialization): time 2.546e-05/0.2971, allocations: 19.73 kB / 0.7869 GB, free: 9.477 MB / 0.6075 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001158/0.2972, allocations: 41.69 kB / 0.7869 GB, free: 9.43 MB / 0.6075 GB Notification: Performance of setup shared object (initialization): time 0.0002259/0.2974, allocations: 322.8 kB / 0.7872 GB, free: 9.105 MB / 0.6075 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002331/0.2977, allocations: 51.95 kB / 0.7873 GB, free: 9.055 MB / 0.6075 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002635/0.298, allocations: 93.98 kB / 0.7874 GB, free: 8.945 MB / 0.6075 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004072/0.2984, allocations: 146.8 kB / 0.7875 GB, free: 8.777 MB / 0.6075 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.266e-06/0.2984, allocations: 0 / 0.7875 GB, free: 8.777 MB / 0.6075 GB Notification: Performance of matching and sorting (n=13) (initialization): time 0.0008048/0.2992, allocations: 211.1 kB / 0.7877 GB, free: 8.559 MB / 0.6075 GB Notification: Performance of prepare postOptimizeDAE: time 5.976e-05/0.2993, allocations: 41.69 kB / 0.7877 GB, free: 8.512 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.855e-06/0.2993, allocations: 4.25 kB / 0.7877 GB, free: 8.508 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.709e-05/0.2993, allocations: 0 / 0.7877 GB, free: 8.508 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001621/0.2995, allocations: 20.14 kB / 0.7878 GB, free: 8.488 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.03e-05/0.2995, allocations: 4 kB / 0.7878 GB, free: 8.484 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003405/0.2999, allocations: 31.95 kB / 0.7878 GB, free: 8.453 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.763e-05/0.2999, allocations: 11.98 kB / 0.7878 GB, free: 8.441 MB / 0.6075 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 6 * Number of states: 0 () * Number of discrete variables: 9 (triSam1.y,$PRE.triSam1.y,triSam.y,$PRE.triSam.y,booPul.y,$PRE.booPul.y,$whenCondition3,$whenCondition1,$whenCondition2) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (11): * Single equations (assignments): 10 * Array equations: 0 * Algorithm blocks: 1 * 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.0001386/0.3001, allocations: 125.7 kB / 0.7879 GB, free: 8.309 MB / 0.6075 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.627e-05/0.3001, allocations: 7.906 kB / 0.7879 GB, free: 8.301 MB / 0.6075 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004472/0.3006, allocations: 126 kB / 0.7881 GB, free: 8.172 MB / 0.6075 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.128e-06/0.3006, allocations: 0 / 0.7881 GB, free: 8.172 MB / 0.6075 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.421e-06/0.3006, allocations: 0 / 0.7881 GB, free: 8.172 MB / 0.6075 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.858e-06/0.3006, allocations: 0 / 0.7881 GB, free: 8.172 MB / 0.6075 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006133/0.3012, allocations: 386.3 kB / 0.7884 GB, free: 7.738 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.789e-06/0.3013, allocations: 0 / 0.7884 GB, free: 7.738 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.313e-05/0.3014, allocations: 23.88 kB / 0.7884 GB, free: 7.715 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.45e-06/0.3014, allocations: 4.031 kB / 0.7885 GB, free: 7.711 MB / 0.6075 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.556e-05/0.3014, allocations: 3.984 kB / 0.7885 GB, free: 7.707 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.114e-06/0.3014, allocations: 0 / 0.7885 GB, free: 7.707 MB / 0.6075 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.493e-06/0.3014, allocations: 7.938 kB / 0.7885 GB, free: 7.699 MB / 0.6075 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004268/0.3019, allocations: 207.4 kB / 0.7887 GB, free: 7.48 MB / 0.6075 GB Notification: Performance of postOpt removeConstants (simulation): time 5.884e-05/0.3019, allocations: 85.02 kB / 0.7887 GB, free: 7.379 MB / 0.6075 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.6e-05/0.302, allocations: 7.938 kB / 0.7887 GB, free: 7.371 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001305/0.3021, allocations: 11.98 kB / 0.7888 GB, free: 7.359 MB / 0.6075 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.809e-05/0.3022, allocations: 7.922 kB / 0.7888 GB, free: 7.352 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.515e-05/0.3022, allocations: 4 kB / 0.7888 GB, free: 7.348 MB / 0.6075 GB Notification: Performance of sorting global known variables: time 8.578e-05/0.3023, allocations: 91.81 kB / 0.7889 GB, free: 7.258 MB / 0.6075 GB Notification: Performance of sort global known variables: time 2.2e-07/0.3023, allocations: 0 / 0.7889 GB, free: 7.258 MB / 0.6075 GB Notification: Performance of remove unused functions: time 0.0004761/0.3028, allocations: 24 kB / 0.7889 GB, free: 7.234 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: 6 ($whenCondition3,$whenCondition1,$whenCondition2,booPul.y,triSam.y,triSam1.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (8): * Single equations (assignments): 5 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 3 * 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.0002294/0.303, allocations: 107.2 kB / 0.789 GB, free: 7.121 MB / 0.6075 GB Notification: Performance of simCode: created initialization part: time 0.0006753/0.3037, allocations: 179.3 kB / 0.7892 GB, free: 6.934 MB / 0.6075 GB Notification: Performance of simCode: created event and clocks part: time 3.176e-06/0.3038, allocations: 0 / 0.7892 GB, free: 6.934 MB / 0.6075 GB Notification: Performance of simCode: created simulation system equations: time 0.0001865/0.3039, allocations: 43.91 kB / 0.7892 GB, free: 6.891 MB / 0.6075 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005408/0.3045, allocations: 12.3 kB / 0.7892 GB, free: 6.879 MB / 0.6075 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006/0.3051, allocations: 188.2 kB / 0.7894 GB, free: 6.664 MB / 0.6075 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003614/0.3055, allocations: 0.6887 MB / 0.7901 GB, free: 5.949 MB / 0.6075 GB Notification: Performance of simCode: alias equations: time 5.327e-05/0.3056, allocations: 11.98 kB / 0.7901 GB, free: 5.938 MB / 0.6075 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.415e-05/0.3056, allocations: 11.44 kB / 0.7901 GB, free: 5.93 MB / 0.6075 GB Notification: Performance of SimCode: time 8.82e-07/0.3056, allocations: 0 / 0.7901 GB, free: 5.93 MB / 0.6075 GB Notification: Performance of Templates: time 0.005548/0.3112, allocations: 1.323 MB / 0.7914 GB, free: 4.625 MB / 0.6075 GB make -j1 -f Buildings_8_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredSampler.makefile (rm -f Buildings_8_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredSampler.pipe ; mkfifo Buildings_8_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredSampler.pipe ; head -c 1048576 < Buildings_8_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredSampler.pipe >> ../files/Buildings_8_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredSampler.sim & ./Buildings_8_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredSampler -abortSlowSimulation -alarm=480 -lv LOG_STATS > Buildings_8_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredSampler.pipe 2>&1)