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.001284/0.001284, allocations: 112.5 kB / 15.73 MB, free: 76 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.001275/0.001275, allocations: 193.8 kB / 16.67 MB, free: 6.574 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.409/1.409, allocations: 222.9 MB / 240.4 MB, free: 4.32 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.0026/0.0026, allocations: 282.6 kB / 290.8 MB, free: 1.93 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 1.062/1.062, allocations: 178.6 MB / 0.5074 GB, free: 4.484 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002792/0.002792, allocations: 100.5 kB / 0.6943 GB, free: 3.605 MB / 494.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.5132/0.516, allocations: 89.14 MB / 0.7813 GB, free: 13.86 MB / 0.5606 GB Notification: Performance of NFInst.instantiate(BuildingSystems.Utilities.Math.Examples.SmoothMin): time 0.002745/0.5188, allocations: 1.471 MB / 0.7828 GB, free: 12.83 MB / 0.5606 GB Notification: Performance of NFInst.instExpressions: time 0.0004115/0.5192, allocations: 145.8 kB / 0.7829 GB, free: 12.73 MB / 0.5606 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.766e-05/0.5193, allocations: 5.125 kB / 0.7829 GB, free: 12.73 MB / 0.5606 GB Notification: Performance of NFTyping.typeComponents: time 4.128e-05/0.5193, allocations: 0.6562 kB / 0.7829 GB, free: 12.73 MB / 0.5606 GB Notification: Performance of NFTyping.typeBindings: time 6.249e-05/0.5194, allocations: 6.062 kB / 0.7829 GB, free: 12.72 MB / 0.5606 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002264/0.5196, allocations: 34.73 kB / 0.783 GB, free: 12.71 MB / 0.5606 GB Notification: Performance of NFFlatten.flatten: time 9.85e-05/0.5197, allocations: 37.72 kB / 0.783 GB, free: 12.69 MB / 0.5606 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001212/0.5198, allocations: 20.16 kB / 0.783 GB, free: 12.68 MB / 0.5606 GB Notification: Performance of NFEvalConstants.evaluate: time 4.512e-05/0.5199, allocations: 17.12 kB / 0.783 GB, free: 12.68 MB / 0.5606 GB Notification: Performance of NFSimplifyModel.simplify: time 5.138e-05/0.52, allocations: 22.59 kB / 0.7831 GB, free: 12.66 MB / 0.5606 GB Notification: Performance of NFPackage.collectConstants: time 1.679e-05/0.52, allocations: 7.297 kB / 0.7831 GB, free: 12.66 MB / 0.5606 GB Notification: Performance of NFFlatten.collectFunctions: time 9.067e-05/0.5201, allocations: 33.39 kB / 0.7831 GB, free: 12.65 MB / 0.5606 GB Notification: Performance of NFScalarize.scalarize: time 2.048e-05/0.5201, allocations: 12.7 kB / 0.7831 GB, free: 12.64 MB / 0.5606 GB Notification: Performance of NFVerifyModel.verify: time 3.226e-05/0.5201, allocations: 20.31 kB / 0.7831 GB, free: 12.63 MB / 0.5606 GB Notification: Performance of NFConvertDAE.convert: time 0.0001494/0.5203, allocations: 65.34 kB / 0.7832 GB, free: 12.61 MB / 0.5606 GB Notification: Performance of FrontEnd - DAE generated: time 4.218e-06/0.5203, allocations: 3.969 kB / 0.7832 GB, free: 12.61 MB / 0.5606 GB Notification: Performance of FrontEnd: time 1.844e-06/0.5203, allocations: 0 / 0.7832 GB, free: 12.61 MB / 0.5606 GB Notification: Performance of Transformations before backend: time 5.52e-06/0.5203, allocations: 4.547 kB / 0.7832 GB, free: 12.6 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.0005202/0.5209, allocations: 364.4 kB / 0.7835 GB, free: 12.22 MB / 0.5606 GB Notification: Performance of prepare preOptimizeDAE: time 4.55e-05/0.5209, allocations: 14.19 kB / 0.7836 GB, free: 12.22 MB / 0.5606 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.869e-05/0.521, allocations: 33.08 kB / 0.7836 GB, free: 12.18 MB / 0.5606 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001097/0.5221, allocations: 209.2 kB / 0.7838 GB, free: 12.18 MB / 0.5606 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001756/0.5222, allocations: 168.1 kB / 0.7839 GB, free: 11.98 MB / 0.5606 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.678e-06/0.5223, allocations: 2.203 kB / 0.784 GB, free: 11.98 MB / 0.5606 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.449e-05/0.5223, allocations: 10.88 kB / 0.784 GB, free: 11.97 MB / 0.5606 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005965/0.5229, allocations: 191.4 kB / 0.7841 GB, free: 11.91 MB / 0.5606 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.161e-05/0.5229, allocations: 4.641 kB / 0.7841 GB, free: 11.91 MB / 0.5606 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.715e-05/0.5229, allocations: 1.375 kB / 0.7841 GB, free: 11.91 MB / 0.5606 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.539e-06/0.5229, allocations: 3.938 kB / 0.7842 GB, free: 11.91 MB / 0.5606 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008964/0.5238, allocations: 282 kB / 0.7844 GB, free: 11.87 MB / 0.5606 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009535/0.5248, allocations: 436.7 kB / 0.7848 GB, free: 11.55 MB / 0.5606 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001171/0.526, allocations: 288.2 kB / 0.7851 GB, free: 11.48 MB / 0.5606 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003878/0.5264, allocations: 106.1 kB / 0.7852 GB, free: 11.46 MB / 0.5606 GB Notification: Performance of preOpt evalFunc (simulation): time 2.013e-05/0.5264, allocations: 0 / 0.7852 GB, free: 11.46 MB / 0.5606 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.786e-05/0.5264, allocations: 32.67 kB / 0.7852 GB, free: 11.42 MB / 0.5606 GB Notification: Performance of pre-optimization done (n=3): time 1.142e-06/0.5265, allocations: 0 / 0.7852 GB, free: 11.42 MB / 0.5606 GB Notification: Performance of matching and sorting (n=3): time 0.00123/0.5277, allocations: 310.8 kB / 0.7855 GB, free: 11.34 MB / 0.5606 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.771e-05/0.5277, allocations: 52.78 kB / 0.7856 GB, free: 11.28 MB / 0.5606 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001129/0.5279, allocations: 122.7 kB / 0.7857 GB, free: 11.17 MB / 0.5606 GB Notification: Performance of collectPreVariables (initialization): time 2.187e-05/0.5279, allocations: 25.7 kB / 0.7857 GB, free: 11.14 MB / 0.5606 GB Notification: Performance of collectInitialEqns (initialization): time 7.286e-05/0.528, allocations: 96.84 kB / 0.7858 GB, free: 11.04 MB / 0.5606 GB Notification: Performance of collectInitialBindings (initialization): time 2.531e-05/0.528, allocations: 6.188 kB / 0.7858 GB, free: 11.04 MB / 0.5606 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.548e-05/0.5281, allocations: 19.62 kB / 0.7859 GB, free: 11.02 MB / 0.5606 GB Notification: Performance of setup shared object (initialization): time 0.0001485/0.5282, allocations: 317.7 kB / 0.7862 GB, free: 10.7 MB / 0.5606 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003842/0.5286, allocations: 96.55 kB / 0.7862 GB, free: 10.69 MB / 0.5606 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003858/0.529, allocations: 98.98 kB / 0.7863 GB, free: 10.67 MB / 0.5606 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007125/0.5297, allocations: 174.2 kB / 0.7865 GB, free: 10.63 MB / 0.5606 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.714e-06/0.5297, allocations: 5.188 kB / 0.7865 GB, free: 10.63 MB / 0.5606 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0007931/0.5305, allocations: 215.1 kB / 0.7867 GB, free: 10.57 MB / 0.5606 GB Notification: Performance of prepare postOptimizeDAE: time 1.443e-05/0.5306, allocations: 5.719 kB / 0.7867 GB, free: 10.57 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.378e-06/0.5306, allocations: 0.75 kB / 0.7867 GB, free: 10.57 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.861e-05/0.5306, allocations: 5.312 kB / 0.7867 GB, free: 10.56 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000261/0.5309, allocations: 36.84 kB / 0.7868 GB, free: 10.56 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.859e-06/0.5309, allocations: 3.938 kB / 0.7868 GB, free: 10.55 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001951/0.5311, allocations: 27.92 kB / 0.7868 GB, free: 10.55 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.697e-05/0.5311, allocations: 1.922 kB / 0.7868 GB, free: 10.55 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 0.0001058/0.5312, allocations: 124.8 kB / 0.7869 GB, free: 10.43 MB / 0.5606 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.386e-05/0.5313, allocations: 5.172 kB / 0.7869 GB, free: 10.43 MB / 0.5606 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.859e-05/0.5313, allocations: 16.67 kB / 0.7869 GB, free: 10.41 MB / 0.5606 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.995e-06/0.5313, allocations: 0 / 0.7869 GB, free: 10.41 MB / 0.5606 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.4e-06/0.5313, allocations: 1.891 kB / 0.7869 GB, free: 10.41 MB / 0.5606 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.424e-06/0.5313, allocations: 0 / 0.7869 GB, free: 10.41 MB / 0.5606 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000267/0.5316, allocations: 204.8 kB / 0.7871 GB, free: 10.21 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.814e-06/0.5316, allocations: 0.7031 kB / 0.7871 GB, free: 10.21 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002322/0.5319, allocations: 36.38 kB / 0.7872 GB, free: 10.2 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.703e-06/0.5319, allocations: 1.25 kB / 0.7872 GB, free: 10.2 MB / 0.5606 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.303e-05/0.5319, allocations: 4.797 kB / 0.7872 GB, free: 10.2 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.204e-06/0.5319, allocations: 1.734 kB / 0.7872 GB, free: 10.2 MB / 0.5606 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.72e-07/0.5319, allocations: 0 / 0.7872 GB, free: 10.2 MB / 0.5606 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008636/0.5328, allocations: 320.5 kB / 0.7875 GB, free: 10.03 MB / 0.5606 GB Notification: Performance of postOpt removeConstants (simulation): time 5.242e-05/0.5328, allocations: 78.89 kB / 0.7876 GB, free: 9.934 MB / 0.5606 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.076e-05/0.5329, allocations: 1.703 kB / 0.7876 GB, free: 9.934 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002398/0.5331, allocations: 26.72 kB / 0.7876 GB, free: 9.934 MB / 0.5606 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.819e-05/0.5332, allocations: 3.609 kB / 0.7876 GB, free: 9.934 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.578e-06/0.5332, allocations: 1.906 kB / 0.7876 GB, free: 9.934 MB / 0.5606 GB Notification: Performance of sorting global known variables: time 7.932e-05/0.5333, allocations: 96.83 kB / 0.7877 GB, free: 9.852 MB / 0.5606 GB Notification: Performance of sort global known variables: time 1.21e-07/0.5333, allocations: 0 / 0.7877 GB, free: 9.852 MB / 0.5606 GB Notification: Performance of remove unused functions: time 0.0002386/0.5335, allocations: 20.34 kB / 0.7877 GB, free: 9.844 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.001218/0.5347, allocations: 0.8435 MB / 0.7885 GB, free: 9.148 MB / 0.5606 GB Notification: Performance of simCode: created initialization part: time 0.0008029/0.5355, allocations: 193 kB / 0.7887 GB, free: 9.121 MB / 0.5606 GB Notification: Performance of simCode: created event and clocks part: time 3.336e-06/0.5356, allocations: 1.281 kB / 0.7887 GB, free: 9.121 MB / 0.5606 GB Notification: Performance of simCode: created simulation system equations: time 0.000392/0.536, allocations: 103.6 kB / 0.7888 GB, free: 9.102 MB / 0.5606 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002484/0.5362, allocations: 3.828 kB / 0.7888 GB, free: 9.102 MB / 0.5606 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003967/0.5402, allocations: 1.849 MB / 0.7906 GB, free: 7.801 MB / 0.5606 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003494/0.5406, allocations: 0.6858 MB / 0.7913 GB, free: 7.105 MB / 0.5606 GB Notification: Performance of simCode: alias equations: time 8.935e-05/0.5406, allocations: 21.2 kB / 0.7913 GB, free: 7.102 MB / 0.5606 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.484e-05/0.5407, allocations: 15.64 kB / 0.7913 GB, free: 7.09 MB / 0.5606 GB Notification: Performance of SimCode: time 3.1e-07/0.5407, allocations: 5 kB / 0.7913 GB, free: 7.086 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02291/0.5637, allocations: 1.965 MB / 0.7932 GB, free: 6.426 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.883/8.447, allocations: 20.3 kB / 0.7933 GB, free: 6.414 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 & python3 -m fmpy simulate --output-file BuildingSystems_BuildingSystems.Utilities.Math.Examples.SmoothMin_res.csv --start-time 0 --stop-time 1 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0004 BuildingSystems_BuildingSystems_Utilities_Math_Examples_SmoothMin.fmu > BuildingSystems_BuildingSystems.Utilities.Math.Examples.SmoothMin.pipe 2>&1)