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.001268/0.001268, 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.001264/0.001264, allocations: 195.4 kB / 16.14 MB, free: 6.707 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.709/1.709, allocations: 205.1 MB / 222 MB, free: 5.027 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.759/1.759, allocations: 292.3 MB / 0.5484 GB, free: 13.65 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.00135/0.00135, allocations: 67.19 kB / 0.6709 GB, free: 26.22 MB / 0.5294 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2568/0.2582, allocations: 114.5 MB / 0.7828 GB, free: 13.89 MB / 0.6075 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Examples.SmoothBlocks): time 0.003033/0.2613, allocations: 1.836 MB / 0.7846 GB, free: 12.04 MB / 0.6075 GB Notification: Performance of NFInst.instExpressions: time 0.001034/0.2623, allocations: 0.6992 MB / 0.7853 GB, free: 11.33 MB / 0.6075 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.856e-05/0.2624, allocations: 0 / 0.7853 GB, free: 11.33 MB / 0.6075 GB Notification: Performance of NFTyping.typeComponents: time 3.677e-05/0.2624, allocations: 3.938 kB / 0.7853 GB, free: 11.33 MB / 0.6075 GB Notification: Performance of NFTyping.typeBindings: time 5.921e-05/0.2625, allocations: 15.86 kB / 0.7853 GB, free: 11.31 MB / 0.6075 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004501/0.263, allocations: 158.7 kB / 0.7854 GB, free: 11.16 MB / 0.6075 GB Notification: Performance of NFFlatten.flatten: time 0.0001214/0.2631, allocations: 115.7 kB / 0.7855 GB, free: 11.05 MB / 0.6075 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001156/0.2632, allocations: 41.11 kB / 0.7856 GB, free: 11.01 MB / 0.6075 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001108/0.2633, allocations: 59.7 kB / 0.7856 GB, free: 10.95 MB / 0.6075 GB Notification: Performance of NFSimplifyModel.simplify: time 6.97e-05/0.2634, allocations: 51.77 kB / 0.7857 GB, free: 10.9 MB / 0.6075 GB Notification: Performance of NFPackage.collectConstants: time 2.26e-05/0.2634, allocations: 4 kB / 0.7857 GB, free: 10.89 MB / 0.6075 GB Notification: Performance of NFFlatten.collectFunctions: time 9.871e-05/0.2635, allocations: 43.95 kB / 0.7857 GB, free: 10.85 MB / 0.6075 GB Notification: Performance of NFScalarize.scalarize: time 3.158e-05/0.2636, allocations: 27.91 kB / 0.7858 GB, free: 10.82 MB / 0.6075 GB Notification: Performance of NFVerifyModel.verify: time 5.384e-05/0.2636, allocations: 59.7 kB / 0.7858 GB, free: 10.77 MB / 0.6075 GB Notification: Performance of NFConvertDAE.convert: time 0.0001712/0.2638, allocations: 135.8 kB / 0.7859 GB, free: 10.63 MB / 0.6075 GB Notification: Performance of FrontEnd - DAE generated: time 4.518e-06/0.2638, allocations: 3.938 kB / 0.786 GB, free: 10.63 MB / 0.6075 GB Notification: Performance of FrontEnd: time 6.92e-07/0.2638, allocations: 3.938 kB / 0.786 GB, free: 10.62 MB / 0.6075 GB Notification: Performance of Transformations before backend: time 3.687e-06/0.2638, allocations: 0 / 0.786 GB, free: 10.62 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.0005431/0.2644, allocations: 435 kB / 0.7864 GB, free: 10.15 MB / 0.6075 GB Notification: Performance of prepare preOptimizeDAE: time 3.816e-05/0.2644, allocations: 12.03 kB / 0.7864 GB, free: 10.14 MB / 0.6075 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.273e-05/0.2645, allocations: 38.73 kB / 0.7864 GB, free: 10.09 MB / 0.6075 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007848/0.2653, allocations: 116.6 kB / 0.7865 GB, free: 9.98 MB / 0.6075 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00013/0.2654, allocations: 180.2 kB / 0.7867 GB, free: 9.766 MB / 0.6075 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.359e-05/0.2655, allocations: 67.89 kB / 0.7868 GB, free: 9.688 MB / 0.6075 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.025e-05/0.2655, allocations: 8.375 kB / 0.7868 GB, free: 9.68 MB / 0.6075 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000482/0.266, allocations: 172.1 kB / 0.7869 GB, free: 9.508 MB / 0.6075 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.863e-06/0.266, allocations: 0 / 0.7869 GB, free: 9.508 MB / 0.6075 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.655e-05/0.2661, allocations: 8 kB / 0.7869 GB, free: 9.5 MB / 0.6075 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.071e-06/0.2661, allocations: 0 / 0.7869 GB, free: 9.5 MB / 0.6075 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006093/0.2667, allocations: 155.8 kB / 0.7871 GB, free: 9.348 MB / 0.6075 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001114/0.2678, allocations: 497.6 kB / 0.7876 GB, free: 8.809 MB / 0.6075 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0009889/0.2688, allocations: 218.3 kB / 0.7878 GB, free: 8.586 MB / 0.6075 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.000276/0.2691, allocations: 80.84 kB / 0.7879 GB, free: 8.504 MB / 0.6075 GB Notification: Performance of preOpt evalFunc (simulation): time 2.712e-05/0.2691, allocations: 4 kB / 0.7879 GB, free: 8.5 MB / 0.6075 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.247e-05/0.2692, allocations: 42.55 kB / 0.7879 GB, free: 8.449 MB / 0.6075 GB Notification: Performance of pre-optimization done (n=6): time 1.623e-06/0.2692, allocations: 0 / 0.7879 GB, free: 8.449 MB / 0.6075 GB Notification: Performance of matching and sorting (n=6): time 0.001014/0.2702, allocations: 261.5 kB / 0.7882 GB, free: 8.188 MB / 0.6075 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.354e-05/0.2703, allocations: 51.41 kB / 0.7882 GB, free: 8.125 MB / 0.6075 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001273/0.2704, allocations: 148.5 kB / 0.7883 GB, free: 7.973 MB / 0.6075 GB Notification: Performance of collectPreVariables (initialization): time 3.316e-05/0.2704, allocations: 25.7 kB / 0.7884 GB, free: 7.941 MB / 0.6075 GB Notification: Performance of collectInitialEqns (initialization): time 6.282e-05/0.2705, allocations: 104.3 kB / 0.7885 GB, free: 7.836 MB / 0.6075 GB Notification: Performance of collectInitialBindings (initialization): time 2.822e-05/0.2705, allocations: 23.66 kB / 0.7885 GB, free: 7.812 MB / 0.6075 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.242e-05/0.2706, allocations: 25.7 kB / 0.7885 GB, free: 7.781 MB / 0.6075 GB Notification: Performance of setup shared object (initialization): time 0.0001347/0.2707, allocations: 322.8 kB / 0.7888 GB, free: 7.457 MB / 0.6075 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002794/0.271, allocations: 83.84 kB / 0.7889 GB, free: 7.375 MB / 0.6075 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002807/0.2713, allocations: 94.48 kB / 0.789 GB, free: 7.273 MB / 0.6075 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005394/0.2719, allocations: 162.7 kB / 0.7891 GB, free: 7.105 MB / 0.6075 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.845e-06/0.2719, allocations: 0 / 0.7891 GB, free: 7.105 MB / 0.6075 GB Notification: Performance of matching and sorting (n=8) (initialization): time 0.0006684/0.2726, allocations: 205.4 kB / 0.7893 GB, free: 6.898 MB / 0.6075 GB Notification: Performance of prepare postOptimizeDAE: time 2.333e-05/0.2726, allocations: 8 kB / 0.7893 GB, free: 6.891 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.017e-05/0.2726, allocations: 3.938 kB / 0.7894 GB, free: 6.887 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.861e-05/0.2726, allocations: 3.938 kB / 0.7894 GB, free: 6.883 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002748/0.2729, allocations: 39.95 kB / 0.7894 GB, free: 6.844 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.965e-06/0.2729, allocations: 4.062 kB / 0.7894 GB, free: 6.84 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001853/0.2731, allocations: 19.97 kB / 0.7894 GB, free: 6.82 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.896e-05/0.2732, allocations: 7.984 kB / 0.7894 GB, free: 6.812 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.0001869/0.2733, allocations: 122.4 kB / 0.7895 GB, free: 6.684 MB / 0.6075 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.622e-05/0.2734, allocations: 11.84 kB / 0.7896 GB, free: 6.672 MB / 0.6075 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007283/0.2741, allocations: 206.1 kB / 0.7897 GB, free: 6.461 MB / 0.6075 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.125e-06/0.2741, allocations: 4 kB / 0.7898 GB, free: 6.457 MB / 0.6075 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.611e-06/0.2742, allocations: 0 / 0.7898 GB, free: 6.457 MB / 0.6075 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.518e-06/0.2742, allocations: 0 / 0.7898 GB, free: 6.457 MB / 0.6075 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003289/0.2745, allocations: 234.3 kB / 0.79 GB, free: 6.18 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.024e-06/0.2745, allocations: 0 / 0.79 GB, free: 6.18 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000217/0.2747, allocations: 35.95 kB / 0.79 GB, free: 6.145 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.056e-06/0.2748, allocations: 0 / 0.79 GB, free: 6.145 MB / 0.6075 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.556e-05/0.2748, allocations: 3.938 kB / 0.79 GB, free: 6.141 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.583e-06/0.2748, allocations: 0 / 0.79 GB, free: 6.141 MB / 0.6075 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.522e-06/0.2748, allocations: 3.984 kB / 0.79 GB, free: 6.137 MB / 0.6075 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006477/0.2754, allocations: 291.4 kB / 0.7903 GB, free: 5.836 MB / 0.6075 GB Notification: Performance of postOpt removeConstants (simulation): time 5.242e-05/0.2755, allocations: 89 kB / 0.7904 GB, free: 5.73 MB / 0.6075 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.606e-05/0.2755, allocations: 3.938 kB / 0.7904 GB, free: 5.727 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002743/0.2758, allocations: 27.95 kB / 0.7904 GB, free: 5.699 MB / 0.6075 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.91e-05/0.2759, allocations: 12 kB / 0.7904 GB, free: 5.688 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.899e-05/0.2759, allocations: 7.984 kB / 0.7904 GB, free: 5.68 MB / 0.6075 GB Notification: Performance of sorting global known variables: time 8.272e-05/0.276, allocations: 107.2 kB / 0.7905 GB, free: 5.574 MB / 0.6075 GB Notification: Performance of sort global known variables: time 1.833e-06/0.276, allocations: 0 / 0.7905 GB, free: 5.574 MB / 0.6075 GB Notification: Performance of remove unused functions: time 0.0002643/0.2763, allocations: 23.94 kB / 0.7906 GB, free: 5.551 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.001055/0.2773, allocations: 0.8177 MB / 0.7914 GB, free: 4.707 MB / 0.6075 GB Notification: Performance of simCode: created initialization part: time 0.0006214/0.278, allocations: 167.8 kB / 0.7915 GB, free: 4.543 MB / 0.6075 GB Notification: Performance of simCode: created event and clocks part: time 2.475e-06/0.278, allocations: 0 / 0.7915 GB, free: 4.543 MB / 0.6075 GB Notification: Performance of simCode: created simulation system equations: time 0.0002923/0.2783, allocations: 83.86 kB / 0.7916 GB, free: 4.461 MB / 0.6075 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003968/0.2787, allocations: 11.92 kB / 0.7916 GB, free: 4.449 MB / 0.6075 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003094/0.2818, allocations: 1.849 MB / 0.7934 GB, free: 2.512 MB / 0.6075 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002873/0.2821, allocations: 0.7003 MB / 0.7941 GB, free: 1.785 MB / 0.6075 GB Notification: Performance of simCode: alias equations: time 0.0001124/0.2822, allocations: 19.75 kB / 0.7941 GB, free: 1.766 MB / 0.6075 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.729e-05/0.2823, allocations: 35.34 kB / 0.7941 GB, free: 1.73 MB / 0.6075 GB Notification: Performance of SimCode: time 9.52e-07/0.2823, allocations: 0 / 0.7941 GB, free: 1.73 MB / 0.6075 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01253/0.2948, allocations: 2.508 MB / 0.7966 GB, free: 15.3 MB / 0.6231 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001882/0.2951, allocations: 190.5 kB / 0.7968 GB, free: 15.05 MB / 0.6231 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.659/1.954, allocations: 0 / 0.7968 GB, free: 15.05 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)