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.006177/0.006177, allocations: 96.23 kB / 15.73 MB, free: 6.062 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.001285/0.001285, allocations: 198.2 kB / 16.68 MB, free: 5.98 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.359/1.359, allocations: 222.9 MB / 240.4 MB, free: 4.301 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002212/0.002212, allocations: 294.1 kB / 290.8 MB, free: 1.887 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.9284/0.9284, allocations: 169.3 MB / 0.4983 GB, free: 13.8 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001846/0.001846, allocations: 92.2 kB / 0.681 GB, free: 15.98 MB / 494.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1563/0.1581, allocations: 86.98 MB / 0.7659 GB, free: 8.93 MB / 0.5606 GB Notification: Performance of NFInst.instantiate(BuildingSystems.Utilities.Math.Examples.SmoothMin): time 0.002534/0.1607, allocations: 1.462 MB / 0.7673 GB, free: 7.457 MB / 0.5606 GB Notification: Performance of NFInst.instExpressions: time 0.0003918/0.1611, allocations: 136.4 kB / 0.7675 GB, free: 7.32 MB / 0.5606 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.166e-05/0.1612, allocations: 0 / 0.7675 GB, free: 7.32 MB / 0.5606 GB Notification: Performance of NFTyping.typeComponents: time 3.83e-05/0.1612, allocations: 4 kB / 0.7675 GB, free: 7.316 MB / 0.5606 GB Notification: Performance of NFTyping.typeBindings: time 6.045e-05/0.1613, allocations: 3.938 kB / 0.7675 GB, free: 7.312 MB / 0.5606 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002169/0.1615, allocations: 31.91 kB / 0.7675 GB, free: 7.281 MB / 0.5606 GB Notification: Performance of NFFlatten.flatten: time 9.125e-05/0.1616, allocations: 47.83 kB / 0.7676 GB, free: 7.234 MB / 0.5606 GB Notification: Performance of NFFlatten.resolveConnections: time 0.000119/0.1617, allocations: 23.94 kB / 0.7676 GB, free: 7.211 MB / 0.5606 GB Notification: Performance of NFEvalConstants.evaluate: time 4.5e-05/0.1618, allocations: 19.98 kB / 0.7676 GB, free: 7.191 MB / 0.5606 GB Notification: Performance of NFSimplifyModel.simplify: time 4.148e-05/0.1618, allocations: 19.86 kB / 0.7676 GB, free: 7.172 MB / 0.5606 GB Notification: Performance of NFPackage.collectConstants: time 1.616e-05/0.1619, allocations: 4 kB / 0.7676 GB, free: 7.168 MB / 0.5606 GB Notification: Performance of NFFlatten.collectFunctions: time 8.587e-05/0.1619, allocations: 35.91 kB / 0.7677 GB, free: 7.133 MB / 0.5606 GB Notification: Performance of NFScalarize.scalarize: time 2.061e-05/0.162, allocations: 8 kB / 0.7677 GB, free: 7.125 MB / 0.5606 GB Notification: Performance of NFVerifyModel.verify: time 3.404e-05/0.162, allocations: 27.84 kB / 0.7677 GB, free: 7.098 MB / 0.5606 GB Notification: Performance of NFConvertDAE.convert: time 0.0001382/0.1622, allocations: 56.09 kB / 0.7677 GB, free: 7.043 MB / 0.5606 GB Notification: Performance of FrontEnd - DAE generated: time 3.346e-06/0.1622, allocations: 0 / 0.7677 GB, free: 7.043 MB / 0.5606 GB Notification: Performance of FrontEnd: time 8.215e-06/0.1622, allocations: 0 / 0.7677 GB, free: 7.043 MB / 0.5606 GB Notification: Performance of Transformations before backend: time 5.119e-06/0.1622, allocations: 3.938 kB / 0.7677 GB, free: 7.039 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.0004519/0.1626, allocations: 367.2 kB / 0.7681 GB, free: 6.629 MB / 0.5606 GB Notification: Performance of prepare preOptimizeDAE: time 3.87e-05/0.1627, allocations: 12.03 kB / 0.7681 GB, free: 6.617 MB / 0.5606 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.344e-05/0.1627, allocations: 34.75 kB / 0.7681 GB, free: 6.574 MB / 0.5606 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001092/0.1638, allocations: 212.5 kB / 0.7683 GB, free: 6.367 MB / 0.5606 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001237/0.164, allocations: 172.3 kB / 0.7685 GB, free: 6.16 MB / 0.5606 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.061e-05/0.164, allocations: 4.375 kB / 0.7685 GB, free: 6.156 MB / 0.5606 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.127e-05/0.164, allocations: 384 / 0.7685 GB, free: 6.156 MB / 0.5606 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005512/0.1646, allocations: 194 kB / 0.7687 GB, free: 5.961 MB / 0.5606 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.568e-06/0.1646, allocations: 7.938 kB / 0.7687 GB, free: 5.953 MB / 0.5606 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.581e-05/0.1646, allocations: 4 kB / 0.7687 GB, free: 5.949 MB / 0.5606 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.529e-06/0.1646, allocations: 0 / 0.7687 GB, free: 5.949 MB / 0.5606 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008333/0.1654, allocations: 283.6 kB / 0.769 GB, free: 5.672 MB / 0.5606 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008827/0.1663, allocations: 449.1 kB / 0.7694 GB, free: 5.184 MB / 0.5606 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001101/0.1675, allocations: 286.1 kB / 0.7697 GB, free: 4.895 MB / 0.5606 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003573/0.1678, allocations: 96.8 kB / 0.7698 GB, free: 4.797 MB / 0.5606 GB Notification: Performance of preOpt evalFunc (simulation): time 2.187e-05/0.1678, allocations: 8 kB / 0.7698 GB, free: 4.789 MB / 0.5606 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.824e-05/0.1679, allocations: 30.56 kB / 0.7698 GB, free: 4.75 MB / 0.5606 GB Notification: Performance of pre-optimization done (n=3): time 1.182e-06/0.1679, allocations: 0 / 0.7698 GB, free: 4.75 MB / 0.5606 GB Notification: Performance of matching and sorting (n=3): time 0.001154/0.169, allocations: 313.2 kB / 0.7701 GB, free: 4.438 MB / 0.5606 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.079e-05/0.1691, allocations: 51.41 kB / 0.7702 GB, free: 4.375 MB / 0.5606 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.168e-05/0.1692, allocations: 126.1 kB / 0.7703 GB, free: 4.242 MB / 0.5606 GB Notification: Performance of collectPreVariables (initialization): time 1.782e-05/0.1692, allocations: 25.7 kB / 0.7703 GB, free: 4.211 MB / 0.5606 GB Notification: Performance of collectInitialEqns (initialization): time 4.181e-05/0.1692, allocations: 88.14 kB / 0.7704 GB, free: 4.121 MB / 0.5606 GB Notification: Performance of collectInitialBindings (initialization): time 2.09e-05/0.1693, allocations: 4.125 kB / 0.7704 GB, free: 4.117 MB / 0.5606 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.527e-05/0.1693, allocations: 25.64 kB / 0.7704 GB, free: 4.086 MB / 0.5606 GB Notification: Performance of setup shared object (initialization): time 9.478e-05/0.1694, allocations: 322.8 kB / 0.7707 GB, free: 3.762 MB / 0.5606 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003516/0.1698, allocations: 99.88 kB / 0.7708 GB, free: 3.664 MB / 0.5606 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003449/0.1701, allocations: 95.86 kB / 0.7709 GB, free: 3.57 MB / 0.5606 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006599/0.1708, allocations: 172.6 kB / 0.7711 GB, free: 3.398 MB / 0.5606 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.495e-06/0.1708, allocations: 0 / 0.7711 GB, free: 3.398 MB / 0.5606 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0007346/0.1716, allocations: 217.3 kB / 0.7713 GB, free: 3.18 MB / 0.5606 GB Notification: Performance of prepare postOptimizeDAE: time 1.632e-05/0.1716, allocations: 4 kB / 0.7713 GB, free: 3.176 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.011e-06/0.1716, allocations: 4 kB / 0.7713 GB, free: 3.172 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.636e-05/0.1716, allocations: 4 kB / 0.7713 GB, free: 3.168 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002528/0.1719, allocations: 35.94 kB / 0.7713 GB, free: 3.133 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.554e-06/0.1719, allocations: 3.984 kB / 0.7713 GB, free: 3.129 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000196/0.1721, allocations: 31.89 kB / 0.7714 GB, free: 3.098 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.123e-05/0.1721, allocations: 0 / 0.7714 GB, free: 3.098 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 8.945e-05/0.1722, allocations: 130.4 kB / 0.7715 GB, free: 2.961 MB / 0.5606 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.397e-05/0.1723, allocations: 4.281 kB / 0.7715 GB, free: 2.957 MB / 0.5606 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.3e-05/0.1723, allocations: 7.906 kB / 0.7715 GB, free: 2.945 MB / 0.5606 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.097e-06/0.1723, allocations: 3.984 kB / 0.7715 GB, free: 2.941 MB / 0.5606 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.007e-06/0.1723, allocations: 0 / 0.7715 GB, free: 2.941 MB / 0.5606 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.625e-06/0.1723, allocations: 0 / 0.7715 GB, free: 2.941 MB / 0.5606 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002275/0.1726, allocations: 213.5 kB / 0.7717 GB, free: 2.684 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.793e-06/0.1726, allocations: 0 / 0.7717 GB, free: 2.684 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002299/0.1728, allocations: 39.94 kB / 0.7717 GB, free: 2.645 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.146e-06/0.1728, allocations: 0 / 0.7717 GB, free: 2.645 MB / 0.5606 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.063e-05/0.1728, allocations: 0 / 0.7717 GB, free: 2.645 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.433e-06/0.1728, allocations: 0 / 0.7717 GB, free: 2.645 MB / 0.5606 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.707e-06/0.1729, allocations: 3.938 kB / 0.7717 GB, free: 2.641 MB / 0.5606 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008027/0.1737, allocations: 319.2 kB / 0.7721 GB, free: 2.312 MB / 0.5606 GB Notification: Performance of postOpt removeConstants (simulation): time 4.567e-05/0.1737, allocations: 85.09 kB / 0.7721 GB, free: 2.211 MB / 0.5606 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.043e-05/0.1737, allocations: 0 / 0.7721 GB, free: 2.211 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002196/0.174, allocations: 27.95 kB / 0.7722 GB, free: 2.184 MB / 0.5606 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.343e-05/0.174, allocations: 4 kB / 0.7722 GB, free: 2.18 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.139e-05/0.1741, allocations: 0 / 0.7722 GB, free: 2.18 MB / 0.5606 GB Notification: Performance of sorting global known variables: time 5.674e-05/0.1741, allocations: 107.2 kB / 0.7723 GB, free: 2.074 MB / 0.5606 GB Notification: Performance of sort global known variables: time 1.1e-07/0.1741, allocations: 0 / 0.7723 GB, free: 2.074 MB / 0.5606 GB Notification: Performance of remove unused functions: time 0.0002318/0.1744, allocations: 15.94 kB / 0.7723 GB, free: 2.059 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.001024/0.1754, allocations: 0.8411 MB / 0.7731 GB, free: 1.191 MB / 0.5606 GB Notification: Performance of simCode: created initialization part: time 0.0007616/0.1762, allocations: 195.7 kB / 0.7733 GB, free: 1 MB / 0.5606 GB Notification: Performance of simCode: created event and clocks part: time 2.816e-06/0.1762, allocations: 7.938 kB / 0.7733 GB, free: 0.9922 MB / 0.5606 GB Notification: Performance of simCode: created simulation system equations: time 0.0003627/0.1765, allocations: 99.81 kB / 0.7734 GB, free: 0.8945 MB / 0.5606 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002475/0.1768, allocations: 4 kB / 0.7734 GB, free: 0.8906 MB / 0.5606 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.3263/0.5031, allocations: 1.825 MB / 0.7752 GB, free: 14.17 MB / 0.5606 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001462/0.5033, allocations: 0.6924 MB / 0.7759 GB, free: 13.48 MB / 0.5606 GB Notification: Performance of simCode: alias equations: time 0.000104/0.5034, allocations: 19.64 kB / 0.7759 GB, free: 13.48 MB / 0.5606 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.599e-05/0.5035, allocations: 16.02 kB / 0.7759 GB, free: 13.47 MB / 0.5606 GB Notification: Performance of SimCode: time 7.51e-07/0.5035, allocations: 0 / 0.7759 GB, free: 13.47 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01878/0.5223, allocations: 1.975 MB / 0.7778 GB, free: 13.14 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.49/8.013, allocations: 10.81 kB / 0.7778 GB, free: 13.14 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)