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.006997/0.006997, allocations: 100.2 kB / 15.73 MB, free: 6.496 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.001827/0.001827, allocations: 199 kB / 16.68 MB, free: 6.375 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.477/1.477, allocations: 222.9 MB / 240.4 MB, free: 4.324 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002506/0.002506, allocations: 278.6 kB / 290.8 MB, free: 1.918 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 1.058/1.058, allocations: 169.3 MB / 0.4983 GB, free: 13.79 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002806/0.002807, allocations: 88.34 kB / 0.681 GB, free: 15.97 MB / 494.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1777/0.1805, allocations: 86.98 MB / 0.7659 GB, free: 8.922 MB / 0.5606 GB Notification: Performance of NFInst.instantiate(BuildingSystems.Utilities.Math.Examples.SmoothMin): time 0.002541/0.1831, allocations: 1.472 MB / 0.7674 GB, free: 7.441 MB / 0.5606 GB Notification: Performance of NFInst.instExpressions: time 0.0003936/0.1835, allocations: 140.4 kB / 0.7675 GB, free: 7.301 MB / 0.5606 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.337e-05/0.1835, allocations: 0 / 0.7675 GB, free: 7.301 MB / 0.5606 GB Notification: Performance of NFTyping.typeComponents: time 4.129e-05/0.1836, allocations: 7.922 kB / 0.7675 GB, free: 7.293 MB / 0.5606 GB Notification: Performance of NFTyping.typeBindings: time 6.303e-05/0.1836, allocations: 11.94 kB / 0.7675 GB, free: 7.281 MB / 0.5606 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002229/0.1839, allocations: 27.91 kB / 0.7675 GB, free: 7.254 MB / 0.5606 GB Notification: Performance of NFFlatten.flatten: time 0.0001015/0.184, allocations: 39.86 kB / 0.7676 GB, free: 7.215 MB / 0.5606 GB Notification: Performance of NFFlatten.resolveConnections: time 0.000143/0.1841, allocations: 27.97 kB / 0.7676 GB, free: 7.188 MB / 0.5606 GB Notification: Performance of NFEvalConstants.evaluate: time 4.498e-05/0.1842, allocations: 15.92 kB / 0.7676 GB, free: 7.172 MB / 0.5606 GB Notification: Performance of NFSimplifyModel.simplify: time 4.842e-05/0.1842, allocations: 23.92 kB / 0.7676 GB, free: 7.148 MB / 0.5606 GB Notification: Performance of NFPackage.collectConstants: time 1.441e-05/0.1843, allocations: 4 kB / 0.7676 GB, free: 7.145 MB / 0.5606 GB Notification: Performance of NFFlatten.collectFunctions: time 8.959e-05/0.1844, allocations: 23.98 kB / 0.7677 GB, free: 7.121 MB / 0.5606 GB Notification: Performance of NFScalarize.scalarize: time 2.016e-05/0.1844, allocations: 11.98 kB / 0.7677 GB, free: 7.109 MB / 0.5606 GB Notification: Performance of NFVerifyModel.verify: time 3.001e-05/0.1844, allocations: 19.88 kB / 0.7677 GB, free: 7.09 MB / 0.5606 GB Notification: Performance of NFConvertDAE.convert: time 0.0001477/0.1846, allocations: 68 kB / 0.7678 GB, free: 7.023 MB / 0.5606 GB Notification: Performance of FrontEnd - DAE generated: time 4.449e-06/0.1846, allocations: 0 / 0.7678 GB, free: 7.023 MB / 0.5606 GB Notification: Performance of FrontEnd: time 3.286e-06/0.1846, allocations: 0 / 0.7678 GB, free: 7.023 MB / 0.5606 GB Notification: Performance of Transformations before backend: time 9.367e-06/0.1846, allocations: 3.938 kB / 0.7678 GB, free: 7.02 MB / 0.5606 GB 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.0005185/0.1851, allocations: 367.2 kB / 0.7681 GB, free: 6.609 MB / 0.5606 GB Notification: Performance of prepare preOptimizeDAE: time 4.169e-05/0.1852, allocations: 16.02 kB / 0.7681 GB, free: 6.594 MB / 0.5606 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.839e-05/0.1852, allocations: 30.75 kB / 0.7682 GB, free: 6.555 MB / 0.5606 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001075/0.1863, allocations: 208.6 kB / 0.7684 GB, free: 6.352 MB / 0.5606 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001342/0.1864, allocations: 172.3 kB / 0.7685 GB, free: 6.145 MB / 0.5606 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.156e-05/0.1865, allocations: 384 / 0.7685 GB, free: 6.145 MB / 0.5606 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.183e-05/0.1865, allocations: 4.375 kB / 0.7685 GB, free: 6.141 MB / 0.5606 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005717/0.1871, allocations: 194 kB / 0.7687 GB, free: 5.945 MB / 0.5606 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.018e-05/0.1871, allocations: 3.938 kB / 0.7687 GB, free: 5.941 MB / 0.5606 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.75e-05/0.1871, allocations: 4 kB / 0.7687 GB, free: 5.938 MB / 0.5606 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.228e-06/0.1871, allocations: 7.938 kB / 0.7687 GB, free: 5.93 MB / 0.5606 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008266/0.1879, allocations: 283.5 kB / 0.769 GB, free: 5.652 MB / 0.5606 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009505/0.1889, allocations: 449.1 kB / 0.7694 GB, free: 5.164 MB / 0.5606 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001065/0.19, allocations: 282.2 kB / 0.7697 GB, free: 4.879 MB / 0.5606 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003403/0.1903, allocations: 104.7 kB / 0.7698 GB, free: 4.773 MB / 0.5606 GB Notification: Performance of preOpt evalFunc (simulation): time 2.588e-05/0.1904, allocations: 4 kB / 0.7698 GB, free: 4.77 MB / 0.5606 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.724e-05/0.1904, allocations: 30.56 kB / 0.7698 GB, free: 4.73 MB / 0.5606 GB Notification: Performance of pre-optimization done (n=3): time 1.092e-06/0.1904, allocations: 4 kB / 0.7698 GB, free: 4.727 MB / 0.5606 GB Notification: Performance of matching and sorting (n=3): time 0.001118/0.1915, allocations: 305.5 kB / 0.7701 GB, free: 4.422 MB / 0.5606 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.826e-05/0.1916, allocations: 55.41 kB / 0.7702 GB, free: 4.355 MB / 0.5606 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001085/0.1917, allocations: 117.8 kB / 0.7703 GB, free: 4.23 MB / 0.5606 GB Notification: Performance of collectPreVariables (initialization): time 2.526e-05/0.1917, allocations: 29.69 kB / 0.7703 GB, free: 4.195 MB / 0.5606 GB Notification: Performance of collectInitialEqns (initialization): time 6.241e-05/0.1918, allocations: 88.14 kB / 0.7704 GB, free: 4.105 MB / 0.5606 GB Notification: Performance of collectInitialBindings (initialization): time 2.311e-05/0.1918, allocations: 7.891 kB / 0.7704 GB, free: 4.098 MB / 0.5606 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.304e-05/0.1919, allocations: 25.64 kB / 0.7704 GB, free: 4.066 MB / 0.5606 GB Notification: Performance of setup shared object (initialization): time 0.0001573/0.192, allocations: 322.8 kB / 0.7707 GB, free: 3.742 MB / 0.5606 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003434/0.1924, allocations: 95.88 kB / 0.7708 GB, free: 3.648 MB / 0.5606 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003243/0.1927, allocations: 95.86 kB / 0.7709 GB, free: 3.555 MB / 0.5606 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006282/0.1934, allocations: 176.6 kB / 0.7711 GB, free: 3.379 MB / 0.5606 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.583e-06/0.1934, allocations: 0 / 0.7711 GB, free: 3.379 MB / 0.5606 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0007064/0.1941, allocations: 217.4 kB / 0.7713 GB, free: 3.16 MB / 0.5606 GB Notification: Performance of prepare postOptimizeDAE: time 1.411e-05/0.1941, allocations: 8 kB / 0.7713 GB, free: 3.152 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.658e-06/0.1941, allocations: 0 / 0.7713 GB, free: 3.152 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.423e-05/0.1941, allocations: 0 / 0.7713 GB, free: 3.152 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002522/0.1944, allocations: 35.89 kB / 0.7713 GB, free: 3.117 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.869e-06/0.1944, allocations: 0 / 0.7713 GB, free: 3.117 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001958/0.1946, allocations: 35.88 kB / 0.7714 GB, free: 3.082 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.015e-05/0.1946, allocations: 0 / 0.7714 GB, free: 3.082 MB / 0.5606 GB 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 9.779e-05/0.1947, allocations: 122.4 kB / 0.7715 GB, free: 2.953 MB / 0.5606 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.864e-05/0.1948, allocations: 7.953 kB / 0.7715 GB, free: 2.945 MB / 0.5606 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.665e-05/0.1948, allocations: 11.89 kB / 0.7715 GB, free: 2.93 MB / 0.5606 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.053e-06/0.1948, allocations: 0 / 0.7715 GB, free: 2.93 MB / 0.5606 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.406e-06/0.1948, allocations: 384 / 0.7715 GB, free: 2.93 MB / 0.5606 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.846e-06/0.1948, allocations: 0 / 0.7715 GB, free: 2.93 MB / 0.5606 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002648/0.1951, allocations: 213.5 kB / 0.7717 GB, free: 2.672 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.042e-06/0.1951, allocations: 0 / 0.7717 GB, free: 2.672 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002266/0.1954, allocations: 43.89 kB / 0.7718 GB, free: 2.629 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.597e-06/0.1954, allocations: 3.984 kB / 0.7718 GB, free: 2.625 MB / 0.5606 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.056e-05/0.1954, allocations: 0 / 0.7718 GB, free: 2.625 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.142e-06/0.1954, allocations: 0 / 0.7718 GB, free: 2.625 MB / 0.5606 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.11e-07/0.1954, allocations: 0 / 0.7718 GB, free: 2.625 MB / 0.5606 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000779/0.1962, allocations: 319.1 kB / 0.7721 GB, free: 2.297 MB / 0.5606 GB Notification: Performance of postOpt removeConstants (simulation): time 6.082e-05/0.1963, allocations: 77.11 kB / 0.7721 GB, free: 2.203 MB / 0.5606 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.335e-05/0.1963, allocations: 4 kB / 0.7721 GB, free: 2.199 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002373/0.1965, allocations: 27.94 kB / 0.7722 GB, free: 2.172 MB / 0.5606 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.67e-05/0.1966, allocations: 4 kB / 0.7722 GB, free: 2.168 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.254e-06/0.1966, allocations: 0 / 0.7722 GB, free: 2.168 MB / 0.5606 GB Notification: Performance of sorting global known variables: time 6.501e-05/0.1966, allocations: 103.3 kB / 0.7723 GB, free: 2.066 MB / 0.5606 GB Notification: Performance of sort global known variables: time 1.4e-07/0.1967, allocations: 3.938 kB / 0.7723 GB, free: 2.062 MB / 0.5606 GB Notification: Performance of remove unused functions: time 0.0003244/0.197, allocations: 15.94 kB / 0.7723 GB, free: 2.047 MB / 0.5606 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 (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.001111/0.1981, allocations: 0.8372 MB / 0.7731 GB, free: 1.184 MB / 0.5606 GB Notification: Performance of simCode: created initialization part: time 0.0007545/0.1989, allocations: 195.7 kB / 0.7733 GB, free: 0.9922 MB / 0.5606 GB Notification: Performance of simCode: created event and clocks part: time 2.715e-06/0.1989, allocations: 4 kB / 0.7733 GB, free: 0.9883 MB / 0.5606 GB Notification: Performance of simCode: created simulation system equations: time 0.0003483/0.1992, allocations: 100.2 kB / 0.7734 GB, free: 0.8906 MB / 0.5606 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003156/0.1996, allocations: 4 kB / 0.7734 GB, free: 0.8867 MB / 0.5606 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.3493/0.5488, allocations: 1.834 MB / 0.7752 GB, free: 14.15 MB / 0.5606 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001321/0.549, allocations: 0.6915 MB / 0.7759 GB, free: 13.45 MB / 0.5606 GB Notification: Performance of simCode: alias equations: time 9.673e-05/0.5491, allocations: 19.81 kB / 0.7759 GB, free: 13.45 MB / 0.5606 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.299e-05/0.5492, allocations: 19.02 kB / 0.7759 GB, free: 13.45 MB / 0.5606 GB Notification: Performance of SimCode: time 1.031e-06/0.5492, allocations: 0 / 0.7759 GB, free: 13.45 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02329/0.5725, allocations: 1.964 MB / 0.7778 GB, free: 13.12 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate platform static: time 8.242/8.814, allocations: 12.56 kB / 0.7778 GB, free: 13.12 MB / 0.5606 GB (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)