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.001059/0.001059, 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.00113/0.00113, allocations: 193.5 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.335/1.335, 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.00231/0.00231, allocations: 282.9 kB / 290.7 MB, free: 2 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.9542/0.9542, allocations: 169.3 MB / 0.4982 GB, free: 13.95 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001912/0.001912, allocations: 97.86 kB / 0.5953 GB, free: 27.94 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1577/0.1596, allocations: 86.98 MB / 0.6803 GB, free: 0.5898 MB / 478.1 MB Notification: Performance of NFInst.instantiate(BuildingSystems.Utilities.Math.Examples.SmoothHeaviside): time 0.002679/0.1623, allocations: 1.439 MB / 0.6817 GB, free: 15.15 MB / 494.1 MB Notification: Performance of NFInst.instExpressions: time 0.0007954/0.1632, allocations: 465.5 kB / 0.6821 GB, free: 14.69 MB / 494.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 3.154e-05/0.1632, allocations: 4 kB / 0.6821 GB, free: 14.69 MB / 494.1 MB Notification: Performance of NFTyping.typeComponents: time 2.337e-05/0.1633, allocations: 4.469 kB / 0.6821 GB, free: 14.68 MB / 494.1 MB Notification: Performance of NFTyping.typeBindings: time 5.595e-05/0.1633, allocations: 8.547 kB / 0.6821 GB, free: 14.68 MB / 494.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001858/0.1635, allocations: 22.78 kB / 0.6822 GB, free: 14.66 MB / 494.1 MB Notification: Performance of NFFlatten.flatten: time 5.664e-05/0.1636, allocations: 19.94 kB / 0.6822 GB, free: 14.64 MB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 8.322e-05/0.1637, allocations: 11.97 kB / 0.6822 GB, free: 14.62 MB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 5.64e-05/0.1637, allocations: 15.88 kB / 0.6822 GB, free: 14.61 MB / 494.1 MB Notification: Performance of NFSimplifyModel.simplify: time 3.531e-05/0.1638, allocations: 11.98 kB / 0.6822 GB, free: 14.6 MB / 494.1 MB Notification: Performance of NFPackage.collectConstants: time 1.107e-05/0.1638, allocations: 0 / 0.6822 GB, free: 14.6 MB / 494.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.889e-05/0.1639, allocations: 27.97 kB / 0.6823 GB, free: 14.57 MB / 494.1 MB Notification: Performance of NFScalarize.scalarize: time 1.246e-05/0.1639, allocations: 9.656 kB / 0.6823 GB, free: 14.56 MB / 494.1 MB Notification: Performance of NFVerifyModel.verify: time 2.26e-05/0.1639, allocations: 7.984 kB / 0.6823 GB, free: 14.55 MB / 494.1 MB Notification: Performance of NFConvertDAE.convert: time 8.934e-05/0.164, allocations: 32.12 kB / 0.6823 GB, free: 14.52 MB / 494.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.216e-06/0.164, allocations: 0 / 0.6823 GB, free: 14.52 MB / 494.1 MB Notification: Performance of FrontEnd: time 1.243e-06/0.164, allocations: 0 / 0.6823 GB, free: 14.52 MB / 494.1 MB Notification: Performance of Transformations before backend: time 3.927e-06/0.164, allocations: 0.875 kB / 0.6823 GB, free: 14.52 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.0004078/0.1644, allocations: 340.2 kB / 0.6826 GB, free: 14.14 MB / 494.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.387e-05/0.1645, allocations: 8.656 kB / 0.6826 GB, free: 14.14 MB / 494.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.934e-05/0.1645, allocations: 30.75 kB / 0.6827 GB, free: 14.1 MB / 494.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.251e-05/0.1646, allocations: 10.28 kB / 0.6827 GB, free: 14.09 MB / 494.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 9.907e-05/0.1647, allocations: 168.4 kB / 0.6828 GB, free: 13.89 MB / 494.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.206e-05/0.1647, allocations: 4.375 kB / 0.6828 GB, free: 13.88 MB / 494.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.666e-06/0.1647, allocations: 4.969 kB / 0.6828 GB, free: 13.88 MB / 494.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001793/0.1649, allocations: 57.8 kB / 0.6829 GB, free: 13.82 MB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.422e-06/0.1649, allocations: 0 / 0.6829 GB, free: 13.82 MB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.787e-06/0.1649, allocations: 4 kB / 0.6829 GB, free: 13.81 MB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.39e-06/0.1649, allocations: 0 / 0.6829 GB, free: 13.81 MB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001658/0.1651, allocations: 27.97 kB / 0.6829 GB, free: 13.79 MB / 494.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002875/0.1654, allocations: 264.7 kB / 0.6832 GB, free: 13.48 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001219/0.1655, allocations: 38.56 kB / 0.6832 GB, free: 13.43 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 8.83e-05/0.1656, allocations: 20.91 kB / 0.6832 GB, free: 13.41 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.000118/0.1657, allocations: 85.09 kB / 0.6833 GB, free: 13.3 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.096e-05/0.1658, allocations: 30.56 kB / 0.6833 GB, free: 13.27 MB / 494.1 MB Notification: Performance of pre-optimization done (n=2): time 1.042e-06/0.1658, allocations: 0 / 0.6833 GB, free: 13.27 MB / 494.1 MB Notification: Performance of matching and sorting (n=2): time 0.0003506/0.1661, allocations: 89.58 kB / 0.6834 GB, free: 13.17 MB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.896e-05/0.1662, allocations: 51.41 kB / 0.6835 GB, free: 13.11 MB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000105/0.1663, allocations: 109.8 kB / 0.6836 GB, free: 12.99 MB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 1.261e-05/0.1663, allocations: 25.7 kB / 0.6836 GB, free: 12.96 MB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.495e-05/0.1663, allocations: 80.14 kB / 0.6837 GB, free: 12.88 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.642e-05/0.1664, allocations: 7.906 kB / 0.6837 GB, free: 12.87 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.401e-05/0.1664, allocations: 17.84 kB / 0.6837 GB, free: 12.85 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 9.124e-05/0.1665, allocations: 322.8 kB / 0.684 GB, free: 12.52 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.78e-05/0.1666, allocations: 15.98 kB / 0.684 GB, free: 12.51 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.504e-05/0.1667, allocations: 11.98 kB / 0.684 GB, free: 12.5 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001548/0.1668, allocations: 36.83 kB / 0.6841 GB, free: 12.46 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.493e-06/0.1668, allocations: 4.062 kB / 0.6841 GB, free: 12.45 MB / 494.1 MB Notification: Performance of matching and sorting (n=2) (initialization): time 0.0002032/0.167, allocations: 73.59 kB / 0.6842 GB, free: 12.38 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.174e-05/0.1671, allocations: 4 kB / 0.6842 GB, free: 12.37 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.777e-06/0.1671, allocations: 0 / 0.6842 GB, free: 12.37 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.019e-05/0.1671, allocations: 0 / 0.6842 GB, free: 12.37 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.325e-05/0.1672, allocations: 11.98 kB / 0.6842 GB, free: 12.36 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.038e-06/0.1672, allocations: 0 / 0.6842 GB, free: 12.36 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.935e-05/0.1672, allocations: 7.984 kB / 0.6842 GB, free: 12.35 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.468e-06/0.1673, allocations: 4.031 kB / 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 6.485e-05/0.1673, allocations: 114.4 kB / 0.6843 GB, free: 12.23 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.567e-05/0.1674, allocations: 3.906 kB / 0.6843 GB, free: 12.22 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00023/0.1676, allocations: 76.97 kB / 0.6844 GB, free: 12.14 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.014e-06/0.1676, allocations: 3.938 kB / 0.6844 GB, free: 12.14 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.318e-06/0.1676, allocations: 4 kB / 0.6844 GB, free: 12.13 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.455e-06/0.1676, allocations: 4.031 kB / 0.6844 GB, free: 12.13 MB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001424/0.1678, allocations: 161.6 kB / 0.6845 GB, free: 11.92 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.272e-06/0.1678, allocations: 0 / 0.6845 GB, free: 11.92 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.253e-05/0.1678, allocations: 11.98 kB / 0.6845 GB, free: 11.91 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.154e-06/0.1679, allocations: 0 / 0.6845 GB, free: 11.91 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.711e-06/0.1679, allocations: 0 / 0.6845 GB, free: 11.91 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.372e-06/0.1679, allocations: 0 / 0.6845 GB, free: 11.91 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.31e-07/0.1679, allocations: 0 / 0.6845 GB, free: 11.91 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002345/0.1681, allocations: 167.5 kB / 0.6847 GB, free: 11.73 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.057e-05/0.1682, allocations: 77.11 kB / 0.6848 GB, free: 11.64 MB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.182e-05/0.1682, allocations: 4 kB / 0.6848 GB, free: 11.63 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.693e-05/0.1683, allocations: 7.984 kB / 0.6848 GB, free: 11.62 MB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.183e-05/0.1683, allocations: 3.984 kB / 0.6848 GB, free: 11.62 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.27e-06/0.1683, allocations: 0 / 0.6848 GB, free: 11.62 MB / 494.1 MB Notification: Performance of sorting global known variables: time 3.491e-05/0.1683, allocations: 87.22 kB / 0.6849 GB, free: 11.54 MB / 494.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.1684, allocations: 4.031 kB / 0.6849 GB, free: 11.53 MB / 494.1 MB Notification: Performance of remove unused functions: time 0.0002254/0.1686, allocations: 8 kB / 0.6849 GB, free: 11.52 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.0005731/0.1692, allocations: 0.7084 MB / 0.6856 GB, free: 10.79 MB / 494.1 MB Notification: Performance of simCode: created initialization part: time 0.0001993/0.1694, allocations: 36 kB / 0.6856 GB, free: 10.75 MB / 494.1 MB Notification: Performance of simCode: created event and clocks part: time 3.506e-06/0.1694, allocations: 0 / 0.6856 GB, free: 10.75 MB / 494.1 MB Notification: Performance of simCode: created simulation system equations: time 8.609e-05/0.1695, allocations: 27.91 kB / 0.6856 GB, free: 10.72 MB / 494.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002761/0.1698, 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.000455/0.1702, allocations: 143.4 kB / 0.6858 GB, free: 10.54 MB / 494.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002652/0.1705, allocations: 0.6768 MB / 0.6864 GB, free: 9.836 MB / 494.1 MB Notification: Performance of simCode: alias equations: time 2.477e-05/0.1705, allocations: 4 kB / 0.6864 GB, free: 9.832 MB / 494.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.649e-05/0.1706, allocations: 7.438 kB / 0.6865 GB, free: 9.824 MB / 494.1 MB Notification: Performance of SimCode: time 2.7e-07/0.1706, allocations: 0 / 0.6865 GB, free: 9.824 MB / 494.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01686/0.1874, allocations: 1.405 MB / 0.6878 GB, free: 8.5 MB / 494.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.484/8.671, allocations: 9.047 kB / 0.6878 GB, free: 8.492 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 & /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)