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/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.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/ModelicaServices 4.0.0+maint.om/package.mo): time 0.004897/0.004897, allocations: 100.2 kB / 15.73 MB, free: 6.031 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.001141/0.001141, allocations: 187.7 kB / 16.67 MB, free: 5.965 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.273/1.273, allocations: 222.9 MB / 240.4 MB, free: 4.16 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002128/0.002128, allocations: 294.9 kB / 290.8 MB, free: 1.746 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.9092/0.9092, allocations: 169.3 MB / 0.4983 GB, free: 13.79 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001792/0.001792, allocations: 92.09 kB / 0.681 GB, free: 15.95 MB / 494.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1801/0.1819, allocations: 86.99 MB / 0.7659 GB, free: 8.891 MB / 0.5606 GB Notification: Performance of NFInst.instantiate(BuildingSystems.Utilities.Math.Examples.SmoothHeaviside): time 0.002728/0.1847, allocations: 1.447 MB / 0.7673 GB, free: 7.434 MB / 0.5606 GB Notification: Performance of NFInst.instExpressions: time 0.0008579/0.1855, allocations: 455.8 kB / 0.7678 GB, free: 6.98 MB / 0.5606 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.7e-05/0.1856, allocations: 0 / 0.7678 GB, free: 6.98 MB / 0.5606 GB Notification: Performance of NFTyping.typeComponents: time 2.852e-05/0.1856, allocations: 3.938 kB / 0.7678 GB, free: 6.977 MB / 0.5606 GB Notification: Performance of NFTyping.typeBindings: time 6.42e-05/0.1857, allocations: 7.922 kB / 0.7678 GB, free: 6.969 MB / 0.5606 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002054/0.1859, allocations: 23.97 kB / 0.7678 GB, free: 6.945 MB / 0.5606 GB Notification: Performance of NFFlatten.flatten: time 7.153e-05/0.186, allocations: 27.92 kB / 0.7678 GB, free: 6.918 MB / 0.5606 GB Notification: Performance of NFFlatten.resolveConnections: time 8.74e-05/0.1861, allocations: 4 kB / 0.7678 GB, free: 6.914 MB / 0.5606 GB Notification: Performance of NFEvalConstants.evaluate: time 6.095e-05/0.1862, allocations: 7.938 kB / 0.7678 GB, free: 6.906 MB / 0.5606 GB Notification: Performance of NFSimplifyModel.simplify: time 4.221e-05/0.1862, allocations: 15.92 kB / 0.7678 GB, free: 6.891 MB / 0.5606 GB Notification: Performance of NFPackage.collectConstants: time 1.349e-05/0.1863, allocations: 4 kB / 0.7679 GB, free: 6.887 MB / 0.5606 GB Notification: Performance of NFFlatten.collectFunctions: time 7.161e-05/0.1863, allocations: 15.98 kB / 0.7679 GB, free: 6.871 MB / 0.5606 GB Notification: Performance of NFScalarize.scalarize: time 1.382e-05/0.1863, allocations: 7.984 kB / 0.7679 GB, free: 6.863 MB / 0.5606 GB Notification: Performance of NFVerifyModel.verify: time 2.714e-05/0.1864, allocations: 15.92 kB / 0.7679 GB, free: 6.848 MB / 0.5606 GB Notification: Performance of NFConvertDAE.convert: time 0.0001173/0.1865, allocations: 36.12 kB / 0.7679 GB, free: 6.812 MB / 0.5606 GB Notification: Performance of FrontEnd - DAE generated: time 3.747e-06/0.1865, allocations: 0 / 0.7679 GB, free: 6.812 MB / 0.5606 GB Notification: Performance of FrontEnd: time 1.463e-06/0.1865, allocations: 7.938 kB / 0.7679 GB, free: 6.805 MB / 0.5606 GB Notification: Performance of Transformations before backend: time 8.706e-06/0.1865, allocations: 0 / 0.7679 GB, free: 6.805 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.0005098/0.1871, allocations: 337.4 kB / 0.7683 GB, free: 6.43 MB / 0.5606 GB Notification: Performance of prepare preOptimizeDAE: time 3.694e-05/0.1871, allocations: 15.97 kB / 0.7683 GB, free: 6.414 MB / 0.5606 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.613e-05/0.1871, allocations: 38.73 kB / 0.7683 GB, free: 6.367 MB / 0.5606 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.582e-05/0.1872, allocations: 8.844 kB / 0.7683 GB, free: 6.359 MB / 0.5606 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001122/0.1873, allocations: 164.4 kB / 0.7685 GB, free: 6.16 MB / 0.5606 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.478e-06/0.1873, allocations: 4.375 kB / 0.7685 GB, free: 6.156 MB / 0.5606 GB Notification: Performance of preOpt expandDerOperator (simulation): time 7.835e-06/0.1873, allocations: 384 / 0.7685 GB, free: 6.156 MB / 0.5606 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001936/0.1875, allocations: 53.8 kB / 0.7685 GB, free: 6.098 MB / 0.5606 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.006e-05/0.1875, allocations: 3.938 kB / 0.7685 GB, free: 6.094 MB / 0.5606 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.435e-05/0.1875, allocations: 0 / 0.7685 GB, free: 6.094 MB / 0.5606 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.644e-06/0.1876, allocations: 0 / 0.7685 GB, free: 6.094 MB / 0.5606 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001753/0.1877, allocations: 35.95 kB / 0.7686 GB, free: 6.059 MB / 0.5606 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003586/0.1881, allocations: 256.8 kB / 0.7688 GB, free: 5.758 MB / 0.5606 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001189/0.1882, allocations: 34.56 kB / 0.7688 GB, free: 5.715 MB / 0.5606 GB Notification: Performance of preOpt resolveLoops (simulation): time 8.395e-05/0.1883, allocations: 29.41 kB / 0.7689 GB, free: 5.684 MB / 0.5606 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001324/0.1885, allocations: 85.09 kB / 0.769 GB, free: 5.582 MB / 0.5606 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.121e-05/0.1885, allocations: 30.56 kB / 0.769 GB, free: 5.543 MB / 0.5606 GB Notification: Performance of pre-optimization done (n=2): time 1.292e-06/0.1885, allocations: 4 kB / 0.769 GB, free: 5.539 MB / 0.5606 GB Notification: Performance of matching and sorting (n=2): time 0.0003401/0.1888, allocations: 85.58 kB / 0.7691 GB, free: 5.449 MB / 0.5606 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.036e-05/0.1889, allocations: 51.41 kB / 0.7691 GB, free: 5.387 MB / 0.5606 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.502e-05/0.189, allocations: 105.8 kB / 0.7692 GB, free: 5.273 MB / 0.5606 GB Notification: Performance of collectPreVariables (initialization): time 1.509e-05/0.189, allocations: 25.7 kB / 0.7692 GB, free: 5.242 MB / 0.5606 GB Notification: Performance of collectInitialEqns (initialization): time 5.571e-05/0.1891, allocations: 88.17 kB / 0.7693 GB, free: 5.152 MB / 0.5606 GB Notification: Performance of collectInitialBindings (initialization): time 1.651e-05/0.1891, allocations: 4 kB / 0.7693 GB, free: 5.148 MB / 0.5606 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.579e-05/0.1891, allocations: 13.72 kB / 0.7693 GB, free: 5.129 MB / 0.5606 GB Notification: Performance of setup shared object (initialization): time 0.0001222/0.1893, allocations: 322.8 kB / 0.7696 GB, free: 4.805 MB / 0.5606 GB Notification: Performance of preBalanceInitialSystem (initialization): time 7.566e-05/0.1893, allocations: 11.98 kB / 0.7697 GB, free: 4.793 MB / 0.5606 GB Notification: Performance of partitionIndependentBlocks (initialization): time 6.641e-05/0.1894, allocations: 19.98 kB / 0.7697 GB, free: 4.773 MB / 0.5606 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001408/0.1896, allocations: 44.88 kB / 0.7697 GB, free: 4.727 MB / 0.5606 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.683e-06/0.1896, allocations: 0 / 0.7697 GB, free: 4.727 MB / 0.5606 GB Notification: Performance of matching and sorting (n=2) (initialization): time 0.0001877/0.1898, allocations: 65.52 kB / 0.7698 GB, free: 4.656 MB / 0.5606 GB Notification: Performance of prepare postOptimizeDAE: time 1.713e-05/0.1898, allocations: 8 kB / 0.7698 GB, free: 4.648 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.571e-06/0.1898, allocations: 0 / 0.7698 GB, free: 4.648 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.37e-05/0.1898, allocations: 0 / 0.7698 GB, free: 4.648 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.874e-05/0.1899, allocations: 7.984 kB / 0.7698 GB, free: 4.641 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.221e-06/0.1899, allocations: 8.031 kB / 0.7698 GB, free: 4.633 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.672e-05/0.19, allocations: 7.984 kB / 0.7698 GB, free: 4.625 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.14e-06/0.19, allocations: 0 / 0.7698 GB, free: 4.625 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.834e-05/0.1901, allocations: 114.4 kB / 0.7699 GB, free: 4.504 MB / 0.5606 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.574e-05/0.1901, allocations: 7.984 kB / 0.7699 GB, free: 4.496 MB / 0.5606 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002275/0.1903, allocations: 72.66 kB / 0.77 GB, free: 4.422 MB / 0.5606 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.465e-06/0.1903, allocations: 4.031 kB / 0.77 GB, free: 4.418 MB / 0.5606 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.534e-06/0.1904, allocations: 0 / 0.77 GB, free: 4.418 MB / 0.5606 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.932e-06/0.1904, allocations: 7.922 kB / 0.77 GB, free: 4.41 MB / 0.5606 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001786/0.1905, allocations: 165.6 kB / 0.7702 GB, free: 4.199 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.483e-06/0.1906, allocations: 256 / 0.7702 GB, free: 4.199 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.783e-05/0.1906, allocations: 11.98 kB / 0.7702 GB, free: 4.188 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.816e-06/0.1906, allocations: 0 / 0.7702 GB, free: 4.188 MB / 0.5606 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.397e-06/0.1906, allocations: 4 kB / 0.7702 GB, free: 4.184 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.784e-06/0.1906, allocations: 0 / 0.7702 GB, free: 4.184 MB / 0.5606 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.02e-07/0.1907, allocations: 0 / 0.7702 GB, free: 4.184 MB / 0.5606 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000231/0.1909, allocations: 167.4 kB / 0.7703 GB, free: 4.004 MB / 0.5606 GB Notification: Performance of postOpt removeConstants (simulation): time 4.496e-05/0.1909, allocations: 77.11 kB / 0.7704 GB, free: 3.91 MB / 0.5606 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.631e-05/0.191, allocations: 4 kB / 0.7704 GB, free: 3.906 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.025e-05/0.191, allocations: 11.92 kB / 0.7704 GB, free: 3.895 MB / 0.5606 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.669e-05/0.1911, allocations: 4 kB / 0.7704 GB, free: 3.891 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.606e-06/0.1911, allocations: 0 / 0.7704 GB, free: 3.891 MB / 0.5606 GB Notification: Performance of sorting global known variables: time 4.178e-05/0.1911, allocations: 87.3 kB / 0.7705 GB, free: 3.805 MB / 0.5606 GB Notification: Performance of sort global known variables: time 2.11e-07/0.1911, allocations: 0 / 0.7705 GB, free: 3.805 MB / 0.5606 GB Notification: Performance of remove unused functions: time 0.0002265/0.1914, allocations: 8 kB / 0.7705 GB, free: 3.797 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.0006454/0.192, allocations: 0.6968 MB / 0.7712 GB, free: 3.07 MB / 0.5606 GB Notification: Performance of simCode: created initialization part: time 0.0002267/0.1923, allocations: 43.89 kB / 0.7713 GB, free: 3.027 MB / 0.5606 GB Notification: Performance of simCode: created event and clocks part: time 3.116e-06/0.1923, allocations: 0 / 0.7713 GB, free: 3.027 MB / 0.5606 GB Notification: Performance of simCode: created simulation system equations: time 9.015e-05/0.1924, allocations: 15.98 kB / 0.7713 GB, free: 3.012 MB / 0.5606 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003597/0.1927, allocations: 4 kB / 0.7713 GB, free: 3.008 MB / 0.5606 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005558/0.1933, allocations: 143.3 kB / 0.7714 GB, free: 2.824 MB / 0.5606 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003541/0.1937, allocations: 0.6768 MB / 0.7721 GB, free: 2.121 MB / 0.5606 GB Notification: Performance of simCode: alias equations: time 3.047e-05/0.1937, allocations: 0 / 0.7721 GB, free: 2.121 MB / 0.5606 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.474e-05/0.1938, allocations: 15.44 kB / 0.7721 GB, free: 2.105 MB / 0.5606 GB Notification: Performance of SimCode: time 2.1e-07/0.1938, allocations: 0 / 0.7721 GB, free: 2.105 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01733/0.2111, allocations: 1.448 MB / 0.7735 GB, free: 0.7578 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate platform static: time 6.971/7.182, allocations: 16.06 kB / 0.7735 GB, free: 0.7461 MB / 0.5606 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/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)