Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr BuildingSystems_BuildingSystems.Utilities.Math.Examples.SmoothBlocks.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/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 4.0.0+maint.om/package.mo", uses=false) 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/NcDataReader2 2.5.1-master/package.mo", uses=false) Using package NcDataReader2 with version 2.5.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/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) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+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 BuildingSystems with version 2.0.0-beta (/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo) Running command: "" <> buildModelFMU(BuildingSystems.Utilities.Math.Examples.SmoothBlocks,fileNamePrefix="BuildingSystems_BuildingSystems_Utilities_Math_Examples_SmoothBlocks",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(BuildingSystems.Utilities.Math.Examples.SmoothBlocks,fileNamePrefix="BuildingSystems_BuildingSystems_Utilities_Math_Examples_SmoothBlocks",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.8135/0.8135, allocations: 141.7 MB / 154.3 MB, free: 15.49 MB / 138.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001073/0.001073, allocations: 181.8 kB / 187.3 MB, free: 11.89 MB / 154.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.58/1.58, allocations: 221.3 MB / 441.4 MB, free: 4.594 MB / 330.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001067/0.001067, allocations: 95.94 kB / 0.5124 GB, free: 24.2 MB / 394.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.001876/0.001876, allocations: 278.1 kB / 0.5939 GB, free: 7.945 MB / 442.7 MB Notification: Performance of FrontEnd - loaded program: time 5.929e-05/5.942e-05, allocations: 8 kB / 0.6835 GB, free: 12.12 MB / 0.5261 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.5552/0.5553, allocations: 82.76 MB / 0.7644 GB, free: 108.6 MB / 0.5261 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.1403/0.6957, allocations: 110.4 MB / 0.8722 GB, free: 14.12 MB / 0.5417 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002897/0.6961, allocations: 75.89 kB / 0.8722 GB, free: 14.04 MB / 0.5417 GB Notification: Performance of FrontEnd - DAE generated: time 0.01548/0.7116, allocations: 5.11 MB / 0.8772 GB, free: 8.934 MB / 0.5417 GB Notification: Performance of FrontEnd: time 2.224e-06/0.7116, allocations: 0 / 0.8772 GB, free: 8.934 MB / 0.5417 GB Notification: Performance of Transformations before backend: time 1.454e-05/0.7116, allocations: 4 kB / 0.8772 GB, free: 8.93 MB / 0.5417 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.0006975/0.7124, allocations: 411.4 kB / 0.8776 GB, free: 8.484 MB / 0.5417 GB Notification: Performance of prepare preOptimizeDAE: time 6.755e-05/0.7124, allocations: 8.031 kB / 0.8776 GB, free: 8.477 MB / 0.5417 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.000115/0.7126, allocations: 38.56 kB / 0.8777 GB, free: 8.43 MB / 0.5417 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008302/0.7134, allocations: 119.7 kB / 0.8778 GB, free: 8.312 MB / 0.5417 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002248/0.7136, allocations: 190.7 kB / 0.878 GB, free: 8.086 MB / 0.5417 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001407/0.7138, allocations: 67.39 kB / 0.878 GB, free: 8.008 MB / 0.5417 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.954e-05/0.7139, allocations: 8 kB / 0.878 GB, free: 8 MB / 0.5417 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003324/0.7142, allocations: 115 kB / 0.8781 GB, free: 7.883 MB / 0.5417 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.181e-05/0.7142, allocations: 0 / 0.8781 GB, free: 7.883 MB / 0.5417 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.216e-05/0.7143, allocations: 4 kB / 0.8781 GB, free: 7.879 MB / 0.5417 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.071e-05/0.7143, allocations: 4 kB / 0.8782 GB, free: 7.875 MB / 0.5417 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001753/0.7145, allocations: 75.92 kB / 0.8782 GB, free: 7.801 MB / 0.5417 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001359/0.7158, allocations: 0.5095 MB / 0.8787 GB, free: 7.242 MB / 0.5417 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000665/0.7165, allocations: 170.5 kB / 0.8789 GB, free: 7.066 MB / 0.5417 GB Notification: Performance of preOpt resolveLoops (simulation): time 8.374e-05/0.7166, allocations: 40.97 kB / 0.8789 GB, free: 7.023 MB / 0.5417 GB Notification: Performance of preOpt evalFunc (simulation): time 3.39e-05/0.7166, allocations: 4 kB / 0.8789 GB, free: 7.02 MB / 0.5417 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.911e-05/0.7167, allocations: 34.56 kB / 0.879 GB, free: 6.977 MB / 0.5417 GB Notification: Performance of pre-optimization done (n=6): time 2.023e-06/0.7167, allocations: 0 / 0.879 GB, free: 6.977 MB / 0.5417 GB Notification: Performance of matching and sorting (n=6): time 0.0003229/0.717, allocations: 105.7 kB / 0.8791 GB, free: 6.867 MB / 0.5417 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.361e-05/0.7171, allocations: 55.41 kB / 0.8791 GB, free: 6.801 MB / 0.5417 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001279/0.7172, allocations: 122.7 kB / 0.8792 GB, free: 6.676 MB / 0.5417 GB Notification: Performance of collectPreVariables (initialization): time 3.136e-05/0.7173, allocations: 25.7 kB / 0.8793 GB, free: 6.645 MB / 0.5417 GB Notification: Performance of collectInitialEqns (initialization): time 8.451e-05/0.7173, allocations: 116.1 kB / 0.8794 GB, free: 6.523 MB / 0.5417 GB Notification: Performance of collectInitialBindings (initialization): time 2.742e-05/0.7174, allocations: 15.73 kB / 0.8794 GB, free: 6.508 MB / 0.5417 GB Notification: Performance of simplifyInitialFunctions (initialization): time 9.838e-06/0.7174, allocations: 12 kB / 0.8794 GB, free: 6.496 MB / 0.5417 GB Notification: Performance of setup shared object (initialization): time 0.0001299/0.7175, allocations: 318.8 kB / 0.8797 GB, free: 6.176 MB / 0.5417 GB Notification: Performance of preBalanceInitialSystem (initialization): time 7.077e-05/0.7176, allocations: 35.98 kB / 0.8797 GB, free: 6.141 MB / 0.5417 GB Notification: Performance of partitionIndependentBlocks (initialization): time 8.497e-05/0.7177, allocations: 54.56 kB / 0.8798 GB, free: 6.078 MB / 0.5417 GB Notification: Performance of analyzeInitialSystem (initialization): time 6.995e-05/0.7178, allocations: 27.98 kB / 0.8798 GB, free: 6.051 MB / 0.5417 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.974e-06/0.7178, allocations: 0 / 0.8798 GB, free: 6.051 MB / 0.5417 GB Notification: Performance of matching and sorting (n=8) (initialization): time 0.0002278/0.718, allocations: 121.5 kB / 0.8799 GB, free: 5.926 MB / 0.5417 GB Notification: Performance of prepare postOptimizeDAE: time 2.176e-05/0.7181, allocations: 8 kB / 0.8799 GB, free: 5.918 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.598e-06/0.7181, allocations: 2.156 kB / 0.8799 GB, free: 5.918 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.925e-05/0.7181, allocations: 4 kB / 0.8799 GB, free: 5.914 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002739/0.7184, allocations: 51.89 kB / 0.88 GB, free: 5.863 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.174e-05/0.7184, allocations: 3.984 kB / 0.88 GB, free: 5.859 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001975/0.7186, allocations: 35.94 kB / 0.88 GB, free: 5.824 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.789e-05/0.7186, allocations: 4 kB / 0.88 GB, free: 5.82 MB / 0.5417 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 () * 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 9.862e-05/0.7187, allocations: 110.1 kB / 0.8801 GB, free: 5.707 MB / 0.5417 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.959e-05/0.7188, allocations: 11.91 kB / 0.8801 GB, free: 5.695 MB / 0.5417 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002887/0.7191, allocations: 130.2 kB / 0.8803 GB, free: 5.566 MB / 0.5417 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.386e-06/0.7191, allocations: 0 / 0.8803 GB, free: 5.566 MB / 0.5417 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.655e-06/0.7191, allocations: 0 / 0.8803 GB, free: 5.566 MB / 0.5417 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.867e-06/0.7191, allocations: 3.938 kB / 0.8803 GB, free: 5.562 MB / 0.5417 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002987/0.7194, allocations: 234.3 kB / 0.8805 GB, free: 5.281 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.813e-06/0.7194, allocations: 0 / 0.8805 GB, free: 5.281 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002211/0.7197, allocations: 47.89 kB / 0.8805 GB, free: 5.234 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.877e-06/0.7197, allocations: 0 / 0.8805 GB, free: 5.234 MB / 0.5417 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.715e-05/0.7197, allocations: 8 kB / 0.8805 GB, free: 5.227 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.843e-06/0.7197, allocations: 0 / 0.8805 GB, free: 5.227 MB / 0.5417 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.272e-06/0.7197, allocations: 0 / 0.8805 GB, free: 5.227 MB / 0.5417 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00025/0.72, allocations: 207.3 kB / 0.8807 GB, free: 5.008 MB / 0.5417 GB Notification: Performance of postOpt removeConstants (simulation): time 4.784e-05/0.72, allocations: 85.02 kB / 0.8808 GB, free: 4.906 MB / 0.5417 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.497e-05/0.7201, allocations: 7.984 kB / 0.8808 GB, free: 4.898 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003078/0.7204, allocations: 39.95 kB / 0.8809 GB, free: 4.859 MB / 0.5417 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.186e-05/0.7204, allocations: 0 / 0.8809 GB, free: 4.859 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.882e-05/0.7205, allocations: 11.98 kB / 0.8809 GB, free: 4.848 MB / 0.5417 GB Notification: Performance of sorting global known variables: time 7.631e-05/0.7205, allocations: 112.5 kB / 0.881 GB, free: 4.738 MB / 0.5417 GB Notification: Performance of sort global known variables: time 1.5e-07/0.7205, allocations: 0 / 0.881 GB, free: 4.738 MB / 0.5417 GB Notification: Performance of remove unused functions: time 0.0002463/0.7208, allocations: 23.91 kB / 0.881 GB, free: 4.715 MB / 0.5417 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 () * 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0005284/0.7213, allocations: 0.7359 MB / 0.8817 GB, free: 3.949 MB / 0.5417 GB Notification: Performance of simCode: created initialization part: time 0.0001982/0.7215, allocations: 83.92 kB / 0.8818 GB, free: 3.867 MB / 0.5417 GB Notification: Performance of simCode: created event and clocks part: time 2.114e-06/0.7215, allocations: 4.125 kB / 0.8818 GB, free: 3.863 MB / 0.5417 GB Notification: Performance of simCode: created simulation system equations: time 7.478e-05/0.7216, allocations: 43.92 kB / 0.8819 GB, free: 3.82 MB / 0.5417 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002198/0.7219, allocations: 4 kB / 0.8819 GB, free: 3.816 MB / 0.5417 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005302/0.7224, allocations: 179.1 kB / 0.882 GB, free: 3.602 MB / 0.5417 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000301/0.7227, allocations: 0.7099 MB / 0.8827 GB, free: 2.867 MB / 0.5417 GB Notification: Performance of simCode: alias equations: time 0.0001023/0.7228, allocations: 20.11 kB / 0.8827 GB, free: 2.844 MB / 0.5417 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.67e-05/0.7229, allocations: 35.41 kB / 0.8828 GB, free: 2.812 MB / 0.5417 GB Notification: Performance of SimCode: time 2.41e-07/0.7229, allocations: 0 / 0.8828 GB, free: 2.812 MB / 0.5417 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01386/0.7368, allocations: 2.416 MB / 0.8851 GB, free: 0.543 MB / 0.5417 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002414/0.7371, allocations: 158.2 kB / 0.8853 GB, free: 328 kB / 0.5417 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.641/2.378, allocations: 4 kB / 0.8853 GB, free: 324 kB / 0.5417 GB (rm -f BuildingSystems_BuildingSystems.Utilities.Math.Examples.SmoothBlocks.pipe ; mkfifo BuildingSystems_BuildingSystems.Utilities.Math.Examples.SmoothBlocks.pipe ; head -c 1048576 < BuildingSystems_BuildingSystems.Utilities.Math.Examples.SmoothBlocks.pipe >> ../files/BuildingSystems_BuildingSystems.Utilities.Math.Examples.SmoothBlocks.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_BuildingSystems_BuildingSystems_Utilities_Math_Examples_SmoothBlocks_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 BuildingSystems_BuildingSystems_Utilities_Math_Examples_SmoothBlocks.fmu > BuildingSystems_BuildingSystems.Utilities.Math.Examples.SmoothBlocks.pipe 2>&1)