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.007751/0.007751, allocations: 96.44 kB / 15.73 MB, free: 6.055 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.002179/0.002179, allocations: 195.4 kB / 16.68 MB, free: 5.977 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.466/1.466, allocations: 222.9 MB / 240.4 MB, free: 4.309 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.00273/0.00273, allocations: 286.7 kB / 290.8 MB, free: 1.91 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 1.042/1.042, allocations: 169.3 MB / 0.4983 GB, free: 13.82 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.003188/0.003188, allocations: 103.9 kB / 0.681 GB, free: 15.98 MB / 494.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1886/0.1918, allocations: 86.97 MB / 0.7659 GB, free: 8.941 MB / 0.5606 GB Notification: Performance of NFInst.instantiate(BuildingSystems.Utilities.Math.Examples.SmoothHeaviside): time 0.003077/0.1949, allocations: 1.439 MB / 0.7673 GB, free: 7.492 MB / 0.5606 GB Notification: Performance of NFInst.instExpressions: time 0.0009502/0.1959, allocations: 459.7 kB / 0.7677 GB, free: 7.035 MB / 0.5606 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.483e-05/0.196, allocations: 8 kB / 0.7678 GB, free: 7.027 MB / 0.5606 GB Notification: Performance of NFTyping.typeComponents: time 3.668e-05/0.196, allocations: 7.922 kB / 0.7678 GB, free: 7.02 MB / 0.5606 GB Notification: Performance of NFTyping.typeBindings: time 7.585e-05/0.1961, allocations: 0 / 0.7678 GB, free: 7.02 MB / 0.5606 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003115/0.1965, allocations: 31.84 kB / 0.7678 GB, free: 6.988 MB / 0.5606 GB Notification: Performance of NFFlatten.flatten: time 9.688e-05/0.1966, allocations: 23.92 kB / 0.7678 GB, free: 6.965 MB / 0.5606 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001186/0.1967, allocations: 4 kB / 0.7678 GB, free: 6.961 MB / 0.5606 GB Notification: Performance of NFEvalConstants.evaluate: time 9.546e-05/0.1968, allocations: 8 kB / 0.7678 GB, free: 6.953 MB / 0.5606 GB Notification: Performance of NFSimplifyModel.simplify: time 6.204e-05/0.1969, allocations: 15.92 kB / 0.7678 GB, free: 6.938 MB / 0.5606 GB Notification: Performance of NFPackage.collectConstants: time 1.393e-05/0.1969, allocations: 0 / 0.7678 GB, free: 6.938 MB / 0.5606 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001068/0.197, allocations: 27.92 kB / 0.7679 GB, free: 6.91 MB / 0.5606 GB Notification: Performance of NFScalarize.scalarize: time 2.431e-05/0.197, allocations: 11.97 kB / 0.7679 GB, free: 6.898 MB / 0.5606 GB Notification: Performance of NFVerifyModel.verify: time 3.18e-05/0.1971, allocations: 7.938 kB / 0.7679 GB, free: 6.891 MB / 0.5606 GB Notification: Performance of NFConvertDAE.convert: time 0.0001666/0.1972, allocations: 32.12 kB / 0.7679 GB, free: 6.859 MB / 0.5606 GB Notification: Performance of FrontEnd - DAE generated: time 5.5e-06/0.1973, allocations: 0 / 0.7679 GB, free: 6.859 MB / 0.5606 GB Notification: Performance of FrontEnd: time 2.766e-06/0.1973, allocations: 0 / 0.7679 GB, free: 6.859 MB / 0.5606 GB Notification: Performance of Transformations before backend: time 7.915e-06/0.1973, allocations: 0 / 0.7679 GB, free: 6.859 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.0006949/0.198, allocations: 347.4 kB / 0.7683 GB, free: 6.473 MB / 0.5606 GB Notification: Performance of prepare preOptimizeDAE: time 5.763e-05/0.198, allocations: 8.031 kB / 0.7683 GB, free: 6.465 MB / 0.5606 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.408e-05/0.1981, allocations: 38.75 kB / 0.7683 GB, free: 6.418 MB / 0.5606 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.571e-05/0.1982, allocations: 4.938 kB / 0.7683 GB, free: 6.414 MB / 0.5606 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002336/0.1984, allocations: 168.3 kB / 0.7685 GB, free: 6.211 MB / 0.5606 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.035e-05/0.1984, allocations: 4.359 kB / 0.7685 GB, free: 6.207 MB / 0.5606 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.12e-05/0.1984, allocations: 384 / 0.7685 GB, free: 6.207 MB / 0.5606 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000257/0.1987, allocations: 61.67 kB / 0.7685 GB, free: 6.141 MB / 0.5606 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.161e-05/0.1987, allocations: 0 / 0.7685 GB, free: 6.141 MB / 0.5606 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.256e-05/0.1988, allocations: 0 / 0.7685 GB, free: 6.141 MB / 0.5606 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.709e-06/0.1988, allocations: 4 kB / 0.7685 GB, free: 6.137 MB / 0.5606 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001752/0.1989, allocations: 35.95 kB / 0.7686 GB, free: 6.102 MB / 0.5606 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005257/0.1995, allocations: 248.9 kB / 0.7688 GB, free: 5.809 MB / 0.5606 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001657/0.1997, allocations: 46.48 kB / 0.7688 GB, free: 5.754 MB / 0.5606 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001051/0.1998, allocations: 21.42 kB / 0.7689 GB, free: 5.73 MB / 0.5606 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001986/0.2, allocations: 85.11 kB / 0.7689 GB, free: 5.629 MB / 0.5606 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.34e-05/0.2, allocations: 34.55 kB / 0.769 GB, free: 5.586 MB / 0.5606 GB Notification: Performance of pre-optimization done (n=2): time 1.072e-06/0.2, allocations: 0 / 0.769 GB, free: 5.586 MB / 0.5606 GB Notification: Performance of matching and sorting (n=2): time 0.0004183/0.2005, allocations: 77.66 kB / 0.7691 GB, free: 5.504 MB / 0.5606 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.52e-05/0.2005, allocations: 51.41 kB / 0.7691 GB, free: 5.441 MB / 0.5606 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001206/0.2007, allocations: 110 kB / 0.7692 GB, free: 5.324 MB / 0.5606 GB Notification: Performance of collectPreVariables (initialization): time 2.733e-05/0.2007, allocations: 29.64 kB / 0.7692 GB, free: 5.289 MB / 0.5606 GB Notification: Performance of collectInitialEqns (initialization): time 6.334e-05/0.2008, allocations: 84.09 kB / 0.7693 GB, free: 5.203 MB / 0.5606 GB Notification: Performance of collectInitialBindings (initialization): time 2.557e-05/0.2008, allocations: 11.94 kB / 0.7693 GB, free: 5.191 MB / 0.5606 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.807e-05/0.2008, allocations: 13.7 kB / 0.7693 GB, free: 5.172 MB / 0.5606 GB Notification: Performance of setup shared object (initialization): time 0.0001652/0.201, allocations: 314.8 kB / 0.7696 GB, free: 4.855 MB / 0.5606 GB Notification: Performance of preBalanceInitialSystem (initialization): time 8.553e-05/0.2011, allocations: 19.98 kB / 0.7697 GB, free: 4.836 MB / 0.5606 GB Notification: Performance of partitionIndependentBlocks (initialization): time 7.177e-05/0.2012, allocations: 15.98 kB / 0.7697 GB, free: 4.82 MB / 0.5606 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001699/0.2014, allocations: 44.81 kB / 0.7697 GB, free: 4.773 MB / 0.5606 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.004e-06/0.2014, allocations: 3.938 kB / 0.7697 GB, free: 4.77 MB / 0.5606 GB Notification: Performance of matching and sorting (n=2) (initialization): time 0.0002025/0.2016, allocations: 65.62 kB / 0.7698 GB, free: 4.699 MB / 0.5606 GB Notification: Performance of prepare postOptimizeDAE: time 2.159e-05/0.2016, allocations: 7.984 kB / 0.7698 GB, free: 4.691 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.073e-06/0.2016, allocations: 4.094 kB / 0.7698 GB, free: 4.688 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.722e-05/0.2016, allocations: 0 / 0.7698 GB, free: 4.688 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.435e-05/0.2017, allocations: 11.94 kB / 0.7698 GB, free: 4.676 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.302e-06/0.2018, allocations: 0 / 0.7698 GB, free: 4.676 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.206e-05/0.2018, allocations: 7.984 kB / 0.7698 GB, free: 4.668 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.05e-06/0.2018, allocations: 0 / 0.7698 GB, free: 4.668 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 0.0001236/0.202, allocations: 114.4 kB / 0.7699 GB, free: 4.547 MB / 0.5606 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.599e-05/0.202, allocations: 4 kB / 0.7699 GB, free: 4.543 MB / 0.5606 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002451/0.2022, allocations: 72.77 kB / 0.77 GB, free: 4.469 MB / 0.5606 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.303e-06/0.2023, allocations: 4 kB / 0.77 GB, free: 4.465 MB / 0.5606 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.011e-06/0.2023, allocations: 3.938 kB / 0.77 GB, free: 4.461 MB / 0.5606 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.038e-06/0.2023, allocations: 256 / 0.77 GB, free: 4.461 MB / 0.5606 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002826/0.2026, allocations: 157.6 kB / 0.7702 GB, free: 4.258 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.346e-06/0.2026, allocations: 4 kB / 0.7702 GB, free: 4.254 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.363e-05/0.2026, allocations: 11.98 kB / 0.7702 GB, free: 4.242 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.31e-06/0.2027, allocations: 0 / 0.7702 GB, free: 4.242 MB / 0.5606 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.221e-05/0.2027, allocations: 11.97 kB / 0.7702 GB, free: 4.23 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.064e-06/0.2027, allocations: 0 / 0.7702 GB, free: 4.23 MB / 0.5606 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.052e-06/0.2027, allocations: 0 / 0.7702 GB, free: 4.23 MB / 0.5606 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002713/0.203, allocations: 163.4 kB / 0.7703 GB, free: 4.055 MB / 0.5606 GB Notification: Performance of postOpt removeConstants (simulation): time 5.576e-05/0.203, allocations: 77.11 kB / 0.7704 GB, free: 3.961 MB / 0.5606 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.711e-05/0.2031, allocations: 4 kB / 0.7704 GB, free: 3.957 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.412e-05/0.2032, allocations: 12.02 kB / 0.7704 GB, free: 3.945 MB / 0.5606 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.885e-05/0.2032, allocations: 4 kB / 0.7704 GB, free: 3.941 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.266e-06/0.2032, allocations: 0 / 0.7704 GB, free: 3.941 MB / 0.5606 GB Notification: Performance of sorting global known variables: time 5.344e-05/0.2033, allocations: 83.27 kB / 0.7705 GB, free: 3.859 MB / 0.5606 GB Notification: Performance of sort global known variables: time 1.31e-07/0.2033, allocations: 0 / 0.7705 GB, free: 3.859 MB / 0.5606 GB Notification: Performance of remove unused functions: time 0.0003118/0.2036, allocations: 8 kB / 0.7705 GB, free: 3.852 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.0006379/0.2042, allocations: 0.7006 MB / 0.7712 GB, free: 3.121 MB / 0.5606 GB Notification: Performance of simCode: created initialization part: time 0.000213/0.2045, allocations: 43.95 kB / 0.7712 GB, free: 3.078 MB / 0.5606 GB Notification: Performance of simCode: created event and clocks part: time 2.425e-06/0.2045, allocations: 0 / 0.7712 GB, free: 3.078 MB / 0.5606 GB Notification: Performance of simCode: created simulation system equations: time 8.48e-05/0.2046, allocations: 20.08 kB / 0.7713 GB, free: 3.059 MB / 0.5606 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003824/0.205, allocations: 10.19 kB / 0.7713 GB, free: 3.051 MB / 0.5606 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005081/0.2055, allocations: 139 kB / 0.7714 GB, free: 2.871 MB / 0.5606 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003067/0.2058, allocations: 0.6807 MB / 0.7721 GB, free: 2.164 MB / 0.5606 GB Notification: Performance of simCode: alias equations: time 2.72e-05/0.2058, allocations: 0 / 0.7721 GB, free: 2.164 MB / 0.5606 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.578e-05/0.2059, allocations: 11.42 kB / 0.7721 GB, free: 2.152 MB / 0.5606 GB Notification: Performance of SimCode: time 6.52e-07/0.2059, allocations: 0 / 0.7721 GB, free: 2.152 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0237/0.2296, allocations: 1.438 MB / 0.7735 GB, free: 0.8164 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate platform static: time 8.041/8.271, allocations: 14.45 kB / 0.7735 GB, free: 0.8047 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)