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.8742/0.8742, allocations: 143.3 MB / 158.3 MB, free: 5.816 MB / 122.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001083/0.001083, allocations: 187.7 kB / 191.5 MB, free: 5.789 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.48/1.48, allocations: 223.2 MB / 447.7 MB, free: 4.816 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.001017/0.001017, allocations: 100.2 kB / 0.5187 GB, free: 1.16 MB / 410.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.001724/0.001724, allocations: 272.7 kB / 0.6005 GB, free: 48.75 MB / 410.7 MB Notification: Performance of FrontEnd - loaded program: time 0.000485/0.000485, allocations: 18.06 kB / 0.6929 GB, free: 59.77 MB / 442.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1937/0.1942, allocations: 82.79 MB / 0.7738 GB, free: 13.75 MB / 458.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.5546/0.7488, allocations: 110.5 MB / 0.8816 GB, free: 108.3 MB / 0.5417 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002543/0.7491, allocations: 77.41 kB / 0.8817 GB, free: 108.3 MB / 0.5417 GB Notification: Performance of FrontEnd - DAE generated: time 0.01546/0.7646, allocations: 5.114 MB / 0.8867 GB, free: 107.8 MB / 0.5417 GB Notification: Performance of FrontEnd: time 2.645e-06/0.7647, allocations: 3.422 kB / 0.8867 GB, free: 107.8 MB / 0.5417 GB Notification: Performance of Transformations before backend: time 8.676e-06/0.7647, allocations: 0 / 0.8867 GB, free: 107.8 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.0005261/0.7652, allocations: 433.4 kB / 0.8871 GB, free: 107.4 MB / 0.5417 GB Notification: Performance of prepare preOptimizeDAE: time 4.646e-05/0.7653, allocations: 8.594 kB / 0.8871 GB, free: 107.4 MB / 0.5417 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.649e-05/0.7653, allocations: 42.47 kB / 0.8872 GB, free: 107.3 MB / 0.5417 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006987/0.766, allocations: 112.3 kB / 0.8873 GB, free: 107.3 MB / 0.5417 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001051/0.7662, allocations: 186 kB / 0.8875 GB, free: 107.1 MB / 0.5417 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001004/0.7663, allocations: 68.33 kB / 0.8875 GB, free: 107 MB / 0.5417 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.253e-05/0.7663, allocations: 8.625 kB / 0.8875 GB, free: 107 MB / 0.5417 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005937/0.7669, allocations: 190.8 kB / 0.8877 GB, free: 107 MB / 0.5417 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.317e-06/0.7669, allocations: 0 / 0.8877 GB, free: 107 MB / 0.5417 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.38e-05/0.7669, allocations: 4.312 kB / 0.8877 GB, free: 107 MB / 0.5417 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.949e-06/0.767, allocations: 3.438 kB / 0.8877 GB, free: 107 MB / 0.5417 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006195/0.7676, allocations: 198.1 kB / 0.8879 GB, free: 107 MB / 0.5417 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001092/0.7687, allocations: 0.5068 MB / 0.8884 GB, free: 106.7 MB / 0.5417 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001029/0.7697, allocations: 270.3 kB / 0.8887 GB, free: 106.7 MB / 0.5417 GB Notification: Performance of preOpt evalFunc (simulation): time 2.767e-05/0.7698, allocations: 6.656 kB / 0.8887 GB, free: 106.7 MB / 0.5417 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.349e-05/0.7698, allocations: 38.38 kB / 0.8887 GB, free: 106.6 MB / 0.5417 GB Notification: Performance of pre-optimization done (n=6): time 1.252e-06/0.7698, allocations: 3.938 kB / 0.8887 GB, free: 106.6 MB / 0.5417 GB Notification: Performance of matching and sorting (n=6): time 0.0009973/0.7708, allocations: 313.2 kB / 0.889 GB, free: 106.6 MB / 0.5417 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.334e-05/0.7709, allocations: 55.06 kB / 0.8891 GB, free: 106.5 MB / 0.5417 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.022e-05/0.771, allocations: 119.3 kB / 0.8892 GB, free: 106.4 MB / 0.5417 GB Notification: Performance of collectPreVariables (initialization): time 2.55e-05/0.771, allocations: 32.89 kB / 0.8892 GB, free: 106.4 MB / 0.5417 GB Notification: Performance of collectInitialEqns (initialization): time 4.786e-05/0.771, allocations: 105.4 kB / 0.8893 GB, free: 106.3 MB / 0.5417 GB Notification: Performance of collectInitialBindings (initialization): time 2.674e-05/0.7711, allocations: 24.75 kB / 0.8893 GB, free: 106.3 MB / 0.5417 GB Notification: Performance of simplifyInitialFunctions (initialization): time 8.235e-06/0.7711, allocations: 0 / 0.8893 GB, free: 106.3 MB / 0.5417 GB Notification: Performance of setup shared object (initialization): time 6.463e-05/0.7712, allocations: 325.3 kB / 0.8896 GB, free: 105.9 MB / 0.5417 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002972/0.7715, allocations: 93.67 kB / 0.8897 GB, free: 105.9 MB / 0.5417 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003036/0.7718, allocations: 114.3 kB / 0.8898 GB, free: 105.9 MB / 0.5417 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002878/0.7721, allocations: 93.09 kB / 0.8899 GB, free: 105.9 MB / 0.5417 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.623e-06/0.7721, allocations: 0 / 0.8899 GB, free: 105.9 MB / 0.5417 GB Notification: Performance of matching and sorting (n=8) (initialization): time 0.0006558/0.7727, allocations: 237.7 kB / 0.8902 GB, free: 105.9 MB / 0.5417 GB Notification: Performance of prepare postOptimizeDAE: time 1.767e-05/0.7728, allocations: 6.156 kB / 0.8902 GB, free: 105.9 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.731e-06/0.7728, allocations: 1.375 kB / 0.8902 GB, free: 105.9 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.296e-05/0.7728, allocations: 1.375 kB / 0.8902 GB, free: 105.9 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002771/0.7731, allocations: 49.98 kB / 0.8902 GB, free: 105.9 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.142e-06/0.7731, allocations: 1.281 kB / 0.8902 GB, free: 105.9 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001976/0.7733, allocations: 30.08 kB / 0.8902 GB, free: 105.9 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.932e-05/0.7733, allocations: 8.219 kB / 0.8903 GB, free: 105.9 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 () * 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 8.936e-05/0.7734, allocations: 121.1 kB / 0.8904 GB, free: 105.7 MB / 0.5417 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.835e-05/0.7735, allocations: 12.06 kB / 0.8904 GB, free: 105.7 MB / 0.5417 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007275/0.7742, allocations: 240.9 kB / 0.8906 GB, free: 105.7 MB / 0.5417 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.915e-06/0.7742, allocations: 1.062 kB / 0.8906 GB, free: 105.7 MB / 0.5417 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.35e-06/0.7742, allocations: 1.625 kB / 0.8906 GB, free: 105.7 MB / 0.5417 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.462e-06/0.7742, allocations: 0.7031 kB / 0.8906 GB, free: 105.7 MB / 0.5417 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002594/0.7745, allocations: 236.4 kB / 0.8908 GB, free: 105.5 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.72e-07/0.7745, allocations: 0 / 0.8908 GB, free: 105.5 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002403/0.7748, allocations: 46.11 kB / 0.8909 GB, free: 105.5 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.415e-06/0.7748, allocations: 0 / 0.8909 GB, free: 105.5 MB / 0.5417 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.5e-05/0.7748, allocations: 1.969 kB / 0.8909 GB, free: 105.5 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.156e-06/0.7748, allocations: 7.469 kB / 0.8909 GB, free: 105.5 MB / 0.5417 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.112e-06/0.7748, allocations: 0 / 0.8909 GB, free: 105.5 MB / 0.5417 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006616/0.7755, allocations: 325.7 kB / 0.8912 GB, free: 105.3 MB / 0.5417 GB Notification: Performance of postOpt removeConstants (simulation): time 2.575e-05/0.7755, allocations: 88.31 kB / 0.8913 GB, free: 105.2 MB / 0.5417 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.379e-05/0.7755, allocations: 0.7031 kB / 0.8913 GB, free: 105.2 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003082/0.7759, allocations: 45.02 kB / 0.8913 GB, free: 105.2 MB / 0.5417 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.504e-05/0.7759, allocations: 12.86 kB / 0.8913 GB, free: 105.2 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.237e-05/0.7759, allocations: 6.922 kB / 0.8913 GB, free: 105.2 MB / 0.5417 GB Notification: Performance of sorting global known variables: time 4.968e-05/0.776, allocations: 106 kB / 0.8915 GB, free: 105.1 MB / 0.5417 GB Notification: Performance of sort global known variables: time 1.5e-07/0.776, allocations: 0 / 0.8915 GB, free: 105.1 MB / 0.5417 GB Notification: Performance of remove unused functions: time 0.000247/0.7763, allocations: 23.16 kB / 0.8915 GB, free: 105.1 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 () * 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 (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.0008388/0.7771, allocations: 0.8576 MB / 0.8923 GB, free: 104.5 MB / 0.5417 GB Notification: Performance of simCode: created initialization part: time 0.0006079/0.7777, allocations: 199.9 kB / 0.8925 GB, free: 104.5 MB / 0.5417 GB Notification: Performance of simCode: created event and clocks part: time 2.675e-06/0.7777, allocations: 0 / 0.8925 GB, free: 104.5 MB / 0.5417 GB Notification: Performance of simCode: created simulation system equations: time 0.0002959/0.778, allocations: 103.6 kB / 0.8926 GB, free: 104.4 MB / 0.5417 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002187/0.7783, allocations: 9.281 kB / 0.8926 GB, free: 104.4 MB / 0.5417 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009/0.7792, allocations: 0.8044 MB / 0.8934 GB, free: 103.7 MB / 0.5417 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001387/0.7793, allocations: 0.7073 MB / 0.8941 GB, free: 103 MB / 0.5417 GB Notification: Performance of simCode: alias equations: time 0.0001046/0.7794, allocations: 11.66 kB / 0.8941 GB, free: 103 MB / 0.5417 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.194e-05/0.7795, allocations: 39.75 kB / 0.8941 GB, free: 103 MB / 0.5417 GB Notification: Performance of SimCode: time 2.31e-07/0.7795, allocations: 0 / 0.8941 GB, free: 103 MB / 0.5417 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01425/0.7938, allocations: 2.404 MB / 0.8965 GB, free: 102.4 MB / 0.5417 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001591/0.794, allocations: 185.9 kB / 0.8967 GB, free: 102.2 MB / 0.5417 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.637/2.431, allocations: 3.938 kB / 0.8967 GB, free: 102.2 MB / 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)