Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr BuildingSystems_BuildingSystems.Utilities.Math.Functions.Examples.SmoothHeavisideDerivatives.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.Functions.Examples.SmoothHeavisideDerivatives,fileNamePrefix="BuildingSystems_BuildingSystems_Utilities_Math_Functions_Examples_SmoothHeavisideDerivatives",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(BuildingSystems.Utilities.Math.Functions.Examples.SmoothHeavisideDerivatives,fileNamePrefix="BuildingSystems_BuildingSystems_Utilities_Math_Functions_Examples_SmoothHeavisideDerivatives",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.00501/0.00501, allocations: 99.66 kB / 15.73 MB, free: 6.477 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.001185/0.001185, allocations: 189.9 kB / 16.67 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.301/1.301, allocations: 222.9 MB / 240.4 MB, free: 4.316 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002124/0.002124, allocations: 282.5 kB / 290.8 MB, free: 1.934 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.9072/0.9072, allocations: 169.3 MB / 0.4983 GB, free: 13.82 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001818/0.001819, allocations: 104 kB / 0.681 GB, free: 15.93 MB / 494.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.159/0.1609, allocations: 86.97 MB / 0.766 GB, free: 8.887 MB / 0.5606 GB Notification: Performance of NFInst.instantiate(BuildingSystems.Utilities.Math.Functions.Examples.SmoothHeavisideDerivatives): time 0.00175/0.1627, allocations: 0.5944 MB / 0.7665 GB, free: 8.297 MB / 0.5606 GB Notification: Performance of NFInst.instExpressions: time 0.001369/0.1641, allocations: 1.1 MB / 0.7676 GB, free: 7.18 MB / 0.5606 GB Notification: Performance of NFInst.updateImplicitVariability: time 2.644e-05/0.1641, allocations: 0 / 0.7676 GB, free: 7.18 MB / 0.5606 GB Notification: Performance of NFTyping.typeComponents: time 1.699e-05/0.1641, allocations: 3.938 kB / 0.7676 GB, free: 7.176 MB / 0.5606 GB Notification: Performance of NFTyping.typeBindings: time 0.0002857/0.1644, allocations: 15.92 kB / 0.7676 GB, free: 7.16 MB / 0.5606 GB Notification: Performance of NFTyping.typeClassSections: time 6.422e-06/0.1645, allocations: 4 kB / 0.7676 GB, free: 7.156 MB / 0.5606 GB Notification: Performance of NFFlatten.flatten: time 4.767e-05/0.1645, allocations: 7.922 kB / 0.7676 GB, free: 7.148 MB / 0.5606 GB Notification: Performance of NFFlatten.resolveConnections: time 5.721e-05/0.1646, allocations: 8 kB / 0.7676 GB, free: 7.141 MB / 0.5606 GB Notification: Performance of NFEvalConstants.evaluate: time 1.525e-05/0.1646, allocations: 0 / 0.7676 GB, free: 7.141 MB / 0.5606 GB Notification: Performance of NFSimplifyModel.simplify: time 2.455e-05/0.1646, allocations: 0 / 0.7676 GB, free: 7.141 MB / 0.5606 GB Notification: Performance of NFPackage.collectConstants: time 8.687e-06/0.1646, allocations: 0 / 0.7676 GB, free: 7.141 MB / 0.5606 GB Notification: Performance of NFFlatten.collectFunctions: time 0.000127/0.1648, allocations: 23.91 kB / 0.7677 GB, free: 7.117 MB / 0.5606 GB Notification: Performance of NFScalarize.scalarize: time 7.153e-06/0.1648, allocations: 0 / 0.7677 GB, free: 7.117 MB / 0.5606 GB Notification: Performance of NFVerifyModel.verify: time 1.98e-05/0.1648, allocations: 11.92 kB / 0.7677 GB, free: 7.105 MB / 0.5606 GB Notification: Performance of NFConvertDAE.convert: time 8.65e-05/0.1649, allocations: 15.98 kB / 0.7677 GB, free: 7.09 MB / 0.5606 GB Notification: Performance of FrontEnd - DAE generated: time 5.861e-06/0.1649, allocations: 0 / 0.7677 GB, free: 7.09 MB / 0.5606 GB Notification: Performance of FrontEnd: time 1.203e-06/0.1649, allocations: 7.938 kB / 0.7677 GB, free: 7.082 MB / 0.5606 GB Notification: Performance of Transformations before backend: time 5.58e-06/0.1649, allocations: 0 / 0.7677 GB, free: 7.082 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.0003022/0.1652, allocations: 307.9 kB / 0.768 GB, free: 6.734 MB / 0.5606 GB Notification: Performance of prepare preOptimizeDAE: time 4.248e-05/0.1653, allocations: 12.03 kB / 0.768 GB, free: 6.723 MB / 0.5606 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.856e-05/0.1653, allocations: 34.73 kB / 0.768 GB, free: 6.68 MB / 0.5606 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.818e-05/0.1654, allocations: 4.844 kB / 0.768 GB, free: 6.676 MB / 0.5606 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001029/0.1655, allocations: 172.3 kB / 0.7682 GB, free: 6.469 MB / 0.5606 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.218e-05/0.1655, allocations: 4.359 kB / 0.7682 GB, free: 6.465 MB / 0.5606 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.329e-05/0.1655, allocations: 4.375 kB / 0.7682 GB, free: 6.461 MB / 0.5606 GB Notification: Performance of preOpt clockPartitioning (simulation): time 9.961e-05/0.1656, allocations: 41.81 kB / 0.7683 GB, free: 6.414 MB / 0.5606 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.095e-05/0.1656, allocations: 0 / 0.7683 GB, free: 6.414 MB / 0.5606 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.067e-06/0.1657, allocations: 0 / 0.7683 GB, free: 6.414 MB / 0.5606 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.791e-06/0.1657, allocations: 0 / 0.7683 GB, free: 6.414 MB / 0.5606 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.008e-05/0.1657, allocations: 8 kB / 0.7683 GB, free: 6.406 MB / 0.5606 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001616/0.1659, allocations: 149.7 kB / 0.7684 GB, free: 6.211 MB / 0.5606 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002289/0.1661, allocations: 42.48 kB / 0.7684 GB, free: 6.16 MB / 0.5606 GB Notification: Performance of preOpt resolveLoops (simulation): time 2.645e-05/0.1662, allocations: 16.86 kB / 0.7685 GB, free: 6.141 MB / 0.5606 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001527/0.1663, allocations: 77.11 kB / 0.7685 GB, free: 6.047 MB / 0.5606 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.856e-05/0.1664, allocations: 38.5 kB / 0.7686 GB, free: 6 MB / 0.5606 GB Notification: Performance of pre-optimization done (n=3): time 1.182e-06/0.1664, allocations: 0 / 0.7686 GB, free: 6 MB / 0.5606 GB Notification: Performance of matching and sorting (n=5): time 0.00414/0.1705, allocations: 0.5638 MB / 0.7691 GB, free: 5.43 MB / 0.5606 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.133e-05/0.1706, allocations: 55.39 kB / 0.7692 GB, free: 5.363 MB / 0.5606 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 3.621e-05/0.1706, allocations: 89.86 kB / 0.7693 GB, free: 5.266 MB / 0.5606 GB Notification: Performance of collectPreVariables (initialization): time 1.858e-05/0.1706, allocations: 29.7 kB / 0.7693 GB, free: 5.23 MB / 0.5606 GB Notification: Performance of collectInitialEqns (initialization): time 2.703e-05/0.1707, allocations: 84.14 kB / 0.7694 GB, free: 5.145 MB / 0.5606 GB Notification: Performance of collectInitialBindings (initialization): time 4.607e-05/0.1707, allocations: 19.66 kB / 0.7694 GB, free: 5.125 MB / 0.5606 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.349e-05/0.1708, allocations: 13.72 kB / 0.7694 GB, free: 5.105 MB / 0.5606 GB Notification: Performance of setup shared object (initialization): time 9.752e-05/0.1709, allocations: 318.8 kB / 0.7697 GB, free: 4.785 MB / 0.5606 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005732/0.1715, allocations: 83.95 kB / 0.7698 GB, free: 4.703 MB / 0.5606 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005709/0.172, allocations: 106.5 kB / 0.7699 GB, free: 4.59 MB / 0.5606 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.00112/0.1732, allocations: 186.5 kB / 0.7701 GB, free: 4.398 MB / 0.5606 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.031e-06/0.1732, allocations: 0 / 0.7701 GB, free: 4.398 MB / 0.5606 GB Notification: Performance of matching and sorting (n=5) (initialization): time 0.001221/0.1744, allocations: 221.7 kB / 0.7703 GB, free: 4.176 MB / 0.5606 GB Notification: Performance of prepare postOptimizeDAE: time 1.685e-05/0.1744, allocations: 4 kB / 0.7703 GB, free: 4.172 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.083e-06/0.1744, allocations: 4 kB / 0.7703 GB, free: 4.168 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.531e-05/0.1745, allocations: 4 kB / 0.7703 GB, free: 4.164 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003803/0.1748, allocations: 51.94 kB / 0.7703 GB, free: 4.113 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.963e-06/0.1749, allocations: 4 kB / 0.7703 GB, free: 4.109 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003318/0.1752, allocations: 35.98 kB / 0.7704 GB, free: 4.074 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.622e-05/0.1752, allocations: 7.984 kB / 0.7704 GB, free: 4.066 MB / 0.5606 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 3 * 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 (5): * Single equations (assignments): 5 * 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.848e-05/0.1753, allocations: 110.5 kB / 0.7705 GB, free: 3.949 MB / 0.5606 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.027e-05/0.1753, allocations: 7.938 kB / 0.7705 GB, free: 3.941 MB / 0.5606 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001286/0.1766, allocations: 237 kB / 0.7707 GB, free: 3.707 MB / 0.5606 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.276e-06/0.1766, allocations: 0 / 0.7707 GB, free: 3.707 MB / 0.5606 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.35e-06/0.1767, allocations: 0 / 0.7707 GB, free: 3.707 MB / 0.5606 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.518e-06/0.1767, allocations: 7.938 kB / 0.7707 GB, free: 3.699 MB / 0.5606 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001456/0.1781, allocations: 458.4 kB / 0.7712 GB, free: 3.195 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.926e-06/0.1781, allocations: 432 / 0.7712 GB, free: 3.195 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003705/0.1785, allocations: 47.97 kB / 0.7712 GB, free: 3.148 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.146e-06/0.1785, allocations: 0 / 0.7712 GB, free: 3.148 MB / 0.5606 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.662e-05/0.1785, allocations: 4 kB / 0.7712 GB, free: 3.145 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.699e-06/0.1786, allocations: 7.938 kB / 0.7712 GB, free: 3.137 MB / 0.5606 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.434e-06/0.1786, allocations: 7.922 kB / 0.7712 GB, free: 3.129 MB / 0.5606 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001236/0.1798, allocations: 299.3 kB / 0.7715 GB, free: 2.82 MB / 0.5606 GB Notification: Performance of postOpt removeConstants (simulation): time 3.814e-05/0.1799, allocations: 93.08 kB / 0.7716 GB, free: 2.711 MB / 0.5606 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.345e-05/0.1799, allocations: 0 / 0.7716 GB, free: 2.711 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003553/0.1802, allocations: 35.98 kB / 0.7716 GB, free: 2.676 MB / 0.5606 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.232e-05/0.1803, allocations: 4 kB / 0.7716 GB, free: 2.672 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.191e-05/0.1803, allocations: 4.172 kB / 0.7717 GB, free: 2.668 MB / 0.5606 GB Notification: Performance of sorting global known variables: time 2.91e-05/0.1803, allocations: 79.28 kB / 0.7717 GB, free: 2.59 MB / 0.5606 GB Notification: Performance of sort global known variables: time 1e-07/0.1803, allocations: 0 / 0.7717 GB, free: 2.59 MB / 0.5606 GB Notification: Performance of remove unused functions: time 0.0002411/0.1806, allocations: 16 kB / 0.7717 GB, free: 2.574 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 (5): * Single equations (assignments): 5 * 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.001513/0.1821, allocations: 0.8451 MB / 0.7726 GB, free: 1.699 MB / 0.5606 GB Notification: Performance of simCode: created initialization part: time 0.001238/0.1833, allocations: 172 kB / 0.7727 GB, free: 1.531 MB / 0.5606 GB Notification: Performance of simCode: created event and clocks part: time 4.498e-06/0.1833, allocations: 0 / 0.7727 GB, free: 1.531 MB / 0.5606 GB Notification: Performance of simCode: created simulation system equations: time 0.0005795/0.1839, allocations: 96 kB / 0.7728 GB, free: 1.438 MB / 0.5606 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002033/0.1841, allocations: 8 kB / 0.7728 GB, free: 1.43 MB / 0.5606 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001259/0.1854, allocations: 239.2 kB / 0.7731 GB, free: 1.156 MB / 0.5606 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002101/0.1856, allocations: 0.6768 MB / 0.7737 GB, free: 464 kB / 0.5606 GB Notification: Performance of simCode: alias equations: time 0.0001655/0.1858, allocations: 28 kB / 0.7737 GB, free: 436 kB / 0.5606 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.137e-05/0.1859, allocations: 15.44 kB / 0.7738 GB, free: 420 kB / 0.5606 GB Notification: Performance of SimCode: time 3.11e-07/0.1859, allocations: 0 / 0.7738 GB, free: 420 kB / 0.5606 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.329/0.5149, allocations: 1.634 MB / 0.7754 GB, free: 14.55 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate platform static: time 6.967/7.482, allocations: 6.359 kB / 0.7754 GB, free: 14.55 MB / 0.5606 GB (rm -f BuildingSystems_BuildingSystems.Utilities.Math.Functions.Examples.SmoothHeavisideDerivatives.pipe ; mkfifo BuildingSystems_BuildingSystems.Utilities.Math.Functions.Examples.SmoothHeavisideDerivatives.pipe ; head -c 1048576 < BuildingSystems_BuildingSystems.Utilities.Math.Functions.Examples.SmoothHeavisideDerivatives.pipe >> ../files/BuildingSystems_BuildingSystems.Utilities.Math.Functions.Examples.SmoothHeavisideDerivatives.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_BuildingSystems_BuildingSystems_Utilities_Math_Functions_Examples_SmoothHeavisideDerivatives_fmu --startTime=-1 --stopTime=1 --timeout=50 --tolerance=1e-06 BuildingSystems_BuildingSystems_Utilities_Math_Functions_Examples_SmoothHeavisideDerivatives.fmu > BuildingSystems_BuildingSystems.Utilities.Math.Functions.Examples.SmoothHeavisideDerivatives.pipe 2>&1)