Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr BuildingSystems_BuildingSystems.Utilities.Math.Examples.SmoothMin.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 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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo", uses=false) Using package BuildingSystems with version 2.0.0-beta (/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo) Using package NcDataReader2 with version 2.5.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/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 ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(BuildingSystems.Utilities.Math.Examples.SmoothMin,fileNamePrefix="BuildingSystems_BuildingSystems_Utilities_Math_Examples_SmoothMin",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(BuildingSystems.Utilities.Math.Examples.SmoothMin,fileNamePrefix="BuildingSystems_BuildingSystems_Utilities_Math_Examples_SmoothMin",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.001408/0.001408, allocations: 108 kB / 15.61 MB, free: 152 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.00197/0.00197, allocations: 196.2 kB / 16.53 MB, free: 6.699 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.453/1.453, allocations: 222.9 MB / 240.2 MB, free: 4.406 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002143/0.002143, allocations: 282.7 kB / 290.7 MB, free: 2.016 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.9485/0.9485, allocations: 169.3 MB / 0.4982 GB, free: 13.97 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002016/0.002016, allocations: 103 kB / 0.5953 GB, free: 28.08 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1593/0.1614, allocations: 86.98 MB / 0.6803 GB, free: 0.6055 MB / 478.1 MB Notification: Performance of NFInst.instantiate(BuildingSystems.Utilities.Math.Examples.SmoothMin): time 0.004021/0.1654, allocations: 1.453 MB / 0.6817 GB, free: 15.15 MB / 494.1 MB Notification: Performance of NFInst.instExpressions: time 0.0004997/0.166, allocations: 137.2 kB / 0.6818 GB, free: 15.02 MB / 494.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 4.901e-05/0.166, allocations: 0.625 kB / 0.6818 GB, free: 15.02 MB / 494.1 MB Notification: Performance of NFTyping.typeComponents: time 4.953e-05/0.1661, allocations: 7.922 kB / 0.6818 GB, free: 15.01 MB / 494.1 MB Notification: Performance of NFTyping.typeBindings: time 8.511e-05/0.1662, allocations: 9.281 kB / 0.6819 GB, free: 15 MB / 494.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003053/0.1665, allocations: 31.89 kB / 0.6819 GB, free: 14.97 MB / 494.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001216/0.1667, allocations: 40.58 kB / 0.6819 GB, free: 14.93 MB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001573/0.1668, allocations: 36.14 kB / 0.682 GB, free: 14.89 MB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 5.519e-05/0.1669, allocations: 11.94 kB / 0.682 GB, free: 14.88 MB / 494.1 MB Notification: Performance of NFSimplifyModel.simplify: time 5.59e-05/0.167, allocations: 23.91 kB / 0.682 GB, free: 14.86 MB / 494.1 MB Notification: Performance of NFPackage.collectConstants: time 2.156e-05/0.167, allocations: 4 kB / 0.682 GB, free: 14.86 MB / 494.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001201/0.1671, allocations: 31.97 kB / 0.682 GB, free: 14.82 MB / 494.1 MB Notification: Performance of NFScalarize.scalarize: time 2.586e-05/0.1672, allocations: 15.98 kB / 0.682 GB, free: 14.81 MB / 494.1 MB Notification: Performance of NFVerifyModel.verify: time 4.575e-05/0.1672, allocations: 19.88 kB / 0.6821 GB, free: 14.79 MB / 494.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001758/0.1674, allocations: 63.84 kB / 0.6821 GB, free: 14.73 MB / 494.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.466e-06/0.1674, allocations: 0 / 0.6821 GB, free: 14.73 MB / 494.1 MB Notification: Performance of FrontEnd: time 1.533e-06/0.1674, allocations: 0 / 0.6821 GB, free: 14.73 MB / 494.1 MB Notification: Performance of Transformations before backend: time 1.137e-05/0.1675, allocations: 0 / 0.6821 GB, free: 14.73 MB / 494.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 8 * Number of variables: 8 Notification: Performance of Generate backend data structure: time 0.0005687/0.168, allocations: 355.3 kB / 0.6825 GB, free: 14.33 MB / 494.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.705e-05/0.1681, allocations: 12.03 kB / 0.6825 GB, free: 14.32 MB / 494.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.187e-05/0.1682, allocations: 38.73 kB / 0.6825 GB, free: 14.27 MB / 494.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001669/0.1698, allocations: 212.5 kB / 0.6827 GB, free: 14.06 MB / 494.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001741/0.17, allocations: 172.3 kB / 0.6829 GB, free: 13.86 MB / 494.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.59e-05/0.1701, allocations: 4.359 kB / 0.6829 GB, free: 13.85 MB / 494.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.75e-05/0.1701, allocations: 4.375 kB / 0.6829 GB, free: 13.85 MB / 494.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008534/0.171, allocations: 194 kB / 0.6831 GB, free: 13.65 MB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.179e-05/0.171, allocations: 3.938 kB / 0.6831 GB, free: 13.65 MB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.215e-05/0.171, allocations: 4 kB / 0.6831 GB, free: 13.64 MB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.422e-06/0.171, allocations: 0 / 0.6831 GB, free: 13.64 MB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001328/0.1724, allocations: 279.6 kB / 0.6833 GB, free: 13.37 MB / 494.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001309/0.1737, allocations: 445.2 kB / 0.6838 GB, free: 12.89 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001736/0.1754, allocations: 286.2 kB / 0.684 GB, free: 12.6 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005733/0.176, allocations: 104.8 kB / 0.6841 GB, free: 12.49 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.397e-05/0.1761, allocations: 4 kB / 0.6841 GB, free: 12.49 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.472e-05/0.1761, allocations: 34.56 kB / 0.6842 GB, free: 12.45 MB / 494.1 MB Notification: Performance of pre-optimization done (n=3): time 1.683e-06/0.1761, allocations: 0 / 0.6842 GB, free: 12.45 MB / 494.1 MB Notification: Performance of matching and sorting (n=3): time 0.001694/0.1778, allocations: 313.2 kB / 0.6845 GB, free: 12.13 MB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.345e-05/0.1779, allocations: 51.41 kB / 0.6845 GB, free: 12.07 MB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001382/0.1781, allocations: 113.8 kB / 0.6846 GB, free: 11.95 MB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 2.549e-05/0.1781, allocations: 30.08 kB / 0.6847 GB, free: 11.91 MB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.315e-05/0.1782, allocations: 96.12 kB / 0.6848 GB, free: 11.82 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.37e-05/0.1782, allocations: 7.812 kB / 0.6848 GB, free: 11.81 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.15e-05/0.1783, allocations: 13.72 kB / 0.6848 GB, free: 11.79 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 0.0001618/0.1785, allocations: 330.7 kB / 0.6851 GB, free: 11.46 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005563/0.179, allocations: 87.88 kB / 0.6852 GB, free: 11.37 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005463/0.1796, allocations: 99.88 kB / 0.6853 GB, free: 11.27 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001073/0.1807, allocations: 176.6 kB / 0.6854 GB, free: 11.1 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.816e-06/0.1807, allocations: 3.938 kB / 0.6854 GB, free: 11.09 MB / 494.1 MB Notification: Performance of matching and sorting (n=3) (initialization): time 0.001167/0.1819, allocations: 213.5 kB / 0.6856 GB, free: 10.88 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.192e-05/0.1819, allocations: 7.984 kB / 0.6856 GB, free: 10.87 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.671e-06/0.1819, allocations: 0 / 0.6856 GB, free: 10.87 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.528e-05/0.182, allocations: 0 / 0.6856 GB, free: 10.87 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000366/0.1823, allocations: 35.95 kB / 0.6857 GB, free: 10.84 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.211e-06/0.1824, allocations: 0 / 0.6857 GB, free: 10.84 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002824/0.1827, allocations: 31.95 kB / 0.6857 GB, free: 10.8 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.856e-05/0.1827, allocations: 3.984 kB / 0.6857 GB, free: 10.8 MB / 494.1 MB Notification: Model statistics after passing the back-end for initialization: * 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 initialization (3): * Single equations (assignments): 3 * 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.0001174/0.1828, allocations: 118.4 kB / 0.6858 GB, free: 10.68 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.76e-05/0.1829, allocations: 7.906 kB / 0.6858 GB, free: 10.67 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.631e-05/0.1829, allocations: 15.89 kB / 0.6859 GB, free: 10.65 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.616e-06/0.1829, allocations: 0 / 0.6859 GB, free: 10.65 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.001e-06/0.183, allocations: 0 / 0.6859 GB, free: 10.65 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.191e-06/0.183, allocations: 336 / 0.6859 GB, free: 10.65 MB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003136/0.1833, allocations: 209.5 kB / 0.6861 GB, free: 10.39 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.439e-06/0.1833, allocations: 0 / 0.6861 GB, free: 10.39 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002886/0.1836, allocations: 35.89 kB / 0.6861 GB, free: 10.36 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.602e-06/0.1836, allocations: 3.984 kB / 0.6861 GB, free: 10.36 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.738e-05/0.1836, allocations: 3.984 kB / 0.6861 GB, free: 10.35 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.973e-06/0.1837, allocations: 0 / 0.6861 GB, free: 10.35 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.372e-06/0.1837, allocations: 4 kB / 0.6861 GB, free: 10.35 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001188/0.1849, allocations: 311.2 kB / 0.6864 GB, free: 10.03 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.628e-05/0.1849, allocations: 85.11 kB / 0.6865 GB, free: 9.926 MB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.187e-05/0.185, allocations: 4 kB / 0.6865 GB, free: 9.922 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003427/0.1853, allocations: 23.95 kB / 0.6865 GB, free: 9.898 MB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.262e-05/0.1854, allocations: 7.984 kB / 0.6865 GB, free: 9.891 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.25e-05/0.1854, allocations: 0 / 0.6865 GB, free: 9.891 MB / 494.1 MB Notification: Performance of sorting global known variables: time 8.091e-05/0.1855, allocations: 91.27 kB / 0.6866 GB, free: 9.801 MB / 494.1 MB Notification: Performance of sort global known variables: time 3.236e-06/0.1855, allocations: 4.281 kB / 0.6866 GB, free: 9.797 MB / 494.1 MB Notification: Performance of remove unused functions: time 0.0004468/0.186, allocations: 27.81 kB / 0.6866 GB, free: 9.77 MB / 494.1 MB 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 (3): * Single equations (assignments): 3 * 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.001549/0.1875, allocations: 0.8371 MB / 0.6874 GB, free: 8.906 MB / 494.1 MB Notification: Performance of simCode: created initialization part: time 0.001131/0.1887, allocations: 199.7 kB / 0.6876 GB, free: 8.711 MB / 494.1 MB Notification: Performance of simCode: created event and clocks part: time 1.442e-05/0.1887, allocations: 0 / 0.6876 GB, free: 8.711 MB / 494.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005474/0.1893, allocations: 107.8 kB / 0.6877 GB, free: 8.605 MB / 494.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004213/0.1897, allocations: 7.984 kB / 0.6877 GB, free: 8.598 MB / 494.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005281/0.195, allocations: 1.834 MB / 0.6895 GB, free: 6.684 MB / 494.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000388/0.1954, allocations: 0.6885 MB / 0.6902 GB, free: 5.969 MB / 494.1 MB Notification: Performance of simCode: alias equations: time 0.0001415/0.1956, allocations: 19.98 kB / 0.6902 GB, free: 5.949 MB / 494.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.974e-05/0.1957, allocations: 15.44 kB / 0.6902 GB, free: 5.934 MB / 494.1 MB Notification: Performance of SimCode: time 4.9e-07/0.1957, allocations: 0 / 0.6902 GB, free: 5.934 MB / 494.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02107/0.2167, allocations: 1.95 MB / 0.6921 GB, free: 4.059 MB / 494.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 9.088/9.305, allocations: 12.11 kB / 0.6922 GB, free: 4.051 MB / 494.1 MB (rm -f BuildingSystems_BuildingSystems.Utilities.Math.Examples.SmoothMin.pipe ; mkfifo BuildingSystems_BuildingSystems.Utilities.Math.Examples.SmoothMin.pipe ; head -c 1048576 < BuildingSystems_BuildingSystems.Utilities.Math.Examples.SmoothMin.pipe >> ../files/BuildingSystems_BuildingSystems.Utilities.Math.Examples.SmoothMin.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_BuildingSystems_BuildingSystems_Utilities_Math_Examples_SmoothMin_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 BuildingSystems_BuildingSystems_Utilities_Math_Examples_SmoothMin.fmu > BuildingSystems_BuildingSystems.Utilities.Math.Examples.SmoothMin.pipe 2>&1)