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/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.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/ModelicaServices 4.0.0+maint.om/package.mo): time 0.000927/0.000927, allocations: 111.3 kB / 15.23 MB, free: 0.6406 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.0008835/0.0008834, allocations: 196.4 kB / 16.14 MB, free: 6.707 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.188/1.188, allocations: 222.9 MB / 239.8 MB, free: 4.613 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.001876/0.001876, allocations: 282.8 kB / 290.2 MB, free: 2.219 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.8483/0.8483, allocations: 169.2 MB / 0.4977 GB, free: 14.16 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001645/0.001645, allocations: 103.4 kB / 0.5946 GB, free: 28.39 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1858/0.1874, allocations: 86.98 MB / 0.6796 GB, free: 1.051 MB / 478.1 MB Notification: Performance of NFInst.instantiate(BuildingSystems.Utilities.Math.Functions.Examples.SmoothHeavisideDerivatives): time 0.001801/0.1893, allocations: 0.6325 MB / 0.6802 GB, free: 436 kB / 478.1 MB Notification: Performance of NFInst.instExpressions: time 0.001358/0.1906, allocations: 1.103 MB / 0.6813 GB, free: 15.31 MB / 494.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.37e-05/0.1907, allocations: 0 / 0.6813 GB, free: 15.31 MB / 494.1 MB Notification: Performance of NFTyping.typeComponents: time 1.704e-05/0.1907, allocations: 0 / 0.6813 GB, free: 15.31 MB / 494.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002157/0.1909, allocations: 19.92 kB / 0.6813 GB, free: 15.29 MB / 494.1 MB Notification: Performance of NFTyping.typeClassSections: time 2.505e-06/0.1909, allocations: 0 / 0.6813 GB, free: 15.29 MB / 494.1 MB Notification: Performance of NFFlatten.flatten: time 3.578e-05/0.191, allocations: 4.656 kB / 0.6813 GB, free: 15.29 MB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.111e-05/0.191, allocations: 4.859 kB / 0.6813 GB, free: 15.28 MB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.348e-05/0.191, allocations: 0 / 0.6813 GB, free: 15.28 MB / 494.1 MB Notification: Performance of NFSimplifyModel.simplify: time 2.18e-05/0.1911, allocations: 3.938 kB / 0.6813 GB, free: 15.28 MB / 494.1 MB Notification: Performance of NFPackage.collectConstants: time 8.015e-06/0.1911, allocations: 0.9375 kB / 0.6813 GB, free: 15.28 MB / 494.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001034/0.1912, allocations: 31.91 kB / 0.6813 GB, free: 15.25 MB / 494.1 MB Notification: Performance of NFScalarize.scalarize: time 5.52e-06/0.1912, allocations: 0.5312 kB / 0.6813 GB, free: 15.25 MB / 494.1 MB Notification: Performance of NFVerifyModel.verify: time 1.444e-05/0.1912, allocations: 0 / 0.6813 GB, free: 15.25 MB / 494.1 MB Notification: Performance of NFConvertDAE.convert: time 7.399e-05/0.1913, allocations: 20.98 kB / 0.6813 GB, free: 15.23 MB / 494.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.528e-06/0.1913, allocations: 0 / 0.6813 GB, free: 15.23 MB / 494.1 MB Notification: Performance of FrontEnd: time 7.61e-07/0.1913, allocations: 0 / 0.6813 GB, free: 15.23 MB / 494.1 MB Notification: Performance of Transformations before backend: time 3.697e-06/0.1913, allocations: 4 kB / 0.6813 GB, free: 15.22 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.0002854/0.1916, allocations: 323.9 kB / 0.6817 GB, free: 14.86 MB / 494.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.697e-05/0.1917, allocations: 8.031 kB / 0.6817 GB, free: 14.85 MB / 494.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.561e-05/0.1917, allocations: 34.75 kB / 0.6817 GB, free: 14.81 MB / 494.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.218e-05/0.1917, allocations: 0.9375 kB / 0.6817 GB, free: 14.81 MB / 494.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001178/0.1918, allocations: 168.3 kB / 0.6819 GB, free: 14.61 MB / 494.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.487e-05/0.1919, allocations: 4.375 kB / 0.6819 GB, free: 14.6 MB / 494.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.196e-05/0.1919, allocations: 4.312 kB / 0.6819 GB, free: 14.6 MB / 494.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 9.233e-05/0.192, allocations: 41.81 kB / 0.6819 GB, free: 14.55 MB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.358e-06/0.192, allocations: 4 kB / 0.6819 GB, free: 14.55 MB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.304e-06/0.192, allocations: 0 / 0.6819 GB, free: 14.55 MB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.948e-06/0.192, allocations: 0 / 0.6819 GB, free: 14.55 MB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.617e-05/0.1921, allocations: 4 kB / 0.6819 GB, free: 14.54 MB / 494.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001377/0.1922, allocations: 153.7 kB / 0.6821 GB, free: 14.34 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001723/0.1924, allocations: 38.55 kB / 0.6821 GB, free: 14.3 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 2.278e-05/0.1924, allocations: 12.86 kB / 0.6821 GB, free: 14.28 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001467/0.1926, allocations: 89.19 kB / 0.6822 GB, free: 14.18 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.193e-05/0.1926, allocations: 34.5 kB / 0.6822 GB, free: 14.13 MB / 494.1 MB Notification: Performance of pre-optimization done (n=3): time 1.022e-06/0.1926, allocations: 0 / 0.6822 GB, free: 14.13 MB / 494.1 MB Notification: Performance of matching and sorting (n=5): time 0.004128/0.1967, allocations: 0.568 MB / 0.6828 GB, free: 13.56 MB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.907e-05/0.1968, allocations: 51.41 kB / 0.6828 GB, free: 13.5 MB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.237e-05/0.1969, allocations: 89.86 kB / 0.6829 GB, free: 13.4 MB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 2.339e-05/0.1969, allocations: 25.7 kB / 0.6829 GB, free: 13.37 MB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.03e-05/0.1969, allocations: 84.14 kB / 0.683 GB, free: 13.28 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.33e-05/0.197, allocations: 15.81 kB / 0.683 GB, free: 13.27 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.454e-05/0.1971, allocations: 21.7 kB / 0.6831 GB, free: 13.24 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 0.0001219/0.1972, allocations: 310.8 kB / 0.6834 GB, free: 12.93 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005896/0.1978, allocations: 87.95 kB / 0.6834 GB, free: 12.84 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000575/0.1984, allocations: 94.53 kB / 0.6835 GB, free: 12.74 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001087/0.1995, allocations: 194.4 kB / 0.6837 GB, free: 12.54 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.735e-06/0.1995, allocations: 4 kB / 0.6837 GB, free: 12.54 MB / 494.1 MB Notification: Performance of matching and sorting (n=5) (initialization): time 0.001161/0.2006, allocations: 217.4 kB / 0.6839 GB, free: 12.32 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.763e-05/0.2007, allocations: 4 kB / 0.6839 GB, free: 12.31 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.46e-06/0.2007, allocations: 4.062 kB / 0.6839 GB, free: 12.31 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.28e-05/0.2007, allocations: 4 kB / 0.6839 GB, free: 12.3 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000369/0.2011, allocations: 47.97 kB / 0.684 GB, free: 12.26 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.272e-06/0.2011, allocations: 0 / 0.684 GB, free: 12.26 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003281/0.2014, allocations: 47.97 kB / 0.684 GB, free: 12.21 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.115e-05/0.2014, allocations: 7.984 kB / 0.684 GB, free: 12.2 MB / 494.1 MB 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 9.698e-05/0.2016, allocations: 119 kB / 0.6842 GB, free: 12.08 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.922e-05/0.2016, allocations: 3.938 kB / 0.6842 GB, free: 12.07 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001308/0.2029, allocations: 237.1 kB / 0.6844 GB, free: 11.84 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.126e-06/0.2029, allocations: 0 / 0.6844 GB, free: 11.84 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.091e-06/0.2029, allocations: 4 kB / 0.6844 GB, free: 11.83 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.048e-06/0.2029, allocations: 256 / 0.6844 GB, free: 11.83 MB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001457/0.2044, allocations: 462.3 kB / 0.6848 GB, free: 11.32 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.944e-06/0.2044, allocations: 0 / 0.6848 GB, free: 11.32 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003628/0.2048, allocations: 51.97 kB / 0.6849 GB, free: 11.27 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.835e-06/0.2048, allocations: 0 / 0.6849 GB, free: 11.27 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.663e-05/0.2048, allocations: 3.984 kB / 0.6849 GB, free: 11.27 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.064e-06/0.2048, allocations: 0 / 0.6849 GB, free: 11.27 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.503e-06/0.2048, allocations: 0 / 0.6849 GB, free: 11.27 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001252/0.2061, allocations: 311.3 kB / 0.6852 GB, free: 10.95 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.345e-05/0.2061, allocations: 77.11 kB / 0.6852 GB, free: 10.86 MB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.461e-05/0.2062, allocations: 0 / 0.6852 GB, free: 10.86 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003585/0.2065, allocations: 43.98 kB / 0.6853 GB, free: 10.81 MB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.883e-05/0.2065, allocations: 3.984 kB / 0.6853 GB, free: 10.81 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.258e-05/0.2066, allocations: 4 kB / 0.6853 GB, free: 10.8 MB / 494.1 MB Notification: Performance of sorting global known variables: time 3.167e-05/0.2066, allocations: 75.28 kB / 0.6854 GB, free: 10.73 MB / 494.1 MB Notification: Performance of sort global known variables: time 1.11e-07/0.2066, allocations: 0 / 0.6854 GB, free: 10.73 MB / 494.1 MB Notification: Performance of remove unused functions: time 0.0002578/0.2069, allocations: 8 kB / 0.6854 GB, free: 10.72 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 (5): * Single equations (assignments): 5 * 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.001608/0.2085, allocations: 0.8412 MB / 0.6862 GB, free: 9.852 MB / 494.1 MB Notification: Performance of simCode: created initialization part: time 0.00126/0.2098, allocations: 179.9 kB / 0.6864 GB, free: 9.676 MB / 494.1 MB Notification: Performance of simCode: created event and clocks part: time 6.492e-06/0.2098, allocations: 4.188 kB / 0.6864 GB, free: 9.672 MB / 494.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005815/0.2104, allocations: 91.89 kB / 0.6865 GB, free: 9.582 MB / 494.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002231/0.2106, allocations: 0 / 0.6865 GB, free: 9.582 MB / 494.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001585/0.2122, allocations: 267 kB / 0.6867 GB, free: 9.285 MB / 494.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003489/0.2126, allocations: 0.6731 MB / 0.6874 GB, free: 8.586 MB / 494.1 MB Notification: Performance of simCode: alias equations: time 0.0002271/0.2128, allocations: 31.98 kB / 0.6874 GB, free: 8.555 MB / 494.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.957e-05/0.2129, allocations: 11.42 kB / 0.6874 GB, free: 8.543 MB / 494.1 MB Notification: Performance of SimCode: time 1.9e-07/0.2129, allocations: 0 / 0.6874 GB, free: 8.543 MB / 494.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02107/0.234, allocations: 1.509 MB / 0.6889 GB, free: 7.191 MB / 494.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002257/0.2342, allocations: 234.6 kB / 0.6891 GB, free: 6.941 MB / 494.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.658/1.892, allocations: 0 / 0.6891 GB, free: 6.941 MB / 494.1 MB (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/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)