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.00556/0.00556, allocations: 96.53 kB / 15.73 MB, free: 6.043 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.00134/0.00134, allocations: 196.6 kB / 16.67 MB, free: 5.969 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.404/1.404, allocations: 222.9 MB / 240.4 MB, free: 4.32 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002815/0.002816, allocations: 283.1 kB / 290.8 MB, free: 1.918 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 1.036/1.036, allocations: 169.3 MB / 0.4983 GB, free: 13.8 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002677/0.002677, allocations: 96.38 kB / 0.681 GB, free: 15.98 MB / 494.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.189/0.1917, allocations: 86.97 MB / 0.7659 GB, free: 8.938 MB / 0.5606 GB Notification: Performance of NFInst.instantiate(BuildingSystems.Utilities.Math.Examples.SmoothHeaviside): time 0.002757/0.1945, allocations: 1.434 MB / 0.7673 GB, free: 7.496 MB / 0.5606 GB Notification: Performance of NFInst.instExpressions: time 0.0007971/0.1953, allocations: 467.8 kB / 0.7678 GB, free: 7.031 MB / 0.5606 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.965e-05/0.1953, allocations: 0 / 0.7678 GB, free: 7.031 MB / 0.5606 GB Notification: Performance of NFTyping.typeComponents: time 2.826e-05/0.1954, allocations: 3.938 kB / 0.7678 GB, free: 7.027 MB / 0.5606 GB Notification: Performance of NFTyping.typeBindings: time 6.943e-05/0.1955, allocations: 11.91 kB / 0.7678 GB, free: 7.016 MB / 0.5606 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002136/0.1957, allocations: 19.98 kB / 0.7678 GB, free: 6.996 MB / 0.5606 GB Notification: Performance of NFFlatten.flatten: time 8.033e-05/0.1958, allocations: 23.92 kB / 0.7678 GB, free: 6.973 MB / 0.5606 GB Notification: Performance of NFFlatten.resolveConnections: time 9.459e-05/0.1959, allocations: 8 kB / 0.7678 GB, free: 6.965 MB / 0.5606 GB Notification: Performance of NFEvalConstants.evaluate: time 7.044e-05/0.196, allocations: 11.94 kB / 0.7678 GB, free: 6.953 MB / 0.5606 GB Notification: Performance of NFSimplifyModel.simplify: time 4.465e-05/0.196, allocations: 15.92 kB / 0.7678 GB, free: 6.938 MB / 0.5606 GB Notification: Performance of NFPackage.collectConstants: time 1.211e-05/0.196, allocations: 0 / 0.7678 GB, free: 6.938 MB / 0.5606 GB Notification: Performance of NFFlatten.collectFunctions: time 7.656e-05/0.1961, allocations: 23.97 kB / 0.7679 GB, free: 6.914 MB / 0.5606 GB Notification: Performance of NFScalarize.scalarize: time 1.689e-05/0.1961, allocations: 7.984 kB / 0.7679 GB, free: 6.906 MB / 0.5606 GB Notification: Performance of NFVerifyModel.verify: time 2.312e-05/0.1961, allocations: 7.938 kB / 0.7679 GB, free: 6.898 MB / 0.5606 GB Notification: Performance of NFConvertDAE.convert: time 0.0001173/0.1963, allocations: 32.12 kB / 0.7679 GB, free: 6.867 MB / 0.5606 GB Notification: Performance of FrontEnd - DAE generated: time 4.138e-06/0.1963, allocations: 0 / 0.7679 GB, free: 6.867 MB / 0.5606 GB Notification: Performance of FrontEnd: time 1.844e-06/0.1963, allocations: 0 / 0.7679 GB, free: 6.867 MB / 0.5606 GB Notification: Performance of Transformations before backend: time 1.28e-05/0.1963, allocations: 0 / 0.7679 GB, free: 6.867 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.0005065/0.1968, allocations: 347.4 kB / 0.7682 GB, free: 6.48 MB / 0.5606 GB Notification: Performance of prepare preOptimizeDAE: time 4.486e-05/0.1969, allocations: 8.031 kB / 0.7683 GB, free: 6.473 MB / 0.5606 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.064e-05/0.1969, allocations: 38.67 kB / 0.7683 GB, free: 6.426 MB / 0.5606 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.844e-05/0.197, allocations: 4.938 kB / 0.7683 GB, free: 6.422 MB / 0.5606 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001563/0.1971, allocations: 180.3 kB / 0.7685 GB, free: 6.207 MB / 0.5606 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.226e-05/0.1971, allocations: 384 / 0.7685 GB, free: 6.207 MB / 0.5606 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.644e-05/0.1972, allocations: 4.375 kB / 0.7685 GB, free: 6.203 MB / 0.5606 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001851/0.1973, allocations: 61.73 kB / 0.7685 GB, free: 6.137 MB / 0.5606 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.117e-06/0.1974, allocations: 0 / 0.7685 GB, free: 6.137 MB / 0.5606 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.025e-06/0.1974, allocations: 0 / 0.7685 GB, free: 6.137 MB / 0.5606 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.188e-06/0.1974, allocations: 0 / 0.7685 GB, free: 6.137 MB / 0.5606 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001693/0.1976, allocations: 35.95 kB / 0.7686 GB, free: 6.102 MB / 0.5606 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003573/0.1979, allocations: 248.9 kB / 0.7688 GB, free: 5.809 MB / 0.5606 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001332/0.1981, allocations: 38.56 kB / 0.7688 GB, free: 5.762 MB / 0.5606 GB Notification: Performance of preOpt resolveLoops (simulation): time 8.956e-05/0.1982, allocations: 25.41 kB / 0.7689 GB, free: 5.734 MB / 0.5606 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001375/0.1983, allocations: 81.11 kB / 0.7689 GB, free: 5.637 MB / 0.5606 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.111e-05/0.1983, allocations: 34.56 kB / 0.769 GB, free: 5.594 MB / 0.5606 GB Notification: Performance of pre-optimization done (n=2): time 1.082e-06/0.1984, allocations: 0 / 0.769 GB, free: 5.594 MB / 0.5606 GB Notification: Performance of matching and sorting (n=2): time 0.000382/0.1987, allocations: 85.58 kB / 0.7691 GB, free: 5.504 MB / 0.5606 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.857e-05/0.1988, allocations: 55.41 kB / 0.7691 GB, free: 5.438 MB / 0.5606 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.368e-05/0.1989, allocations: 101.8 kB / 0.7692 GB, free: 5.328 MB / 0.5606 GB Notification: Performance of collectPreVariables (initialization): time 1.532e-05/0.1989, allocations: 25.7 kB / 0.7692 GB, free: 5.297 MB / 0.5606 GB Notification: Performance of collectInitialEqns (initialization): time 5.442e-05/0.199, allocations: 88.09 kB / 0.7693 GB, free: 5.207 MB / 0.5606 GB Notification: Performance of collectInitialBindings (initialization): time 2.213e-05/0.199, allocations: 7.938 kB / 0.7693 GB, free: 5.199 MB / 0.5606 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.947e-05/0.199, allocations: 9.719 kB / 0.7693 GB, free: 5.184 MB / 0.5606 GB Notification: Performance of setup shared object (initialization): time 0.0001433/0.1992, allocations: 326.9 kB / 0.7696 GB, free: 4.855 MB / 0.5606 GB Notification: Performance of preBalanceInitialSystem (initialization): time 8.263e-05/0.1993, allocations: 15.98 kB / 0.7697 GB, free: 4.84 MB / 0.5606 GB Notification: Performance of partitionIndependentBlocks (initialization): time 7.157e-05/0.1994, allocations: 11.98 kB / 0.7697 GB, free: 4.828 MB / 0.5606 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000155/0.1995, allocations: 44.81 kB / 0.7697 GB, free: 4.781 MB / 0.5606 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.003e-06/0.1995, allocations: 0 / 0.7697 GB, free: 4.781 MB / 0.5606 GB Notification: Performance of matching and sorting (n=2) (initialization): time 0.0001994/0.1997, allocations: 73.62 kB / 0.7698 GB, free: 4.703 MB / 0.5606 GB Notification: Performance of prepare postOptimizeDAE: time 1.782e-05/0.1998, allocations: 4 kB / 0.7698 GB, free: 4.699 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.179e-06/0.1998, allocations: 0 / 0.7698 GB, free: 4.699 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.634e-05/0.1998, allocations: 4 kB / 0.7698 GB, free: 4.695 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.727e-05/0.1999, allocations: 7.984 kB / 0.7698 GB, free: 4.688 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5e-06/0.1999, allocations: 0 / 0.7698 GB, free: 4.688 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.658e-05/0.2, allocations: 7.984 kB / 0.7698 GB, free: 4.68 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.172e-06/0.2, allocations: 0 / 0.7698 GB, free: 4.68 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 9.284e-05/0.2001, allocations: 118.5 kB / 0.7699 GB, free: 4.555 MB / 0.5606 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.47e-05/0.2001, allocations: 3.984 kB / 0.7699 GB, free: 4.551 MB / 0.5606 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000252/0.2004, allocations: 76.72 kB / 0.77 GB, free: 4.473 MB / 0.5606 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.283e-05/0.2004, allocations: 0 / 0.77 GB, free: 4.473 MB / 0.5606 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.659e-06/0.2004, allocations: 3.938 kB / 0.77 GB, free: 4.469 MB / 0.5606 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.101e-06/0.2004, allocations: 3.984 kB / 0.77 GB, free: 4.465 MB / 0.5606 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001996/0.2006, allocations: 157.6 kB / 0.7702 GB, free: 4.262 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.042e-06/0.2006, allocations: 4.031 kB / 0.7702 GB, free: 4.258 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.754e-05/0.2007, allocations: 16.17 kB / 0.7702 GB, free: 4.242 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.743e-06/0.2007, allocations: 0 / 0.7702 GB, free: 4.242 MB / 0.5606 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.041e-05/0.2007, allocations: 4 kB / 0.7702 GB, free: 4.238 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.333e-06/0.2007, allocations: 0 / 0.7702 GB, free: 4.238 MB / 0.5606 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.82e-07/0.2007, allocations: 0 / 0.7702 GB, free: 4.238 MB / 0.5606 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002607/0.201, allocations: 171.4 kB / 0.7703 GB, free: 4.055 MB / 0.5606 GB Notification: Performance of postOpt removeConstants (simulation): time 5.239e-05/0.201, allocations: 81.11 kB / 0.7704 GB, free: 3.957 MB / 0.5606 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.381e-05/0.2011, allocations: 0 / 0.7704 GB, free: 3.957 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.323e-05/0.2011, allocations: 7.984 kB / 0.7704 GB, free: 3.949 MB / 0.5606 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.837e-05/0.2012, allocations: 7.938 kB / 0.7704 GB, free: 3.941 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.276e-06/0.2012, allocations: 0 / 0.7704 GB, free: 3.941 MB / 0.5606 GB Notification: Performance of sorting global known variables: time 4.934e-05/0.2013, allocations: 83.27 kB / 0.7705 GB, free: 3.859 MB / 0.5606 GB Notification: Performance of sort global known variables: time 1e-07/0.2013, allocations: 0 / 0.7705 GB, free: 3.859 MB / 0.5606 GB Notification: Performance of remove unused functions: time 0.0002216/0.2015, 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.0006541/0.2022, allocations: 0.7007 MB / 0.7712 GB, free: 3.121 MB / 0.5606 GB Notification: Performance of simCode: created initialization part: time 0.0002211/0.2024, allocations: 47.92 kB / 0.7712 GB, free: 3.074 MB / 0.5606 GB Notification: Performance of simCode: created event and clocks part: time 2.675e-06/0.2024, allocations: 0 / 0.7712 GB, free: 3.074 MB / 0.5606 GB Notification: Performance of simCode: created simulation system equations: time 8.692e-05/0.2025, allocations: 15.98 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.0003061/0.2028, allocations: 14.95 kB / 0.7713 GB, free: 3.047 MB / 0.5606 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004285/0.2033, allocations: 131.1 kB / 0.7714 GB, free: 2.875 MB / 0.5606 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003765/0.2036, allocations: 0.6768 MB / 0.7721 GB, free: 2.172 MB / 0.5606 GB Notification: Performance of simCode: alias equations: time 2.544e-05/0.2037, allocations: 4.125 kB / 0.7721 GB, free: 2.168 MB / 0.5606 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.144e-05/0.2037, allocations: 11.44 kB / 0.7721 GB, free: 2.156 MB / 0.5606 GB Notification: Performance of SimCode: time 2.4e-07/0.2037, allocations: 0 / 0.7721 GB, free: 2.156 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02353/0.2273, allocations: 1.428 MB / 0.7735 GB, free: 0.8281 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.895/8.123, allocations: 11.81 kB / 0.7735 GB, free: 0.8164 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 & python3 -m fmpy simulate --output-file BuildingSystems_BuildingSystems.Utilities.Math.Examples.SmoothHeaviside_res.csv --start-time 0 --stop-time 1 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0004 BuildingSystems_BuildingSystems_Utilities_Math_Examples_SmoothHeaviside.fmu > BuildingSystems_BuildingSystems.Utilities.Math.Examples.SmoothHeaviside.pipe 2>&1)