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.001272/0.001272, allocations: 108 kB / 15.6 MB, free: 132 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.001312/0.001312, allocations: 195.3 kB / 16.54 MB, free: 6.672 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.365/1.365, allocations: 222.9 MB / 240.2 MB, free: 4.422 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002483/0.002483, allocations: 275.1 kB / 290.7 MB, free: 2.02 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 1.055/1.055, allocations: 178.6 MB / 0.5073 GB, free: 4.551 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.004265/0.004265, allocations: 98.38 kB / 0.6065 GB, free: 24.8 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1979/0.2022, allocations: 89.15 MB / 0.6936 GB, free: 4.219 MB / 494.1 MB Notification: Performance of NFInst.instantiate(BuildingSystems.Utilities.Math.Examples.SmoothMin): time 0.00314/0.2054, allocations: 1.465 MB / 0.695 GB, free: 2.75 MB / 494.1 MB Notification: Performance of NFInst.instExpressions: time 0.0004474/0.2059, allocations: 140.4 kB / 0.6952 GB, free: 2.609 MB / 494.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 3.761e-05/0.2059, allocations: 0 / 0.6952 GB, free: 2.609 MB / 494.1 MB Notification: Performance of NFTyping.typeComponents: time 4.367e-05/0.206, allocations: 0 / 0.6952 GB, free: 2.609 MB / 494.1 MB Notification: Performance of NFTyping.typeBindings: time 6.957e-05/0.2061, allocations: 11.92 kB / 0.6952 GB, free: 2.598 MB / 494.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002483/0.2063, allocations: 32.69 kB / 0.6952 GB, free: 2.566 MB / 494.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001047/0.2064, allocations: 43.84 kB / 0.6953 GB, free: 2.523 MB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001278/0.2066, allocations: 21.72 kB / 0.6953 GB, free: 2.504 MB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 5.274e-05/0.2066, allocations: 19.91 kB / 0.6953 GB, free: 2.484 MB / 494.1 MB Notification: Performance of NFSimplifyModel.simplify: time 5.079e-05/0.2067, allocations: 23.92 kB / 0.6953 GB, free: 2.461 MB / 494.1 MB Notification: Performance of NFPackage.collectConstants: time 1.666e-05/0.2067, allocations: 4 kB / 0.6953 GB, free: 2.457 MB / 494.1 MB Notification: Performance of NFFlatten.collectFunctions: time 9.71e-05/0.2068, allocations: 27.97 kB / 0.6953 GB, free: 2.43 MB / 494.1 MB Notification: Performance of NFScalarize.scalarize: time 2.307e-05/0.2068, allocations: 8 kB / 0.6954 GB, free: 2.422 MB / 494.1 MB Notification: Performance of NFVerifyModel.verify: time 3.605e-05/0.2069, allocations: 23.86 kB / 0.6954 GB, free: 2.398 MB / 494.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001491/0.207, allocations: 64.08 kB / 0.6954 GB, free: 2.336 MB / 494.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.318e-06/0.207, allocations: 0 / 0.6954 GB, free: 2.336 MB / 494.1 MB Notification: Performance of FrontEnd: time 3.586e-06/0.2071, allocations: 4 kB / 0.6954 GB, free: 2.332 MB / 494.1 MB Notification: Performance of Transformations before backend: time 4.619e-06/0.2071, allocations: 3.938 kB / 0.6954 GB, free: 2.328 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.0005104/0.2076, allocations: 359.4 kB / 0.6958 GB, free: 1.926 MB / 494.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.308e-05/0.2076, allocations: 8.031 kB / 0.6958 GB, free: 1.918 MB / 494.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.275e-05/0.2077, allocations: 34.75 kB / 0.6958 GB, free: 1.875 MB / 494.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001154/0.2088, allocations: 216.5 kB / 0.696 GB, free: 1.664 MB / 494.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001624/0.209, allocations: 172.2 kB / 0.6962 GB, free: 1.457 MB / 494.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.088e-05/0.209, allocations: 384 / 0.6962 GB, free: 1.457 MB / 494.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.488e-05/0.2091, allocations: 4.375 kB / 0.6962 GB, free: 1.453 MB / 494.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005885/0.2097, allocations: 190 kB / 0.6964 GB, free: 1.262 MB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.17e-05/0.2097, allocations: 7.938 kB / 0.6964 GB, free: 1.254 MB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.484e-05/0.2097, allocations: 0 / 0.6964 GB, free: 1.254 MB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.562e-06/0.2097, allocations: 4 kB / 0.6964 GB, free: 1.25 MB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008713/0.2106, allocations: 283.5 kB / 0.6967 GB, free: 0.9727 MB / 494.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009789/0.2116, allocations: 441.3 kB / 0.6971 GB, free: 500 kB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001148/0.2127, allocations: 286.2 kB / 0.6974 GB, free: 204 kB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003656/0.2131, allocations: 104.7 kB / 0.6975 GB, free: 96 kB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.09e-05/0.2132, allocations: 0 / 0.6975 GB, free: 96 kB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.695e-05/0.2132, allocations: 38.56 kB / 0.6975 GB, free: 48 kB / 494.1 MB Notification: Performance of pre-optimization done (n=3): time 1.132e-06/0.2132, allocations: 0 / 0.6975 GB, free: 48 kB / 494.1 MB Notification: Performance of matching and sorting (n=3): time 0.001249/0.2145, allocations: 305.3 kB / 0.6978 GB, free: 15.74 MB / 0.4981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.25e-05/0.2145, allocations: 51.41 kB / 0.6978 GB, free: 15.68 MB / 0.4981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001167/0.2146, allocations: 121.8 kB / 0.698 GB, free: 15.55 MB / 0.4981 GB Notification: Performance of collectPreVariables (initialization): time 2.055e-05/0.2147, allocations: 25.7 kB / 0.698 GB, free: 15.52 MB / 0.4981 GB Notification: Performance of collectInitialEqns (initialization): time 6.224e-05/0.2147, allocations: 92.08 kB / 0.6981 GB, free: 15.43 MB / 0.4981 GB Notification: Performance of collectInitialBindings (initialization): time 2.614e-05/0.2148, allocations: 11.75 kB / 0.6981 GB, free: 15.41 MB / 0.4981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.672e-05/0.2148, allocations: 21.7 kB / 0.6981 GB, free: 15.39 MB / 0.4981 GB Notification: Performance of setup shared object (initialization): time 0.0001465/0.215, allocations: 322.8 kB / 0.6984 GB, free: 15.06 MB / 0.4981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003705/0.2153, allocations: 91.88 kB / 0.6985 GB, free: 14.97 MB / 0.4981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003552/0.2157, allocations: 95.86 kB / 0.6986 GB, free: 14.88 MB / 0.4981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007066/0.2164, allocations: 172.6 kB / 0.6988 GB, free: 14.71 MB / 0.4981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.027e-06/0.2164, allocations: 0 / 0.6988 GB, free: 14.71 MB / 0.4981 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0007799/0.2172, allocations: 221.4 kB / 0.699 GB, free: 14.48 MB / 0.4981 GB Notification: Performance of prepare postOptimizeDAE: time 1.518e-05/0.2173, allocations: 4 kB / 0.699 GB, free: 14.48 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.44e-06/0.2173, allocations: 336 / 0.699 GB, free: 14.48 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.739e-05/0.2173, allocations: 0 / 0.699 GB, free: 14.48 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000264/0.2176, allocations: 39.88 kB / 0.699 GB, free: 14.44 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.34e-06/0.2176, allocations: 0 / 0.699 GB, free: 14.44 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002115/0.2178, allocations: 35.86 kB / 0.699 GB, free: 14.41 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.119e-05/0.2178, allocations: 0 / 0.699 GB, free: 14.41 MB / 0.4981 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.0001053/0.2179, allocations: 122.4 kB / 0.6992 GB, free: 14.28 MB / 0.4981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.638e-05/0.218, allocations: 7.984 kB / 0.6992 GB, free: 14.27 MB / 0.4981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.324e-05/0.218, allocations: 7.906 kB / 0.6992 GB, free: 14.26 MB / 0.4981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.345e-06/0.218, allocations: 0 / 0.6992 GB, free: 14.26 MB / 0.4981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.811e-06/0.218, allocations: 4 kB / 0.6992 GB, free: 14.25 MB / 0.4981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.024e-06/0.218, allocations: 0 / 0.6992 GB, free: 14.25 MB / 0.4981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002558/0.2183, allocations: 213.9 kB / 0.6994 GB, free: 14 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.693e-06/0.2183, allocations: 0 / 0.6994 GB, free: 14 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002362/0.2185, allocations: 35.94 kB / 0.6994 GB, free: 13.96 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.435e-06/0.2186, allocations: 4 kB / 0.6994 GB, free: 13.96 MB / 0.4981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.107e-05/0.2186, allocations: 3.938 kB / 0.6994 GB, free: 13.95 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.423e-06/0.2186, allocations: 0 / 0.6994 GB, free: 13.95 MB / 0.4981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.393e-06/0.2186, allocations: 0 / 0.6994 GB, free: 13.95 MB / 0.4981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00084/0.2194, allocations: 319.1 kB / 0.6997 GB, free: 13.62 MB / 0.4981 GB Notification: Performance of postOpt removeConstants (simulation): time 5.663e-05/0.2195, allocations: 81.09 kB / 0.6998 GB, free: 13.53 MB / 0.4981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.485e-05/0.2195, allocations: 4 kB / 0.6998 GB, free: 13.52 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002283/0.2198, allocations: 23.95 kB / 0.6998 GB, free: 13.5 MB / 0.4981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.264e-05/0.2198, allocations: 8 kB / 0.6998 GB, free: 13.49 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.846e-06/0.2198, allocations: 0 / 0.6998 GB, free: 13.49 MB / 0.4981 GB Notification: Performance of sorting global known variables: time 7.256e-05/0.2199, allocations: 95.27 kB / 0.6999 GB, free: 13.4 MB / 0.4981 GB Notification: Performance of sort global known variables: time 1.2e-07/0.2199, allocations: 0 / 0.6999 GB, free: 13.4 MB / 0.4981 GB Notification: Performance of remove unused functions: time 0.0002535/0.2202, allocations: 19.94 kB / 0.6999 GB, free: 13.38 MB / 0.4981 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.001153/0.2213, allocations: 0.8372 MB / 0.7008 GB, free: 12.52 MB / 0.4981 GB Notification: Performance of simCode: created initialization part: time 0.000796/0.2221, allocations: 207.7 kB / 0.701 GB, free: 12.31 MB / 0.4981 GB Notification: Performance of simCode: created event and clocks part: time 2.485e-06/0.2222, allocations: 0 / 0.701 GB, free: 12.31 MB / 0.4981 GB Notification: Performance of simCode: created simulation system equations: time 0.0003783/0.2225, allocations: 95.88 kB / 0.7011 GB, free: 12.22 MB / 0.4981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000245/0.2228, allocations: 7.938 kB / 0.7011 GB, free: 12.21 MB / 0.4981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003681/0.2265, allocations: 1.839 MB / 0.7029 GB, free: 10.29 MB / 0.4981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003113/0.2268, allocations: 0.7 MB / 0.7035 GB, free: 9.566 MB / 0.4981 GB Notification: Performance of simCode: alias equations: time 8.479e-05/0.2269, allocations: 15.98 kB / 0.7036 GB, free: 9.551 MB / 0.4981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.848e-05/0.227, allocations: 23.42 kB / 0.7036 GB, free: 9.531 MB / 0.4981 GB Notification: Performance of SimCode: time 8.72e-07/0.227, allocations: 0 / 0.7036 GB, free: 9.531 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02197/0.249, allocations: 1.936 MB / 0.7055 GB, free: 7.668 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.328/7.577, allocations: 8.047 kB / 0.7055 GB, free: 7.66 MB / 0.4981 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)