Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr BuildingSystems_BuildingSystems.Utilities.Math.Examples.SmoothLimit.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.SmoothLimit,fileNamePrefix="BuildingSystems_BuildingSystems_Utilities_Math_Examples_SmoothLimit",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(BuildingSystems.Utilities.Math.Examples.SmoothLimit,fileNamePrefix="BuildingSystems_BuildingSystems_Utilities_Math_Examples_SmoothLimit",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.00128/0.00128, 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.001413/0.001413, allocations: 196 kB / 16.53 MB, free: 6.664 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.275/1.275, allocations: 222.9 MB / 240.2 MB, free: 4.414 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002008/0.002008, allocations: 286.9 kB / 290.7 MB, free: 2.012 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.91/0.91, allocations: 169.3 MB / 0.4982 GB, free: 13.94 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001637/0.001637, allocations: 107.1 kB / 0.5953 GB, free: 27.91 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1329/0.1345, allocations: 86.98 MB / 0.6803 GB, free: 0.5859 MB / 478.1 MB Notification: Performance of NFInst.instantiate(BuildingSystems.Utilities.Math.Examples.SmoothLimit): time 0.002642/0.1372, allocations: 1.444 MB / 0.6817 GB, free: 15.14 MB / 494.1 MB Notification: Performance of NFInst.instExpressions: time 0.0008185/0.1381, allocations: 0.5604 MB / 0.6822 GB, free: 14.57 MB / 494.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 3.409e-05/0.1381, allocations: 0 / 0.6822 GB, free: 14.57 MB / 494.1 MB Notification: Performance of NFTyping.typeComponents: time 2.62e-05/0.1381, allocations: 3.938 kB / 0.6822 GB, free: 14.57 MB / 494.1 MB Notification: Performance of NFTyping.typeBindings: time 3.849e-05/0.1382, allocations: 11.94 kB / 0.6823 GB, free: 14.56 MB / 494.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002485/0.1385, allocations: 51.83 kB / 0.6823 GB, free: 14.51 MB / 494.1 MB Notification: Performance of NFFlatten.flatten: time 5.485e-05/0.1385, allocations: 27.86 kB / 0.6823 GB, free: 14.48 MB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 7.904e-05/0.1386, allocations: 8.266 kB / 0.6823 GB, free: 14.47 MB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 7.64e-05/0.1387, allocations: 15.98 kB / 0.6824 GB, free: 14.46 MB / 494.1 MB Notification: Performance of NFSimplifyModel.simplify: time 4.39e-05/0.1387, allocations: 19.86 kB / 0.6824 GB, free: 14.44 MB / 494.1 MB Notification: Performance of NFPackage.collectConstants: time 1.084e-05/0.1388, allocations: 0 / 0.6824 GB, free: 14.44 MB / 494.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001038/0.1389, allocations: 47.97 kB / 0.6824 GB, free: 14.39 MB / 494.1 MB Notification: Performance of NFScalarize.scalarize: time 1.496e-05/0.1389, allocations: 19.91 kB / 0.6824 GB, free: 14.37 MB / 494.1 MB Notification: Performance of NFVerifyModel.verify: time 2.187e-05/0.1389, allocations: 7.938 kB / 0.6824 GB, free: 14.36 MB / 494.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001288/0.1391, allocations: 67.8 kB / 0.6825 GB, free: 14.3 MB / 494.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.048e-06/0.1391, allocations: 4 kB / 0.6825 GB, free: 14.29 MB / 494.1 MB Notification: Performance of FrontEnd: time 8.62e-07/0.1391, allocations: 0 / 0.6825 GB, free: 14.29 MB / 494.1 MB Notification: Performance of Transformations before backend: time 4.197e-06/0.1391, allocations: 0 / 0.6825 GB, free: 14.29 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: 3 * Number of variables: 3 Notification: Performance of Generate backend data structure: time 0.0003574/0.1394, allocations: 345.4 kB / 0.6828 GB, free: 13.91 MB / 494.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.364e-05/0.1395, allocations: 12.03 kB / 0.6829 GB, free: 13.9 MB / 494.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.083e-05/0.1395, allocations: 30.75 kB / 0.6829 GB, free: 13.86 MB / 494.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.279e-05/0.1395, allocations: 8.844 kB / 0.6829 GB, free: 13.85 MB / 494.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 9.546e-05/0.1396, allocations: 168.3 kB / 0.6831 GB, free: 13.65 MB / 494.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.868e-06/0.1397, allocations: 384 / 0.6831 GB, free: 13.65 MB / 494.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.003e-06/0.1397, allocations: 4.312 kB / 0.6831 GB, free: 13.64 MB / 494.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001197/0.1398, allocations: 49.8 kB / 0.6831 GB, free: 13.59 MB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.274e-06/0.1398, allocations: 0 / 0.6831 GB, free: 13.59 MB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.405e-06/0.1398, allocations: 0 / 0.6831 GB, free: 13.59 MB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.272e-06/0.1398, allocations: 4 kB / 0.6831 GB, free: 13.59 MB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 7.804e-05/0.1399, allocations: 19.92 kB / 0.6831 GB, free: 13.57 MB / 494.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002652/0.1402, allocations: 264.8 kB / 0.6834 GB, free: 13.26 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 7.448e-05/0.1403, allocations: 26.58 kB / 0.6834 GB, free: 13.22 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.435e-05/0.1403, allocations: 16.91 kB / 0.6834 GB, free: 13.2 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0007403/0.1411, allocations: 481.4 kB / 0.6839 GB, free: 12.64 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.205e-05/0.1411, allocations: 38.48 kB / 0.6839 GB, free: 12.59 MB / 494.1 MB Notification: Performance of pre-optimization done (n=2): time 1.103e-06/0.1411, allocations: 0 / 0.6839 GB, free: 12.59 MB / 494.1 MB Notification: Performance of matching and sorting (n=2): time 0.0002152/0.1413, allocations: 53.69 kB / 0.684 GB, free: 12.54 MB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.122e-05/0.1414, allocations: 59.53 kB / 0.684 GB, free: 12.46 MB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.895e-05/0.1415, allocations: 109.8 kB / 0.6841 GB, free: 12.35 MB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 1.139e-05/0.1415, allocations: 25.7 kB / 0.6842 GB, free: 12.32 MB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.9e-05/0.1415, allocations: 92.12 kB / 0.6842 GB, free: 12.22 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.49e-05/0.1415, allocations: 7.844 kB / 0.6843 GB, free: 12.21 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.836e-05/0.1416, allocations: 9.719 kB / 0.6843 GB, free: 12.2 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 8.773e-05/0.1417, allocations: 322.8 kB / 0.6846 GB, free: 11.88 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.144e-05/0.1417, allocations: 7.984 kB / 0.6846 GB, free: 11.87 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 3.547e-05/0.1418, allocations: 16 kB / 0.6846 GB, free: 11.85 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 7.323e-05/0.1418, allocations: 32.78 kB / 0.6846 GB, free: 11.82 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.694e-06/0.1418, allocations: 0 / 0.6846 GB, free: 11.82 MB / 494.1 MB Notification: Performance of matching and sorting (n=2) (initialization): time 0.0001104/0.142, allocations: 53.67 kB / 0.6847 GB, free: 11.76 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.245e-05/0.142, allocations: 4 kB / 0.6847 GB, free: 11.75 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.697e-06/0.142, allocations: 0 / 0.6847 GB, free: 11.75 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.123e-05/0.142, allocations: 4 kB / 0.6847 GB, free: 11.75 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.424e-05/0.1421, allocations: 8.094 kB / 0.6847 GB, free: 11.74 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.068e-06/0.1421, allocations: 0 / 0.6847 GB, free: 11.74 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.082e-05/0.1421, allocations: 3.984 kB / 0.6847 GB, free: 11.74 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.809e-06/0.1421, allocations: 0 / 0.6847 GB, free: 11.74 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 (2): * Single equations (assignments): 2 * 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 5.849e-05/0.1422, allocations: 114.4 kB / 0.6848 GB, free: 11.62 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.596e-05/0.1422, allocations: 7.906 kB / 0.6848 GB, free: 11.61 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001471/0.1424, allocations: 65.14 kB / 0.6849 GB, free: 11.54 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.927e-06/0.1424, allocations: 0 / 0.6849 GB, free: 11.54 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.297e-06/0.1424, allocations: 7.969 kB / 0.6849 GB, free: 11.53 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.064e-06/0.1424, allocations: 0 / 0.6849 GB, free: 11.53 MB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001366/0.1425, allocations: 169.6 kB / 0.685 GB, free: 11.32 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.112e-06/0.1426, allocations: 0 / 0.685 GB, free: 11.32 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.008e-05/0.1426, allocations: 8 kB / 0.6851 GB, free: 11.31 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.703e-06/0.1426, allocations: 0 / 0.6851 GB, free: 11.31 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.861e-06/0.1426, allocations: 0 / 0.6851 GB, free: 11.31 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.112e-06/0.1426, allocations: 320 / 0.6851 GB, free: 11.31 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.82e-07/0.1426, allocations: 0 / 0.6851 GB, free: 11.31 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001433/0.1428, allocations: 159.4 kB / 0.6852 GB, free: 11.14 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.176e-05/0.1428, allocations: 81.02 kB / 0.6853 GB, free: 11.04 MB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.114e-05/0.1428, allocations: 0 / 0.6853 GB, free: 11.04 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.978e-05/0.1429, allocations: 4 kB / 0.6853 GB, free: 11.04 MB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.267e-05/0.1429, allocations: 7.984 kB / 0.6853 GB, free: 11.03 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.016e-06/0.1429, allocations: 0 / 0.6853 GB, free: 11.03 MB / 494.1 MB Notification: Performance of sorting global known variables: time 4.019e-05/0.143, allocations: 91.27 kB / 0.6854 GB, free: 10.94 MB / 494.1 MB Notification: Performance of sort global known variables: time 2.11e-07/0.143, allocations: 32 / 0.6854 GB, free: 10.94 MB / 494.1 MB Notification: Performance of remove unused functions: time 0.0002278/0.1432, allocations: 27.92 kB / 0.6854 GB, free: 10.91 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 (2): * Single equations (assignments): 2 * 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.0004336/0.1437, allocations: 0.6968 MB / 0.6861 GB, free: 10.19 MB / 494.1 MB Notification: Performance of simCode: created initialization part: time 0.0001223/0.1438, allocations: 28.02 kB / 0.6861 GB, free: 10.16 MB / 494.1 MB Notification: Performance of simCode: created event and clocks part: time 1.653e-06/0.1438, allocations: 0 / 0.6861 GB, free: 10.16 MB / 494.1 MB Notification: Performance of simCode: created simulation system equations: time 4.351e-05/0.1439, allocations: 15.92 kB / 0.6861 GB, free: 10.14 MB / 494.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001937/0.1441, allocations: 4 kB / 0.6861 GB, free: 10.14 MB / 494.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004001/0.1445, allocations: 160.3 kB / 0.6863 GB, free: 9.945 MB / 494.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002138/0.1447, allocations: 0.6885 MB / 0.687 GB, free: 9.23 MB / 494.1 MB Notification: Performance of simCode: alias equations: time 2.138e-05/0.1447, allocations: 0 / 0.687 GB, free: 9.23 MB / 494.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.924e-05/0.1448, allocations: 19.38 kB / 0.687 GB, free: 9.211 MB / 494.1 MB Notification: Performance of SimCode: time 2.2e-07/0.1448, allocations: 0 / 0.687 GB, free: 9.211 MB / 494.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01734/0.1621, allocations: 1.6 MB / 0.6885 GB, free: 7.688 MB / 494.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 6.967/7.129, allocations: 5.109 kB / 0.6885 GB, free: 7.684 MB / 494.1 MB (rm -f BuildingSystems_BuildingSystems.Utilities.Math.Examples.SmoothLimit.pipe ; mkfifo BuildingSystems_BuildingSystems.Utilities.Math.Examples.SmoothLimit.pipe ; head -c 1048576 < BuildingSystems_BuildingSystems.Utilities.Math.Examples.SmoothLimit.pipe >> ../files/BuildingSystems_BuildingSystems.Utilities.Math.Examples.SmoothLimit.sim & python3 -m fmpy simulate --output-file BuildingSystems_BuildingSystems.Utilities.Math.Examples.SmoothLimit_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_SmoothLimit.fmu > BuildingSystems_BuildingSystems.Utilities.Math.Examples.SmoothLimit.pipe 2>&1)