Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_8_Buildings.Utilities.Math.Examples.SmoothBlocks.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: "" <> buildModelFMU(Buildings.Utilities.Math.Examples.SmoothBlocks,fileNamePrefix="Buildings_8_Buildings_Utilities_Math_Examples_SmoothBlocks",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Utilities.Math.Examples.SmoothBlocks,fileNamePrefix="Buildings_8_Buildings_Utilities_Math_Examples_SmoothBlocks",fmuType="me",version="2.0",platforms={"static"}) 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: 108 kB / 15.61 MB, free: 148 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.001296/0.001297, allocations: 191.8 kB / 16.53 MB, free: 6.664 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.513/1.513, allocations: 205.1 MB / 222.4 MB, free: 4.566 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.631/1.631, allocations: 292.3 MB / 0.5489 GB, free: 12.79 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.001424/0.001424, allocations: 69.31 kB / 0.6716 GB, free: 26.34 MB / 0.5294 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2498/0.2513, allocations: 114.5 MB / 0.7835 GB, free: 13.38 MB / 0.6075 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Examples.SmoothBlocks): time 0.004789/0.2561, allocations: 1.77 MB / 0.7852 GB, free: 11.58 MB / 0.6075 GB Notification: Performance of NFInst.instExpressions: time 0.002145/0.2583, allocations: 0.7039 MB / 0.7859 GB, free: 10.87 MB / 0.6075 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002114/0.2586, allocations: 4 kB / 0.7859 GB, free: 10.87 MB / 0.6075 GB Notification: Performance of NFTyping.typeComponents: time 9.346e-05/0.2587, allocations: 11.86 kB / 0.7859 GB, free: 10.86 MB / 0.6075 GB Notification: Performance of NFTyping.typeBindings: time 0.0001394/0.2589, allocations: 11.81 kB / 0.7859 GB, free: 10.84 MB / 0.6075 GB Notification: Performance of NFTyping.typeClassSections: time 0.0007298/0.2596, allocations: 178.7 kB / 0.7861 GB, free: 10.67 MB / 0.6075 GB Notification: Performance of NFFlatten.flatten: time 0.0002333/0.2599, allocations: 123.6 kB / 0.7862 GB, free: 10.55 MB / 0.6075 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0002105/0.2601, allocations: 41.11 kB / 0.7862 GB, free: 10.51 MB / 0.6075 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001969/0.2603, allocations: 59.83 kB / 0.7863 GB, free: 10.45 MB / 0.6075 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001259/0.2604, allocations: 55.69 kB / 0.7863 GB, free: 10.4 MB / 0.6075 GB Notification: Performance of NFPackage.collectConstants: time 3.991e-05/0.2605, allocations: 8 kB / 0.7864 GB, free: 10.39 MB / 0.6075 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001594/0.2606, allocations: 43.97 kB / 0.7864 GB, free: 10.35 MB / 0.6075 GB Notification: Performance of NFScalarize.scalarize: time 5.022e-05/0.2607, allocations: 31.91 kB / 0.7864 GB, free: 10.32 MB / 0.6075 GB Notification: Performance of NFVerifyModel.verify: time 7.624e-05/0.2608, allocations: 51.72 kB / 0.7865 GB, free: 10.27 MB / 0.6075 GB Notification: Performance of NFConvertDAE.convert: time 0.0003065/0.2611, allocations: 147.8 kB / 0.7866 GB, free: 10.12 MB / 0.6075 GB Notification: Performance of FrontEnd - DAE generated: time 7.955e-06/0.2611, allocations: 0 / 0.7866 GB, free: 10.12 MB / 0.6075 GB Notification: Performance of FrontEnd: time 1.624e-06/0.2611, allocations: 0 / 0.7866 GB, free: 10.12 MB / 0.6075 GB Notification: Performance of Transformations before backend: time 9.758e-06/0.2611, allocations: 4 kB / 0.7866 GB, free: 10.12 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: 18 * Number of variables: 18 Notification: Performance of Generate backend data structure: time 0.0006691/0.2618, allocations: 435 kB / 0.787 GB, free: 9.645 MB / 0.6075 GB Notification: Performance of prepare preOptimizeDAE: time 4.861e-05/0.2619, allocations: 12.03 kB / 0.787 GB, free: 9.633 MB / 0.6075 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.944e-05/0.2619, allocations: 38.75 kB / 0.7871 GB, free: 9.586 MB / 0.6075 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008797/0.2628, allocations: 120.5 kB / 0.7872 GB, free: 9.469 MB / 0.6075 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001418/0.263, allocations: 192 kB / 0.7874 GB, free: 9.242 MB / 0.6075 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.433e-05/0.2631, allocations: 63.97 kB / 0.7874 GB, free: 9.168 MB / 0.6075 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.576e-05/0.2631, allocations: 4.375 kB / 0.7874 GB, free: 9.164 MB / 0.6075 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005551/0.2637, allocations: 169.5 kB / 0.7876 GB, free: 8.992 MB / 0.6075 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.487e-06/0.2637, allocations: 4 kB / 0.7876 GB, free: 8.988 MB / 0.6075 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.516e-05/0.2637, allocations: 4 kB / 0.7876 GB, free: 8.984 MB / 0.6075 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.839e-06/0.2637, allocations: 0 / 0.7876 GB, free: 8.984 MB / 0.6075 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006479/0.2644, allocations: 159.8 kB / 0.7878 GB, free: 8.828 MB / 0.6075 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001305/0.2657, allocations: 489.7 kB / 0.7882 GB, free: 8.297 MB / 0.6075 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001028/0.2667, allocations: 218.3 kB / 0.7884 GB, free: 8.074 MB / 0.6075 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002968/0.2671, allocations: 80.91 kB / 0.7885 GB, free: 7.992 MB / 0.6075 GB Notification: Performance of preOpt evalFunc (simulation): time 3.319e-05/0.2671, allocations: 7.984 kB / 0.7885 GB, free: 7.984 MB / 0.6075 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.221e-05/0.2671, allocations: 34.55 kB / 0.7886 GB, free: 7.941 MB / 0.6075 GB Notification: Performance of pre-optimization done (n=6): time 1.362e-06/0.2671, allocations: 0 / 0.7886 GB, free: 7.941 MB / 0.6075 GB Notification: Performance of matching and sorting (n=6): time 0.001103/0.2682, allocations: 269.4 kB / 0.7888 GB, free: 7.672 MB / 0.6075 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.216e-05/0.2683, allocations: 51.41 kB / 0.7889 GB, free: 7.609 MB / 0.6075 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001331/0.2684, allocations: 148.2 kB / 0.789 GB, free: 7.457 MB / 0.6075 GB Notification: Performance of collectPreVariables (initialization): time 0.00015/0.2686, allocations: 29.7 kB / 0.789 GB, free: 7.422 MB / 0.6075 GB Notification: Performance of collectInitialEqns (initialization): time 6.868e-05/0.2687, allocations: 108.3 kB / 0.7891 GB, free: 7.312 MB / 0.6075 GB Notification: Performance of collectInitialBindings (initialization): time 3.145e-05/0.2687, allocations: 27.58 kB / 0.7892 GB, free: 7.285 MB / 0.6075 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.889e-05/0.2688, allocations: 25.7 kB / 0.7892 GB, free: 7.254 MB / 0.6075 GB Notification: Performance of setup shared object (initialization): time 0.000197/0.269, allocations: 314.8 kB / 0.7895 GB, free: 6.938 MB / 0.6075 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003041/0.2693, allocations: 79.91 kB / 0.7896 GB, free: 6.859 MB / 0.6075 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003023/0.2696, allocations: 94.5 kB / 0.7897 GB, free: 6.758 MB / 0.6075 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005814/0.2702, allocations: 162.4 kB / 0.7898 GB, free: 6.59 MB / 0.6075 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.775e-06/0.2702, allocations: 0 / 0.7898 GB, free: 6.59 MB / 0.6075 GB Notification: Performance of matching and sorting (n=8) (initialization): time 0.0006648/0.2709, allocations: 201.4 kB / 0.79 GB, free: 6.387 MB / 0.6075 GB Notification: Performance of prepare postOptimizeDAE: time 2.092e-05/0.2709, allocations: 8 kB / 0.79 GB, free: 6.379 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.215e-05/0.2709, allocations: 7.922 kB / 0.79 GB, free: 6.371 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.942e-05/0.271, allocations: 3.938 kB / 0.79 GB, free: 6.367 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002683/0.2712, allocations: 35.95 kB / 0.7901 GB, free: 6.332 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.674e-06/0.2713, allocations: 0 / 0.7901 GB, free: 6.332 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001916/0.2714, allocations: 24.28 kB / 0.7901 GB, free: 6.309 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.602e-05/0.2715, allocations: 7.938 kB / 0.7901 GB, free: 6.301 MB / 0.6075 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 3 * Number of states: 0 () * Number of discrete variables: 0 () * 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.0001162/0.2716, allocations: 126.4 kB / 0.7902 GB, free: 6.168 MB / 0.6075 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.738e-05/0.2716, allocations: 11.91 kB / 0.7902 GB, free: 6.156 MB / 0.6075 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007446/0.2724, allocations: 210.2 kB / 0.7904 GB, free: 5.941 MB / 0.6075 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.227e-06/0.2724, allocations: 0 / 0.7904 GB, free: 5.941 MB / 0.6075 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.08e-06/0.2724, allocations: 0 / 0.7904 GB, free: 5.941 MB / 0.6075 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.657e-06/0.2724, allocations: 0 / 0.7904 GB, free: 5.941 MB / 0.6075 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002431/0.2727, allocations: 230.3 kB / 0.7906 GB, free: 5.668 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.753e-06/0.2727, allocations: 0 / 0.7906 GB, free: 5.668 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002228/0.2729, allocations: 39.89 kB / 0.7907 GB, free: 5.629 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.765e-06/0.2729, allocations: 0 / 0.7907 GB, free: 5.629 MB / 0.6075 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.284e-05/0.2729, allocations: 3.938 kB / 0.7907 GB, free: 5.625 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.866e-06/0.273, allocations: 8 kB / 0.7907 GB, free: 5.617 MB / 0.6075 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.152e-06/0.273, allocations: 0 / 0.7907 GB, free: 5.617 MB / 0.6075 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006762/0.2736, allocations: 279.3 kB / 0.791 GB, free: 5.328 MB / 0.6075 GB Notification: Performance of postOpt removeConstants (simulation): time 4.206e-05/0.2737, allocations: 89.02 kB / 0.791 GB, free: 5.223 MB / 0.6075 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.663e-05/0.2737, allocations: 3.938 kB / 0.791 GB, free: 5.219 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002858/0.274, allocations: 31.95 kB / 0.7911 GB, free: 5.188 MB / 0.6075 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.418e-05/0.2741, allocations: 7.984 kB / 0.7911 GB, free: 5.18 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.759e-05/0.2741, allocations: 7.984 kB / 0.7911 GB, free: 5.172 MB / 0.6075 GB Notification: Performance of sorting global known variables: time 6.92e-05/0.2742, allocations: 106 kB / 0.7912 GB, free: 5.07 MB / 0.6075 GB Notification: Performance of sort global known variables: time 1.21e-07/0.2742, allocations: 0 / 0.7912 GB, free: 5.07 MB / 0.6075 GB Notification: Performance of remove unused functions: time 0.0002533/0.2744, allocations: 28 kB / 0.7912 GB, free: 5.043 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: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (6): * Single equations (assignments): 6 * 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 Backend phase and start with SimCode phase: time 0.0009632/0.2754, allocations: 0.8176 MB / 0.792 GB, free: 4.199 MB / 0.6075 GB Notification: Performance of simCode: created initialization part: time 0.0006806/0.2761, allocations: 164 kB / 0.7922 GB, free: 4.039 MB / 0.6075 GB Notification: Performance of simCode: created event and clocks part: time 2.344e-06/0.2761, allocations: 4 kB / 0.7922 GB, free: 4.035 MB / 0.6075 GB Notification: Performance of simCode: created simulation system equations: time 0.000295/0.2764, allocations: 84.11 kB / 0.7923 GB, free: 3.953 MB / 0.6075 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003527/0.2768, allocations: 18.56 kB / 0.7923 GB, free: 3.938 MB / 0.6075 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00301/0.2798, allocations: 1.824 MB / 0.7941 GB, free: 2.023 MB / 0.6075 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002696/0.2801, allocations: 0.7002 MB / 0.7947 GB, free: 1.297 MB / 0.6075 GB Notification: Performance of simCode: alias equations: time 9.59e-05/0.2802, allocations: 19.75 kB / 0.7948 GB, free: 1.277 MB / 0.6075 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.414e-05/0.2803, allocations: 31.42 kB / 0.7948 GB, free: 1.246 MB / 0.6075 GB Notification: Performance of SimCode: time 6.51e-07/0.2803, allocations: 0 / 0.7948 GB, free: 1.246 MB / 0.6075 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01843/0.2987, allocations: 2.715 MB / 0.7974 GB, free: 14.59 MB / 0.6231 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.234/7.533, allocations: 4.688 kB / 0.7974 GB, free: 14.59 MB / 0.6231 GB (rm -f Buildings_8_Buildings.Utilities.Math.Examples.SmoothBlocks.pipe ; mkfifo Buildings_8_Buildings.Utilities.Math.Examples.SmoothBlocks.pipe ; head -c 1048576 < Buildings_8_Buildings.Utilities.Math.Examples.SmoothBlocks.pipe >> ../files/Buildings_8_Buildings.Utilities.Math.Examples.SmoothBlocks.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_Buildings_8_Buildings_Utilities_Math_Examples_SmoothBlocks_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Buildings_8_Buildings_Utilities_Math_Examples_SmoothBlocks.fmu > Buildings_8_Buildings.Utilities.Math.Examples.SmoothBlocks.pipe 2>&1)