Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr BuildingSystems_BuildingSystems.Utilities.Math.Examples.SmoothBlocks.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.SmoothBlocks,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="BuildingSystems_BuildingSystems.Utilities.Math.Examples.SmoothBlocks") translateModel(BuildingSystems.Utilities.Math.Examples.SmoothBlocks,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="BuildingSystems_BuildingSystems.Utilities.Math.Examples.SmoothBlocks") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.005896/0.005896, allocations: 100.7 kB / 15.73 MB, free: 6.035 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.001206/0.001206, allocations: 191 kB / 16.67 MB, free: 5.973 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.343/1.343, allocations: 222.9 MB / 240.4 MB, free: 4.285 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002064/0.002064, allocations: 282.8 kB / 290.8 MB, free: 1.883 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.9893/0.9893, allocations: 169.3 MB / 0.4983 GB, free: 13.8 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001692/0.001692, allocations: 96.22 kB / 0.6815 GB, free: 15.49 MB / 494.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1549/0.1566, allocations: 86.98 MB / 0.7664 GB, free: 8.434 MB / 0.5606 GB Notification: Performance of NFInst.instantiate(BuildingSystems.Utilities.Math.Examples.SmoothBlocks): time 0.002731/0.1594, allocations: 1.771 MB / 0.7681 GB, free: 6.648 MB / 0.5606 GB Notification: Performance of NFInst.instExpressions: time 0.00103/0.1604, allocations: 0.6598 MB / 0.7688 GB, free: 5.98 MB / 0.5606 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.281e-05/0.1605, allocations: 4 kB / 0.7688 GB, free: 5.977 MB / 0.5606 GB Notification: Performance of NFTyping.typeComponents: time 4.357e-05/0.1605, allocations: 11.86 kB / 0.7688 GB, free: 5.965 MB / 0.5606 GB Notification: Performance of NFTyping.typeBindings: time 6.068e-05/0.1606, allocations: 11.81 kB / 0.7688 GB, free: 5.953 MB / 0.5606 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005526/0.1612, allocations: 173.4 kB / 0.769 GB, free: 5.789 MB / 0.5606 GB Notification: Performance of NFFlatten.flatten: time 0.0001738/0.1614, allocations: 127.6 kB / 0.7691 GB, free: 5.664 MB / 0.5606 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001604/0.1615, allocations: 56.78 kB / 0.7691 GB, free: 5.609 MB / 0.5606 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001356/0.1617, allocations: 63.75 kB / 0.7692 GB, free: 5.547 MB / 0.5606 GB Notification: Performance of NFSimplifyModel.simplify: time 9.265e-05/0.1618, allocations: 43.78 kB / 0.7692 GB, free: 5.504 MB / 0.5606 GB Notification: Performance of NFPackage.collectConstants: time 3.23e-05/0.1618, allocations: 15.94 kB / 0.7692 GB, free: 5.488 MB / 0.5606 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001167/0.1619, allocations: 47.95 kB / 0.7693 GB, free: 5.441 MB / 0.5606 GB Notification: Performance of NFScalarize.scalarize: time 3.389e-05/0.162, allocations: 27.91 kB / 0.7693 GB, free: 5.414 MB / 0.5606 GB Notification: Performance of NFVerifyModel.verify: time 5.322e-05/0.162, allocations: 59.7 kB / 0.7694 GB, free: 5.355 MB / 0.5606 GB Notification: Performance of NFConvertDAE.convert: time 0.0001997/0.1622, allocations: 139.6 kB / 0.7695 GB, free: 5.219 MB / 0.5606 GB Notification: Performance of FrontEnd - DAE generated: time 4.088e-06/0.1622, allocations: 0 / 0.7695 GB, free: 5.219 MB / 0.5606 GB Notification: Performance of FrontEnd: time 3.206e-06/0.1623, allocations: 3.984 kB / 0.7695 GB, free: 5.215 MB / 0.5606 GB Notification: Performance of Transformations before backend: time 6.101e-06/0.1623, allocations: 4 kB / 0.7695 GB, free: 5.211 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: 18 * Number of variables: 18 Notification: Performance of Generate backend data structure: time 0.0006219/0.1629, allocations: 446.9 kB / 0.7699 GB, free: 4.727 MB / 0.5606 GB Notification: Performance of prepare preOptimizeDAE: time 4.017e-05/0.1629, allocations: 12.03 kB / 0.77 GB, free: 4.715 MB / 0.5606 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008666/0.1638, allocations: 112.6 kB / 0.7701 GB, free: 4.605 MB / 0.5606 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001584/0.164, allocations: 176.2 kB / 0.7702 GB, free: 4.395 MB / 0.5606 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001132/0.1641, allocations: 63.97 kB / 0.7703 GB, free: 4.32 MB / 0.5606 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.187e-05/0.1641, allocations: 8.375 kB / 0.7703 GB, free: 4.312 MB / 0.5606 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005401/0.1647, allocations: 171.8 kB / 0.7705 GB, free: 4.141 MB / 0.5606 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.287e-05/0.1647, allocations: 0 / 0.7705 GB, free: 4.141 MB / 0.5606 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.495e-05/0.1647, allocations: 15.88 kB / 0.7705 GB, free: 4.125 MB / 0.5606 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.179e-06/0.1647, allocations: 0 / 0.7705 GB, free: 4.125 MB / 0.5606 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006279/0.1654, allocations: 159.7 kB / 0.7706 GB, free: 3.969 MB / 0.5606 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001114/0.1665, allocations: 481.9 kB / 0.7711 GB, free: 3.449 MB / 0.5606 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001044/0.1675, allocations: 222.3 kB / 0.7713 GB, free: 3.223 MB / 0.5606 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003047/0.1679, allocations: 76.91 kB / 0.7714 GB, free: 3.145 MB / 0.5606 GB Notification: Performance of preOpt evalFunc (simulation): time 2.542e-05/0.1679, allocations: 4 kB / 0.7714 GB, free: 3.141 MB / 0.5606 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.584e-05/0.1679, allocations: 34.56 kB / 0.7714 GB, free: 3.098 MB / 0.5606 GB Notification: Performance of pre-optimization done (n=6): time 1.332e-06/0.1679, allocations: 0 / 0.7714 GB, free: 3.098 MB / 0.5606 GB Notification: Performance of matching and sorting (n=6): time 0.001036/0.169, allocations: 269.4 kB / 0.7717 GB, free: 2.828 MB / 0.5606 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.427e-05/0.169, allocations: 51.41 kB / 0.7717 GB, free: 2.766 MB / 0.5606 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.919e-05/0.1691, allocations: 144 kB / 0.7719 GB, free: 2.617 MB / 0.5606 GB Notification: Performance of collectPreVariables (initialization): time 2.41e-05/0.1692, allocations: 25.7 kB / 0.7719 GB, free: 2.586 MB / 0.5606 GB Notification: Performance of collectInitialEqns (initialization): time 6.347e-05/0.1692, allocations: 108.2 kB / 0.772 GB, free: 2.473 MB / 0.5606 GB Notification: Performance of collectInitialBindings (initialization): time 2.306e-05/0.1693, allocations: 19.7 kB / 0.772 GB, free: 2.453 MB / 0.5606 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.223e-05/0.1693, allocations: 25.7 kB / 0.772 GB, free: 2.422 MB / 0.5606 GB Notification: Performance of setup shared object (initialization): time 8.879e-05/0.1694, allocations: 318.8 kB / 0.7723 GB, free: 2.102 MB / 0.5606 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000308/0.1697, allocations: 83.89 kB / 0.7724 GB, free: 2.02 MB / 0.5606 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003001/0.17, allocations: 90.5 kB / 0.7725 GB, free: 1.922 MB / 0.5606 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005848/0.1706, allocations: 162.6 kB / 0.7727 GB, free: 1.754 MB / 0.5606 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.274e-06/0.1706, allocations: 0 / 0.7727 GB, free: 1.754 MB / 0.5606 GB Notification: Performance of matching and sorting (n=8) (initialization): time 0.0006677/0.1713, allocations: 205.4 kB / 0.7729 GB, free: 1.547 MB / 0.5606 GB Notification: Performance of prepare postOptimizeDAE: time 1.515e-05/0.1713, allocations: 8 kB / 0.7729 GB, free: 1.539 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.092e-06/0.1713, allocations: 3.984 kB / 0.7729 GB, free: 1.535 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.715e-05/0.1714, allocations: 3.938 kB / 0.7729 GB, free: 1.531 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002664/0.1716, allocations: 40.02 kB / 0.7729 GB, free: 1.492 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.853e-06/0.1717, allocations: 7.875 kB / 0.7729 GB, free: 1.484 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001936/0.1719, allocations: 27.91 kB / 0.7729 GB, free: 1.457 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.371e-05/0.1719, allocations: 4 kB / 0.7729 GB, free: 1.453 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 (8): * Single equations (assignments): 8 * 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.431e-05/0.172, allocations: 118.5 kB / 0.7731 GB, free: 1.328 MB / 0.5606 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.157e-05/0.172, allocations: 11.84 kB / 0.7731 GB, free: 1.316 MB / 0.5606 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007074/0.1727, allocations: 206.2 kB / 0.7733 GB, free: 1.105 MB / 0.5606 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.178e-06/0.1727, allocations: 4 kB / 0.7733 GB, free: 1.102 MB / 0.5606 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.356e-06/0.1728, allocations: 0 / 0.7733 GB, free: 1.102 MB / 0.5606 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.755e-06/0.1728, allocations: 0 / 0.7733 GB, free: 1.102 MB / 0.5606 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002256/0.173, allocations: 238.3 kB / 0.7735 GB, free: 0.8203 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.082e-06/0.173, allocations: 4 kB / 0.7735 GB, free: 0.8164 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002458/0.1732, allocations: 35.89 kB / 0.7735 GB, free: 0.7812 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.043e-06/0.1733, allocations: 0 / 0.7735 GB, free: 0.7812 MB / 0.5606 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.363e-05/0.1733, allocations: 3.938 kB / 0.7735 GB, free: 0.7773 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.212e-06/0.1733, allocations: 0 / 0.7735 GB, free: 0.7773 MB / 0.5606 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.094e-06/0.1733, allocations: 4 kB / 0.7735 GB, free: 0.7734 MB / 0.5606 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006733/0.174, allocations: 279.3 kB / 0.7738 GB, free: 496 kB / 0.5606 GB Notification: Performance of postOpt removeConstants (simulation): time 4.254e-05/0.174, allocations: 89.02 kB / 0.7739 GB, free: 388 kB / 0.5606 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.365e-05/0.174, allocations: 3.938 kB / 0.7739 GB, free: 384 kB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003035/0.1744, allocations: 28.14 kB / 0.7739 GB, free: 356 kB / 0.5606 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.913e-05/0.1744, allocations: 11.98 kB / 0.7739 GB, free: 344 kB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.025e-05/0.1744, allocations: 15.98 kB / 0.7739 GB, free: 328 kB / 0.5606 GB Notification: Performance of sorting global known variables: time 5.754e-05/0.1745, allocations: 101.2 kB / 0.774 GB, free: 228 kB / 0.5606 GB Notification: Performance of sort global known variables: time 1.2e-07/0.1745, allocations: 0 / 0.774 GB, free: 228 kB / 0.5606 GB Notification: Performance of remove unused functions: time 0.0002618/0.1748, allocations: 27.94 kB / 0.7741 GB, free: 200 kB / 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 (6): * Single equations (assignments): 6 * 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.0001106/0.1749, allocations: 103.2 kB / 0.7742 GB, free: 88 kB / 0.5606 GB Notification: Performance of simCode: created initialization part: time 0.3197/0.4946, allocations: 159.2 kB / 0.7743 GB, free: 15.18 MB / 0.5606 GB Notification: Performance of simCode: created event and clocks part: time 5.77e-06/0.4946, allocations: 0.5625 kB / 0.7743 GB, free: 15.18 MB / 0.5606 GB Notification: Performance of simCode: created simulation system equations: time 0.0003329/0.495, allocations: 81.94 kB / 0.7744 GB, free: 15.18 MB / 0.5606 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003693/0.4954, allocations: 10.22 kB / 0.7744 GB, free: 15.18 MB / 0.5606 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007449/0.4961, allocations: 251 kB / 0.7746 GB, free: 15.05 MB / 0.5606 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001524/0.4963, allocations: 0.7032 MB / 0.7753 GB, free: 14.35 MB / 0.5606 GB Notification: Performance of simCode: alias equations: time 0.0001029/0.4964, allocations: 16.09 kB / 0.7754 GB, free: 14.35 MB / 0.5606 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.139e-05/0.4965, allocations: 13.89 kB / 0.7754 GB, free: 14.34 MB / 0.5606 GB Notification: Performance of SimCode: time 8.02e-07/0.4965, allocations: 0.7188 kB / 0.7754 GB, free: 14.34 MB / 0.5606 GB Notification: Performance of Templates: time 0.004239/0.5007, allocations: 1.479 MB / 0.7768 GB, free: 14.32 MB / 0.5606 GB make -j1 -f BuildingSystems_BuildingSystems.Utilities.Math.Examples.SmoothBlocks.makefile (rm -f BuildingSystems_BuildingSystems.Utilities.Math.Examples.SmoothBlocks.pipe ; mkfifo BuildingSystems_BuildingSystems.Utilities.Math.Examples.SmoothBlocks.pipe ; head -c 1048576 < BuildingSystems_BuildingSystems.Utilities.Math.Examples.SmoothBlocks.pipe >> ../files/BuildingSystems_BuildingSystems.Utilities.Math.Examples.SmoothBlocks.sim & ./BuildingSystems_BuildingSystems.Utilities.Math.Examples.SmoothBlocks -abortSlowSimulation -alarm=480 -lv LOG_STATS > BuildingSystems_BuildingSystems.Utilities.Math.Examples.SmoothBlocks.pipe 2>&1)