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: translateModel(BuildingSystems.Utilities.Math.Examples.SmoothHeaviside,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="BuildingSystems_BuildingSystems.Utilities.Math.Examples.SmoothHeaviside") translateModel(BuildingSystems.Utilities.Math.Examples.SmoothHeaviside,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="BuildingSystems_BuildingSystems.Utilities.Math.Examples.SmoothHeaviside") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009967/0.0009967, allocations: 113.5 kB / 16.37 MB, free: 6.012 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.0009544/0.0009544, allocations: 191.4 kB / 17.31 MB, free: 5.613 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.256/1.256, allocations: 222.9 MB / 241 MB, free: 15.17 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.001958/0.001958, allocations: 278.3 kB / 291.4 MB, free: 14.48 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.8892/0.8892, allocations: 169.3 MB / 0.4989 GB, free: 4.461 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001752/0.001752, allocations: 94.3 kB / 0.5967 GB, free: 14.46 MB / 414.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.145/0.1467, allocations: 86.98 MB / 0.6816 GB, free: 7.48 MB / 494.1 MB Notification: Performance of NFInst.instantiate(BuildingSystems.Utilities.Math.Examples.SmoothHeaviside): time 0.002303/0.1491, allocations: 1.419 MB / 0.683 GB, free: 6.047 MB / 494.1 MB Notification: Performance of NFInst.instExpressions: time 0.0006362/0.1497, allocations: 463.8 kB / 0.6834 GB, free: 5.586 MB / 494.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 3.057e-05/0.1498, allocations: 0 / 0.6834 GB, free: 5.586 MB / 494.1 MB Notification: Performance of NFTyping.typeComponents: time 2.584e-05/0.1498, allocations: 3.938 kB / 0.6834 GB, free: 5.582 MB / 494.1 MB Notification: Performance of NFTyping.typeBindings: time 5.135e-05/0.1499, allocations: 11.92 kB / 0.6835 GB, free: 5.57 MB / 494.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001727/0.15, allocations: 15.98 kB / 0.6835 GB, free: 5.555 MB / 494.1 MB Notification: Performance of NFFlatten.flatten: time 5.984e-05/0.1501, allocations: 27.92 kB / 0.6835 GB, free: 5.527 MB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 7.887e-05/0.1502, allocations: 23.91 kB / 0.6835 GB, free: 5.504 MB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 5.062e-05/0.1502, allocations: 7.875 kB / 0.6835 GB, free: 5.496 MB / 494.1 MB Notification: Performance of NFSimplifyModel.simplify: time 3.599e-05/0.1503, allocations: 15.92 kB / 0.6835 GB, free: 5.48 MB / 494.1 MB Notification: Performance of NFPackage.collectConstants: time 1.093e-05/0.1503, allocations: 4 kB / 0.6836 GB, free: 5.477 MB / 494.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.118e-05/0.1504, allocations: 19.97 kB / 0.6836 GB, free: 5.457 MB / 494.1 MB Notification: Performance of NFScalarize.scalarize: time 1.066e-05/0.1504, allocations: 4 kB / 0.6836 GB, free: 5.453 MB / 494.1 MB Notification: Performance of NFVerifyModel.verify: time 2.263e-05/0.1504, allocations: 15.92 kB / 0.6836 GB, free: 5.438 MB / 494.1 MB Notification: Performance of NFConvertDAE.convert: time 8.692e-05/0.1505, allocations: 31.89 kB / 0.6836 GB, free: 5.406 MB / 494.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.118e-06/0.1505, allocations: 4 kB / 0.6836 GB, free: 5.402 MB / 494.1 MB Notification: Performance of FrontEnd: time 1.693e-06/0.1505, allocations: 0 / 0.6836 GB, free: 5.402 MB / 494.1 MB Notification: Performance of Transformations before backend: time 3.898e-06/0.1505, allocations: 4 kB / 0.6836 GB, free: 5.398 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.0003627/0.1509, allocations: 339.4 kB / 0.684 GB, free: 5.02 MB / 494.1 MB Notification: Performance of prepare preOptimizeDAE: time 2.917e-05/0.1509, allocations: 12.03 kB / 0.684 GB, free: 5.008 MB / 494.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.559e-05/0.151, allocations: 0.9375 kB / 0.684 GB, free: 5.008 MB / 494.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 9.931e-05/0.1511, allocations: 168.3 kB / 0.6841 GB, free: 4.805 MB / 494.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.024e-05/0.1511, allocations: 4.375 kB / 0.6841 GB, free: 4.801 MB / 494.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.348e-06/0.1511, allocations: 384 / 0.6841 GB, free: 4.801 MB / 494.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001484/0.1512, allocations: 54 kB / 0.6842 GB, free: 4.742 MB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.245e-06/0.1513, allocations: 3.984 kB / 0.6842 GB, free: 4.738 MB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.354e-06/0.1513, allocations: 0 / 0.6842 GB, free: 4.738 MB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.008e-06/0.1513, allocations: 0 / 0.6842 GB, free: 4.738 MB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001403/0.1514, allocations: 31.97 kB / 0.6842 GB, free: 4.707 MB / 494.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002646/0.1517, allocations: 252.8 kB / 0.6845 GB, free: 4.41 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001096/0.1518, allocations: 42.5 kB / 0.6845 GB, free: 4.359 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 7.686e-05/0.1519, allocations: 24.91 kB / 0.6845 GB, free: 4.332 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001096/0.152, allocations: 85.09 kB / 0.6846 GB, free: 4.23 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.061e-05/0.152, allocations: 34.56 kB / 0.6846 GB, free: 4.188 MB / 494.1 MB Notification: Performance of pre-optimization done (n=2): time 1.012e-06/0.152, allocations: 0 / 0.6846 GB, free: 4.188 MB / 494.1 MB Notification: Performance of matching and sorting (n=2): time 0.0002991/0.1524, allocations: 89.58 kB / 0.6847 GB, free: 4.094 MB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.561e-05/0.1524, allocations: 51.41 kB / 0.6848 GB, free: 4.031 MB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.508e-05/0.1525, allocations: 101.8 kB / 0.6849 GB, free: 3.922 MB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 1.101e-05/0.1525, allocations: 29.7 kB / 0.6849 GB, free: 3.887 MB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.565e-05/0.1525, allocations: 88.08 kB / 0.685 GB, free: 3.797 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.084e-05/0.1525, allocations: 3.906 kB / 0.685 GB, free: 3.793 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.749e-05/0.1526, allocations: 13.72 kB / 0.685 GB, free: 3.773 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 8.709e-05/0.1527, allocations: 315 kB / 0.6853 GB, free: 3.457 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.527e-05/0.1527, allocations: 19.97 kB / 0.6853 GB, free: 3.438 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.165e-05/0.1528, allocations: 19.92 kB / 0.6853 GB, free: 3.418 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001255/0.1529, allocations: 40.77 kB / 0.6854 GB, free: 3.375 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.743e-06/0.153, allocations: 0 / 0.6854 GB, free: 3.375 MB / 494.1 MB Notification: Performance of matching and sorting (n=2) (initialization): time 0.0001644/0.1531, allocations: 73.66 kB / 0.6854 GB, free: 3.297 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.13e-05/0.1531, allocations: 8 kB / 0.6854 GB, free: 3.289 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.697e-06/0.1531, allocations: 3.938 kB / 0.6855 GB, free: 3.285 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 9.899e-06/0.1532, allocations: 0 / 0.6855 GB, free: 3.285 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.186e-05/0.1532, allocations: 7.984 kB / 0.6855 GB, free: 3.277 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.127e-06/0.1533, allocations: 0 / 0.6855 GB, free: 3.277 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.826e-05/0.1533, allocations: 4 kB / 0.6855 GB, free: 3.273 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.985e-06/0.1533, allocations: 7.984 kB / 0.6855 GB, free: 3.266 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.655e-05/0.1534, allocations: 117.8 kB / 0.6856 GB, free: 3.141 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.179e-05/0.1534, allocations: 0 / 0.6856 GB, free: 3.141 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000191/0.1536, allocations: 72.77 kB / 0.6857 GB, free: 3.062 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.403e-06/0.1536, allocations: 0 / 0.6857 GB, free: 3.062 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.537e-06/0.1536, allocations: 0 / 0.6857 GB, free: 3.062 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.138e-06/0.1536, allocations: 0 / 0.6857 GB, free: 3.062 MB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001384/0.1538, allocations: 173.4 kB / 0.6858 GB, free: 2.844 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.12e-07/0.1538, allocations: 4.031 kB / 0.6858 GB, free: 2.84 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.996e-05/0.1538, allocations: 8 kB / 0.6858 GB, free: 2.832 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.302e-06/0.1538, allocations: 0 / 0.6858 GB, free: 2.832 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.514e-06/0.1539, allocations: 3.984 kB / 0.6858 GB, free: 2.828 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.274e-06/0.1539, allocations: 4 kB / 0.6858 GB, free: 2.824 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.61e-07/0.1539, allocations: 0 / 0.6858 GB, free: 2.824 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001934/0.1541, allocations: 163.5 kB / 0.686 GB, free: 2.648 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 2.79e-05/0.1541, allocations: 77.11 kB / 0.6861 GB, free: 2.555 MB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.749e-06/0.1541, allocations: 0 / 0.6861 GB, free: 2.555 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.976e-05/0.1542, allocations: 12.23 kB / 0.6861 GB, free: 2.543 MB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.044e-05/0.1542, allocations: 3.984 kB / 0.6861 GB, free: 2.539 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.461e-06/0.1542, allocations: 8 kB / 0.6861 GB, free: 2.531 MB / 494.1 MB Notification: Performance of sorting global known variables: time 3.409e-05/0.1543, allocations: 79.28 kB / 0.6862 GB, free: 2.453 MB / 494.1 MB Notification: Performance of sort global known variables: time 1.21e-07/0.1543, allocations: 0 / 0.6862 GB, free: 2.453 MB / 494.1 MB Notification: Performance of remove unused functions: time 0.0002086/0.1545, allocations: 8 kB / 0.6862 GB, free: 2.445 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.0001154/0.1546, allocations: 115.2 kB / 0.6863 GB, free: 2.32 MB / 494.1 MB Notification: Performance of simCode: created initialization part: time 0.0001748/0.1548, allocations: 31.97 kB / 0.6863 GB, free: 2.289 MB / 494.1 MB Notification: Performance of simCode: created event and clocks part: time 1.423e-06/0.1548, allocations: 3.938 kB / 0.6863 GB, free: 2.285 MB / 494.1 MB Notification: Performance of simCode: created simulation system equations: time 7.411e-05/0.1549, allocations: 15.98 kB / 0.6863 GB, free: 2.27 MB / 494.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002314/0.1551, allocations: 16.05 kB / 0.6863 GB, free: 2.254 MB / 494.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002154/0.1553, allocations: 117.3 kB / 0.6865 GB, free: 2.117 MB / 494.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001937/0.1555, allocations: 0.6729 MB / 0.6871 GB, free: 1.418 MB / 494.1 MB Notification: Performance of simCode: alias equations: time 2.232e-05/0.1556, allocations: 3.984 kB / 0.6871 GB, free: 1.414 MB / 494.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.739e-05/0.1556, allocations: 15.38 kB / 0.6871 GB, free: 1.398 MB / 494.1 MB Notification: Performance of SimCode: time 2.2e-07/0.1556, allocations: 0 / 0.6871 GB, free: 1.398 MB / 494.1 MB Notification: Performance of Templates: time 0.002247/0.1579, allocations: 0.56 MB / 0.6877 GB, free: 0.8438 MB / 494.1 MB make -j1 -f BuildingSystems_BuildingSystems.Utilities.Math.Examples.SmoothHeaviside.makefile (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 & ./BuildingSystems_BuildingSystems.Utilities.Math.Examples.SmoothHeaviside -abortSlowSimulation -alarm=480 -s gbode -lv LOG_STATS > BuildingSystems_BuildingSystems.Utilities.Math.Examples.SmoothHeaviside.pipe 2>&1)