Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr BuildingSystems_BuildingSystems.Utilities.Math.Functions.Examples.SmoothHeavisideDerivatives.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.Functions.Examples.SmoothHeavisideDerivatives,fileNamePrefix="BuildingSystems_BuildingSystems_Utilities_Math_Functions_Examples_SmoothHeavisideDerivatives",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(BuildingSystems.Utilities.Math.Functions.Examples.SmoothHeavisideDerivatives,fileNamePrefix="BuildingSystems_BuildingSystems_Utilities_Math_Functions_Examples_SmoothHeavisideDerivatives",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.8133/0.8133, allocations: 143.3 MB / 158.3 MB, free: 5.789 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.001128/0.001128, allocations: 179.4 kB / 191.5 MB, free: 5.758 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.559/1.559, allocations: 223.2 MB / 447.7 MB, free: 4.82 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.00112/0.00112, allocations: 84.34 kB / 0.5187 GB, free: 1.18 MB / 410.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.001894/0.001894, allocations: 271.9 kB / 0.6005 GB, free: 48.77 MB / 410.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0006331/0.0006331, allocations: 20.59 kB / 0.6929 GB, free: 59.65 MB / 442.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1667/0.1673, allocations: 82.8 MB / 0.7738 GB, free: 13.75 MB / 458.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1423/0.3097, allocations: 108.5 MB / 0.8798 GB, free: 1.086 MB / 0.5417 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002587/0.31, allocations: 79.95 kB / 0.8799 GB, free: 1.008 MB / 0.5417 GB Notification: Performance of FrontEnd - DAE generated: time 0.002425/0.3125, allocations: 0.8866 MB / 0.8807 GB, free: 120 kB / 0.5417 GB Notification: Performance of FrontEnd: time 2.134e-06/0.3125, allocations: 0 / 0.8807 GB, free: 120 kB / 0.5417 GB Notification: Performance of Transformations before backend: time 4.849e-06/0.3125, allocations: 0 / 0.8807 GB, free: 120 kB / 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.3272/0.6397, allocations: 316 kB / 0.881 GB, free: 109 MB / 0.5417 GB Notification: Performance of prepare preOptimizeDAE: time 7.371e-05/0.6398, allocations: 7.875 kB / 0.881 GB, free: 109 MB / 0.5417 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.523e-05/0.6398, allocations: 32.77 kB / 0.8811 GB, free: 109 MB / 0.5417 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.143e-05/0.6399, allocations: 1.828 kB / 0.8811 GB, free: 109 MB / 0.5417 GB Notification: Performance of preOpt evaluateParameters (simulation): time 8.217e-05/0.64, allocations: 161.8 kB / 0.8812 GB, free: 108.8 MB / 0.5417 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.387e-05/0.64, allocations: 7.516 kB / 0.8812 GB, free: 108.8 MB / 0.5417 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.064e-05/0.64, allocations: 2.453 kB / 0.8812 GB, free: 108.8 MB / 0.5417 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001253/0.6402, allocations: 36.75 kB / 0.8813 GB, free: 108.7 MB / 0.5417 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.058e-05/0.6402, allocations: 3.188 kB / 0.8813 GB, free: 108.7 MB / 0.5417 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.486e-06/0.6402, allocations: 0.6875 kB / 0.8813 GB, free: 108.7 MB / 0.5417 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.221e-06/0.6402, allocations: 1.438 kB / 0.8813 GB, free: 108.7 MB / 0.5417 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.916e-05/0.6403, allocations: 7 kB / 0.8813 GB, free: 108.7 MB / 0.5417 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001496/0.6404, allocations: 151.6 kB / 0.8814 GB, free: 108.5 MB / 0.5417 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002345/0.6407, allocations: 40.91 kB / 0.8815 GB, free: 108.5 MB / 0.5417 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001604/0.6408, allocations: 82.56 kB / 0.8815 GB, free: 108.4 MB / 0.5417 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.288e-05/0.6409, allocations: 36.11 kB / 0.8816 GB, free: 108.4 MB / 0.5417 GB Notification: Performance of pre-optimization done (n=3): time 1.654e-06/0.6409, allocations: 0 / 0.8816 GB, free: 108.4 MB / 0.5417 GB Notification: Performance of matching and sorting (n=5): time 0.004227/0.6451, allocations: 0.5734 MB / 0.8821 GB, free: 108.3 MB / 0.5417 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.699e-05/0.6452, allocations: 58.31 kB / 0.8822 GB, free: 108.3 MB / 0.5417 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 1.732e-05/0.6452, allocations: 85 kB / 0.8823 GB, free: 108.2 MB / 0.5417 GB Notification: Performance of collectPreVariables (initialization): time 1.629e-05/0.6452, allocations: 29.7 kB / 0.8823 GB, free: 108.1 MB / 0.5417 GB Notification: Performance of collectInitialEqns (initialization): time 1.325e-05/0.6452, allocations: 80.14 kB / 0.8824 GB, free: 108 MB / 0.5417 GB Notification: Performance of collectInitialBindings (initialization): time 3.298e-05/0.6453, allocations: 17.03 kB / 0.8824 GB, free: 108 MB / 0.5417 GB Notification: Performance of simplifyInitialFunctions (initialization): time 9.638e-06/0.6453, allocations: 0 / 0.8824 GB, free: 108 MB / 0.5417 GB Notification: Performance of setup shared object (initialization): time 5.057e-05/0.6453, allocations: 310.8 kB / 0.8827 GB, free: 107.7 MB / 0.5417 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005763/0.6459, allocations: 90.47 kB / 0.8828 GB, free: 107.7 MB / 0.5417 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005711/0.6465, allocations: 101 kB / 0.8829 GB, free: 107.7 MB / 0.5417 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005652/0.6471, allocations: 80.22 kB / 0.8829 GB, free: 107.7 MB / 0.5417 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.595e-06/0.6471, allocations: 2.938 kB / 0.8829 GB, free: 107.7 MB / 0.5417 GB Notification: Performance of matching and sorting (n=5) (initialization): time 0.001202/0.6483, allocations: 218.9 kB / 0.8832 GB, free: 107.6 MB / 0.5417 GB Notification: Performance of prepare postOptimizeDAE: time 1.948e-05/0.6483, allocations: 5.5 kB / 0.8832 GB, free: 107.6 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.774e-06/0.6483, allocations: 0 / 0.8832 GB, free: 107.6 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.639e-05/0.6484, allocations: 7.953 kB / 0.8832 GB, free: 107.6 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003843/0.6487, allocations: 49.06 kB / 0.8832 GB, free: 107.6 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.031e-06/0.6488, allocations: 0 / 0.8832 GB, free: 107.6 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003263/0.6491, allocations: 41.91 kB / 0.8833 GB, free: 107.6 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.516e-05/0.6491, allocations: 3 kB / 0.8833 GB, free: 107.6 MB / 0.5417 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 3 * 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 (5): * Single equations (assignments): 5 * 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 7.177e-05/0.6492, allocations: 120.5 kB / 0.8834 GB, free: 107.5 MB / 0.5417 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.674e-05/0.6492, allocations: 3.953 kB / 0.8834 GB, free: 107.5 MB / 0.5417 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001277/0.6505, allocations: 237.1 kB / 0.8836 GB, free: 107.4 MB / 0.5417 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.386e-06/0.6505, allocations: 2.594 kB / 0.8836 GB, free: 107.4 MB / 0.5417 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.698e-06/0.6505, allocations: 0 / 0.8836 GB, free: 107.4 MB / 0.5417 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.785e-06/0.6505, allocations: 0 / 0.8836 GB, free: 107.4 MB / 0.5417 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001412/0.6519, allocations: 461.9 kB / 0.884 GB, free: 107.1 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.547e-06/0.652, allocations: 6.875 kB / 0.8841 GB, free: 107.1 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000356/0.6523, allocations: 42.56 kB / 0.8841 GB, free: 107.1 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.456e-06/0.6523, allocations: 4 kB / 0.8841 GB, free: 107.1 MB / 0.5417 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.716e-05/0.6524, allocations: 7.594 kB / 0.8841 GB, free: 107.1 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.557e-06/0.6524, allocations: 4.547 kB / 0.8841 GB, free: 107.1 MB / 0.5417 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.633e-06/0.6524, allocations: 0 / 0.8841 GB, free: 107.1 MB / 0.5417 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00115/0.6535, allocations: 298.8 kB / 0.8844 GB, free: 107 MB / 0.5417 GB Notification: Performance of postOpt removeConstants (simulation): time 2.036e-05/0.6536, allocations: 82.27 kB / 0.8845 GB, free: 106.9 MB / 0.5417 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.232e-05/0.6536, allocations: 2.781 kB / 0.8845 GB, free: 106.9 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003394/0.6539, allocations: 43.94 kB / 0.8845 GB, free: 106.9 MB / 0.5417 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.837e-05/0.654, allocations: 2.906 kB / 0.8845 GB, free: 106.9 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.21e-05/0.654, allocations: 6.438 kB / 0.8845 GB, free: 106.9 MB / 0.5417 GB Notification: Performance of sorting global known variables: time 1.425e-05/0.654, allocations: 78.95 kB / 0.8846 GB, free: 106.8 MB / 0.5417 GB Notification: Performance of sort global known variables: time 1e-07/0.654, allocations: 0 / 0.8846 GB, free: 106.8 MB / 0.5417 GB Notification: Performance of remove unused functions: time 0.0002438/0.6543, allocations: 12.45 kB / 0.8846 GB, free: 106.8 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 (5): * Single equations (assignments): 5 * 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.001447/0.6557, allocations: 0.8447 MB / 0.8854 GB, free: 106.1 MB / 0.5417 GB Notification: Performance of simCode: created initialization part: time 0.001103/0.6568, allocations: 180.5 kB / 0.8856 GB, free: 106.1 MB / 0.5417 GB Notification: Performance of simCode: created event and clocks part: time 3.456e-06/0.6568, allocations: 6.844 kB / 0.8856 GB, free: 106.1 MB / 0.5417 GB Notification: Performance of simCode: created simulation system equations: time 0.0005235/0.6574, allocations: 91.47 kB / 0.8857 GB, free: 106.1 MB / 0.5417 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001362/0.6575, allocations: 4.328 kB / 0.8857 GB, free: 106.1 MB / 0.5417 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001183/0.6587, allocations: 250 kB / 0.8859 GB, free: 105.9 MB / 0.5417 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001171/0.6588, allocations: 0.6793 MB / 0.8866 GB, free: 105.2 MB / 0.5417 GB Notification: Performance of simCode: alias equations: time 0.0002258/0.6591, allocations: 30.06 kB / 0.8866 GB, free: 105.2 MB / 0.5417 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.013e-05/0.6591, allocations: 14.31 kB / 0.8867 GB, free: 105.2 MB / 0.5417 GB Notification: Performance of SimCode: time 3.81e-07/0.6591, allocations: 0 / 0.8867 GB, free: 105.2 MB / 0.5417 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01755/0.6767, allocations: 1.433 MB / 0.8881 GB, free: 105.1 MB / 0.5417 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002691/0.677, allocations: 210.8 kB / 0.8883 GB, free: 104.8 MB / 0.5417 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.587/2.264, allocations: 0 / 0.8883 GB, free: 104.8 MB / 0.5417 GB (rm -f BuildingSystems_BuildingSystems.Utilities.Math.Functions.Examples.SmoothHeavisideDerivatives.pipe ; mkfifo BuildingSystems_BuildingSystems.Utilities.Math.Functions.Examples.SmoothHeavisideDerivatives.pipe ; head -c 1048576 < BuildingSystems_BuildingSystems.Utilities.Math.Functions.Examples.SmoothHeavisideDerivatives.pipe >> ../files/BuildingSystems_BuildingSystems.Utilities.Math.Functions.Examples.SmoothHeavisideDerivatives.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_BuildingSystems_BuildingSystems_Utilities_Math_Functions_Examples_SmoothHeavisideDerivatives_fmu --startTime=-1 --stopTime=1 --timeout=50 --tolerance=1e-06 BuildingSystems_BuildingSystems_Utilities_Math_Functions_Examples_SmoothHeavisideDerivatives.fmu > BuildingSystems_BuildingSystems.Utilities.Math.Functions.Examples.SmoothHeavisideDerivatives.pipe 2>&1)