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.001099/0.001099, allocations: 108 kB / 15.6 MB, free: 132 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001411/0.001411, allocations: 196.7 kB / 16.53 MB, free: 6.391 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.304/1.304, allocations: 222.9 MB / 240.2 MB, free: 4.395 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002111/0.002111, allocations: 287 kB / 290.7 MB, free: 1.992 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.9235/0.9235, allocations: 169.3 MB / 0.4982 GB, free: 13.95 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001684/0.001684, allocations: 101 kB / 0.5953 GB, free: 27.74 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1529/0.1546, allocations: 86.98 MB / 0.6803 GB, free: 0.5859 MB / 478.1 MB Notification: Performance of NFInst.instantiate(BuildingSystems.Utilities.Math.Examples.SmoothHeaviside): time 0.002574/0.1572, allocations: 1.428 MB / 0.6817 GB, free: 15.16 MB / 494.1 MB Notification: Performance of NFInst.instExpressions: time 0.0006731/0.1579, allocations: 472.2 kB / 0.6821 GB, free: 14.69 MB / 494.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 3.218e-05/0.158, allocations: 1.719 kB / 0.6821 GB, free: 14.69 MB / 494.1 MB Notification: Performance of NFTyping.typeComponents: time 2.061e-05/0.158, allocations: 0 / 0.6821 GB, free: 14.69 MB / 494.1 MB Notification: Performance of NFTyping.typeBindings: time 6.745e-05/0.1581, allocations: 3.938 kB / 0.6821 GB, free: 14.69 MB / 494.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001692/0.1583, allocations: 19.92 kB / 0.6822 GB, free: 14.67 MB / 494.1 MB Notification: Performance of NFFlatten.flatten: time 5.613e-05/0.1583, allocations: 28.8 kB / 0.6822 GB, free: 14.64 MB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 8.719e-05/0.1584, allocations: 4 kB / 0.6822 GB, free: 14.64 MB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 5.694e-05/0.1585, allocations: 16.64 kB / 0.6822 GB, free: 14.62 MB / 494.1 MB Notification: Performance of NFSimplifyModel.simplify: time 3.345e-05/0.1585, allocations: 7.984 kB / 0.6822 GB, free: 14.61 MB / 494.1 MB Notification: Performance of NFPackage.collectConstants: time 1.101e-05/0.1585, allocations: 5.438 kB / 0.6822 GB, free: 14.61 MB / 494.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.401e-05/0.1586, allocations: 19.98 kB / 0.6822 GB, free: 14.59 MB / 494.1 MB Notification: Performance of NFScalarize.scalarize: time 1.358e-05/0.1586, allocations: 11.92 kB / 0.6822 GB, free: 14.58 MB / 494.1 MB Notification: Performance of NFVerifyModel.verify: time 1.88e-05/0.1586, allocations: 4.625 kB / 0.6823 GB, free: 14.57 MB / 494.1 MB Notification: Performance of NFConvertDAE.convert: time 8.814e-05/0.1587, allocations: 36.11 kB / 0.6823 GB, free: 14.54 MB / 494.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.266e-06/0.1588, allocations: 4.562 kB / 0.6823 GB, free: 14.54 MB / 494.1 MB Notification: Performance of FrontEnd: time 1.152e-06/0.1588, allocations: 4 kB / 0.6823 GB, free: 14.53 MB / 494.1 MB Notification: Performance of Transformations before backend: time 3.647e-06/0.1588, allocations: 4 kB / 0.6823 GB, free: 14.53 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.0003867/0.1592, allocations: 335.5 kB / 0.6826 GB, free: 14.15 MB / 494.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.213e-05/0.1592, allocations: 16.02 kB / 0.6826 GB, free: 14.14 MB / 494.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.366e-05/0.1592, allocations: 30.75 kB / 0.6827 GB, free: 14.1 MB / 494.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.629e-05/0.1593, allocations: 0.9375 kB / 0.6827 GB, free: 14.1 MB / 494.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001265/0.1594, allocations: 168.4 kB / 0.6828 GB, free: 13.89 MB / 494.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.185e-05/0.1594, allocations: 384 / 0.6828 GB, free: 13.89 MB / 494.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.883e-06/0.1594, allocations: 4.312 kB / 0.6828 GB, free: 13.89 MB / 494.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001768/0.1596, allocations: 57.8 kB / 0.6829 GB, free: 13.83 MB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.486e-06/0.1596, allocations: 4 kB / 0.6829 GB, free: 13.82 MB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.747e-06/0.1597, allocations: 0 / 0.6829 GB, free: 13.82 MB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.168e-06/0.1597, allocations: 0 / 0.6829 GB, free: 13.82 MB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001652/0.1598, allocations: 39.89 kB / 0.6829 GB, free: 13.79 MB / 494.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003366/0.1602, allocations: 252.8 kB / 0.6832 GB, free: 13.49 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000127/0.1603, allocations: 42.55 kB / 0.6832 GB, free: 13.44 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 8.828e-05/0.1604, allocations: 24.91 kB / 0.6832 GB, free: 13.41 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001259/0.1605, allocations: 81.11 kB / 0.6833 GB, free: 13.31 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.188e-05/0.1606, allocations: 30.56 kB / 0.6833 GB, free: 13.27 MB / 494.1 MB Notification: Performance of pre-optimization done (n=2): time 1.072e-06/0.1606, allocations: 0 / 0.6833 GB, free: 13.27 MB / 494.1 MB Notification: Performance of matching and sorting (n=2): time 0.0003497/0.1609, allocations: 89.58 kB / 0.6834 GB, free: 13.18 MB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.248e-05/0.161, allocations: 55.34 kB / 0.6835 GB, free: 13.11 MB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.812e-05/0.1611, allocations: 105.8 kB / 0.6836 GB, free: 13 MB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 1.073e-05/0.1611, allocations: 25.7 kB / 0.6836 GB, free: 12.97 MB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.719e-05/0.1611, allocations: 80.14 kB / 0.6837 GB, free: 12.89 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.712e-05/0.1612, allocations: 7.906 kB / 0.6837 GB, free: 12.88 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.991e-05/0.1612, allocations: 21.83 kB / 0.6837 GB, free: 12.85 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 0.0001124/0.1613, allocations: 314.8 kB / 0.684 GB, free: 12.54 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.095e-05/0.1614, allocations: 15.98 kB / 0.684 GB, free: 12.52 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.096e-05/0.1615, allocations: 15.98 kB / 0.684 GB, free: 12.5 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001477/0.1616, allocations: 44.81 kB / 0.6841 GB, free: 12.46 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.423e-06/0.1616, allocations: 4 kB / 0.6841 GB, free: 12.45 MB / 494.1 MB Notification: Performance of matching and sorting (n=2) (initialization): time 0.0001819/0.1618, allocations: 61.67 kB / 0.6841 GB, free: 12.39 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.056e-05/0.1618, allocations: 8 kB / 0.6842 GB, free: 12.38 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.211e-06/0.1618, allocations: 7.969 kB / 0.6842 GB, free: 12.37 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.125e-05/0.1619, allocations: 0 / 0.6842 GB, free: 12.37 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.788e-05/0.1619, allocations: 4 kB / 0.6842 GB, free: 12.37 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.729e-06/0.162, allocations: 4 kB / 0.6842 GB, free: 12.36 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.637e-05/0.162, allocations: 12.02 kB / 0.6842 GB, free: 12.35 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.23e-06/0.162, allocations: 0 / 0.6842 GB, free: 12.35 MB / 494.1 MB 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.499e-05/0.1621, allocations: 110.4 kB / 0.6843 GB, free: 12.23 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.554e-05/0.1621, allocations: 7.906 kB / 0.6843 GB, free: 12.23 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002272/0.1624, allocations: 72.72 kB / 0.6844 GB, free: 12.15 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.326e-06/0.1624, allocations: 7.922 kB / 0.6844 GB, free: 12.14 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.547e-06/0.1624, allocations: 0 / 0.6844 GB, free: 12.14 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.766e-06/0.1624, allocations: 4.031 kB / 0.6844 GB, free: 12.14 MB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000149/0.1626, allocations: 165.6 kB / 0.6845 GB, free: 11.93 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.51e-07/0.1626, allocations: 0 / 0.6845 GB, free: 11.93 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.426e-05/0.1626, allocations: 7.984 kB / 0.6845 GB, free: 11.92 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.452e-06/0.1626, allocations: 0 / 0.6845 GB, free: 11.92 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.454e-06/0.1626, allocations: 4 kB / 0.6845 GB, free: 11.91 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.232e-06/0.1627, allocations: 256 / 0.6845 GB, free: 11.91 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.72e-07/0.1627, allocations: 0 / 0.6845 GB, free: 11.91 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002286/0.1629, allocations: 175.4 kB / 0.6847 GB, free: 11.73 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.741e-05/0.1629, allocations: 77.11 kB / 0.6848 GB, free: 11.63 MB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.123e-05/0.163, allocations: 0 / 0.6848 GB, free: 11.63 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.184e-05/0.163, allocations: 7.984 kB / 0.6848 GB, free: 11.62 MB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.12e-05/0.1631, allocations: 8 kB / 0.6848 GB, free: 11.62 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.995e-06/0.1631, allocations: 0 / 0.6848 GB, free: 11.62 MB / 494.1 MB Notification: Performance of sorting global known variables: time 3.345e-05/0.1631, allocations: 83.27 kB / 0.6849 GB, free: 11.54 MB / 494.1 MB Notification: Performance of sort global known variables: time 2e-07/0.1631, allocations: 4.031 kB / 0.6849 GB, free: 11.53 MB / 494.1 MB Notification: Performance of remove unused functions: time 0.0002129/0.1633, allocations: 4 kB / 0.6849 GB, free: 11.53 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 (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.0005054/0.1638, allocations: 0.7045 MB / 0.6856 GB, free: 10.79 MB / 494.1 MB Notification: Performance of simCode: created initialization part: time 0.0002037/0.1641, allocations: 51.92 kB / 0.6856 GB, free: 10.74 MB / 494.1 MB Notification: Performance of simCode: created event and clocks part: time 1.864e-06/0.1641, allocations: 0 / 0.6856 GB, free: 10.74 MB / 494.1 MB Notification: Performance of simCode: created simulation system equations: time 8.183e-05/0.1642, allocations: 15.98 kB / 0.6856 GB, free: 10.73 MB / 494.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002691/0.1644, allocations: 4 kB / 0.6856 GB, free: 10.72 MB / 494.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003669/0.1648, allocations: 147.4 kB / 0.6858 GB, free: 10.54 MB / 494.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002295/0.1651, allocations: 0.6768 MB / 0.6864 GB, free: 9.836 MB / 494.1 MB Notification: Performance of simCode: alias equations: time 2.216e-05/0.1651, allocations: 0 / 0.6864 GB, free: 9.836 MB / 494.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.237e-05/0.1651, allocations: 15.42 kB / 0.6865 GB, free: 9.82 MB / 494.1 MB Notification: Performance of SimCode: time 3.81e-07/0.1651, allocations: 0 / 0.6865 GB, free: 9.82 MB / 494.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01613/0.1813, allocations: 1.407 MB / 0.6878 GB, free: 8.496 MB / 494.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 6.879/7.06, allocations: 18.08 kB / 0.6878 GB, free: 8.484 MB / 494.1 MB (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)