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.004718/0.004718, allocations: 103.7 kB / 15.73 MB, free: 6.043 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.001164/0.001164, allocations: 197.3 kB / 16.67 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.265/1.265, allocations: 222.9 MB / 240.4 MB, free: 4.176 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002139/0.002139, allocations: 282.4 kB / 290.8 MB, free: 1.777 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.9177/0.9177, allocations: 169.2 MB / 0.4983 GB, free: 13.84 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001844/0.001844, allocations: 91.84 kB / 0.681 GB, free: 12 kB / 478.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1696/0.1714, allocations: 86.98 MB / 0.7659 GB, free: 8.953 MB / 0.5606 GB Notification: Performance of NFInst.instantiate(BuildingSystems.Utilities.Math.Examples.SmoothLimit): time 0.002921/0.1744, allocations: 1.46 MB / 0.7673 GB, free: 7.484 MB / 0.5606 GB Notification: Performance of NFInst.instExpressions: time 0.001043/0.1755, allocations: 0.5507 MB / 0.7679 GB, free: 6.926 MB / 0.5606 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.865e-05/0.1755, allocations: 0 / 0.7679 GB, free: 6.926 MB / 0.5606 GB Notification: Performance of NFTyping.typeComponents: time 3.197e-05/0.1756, allocations: 7.938 kB / 0.7679 GB, free: 6.918 MB / 0.5606 GB Notification: Performance of NFTyping.typeBindings: time 4.374e-05/0.1756, allocations: 3.938 kB / 0.7679 GB, free: 6.914 MB / 0.5606 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002998/0.176, allocations: 51.81 kB / 0.7679 GB, free: 6.863 MB / 0.5606 GB Notification: Performance of NFFlatten.flatten: time 7.461e-05/0.176, allocations: 35.86 kB / 0.768 GB, free: 6.828 MB / 0.5606 GB Notification: Performance of NFFlatten.resolveConnections: time 9.745e-05/0.1761, allocations: 4.281 kB / 0.768 GB, free: 6.824 MB / 0.5606 GB Notification: Performance of NFEvalConstants.evaluate: time 9.661e-05/0.1762, allocations: 15.97 kB / 0.768 GB, free: 6.809 MB / 0.5606 GB Notification: Performance of NFSimplifyModel.simplify: time 5.65e-05/0.1763, allocations: 7.938 kB / 0.768 GB, free: 6.801 MB / 0.5606 GB Notification: Performance of NFPackage.collectConstants: time 1.578e-05/0.1763, allocations: 4 kB / 0.768 GB, free: 6.797 MB / 0.5606 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001246/0.1765, allocations: 55.95 kB / 0.7681 GB, free: 6.742 MB / 0.5606 GB Notification: Performance of NFScalarize.scalarize: time 1.538e-05/0.1765, allocations: 7.938 kB / 0.7681 GB, free: 6.734 MB / 0.5606 GB Notification: Performance of NFVerifyModel.verify: time 2.848e-05/0.1765, allocations: 15.91 kB / 0.7681 GB, free: 6.719 MB / 0.5606 GB Notification: Performance of NFConvertDAE.convert: time 0.0001534/0.1767, allocations: 67.8 kB / 0.7681 GB, free: 6.652 MB / 0.5606 GB Notification: Performance of FrontEnd - DAE generated: time 3.697e-06/0.1767, allocations: 0 / 0.7681 GB, free: 6.652 MB / 0.5606 GB Notification: Performance of FrontEnd: time 1.613e-06/0.1767, allocations: 0 / 0.7681 GB, free: 6.652 MB / 0.5606 GB Notification: Performance of Transformations before backend: time 5.259e-06/0.1767, allocations: 3.938 kB / 0.7681 GB, free: 6.648 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: 3 * Number of variables: 3 Notification: Performance of Generate backend data structure: time 0.0004641/0.1772, allocations: 351.4 kB / 0.7685 GB, free: 6.258 MB / 0.5606 GB Notification: Performance of prepare preOptimizeDAE: time 4.172e-05/0.1772, allocations: 11.97 kB / 0.7685 GB, free: 6.246 MB / 0.5606 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.512e-05/0.1773, allocations: 34.75 kB / 0.7685 GB, free: 6.203 MB / 0.5606 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.051e-05/0.1773, allocations: 4.938 kB / 0.7685 GB, free: 6.199 MB / 0.5606 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001292/0.1774, allocations: 168.2 kB / 0.7687 GB, free: 5.996 MB / 0.5606 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.426e-05/0.1775, allocations: 4.375 kB / 0.7687 GB, free: 5.992 MB / 0.5606 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.53e-05/0.1775, allocations: 4.375 kB / 0.7687 GB, free: 5.988 MB / 0.5606 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001445/0.1776, allocations: 49.75 kB / 0.7687 GB, free: 5.934 MB / 0.5606 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.618e-06/0.1776, allocations: 3.984 kB / 0.7687 GB, free: 5.93 MB / 0.5606 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.496e-06/0.1777, allocations: 0 / 0.7687 GB, free: 5.93 MB / 0.5606 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.564e-06/0.1777, allocations: 0 / 0.7687 GB, free: 5.93 MB / 0.5606 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 8.97e-05/0.1778, allocations: 27.98 kB / 0.7688 GB, free: 5.902 MB / 0.5606 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003415/0.1781, allocations: 248.9 kB / 0.769 GB, free: 5.609 MB / 0.5606 GB Notification: Performance of preOpt comSubExp (simulation): time 9.371e-05/0.1782, allocations: 34.56 kB / 0.769 GB, free: 5.566 MB / 0.5606 GB Notification: Performance of preOpt resolveLoops (simulation): time 4.851e-05/0.1783, allocations: 20.91 kB / 0.7691 GB, free: 5.543 MB / 0.5606 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0007816/0.1791, allocations: 477.4 kB / 0.7695 GB, free: 4.984 MB / 0.5606 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.328e-05/0.1791, allocations: 30.56 kB / 0.7695 GB, free: 4.945 MB / 0.5606 GB Notification: Performance of pre-optimization done (n=2): time 1.132e-06/0.1791, allocations: 0 / 0.7695 GB, free: 4.945 MB / 0.5606 GB Notification: Performance of matching and sorting (n=2): time 0.00024/0.1793, allocations: 69.61 kB / 0.7696 GB, free: 4.871 MB / 0.5606 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.383e-05/0.1794, allocations: 55.53 kB / 0.7697 GB, free: 4.805 MB / 0.5606 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.75e-05/0.1795, allocations: 105.8 kB / 0.7698 GB, free: 4.691 MB / 0.5606 GB Notification: Performance of collectPreVariables (initialization): time 1.565e-05/0.1795, allocations: 29.7 kB / 0.7698 GB, free: 4.656 MB / 0.5606 GB Notification: Performance of collectInitialEqns (initialization): time 4.685e-05/0.1796, allocations: 88.05 kB / 0.7699 GB, free: 4.566 MB / 0.5606 GB Notification: Performance of collectInitialBindings (initialization): time 1.825e-05/0.1796, allocations: 3.984 kB / 0.7699 GB, free: 4.562 MB / 0.5606 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.281e-05/0.1796, allocations: 17.72 kB / 0.7699 GB, free: 4.539 MB / 0.5606 GB Notification: Performance of setup shared object (initialization): time 9.516e-05/0.1797, allocations: 314.8 kB / 0.7702 GB, free: 4.223 MB / 0.5606 GB Notification: Performance of preBalanceInitialSystem (initialization): time 4.312e-05/0.1798, allocations: 15.98 kB / 0.7702 GB, free: 4.207 MB / 0.5606 GB Notification: Performance of partitionIndependentBlocks (initialization): time 3.112e-05/0.1798, allocations: 8 kB / 0.7702 GB, free: 4.199 MB / 0.5606 GB Notification: Performance of analyzeInitialSystem (initialization): time 7.766e-05/0.1799, allocations: 24.84 kB / 0.7702 GB, free: 4.172 MB / 0.5606 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.573e-06/0.1799, allocations: 0 / 0.7702 GB, free: 4.172 MB / 0.5606 GB Notification: Performance of matching and sorting (n=2) (initialization): time 0.0001194/0.18, allocations: 61.52 kB / 0.7703 GB, free: 4.105 MB / 0.5606 GB Notification: Performance of prepare postOptimizeDAE: time 1.366e-05/0.18, allocations: 8 kB / 0.7703 GB, free: 4.098 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.238e-06/0.18, allocations: 0 / 0.7703 GB, free: 4.098 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.216e-05/0.1801, allocations: 0 / 0.7703 GB, free: 4.098 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.674e-05/0.1801, allocations: 8.094 kB / 0.7703 GB, free: 4.09 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.779e-06/0.1801, allocations: 0 / 0.7703 GB, free: 4.09 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.448e-05/0.1802, allocations: 8 kB / 0.7703 GB, free: 4.082 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.923e-06/0.1802, allocations: 3.984 kB / 0.7703 GB, free: 4.078 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 (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 7.497e-05/0.1803, allocations: 110.4 kB / 0.7704 GB, free: 3.961 MB / 0.5606 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.562e-05/0.1803, allocations: 4 kB / 0.7704 GB, free: 3.957 MB / 0.5606 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001568/0.1805, allocations: 65.14 kB / 0.7705 GB, free: 3.887 MB / 0.5606 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.605e-06/0.1805, allocations: 7.969 kB / 0.7705 GB, free: 3.879 MB / 0.5606 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.592e-06/0.1805, allocations: 0 / 0.7705 GB, free: 3.879 MB / 0.5606 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.066e-06/0.1805, allocations: 3.938 kB / 0.7705 GB, free: 3.875 MB / 0.5606 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001649/0.1807, allocations: 165.6 kB / 0.7707 GB, free: 3.664 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.985e-06/0.1807, allocations: 3.984 kB / 0.7707 GB, free: 3.66 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.192e-05/0.1807, allocations: 4 kB / 0.7707 GB, free: 3.656 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.324e-06/0.1807, allocations: 0 / 0.7707 GB, free: 3.656 MB / 0.5606 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.001e-06/0.1807, allocations: 0 / 0.7707 GB, free: 3.656 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.293e-06/0.1808, allocations: 0 / 0.7707 GB, free: 3.656 MB / 0.5606 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.72e-07/0.1808, allocations: 4 kB / 0.7707 GB, free: 3.652 MB / 0.5606 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001638/0.1809, allocations: 159.4 kB / 0.7708 GB, free: 3.48 MB / 0.5606 GB Notification: Performance of postOpt removeConstants (simulation): time 3.517e-05/0.181, allocations: 81.05 kB / 0.7709 GB, free: 3.383 MB / 0.5606 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.414e-05/0.181, allocations: 7.938 kB / 0.7709 GB, free: 3.375 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.636e-05/0.1811, allocations: 0 / 0.7709 GB, free: 3.375 MB / 0.5606 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.838e-05/0.1811, allocations: 3.984 kB / 0.7709 GB, free: 3.371 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.027e-06/0.1811, allocations: 8 kB / 0.7709 GB, free: 3.363 MB / 0.5606 GB Notification: Performance of sorting global known variables: time 4.105e-05/0.1811, allocations: 83.59 kB / 0.771 GB, free: 3.281 MB / 0.5606 GB Notification: Performance of sort global known variables: time 2.11e-07/0.1812, allocations: 4.031 kB / 0.771 GB, free: 3.277 MB / 0.5606 GB Notification: Performance of remove unused functions: time 0.0002221/0.1814, allocations: 16 kB / 0.771 GB, free: 3.262 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 (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.0004676/0.1818, allocations: 0.6967 MB / 0.7717 GB, free: 2.539 MB / 0.5606 GB Notification: Performance of simCode: created initialization part: time 0.0001382/0.182, allocations: 31.95 kB / 0.7717 GB, free: 2.508 MB / 0.5606 GB Notification: Performance of simCode: created event and clocks part: time 1.894e-06/0.182, allocations: 0 / 0.7717 GB, free: 2.508 MB / 0.5606 GB Notification: Performance of simCode: created simulation system equations: time 4.678e-05/0.1821, allocations: 15.98 kB / 0.7718 GB, free: 2.492 MB / 0.5606 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000197/0.1823, allocations: 0 / 0.7718 GB, free: 2.492 MB / 0.5606 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004342/0.1827, allocations: 156.4 kB / 0.7719 GB, free: 2.297 MB / 0.5606 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002297/0.1829, allocations: 0.6768 MB / 0.7726 GB, free: 1.594 MB / 0.5606 GB Notification: Performance of simCode: alias equations: time 2.949e-05/0.183, allocations: 12.34 kB / 0.7726 GB, free: 1.582 MB / 0.5606 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.162e-05/0.183, allocations: 15.42 kB / 0.7726 GB, free: 1.566 MB / 0.5606 GB Notification: Performance of SimCode: time 3.01e-07/0.183, allocations: 3.938 kB / 0.7726 GB, free: 1.562 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01806/0.2011, allocations: 1.624 MB / 0.7742 GB, free: 36 kB / 0.5606 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.181/7.382, allocations: 14.2 kB / 0.7742 GB, free: 28 kB / 0.5606 GB (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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_BuildingSystems_BuildingSystems_Utilities_Math_Examples_SmoothLimit_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 BuildingSystems_BuildingSystems_Utilities_Math_Examples_SmoothLimit.fmu > BuildingSystems_BuildingSystems.Utilities.Math.Examples.SmoothLimit.pipe 2>&1)