Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr BuildingSystems_BuildingSystems.Utilities.Math.Examples.SmoothHeaviside.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/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/ModelicaServices 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) Using package NcDataReader2 with version 2.5.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/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) 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 BuildingSystems with version 2.0.0-beta (/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo) Running command: "" <> buildModelFMU(BuildingSystems.Utilities.Math.Examples.SmoothHeaviside,fileNamePrefix="BuildingSystems_BuildingSystems_Utilities_Math_Examples_SmoothHeaviside",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(BuildingSystems.Utilities.Math.Examples.SmoothHeaviside,fileNamePrefix="BuildingSystems_BuildingSystems_Utilities_Math_Examples_SmoothHeaviside",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.8268/0.8268, allocations: 143.3 MB / 158.3 MB, free: 5.812 MB / 122.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001362/0.001363, allocations: 179.1 kB / 191.5 MB, free: 5.766 MB / 154.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.528/1.528, allocations: 223.2 MB / 447.7 MB, free: 4.836 MB / 330.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001066/0.001066, allocations: 100.2 kB / 0.5187 GB, free: 1.203 MB / 410.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.001911/0.001911, allocations: 266.8 kB / 0.6005 GB, free: 48.74 MB / 410.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004611/0.0004612, allocations: 15.19 kB / 0.6929 GB, free: 59.66 MB / 442.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1895/0.19, allocations: 82.79 MB / 0.7738 GB, free: 13.75 MB / 458.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1614/0.3515, allocations: 109.1 MB / 0.8803 GB, free: 0.5508 MB / 0.5417 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002507/0.3518, allocations: 79.95 kB / 0.8804 GB, free: 484 kB / 0.5417 GB Notification: Performance of FrontEnd - DAE generated: time 0.3799/0.7317, allocations: 1.108 MB / 0.8814 GB, free: 109.3 MB / 0.5417 GB Notification: Performance of FrontEnd: time 1.893e-06/0.7318, allocations: 5.312 kB / 0.8814 GB, free: 109.3 MB / 0.5417 GB Notification: Performance of Transformations before backend: time 6.813e-06/0.7318, allocations: 0.875 kB / 0.8814 GB, free: 109.3 MB / 0.5417 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.0003498/0.7322, allocations: 351.1 kB / 0.8818 GB, free: 109 MB / 0.5417 GB Notification: Performance of prepare preOptimizeDAE: time 4.9e-05/0.7322, allocations: 9.469 kB / 0.8818 GB, free: 109 MB / 0.5417 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.113e-05/0.7322, allocations: 36.91 kB / 0.8818 GB, free: 108.9 MB / 0.5417 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.46e-05/0.7323, allocations: 6.906 kB / 0.8818 GB, free: 108.9 MB / 0.5417 GB Notification: Performance of preOpt evaluateParameters (simulation): time 8.692e-05/0.7324, allocations: 169.6 kB / 0.882 GB, free: 108.7 MB / 0.5417 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.908e-06/0.7324, allocations: 5.141 kB / 0.882 GB, free: 108.7 MB / 0.5417 GB Notification: Performance of preOpt expandDerOperator (simulation): time 9.347e-06/0.7324, allocations: 1.031 kB / 0.882 GB, free: 108.7 MB / 0.5417 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001749/0.7326, allocations: 55.28 kB / 0.882 GB, free: 108.7 MB / 0.5417 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.215e-06/0.7326, allocations: 1.219 kB / 0.882 GB, free: 108.7 MB / 0.5417 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.009e-05/0.7326, allocations: 3.469 kB / 0.8821 GB, free: 108.7 MB / 0.5417 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.948e-06/0.7326, allocations: 3.438 kB / 0.8821 GB, free: 108.7 MB / 0.5417 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000178/0.7328, allocations: 49.59 kB / 0.8821 GB, free: 108.7 MB / 0.5417 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003709/0.7332, allocations: 266.6 kB / 0.8824 GB, free: 108.4 MB / 0.5417 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001129/0.7333, allocations: 46.5 kB / 0.8824 GB, free: 108.4 MB / 0.5417 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001061/0.7334, allocations: 85.36 kB / 0.8825 GB, free: 108.3 MB / 0.5417 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.549e-05/0.7334, allocations: 35.25 kB / 0.8825 GB, free: 108.2 MB / 0.5417 GB Notification: Performance of pre-optimization done (n=2): time 1.252e-06/0.7335, allocations: 0 / 0.8825 GB, free: 108.2 MB / 0.5417 GB Notification: Performance of matching and sorting (n=2): time 0.000337/0.7338, allocations: 101.3 kB / 0.8826 GB, free: 108.2 MB / 0.5417 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.422e-05/0.7338, allocations: 51.41 kB / 0.8827 GB, free: 108.1 MB / 0.5417 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.008e-05/0.7339, allocations: 97.81 kB / 0.8828 GB, free: 108.1 MB / 0.5417 GB Notification: Performance of collectPreVariables (initialization): time 8.266e-06/0.7339, allocations: 25.7 kB / 0.8828 GB, free: 108 MB / 0.5417 GB Notification: Performance of collectInitialEqns (initialization): time 3.002e-05/0.7339, allocations: 87.17 kB / 0.8829 GB, free: 107.9 MB / 0.5417 GB Notification: Performance of collectInitialBindings (initialization): time 1.432e-05/0.734, allocations: 2.969 kB / 0.8829 GB, free: 107.9 MB / 0.5417 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.596e-06/0.734, allocations: 0 / 0.8829 GB, free: 107.9 MB / 0.5417 GB Notification: Performance of setup shared object (initialization): time 5.413e-05/0.734, allocations: 321.9 kB / 0.8832 GB, free: 107.6 MB / 0.5417 GB Notification: Performance of preBalanceInitialSystem (initialization): time 7.598e-05/0.7341, allocations: 16.83 kB / 0.8832 GB, free: 107.6 MB / 0.5417 GB Notification: Performance of partitionIndependentBlocks (initialization): time 6.412e-05/0.7342, allocations: 25.23 kB / 0.8832 GB, free: 107.6 MB / 0.5417 GB Notification: Performance of analyzeInitialSystem (initialization): time 7.454e-05/0.7343, allocations: 24.83 kB / 0.8832 GB, free: 107.6 MB / 0.5417 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.433e-06/0.7343, allocations: 0 / 0.8832 GB, free: 107.6 MB / 0.5417 GB Notification: Performance of matching and sorting (n=2) (initialization): time 0.0001691/0.7344, allocations: 86.66 kB / 0.8833 GB, free: 107.6 MB / 0.5417 GB Notification: Performance of prepare postOptimizeDAE: time 1.41e-05/0.7345, allocations: 3.938 kB / 0.8833 GB, free: 107.6 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.83e-06/0.7345, allocations: 4.531 kB / 0.8833 GB, free: 107.6 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.374e-05/0.7345, allocations: 0 / 0.8833 GB, free: 107.6 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.585e-05/0.7346, allocations: 15.38 kB / 0.8833 GB, free: 107.6 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.701e-06/0.7346, allocations: 0 / 0.8833 GB, free: 107.6 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.928e-05/0.7347, allocations: 12.8 kB / 0.8834 GB, free: 107.6 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.681e-06/0.7347, allocations: 0 / 0.8834 GB, free: 107.6 MB / 0.5417 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 5.817e-05/0.7347, allocations: 116.6 kB / 0.8835 GB, free: 107.5 MB / 0.5417 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.216e-05/0.7348, allocations: 6.406 kB / 0.8835 GB, free: 107.4 MB / 0.5417 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002099/0.735, allocations: 80.69 kB / 0.8835 GB, free: 107.4 MB / 0.5417 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.864e-06/0.735, allocations: 3.938 kB / 0.8836 GB, free: 107.4 MB / 0.5417 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.01e-06/0.735, allocations: 0 / 0.8836 GB, free: 107.4 MB / 0.5417 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.545e-06/0.735, allocations: 3.938 kB / 0.8836 GB, free: 107.4 MB / 0.5417 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001223/0.7351, allocations: 160.8 kB / 0.8837 GB, free: 107.2 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.274e-06/0.7351, allocations: 4.891 kB / 0.8837 GB, free: 107.2 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.68e-05/0.7352, allocations: 11.88 kB / 0.8837 GB, free: 107.2 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.693e-06/0.7352, allocations: 0 / 0.8837 GB, free: 107.2 MB / 0.5417 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.174e-06/0.7352, allocations: 0 / 0.8837 GB, free: 107.2 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.022e-06/0.7352, allocations: 2.625 kB / 0.8837 GB, free: 107.2 MB / 0.5417 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.31e-07/0.7352, allocations: 0 / 0.8837 GB, free: 107.2 MB / 0.5417 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002029/0.7354, allocations: 182.2 kB / 0.8839 GB, free: 107.1 MB / 0.5417 GB Notification: Performance of postOpt removeConstants (simulation): time 2.808e-05/0.7355, allocations: 82.19 kB / 0.884 GB, free: 107 MB / 0.5417 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.524e-05/0.7355, allocations: 6.75 kB / 0.884 GB, free: 107 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.696e-05/0.7356, allocations: 12.31 kB / 0.884 GB, free: 107 MB / 0.5417 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.144e-05/0.7356, allocations: 2.5 kB / 0.884 GB, free: 107 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.058e-06/0.7356, allocations: 3.281 kB / 0.884 GB, free: 107 MB / 0.5417 GB Notification: Performance of sorting global known variables: time 2.274e-05/0.7357, allocations: 82.28 kB / 0.8841 GB, free: 106.9 MB / 0.5417 GB Notification: Performance of sort global known variables: time 1.1e-07/0.7357, allocations: 0 / 0.8841 GB, free: 106.9 MB / 0.5417 GB Notification: Performance of remove unused functions: time 0.000211/0.7359, allocations: 12.34 kB / 0.8841 GB, free: 106.9 MB / 0.5417 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0004062/0.7363, allocations: 0.7128 MB / 0.8848 GB, free: 106.2 MB / 0.5417 GB Notification: Performance of simCode: created initialization part: time 0.000185/0.7365, allocations: 52.81 kB / 0.8848 GB, free: 106.2 MB / 0.5417 GB Notification: Performance of simCode: created event and clocks part: time 2.294e-06/0.7365, allocations: 0 / 0.8848 GB, free: 106.2 MB / 0.5417 GB Notification: Performance of simCode: created simulation system equations: time 7.784e-05/0.7366, allocations: 27.81 kB / 0.8849 GB, free: 106.2 MB / 0.5417 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001969/0.7368, allocations: 2.906 kB / 0.8849 GB, free: 106.2 MB / 0.5417 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003823/0.7372, allocations: 146.2 kB / 0.885 GB, free: 106.1 MB / 0.5417 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001245/0.7373, allocations: 0.6778 MB / 0.8857 GB, free: 105.4 MB / 0.5417 GB Notification: Performance of simCode: alias equations: time 2.519e-05/0.7374, allocations: 0 / 0.8857 GB, free: 105.4 MB / 0.5417 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.119e-05/0.7374, allocations: 13.78 kB / 0.8857 GB, free: 105.4 MB / 0.5417 GB Notification: Performance of SimCode: time 2.41e-07/0.7374, allocations: 0 / 0.8857 GB, free: 105.4 MB / 0.5417 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01151/0.7489, allocations: 1.154 MB / 0.8868 GB, free: 105.2 MB / 0.5417 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002/0.7492, allocations: 190.2 kB / 0.887 GB, free: 105 MB / 0.5417 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.54/2.289, allocations: 3.938 kB / 0.887 GB, free: 105 MB / 0.5417 GB (rm -f BuildingSystems_BuildingSystems.Utilities.Math.Examples.SmoothHeaviside.pipe ; mkfifo BuildingSystems_BuildingSystems.Utilities.Math.Examples.SmoothHeaviside.pipe ; head -c 1048576 < BuildingSystems_BuildingSystems.Utilities.Math.Examples.SmoothHeaviside.pipe >> ../files/BuildingSystems_BuildingSystems.Utilities.Math.Examples.SmoothHeaviside.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_BuildingSystems_BuildingSystems_Utilities_Math_Examples_SmoothHeaviside_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 BuildingSystems_BuildingSystems_Utilities_Math_Examples_SmoothHeaviside.fmu > BuildingSystems_BuildingSystems.Utilities.Math.Examples.SmoothHeaviside.pipe 2>&1)