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.004642/0.004642, allocations: 101.7 kB / 15.73 MB, free: 6.012 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.001163/0.001163, allocations: 195.2 kB / 16.67 MB, free: 5.949 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.259/1.259, allocations: 222.9 MB / 240.4 MB, free: 4.316 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002058/0.002058, allocations: 282.5 kB / 290.8 MB, free: 1.914 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.8916/0.8916, allocations: 169.3 MB / 0.4983 GB, free: 13.79 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001973/0.001973, allocations: 99.84 kB / 0.681 GB, free: 15.95 MB / 494.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1719/0.1738, allocations: 86.98 MB / 0.7659 GB, free: 8.887 MB / 0.5606 GB Notification: Performance of NFInst.instantiate(BuildingSystems.Utilities.Math.Functions.Examples.SmoothHeavisideDerivatives): time 0.00177/0.1757, allocations: 0.5838 MB / 0.7665 GB, free: 8.305 MB / 0.5606 GB Notification: Performance of NFInst.instExpressions: time 0.00141/0.1771, allocations: 1.108 MB / 0.7676 GB, free: 7.18 MB / 0.5606 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.142e-05/0.1771, allocations: 4 kB / 0.7676 GB, free: 7.176 MB / 0.5606 GB Notification: Performance of NFTyping.typeComponents: time 1.692e-05/0.1772, allocations: 0 / 0.7676 GB, free: 7.176 MB / 0.5606 GB Notification: Performance of NFTyping.typeBindings: time 0.00026/0.1775, allocations: 11.94 kB / 0.7676 GB, free: 7.164 MB / 0.5606 GB Notification: Performance of NFTyping.typeClassSections: time 3.948e-06/0.1775, allocations: 0 / 0.7676 GB, free: 7.164 MB / 0.5606 GB Notification: Performance of NFFlatten.flatten: time 4.835e-05/0.1775, allocations: 11.92 kB / 0.7676 GB, free: 7.152 MB / 0.5606 GB Notification: Performance of NFFlatten.resolveConnections: time 4.84e-05/0.1776, allocations: 3.984 kB / 0.7676 GB, free: 7.148 MB / 0.5606 GB Notification: Performance of NFEvalConstants.evaluate: time 1.48e-05/0.1776, allocations: 3.938 kB / 0.7676 GB, free: 7.145 MB / 0.5606 GB Notification: Performance of NFSimplifyModel.simplify: time 2.224e-05/0.1776, allocations: 4 kB / 0.7676 GB, free: 7.141 MB / 0.5606 GB Notification: Performance of NFPackage.collectConstants: time 7.734e-06/0.1776, allocations: 0 / 0.7676 GB, free: 7.141 MB / 0.5606 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001147/0.1778, allocations: 19.98 kB / 0.7677 GB, free: 7.121 MB / 0.5606 GB Notification: Performance of NFScalarize.scalarize: time 8.586e-06/0.1778, allocations: 4 kB / 0.7677 GB, free: 7.117 MB / 0.5606 GB Notification: Performance of NFVerifyModel.verify: time 1.752e-05/0.1778, allocations: 3.938 kB / 0.7677 GB, free: 7.113 MB / 0.5606 GB Notification: Performance of NFConvertDAE.convert: time 8.221e-05/0.1779, allocations: 23.91 kB / 0.7677 GB, free: 7.09 MB / 0.5606 GB Notification: Performance of FrontEnd - DAE generated: time 4.459e-06/0.1779, allocations: 0 / 0.7677 GB, free: 7.09 MB / 0.5606 GB Notification: Performance of FrontEnd: time 1.522e-06/0.1779, allocations: 0 / 0.7677 GB, free: 7.09 MB / 0.5606 GB Notification: Performance of Transformations before backend: time 5.26e-06/0.1779, allocations: 0 / 0.7677 GB, free: 7.09 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.0002734/0.1782, allocations: 315.9 kB / 0.768 GB, free: 6.734 MB / 0.5606 GB Notification: Performance of prepare preOptimizeDAE: time 4.068e-05/0.1782, allocations: 8.031 kB / 0.768 GB, free: 6.727 MB / 0.5606 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.725e-05/0.1783, allocations: 34.75 kB / 0.768 GB, free: 6.684 MB / 0.5606 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.782e-05/0.1783, allocations: 8.844 kB / 0.768 GB, free: 6.676 MB / 0.5606 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001084/0.1784, allocations: 172.3 kB / 0.7682 GB, free: 6.469 MB / 0.5606 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.085e-05/0.1784, allocations: 384 / 0.7682 GB, free: 6.469 MB / 0.5606 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.354e-05/0.1785, allocations: 384 / 0.7682 GB, free: 6.469 MB / 0.5606 GB Notification: Performance of preOpt clockPartitioning (simulation): time 9.933e-05/0.1786, allocations: 37.83 kB / 0.7682 GB, free: 6.426 MB / 0.5606 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.006e-05/0.1786, allocations: 7.938 kB / 0.7682 GB, free: 6.418 MB / 0.5606 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.817e-06/0.1786, allocations: 0 / 0.7682 GB, free: 6.418 MB / 0.5606 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.658e-06/0.1786, allocations: 0 / 0.7682 GB, free: 6.418 MB / 0.5606 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.325e-05/0.1787, allocations: 15.91 kB / 0.7683 GB, free: 6.402 MB / 0.5606 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001603/0.1788, allocations: 153.7 kB / 0.7684 GB, free: 6.203 MB / 0.5606 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000186/0.179, allocations: 34.61 kB / 0.7684 GB, free: 6.16 MB / 0.5606 GB Notification: Performance of preOpt resolveLoops (simulation): time 1.77e-05/0.1791, allocations: 8.797 kB / 0.7684 GB, free: 6.148 MB / 0.5606 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001461/0.1792, allocations: 85.19 kB / 0.7685 GB, free: 6.047 MB / 0.5606 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.35e-05/0.1792, allocations: 34.5 kB / 0.7686 GB, free: 6.004 MB / 0.5606 GB Notification: Performance of pre-optimization done (n=3): time 1.032e-06/0.1792, allocations: 0 / 0.7686 GB, free: 6.004 MB / 0.5606 GB Notification: Performance of matching and sorting (n=5): time 0.00402/0.1833, allocations: 0.5716 MB / 0.7691 GB, free: 5.426 MB / 0.5606 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.496e-05/0.1833, allocations: 55.34 kB / 0.7692 GB, free: 5.359 MB / 0.5606 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 3.957e-05/0.1834, allocations: 89.86 kB / 0.7693 GB, free: 5.262 MB / 0.5606 GB Notification: Performance of collectPreVariables (initialization): time 2.151e-05/0.1834, allocations: 29.7 kB / 0.7693 GB, free: 5.227 MB / 0.5606 GB Notification: Performance of collectInitialEqns (initialization): time 3.222e-05/0.1834, allocations: 80.14 kB / 0.7694 GB, free: 5.145 MB / 0.5606 GB Notification: Performance of collectInitialBindings (initialization): time 5.257e-05/0.1835, allocations: 23.64 kB / 0.7694 GB, free: 5.121 MB / 0.5606 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.417e-05/0.1836, allocations: 17.72 kB / 0.7694 GB, free: 5.098 MB / 0.5606 GB Notification: Performance of setup shared object (initialization): time 0.0001066/0.1837, allocations: 314.8 kB / 0.7697 GB, free: 4.781 MB / 0.5606 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005543/0.1842, allocations: 83.95 kB / 0.7698 GB, free: 4.699 MB / 0.5606 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005513/0.1848, allocations: 102.5 kB / 0.7699 GB, free: 4.59 MB / 0.5606 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001072/0.1859, allocations: 194.4 kB / 0.7701 GB, free: 4.391 MB / 0.5606 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.113e-06/0.1859, allocations: 0 / 0.7701 GB, free: 4.391 MB / 0.5606 GB Notification: Performance of matching and sorting (n=5) (initialization): time 0.001129/0.187, allocations: 213.5 kB / 0.7703 GB, free: 4.176 MB / 0.5606 GB Notification: Performance of prepare postOptimizeDAE: time 1.567e-05/0.187, allocations: 4 kB / 0.7703 GB, free: 4.172 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.05e-06/0.1871, allocations: 0 / 0.7703 GB, free: 4.172 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.363e-05/0.1871, allocations: 4.031 kB / 0.7703 GB, free: 4.168 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003656/0.1874, allocations: 51.97 kB / 0.7703 GB, free: 4.117 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.784e-06/0.1875, allocations: 7.984 kB / 0.7703 GB, free: 4.109 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003042/0.1878, allocations: 35.98 kB / 0.7704 GB, free: 4.074 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.383e-05/0.1878, allocations: 8 kB / 0.7704 GB, free: 4.066 MB / 0.5606 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 7.855e-05/0.1879, allocations: 106.5 kB / 0.7705 GB, free: 3.953 MB / 0.5606 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.985e-05/0.1879, allocations: 3.938 kB / 0.7705 GB, free: 3.949 MB / 0.5606 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001216/0.1891, allocations: 245 kB / 0.7707 GB, free: 3.707 MB / 0.5606 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.607e-06/0.1891, allocations: 0 / 0.7707 GB, free: 3.707 MB / 0.5606 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.598e-06/0.1892, allocations: 4 kB / 0.7707 GB, free: 3.703 MB / 0.5606 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.276e-06/0.1892, allocations: 0 / 0.7707 GB, free: 3.703 MB / 0.5606 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001419/0.1906, allocations: 462.6 kB / 0.7712 GB, free: 3.195 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.314e-06/0.1906, allocations: 0 / 0.7712 GB, free: 3.195 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003532/0.191, allocations: 51.97 kB / 0.7712 GB, free: 3.145 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.078e-06/0.191, allocations: 0 / 0.7712 GB, free: 3.145 MB / 0.5606 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.406e-05/0.191, allocations: 0 / 0.7712 GB, free: 3.145 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.997e-06/0.191, allocations: 0 / 0.7712 GB, free: 3.145 MB / 0.5606 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.352e-06/0.191, allocations: 7.875 kB / 0.7712 GB, free: 3.137 MB / 0.5606 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001191/0.1922, allocations: 311.3 kB / 0.7715 GB, free: 2.816 MB / 0.5606 GB Notification: Performance of postOpt removeConstants (simulation): time 3.351e-05/0.1922, allocations: 77.11 kB / 0.7716 GB, free: 2.723 MB / 0.5606 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.506e-05/0.1923, allocations: 4 kB / 0.7716 GB, free: 2.719 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003399/0.1926, allocations: 43.97 kB / 0.7716 GB, free: 2.676 MB / 0.5606 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.995e-05/0.1927, allocations: 0 / 0.7716 GB, free: 2.676 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.03e-05/0.1927, allocations: 7.938 kB / 0.7716 GB, free: 2.668 MB / 0.5606 GB Notification: Performance of sorting global known variables: time 3.601e-05/0.1927, allocations: 75.28 kB / 0.7717 GB, free: 2.594 MB / 0.5606 GB Notification: Performance of sort global known variables: time 1.2e-07/0.1927, allocations: 0 / 0.7717 GB, free: 2.594 MB / 0.5606 GB Notification: Performance of remove unused functions: time 0.0002481/0.193, allocations: 12 kB / 0.7717 GB, free: 2.582 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 (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.001507/0.1945, allocations: 0.8452 MB / 0.7725 GB, free: 1.707 MB / 0.5606 GB Notification: Performance of simCode: created initialization part: time 0.001172/0.1957, allocations: 179.9 kB / 0.7727 GB, free: 1.531 MB / 0.5606 GB Notification: Performance of simCode: created event and clocks part: time 3.186e-06/0.1957, allocations: 0 / 0.7727 GB, free: 1.531 MB / 0.5606 GB Notification: Performance of simCode: created simulation system equations: time 0.0005369/0.1962, allocations: 88.08 kB / 0.7728 GB, free: 1.445 MB / 0.5606 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002347/0.1965, allocations: 8 kB / 0.7728 GB, free: 1.438 MB / 0.5606 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001259/0.1977, allocations: 243.2 kB / 0.773 GB, free: 1.16 MB / 0.5606 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002307/0.198, allocations: 0.6771 MB / 0.7737 GB, free: 468 kB / 0.5606 GB Notification: Performance of simCode: alias equations: time 0.0001614/0.1982, allocations: 31.98 kB / 0.7737 GB, free: 436 kB / 0.5606 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.409e-05/0.1982, allocations: 11.44 kB / 0.7737 GB, free: 424 kB / 0.5606 GB Notification: Performance of SimCode: time 3.3e-07/0.1982, allocations: 0 / 0.7737 GB, free: 424 kB / 0.5606 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.342/0.5402, allocations: 1.647 MB / 0.7754 GB, free: 14.52 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate platform static: time 6.993/7.534, allocations: 10.23 kB / 0.7754 GB, free: 14.52 MB / 0.5606 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/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)