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/BuildingSystems 2.0.0-master/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/ModelicaServices 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) Using package NcDataReader2 with version 2.5.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/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) 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 BuildingSystems with version 2.0.0-beta (/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo) Running command: translateModel(BuildingSystems.Utilities.Math.Functions.Examples.SmoothHeavisideDerivatives,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="BuildingSystems_BuildingSystems.Utilities.Math.Functions.Examples.SmoothHeavisideDerivatives") translateModel(BuildingSystems.Utilities.Math.Functions.Examples.SmoothHeavisideDerivatives,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="BuildingSystems_BuildingSystems.Utilities.Math.Functions.Examples.SmoothHeavisideDerivatives") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.9859/0.9859, allocations: 141.7 MB / 154.3 MB, free: 15.47 MB / 138.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0009882/0.0009884, allocations: 182.1 kB / 187.3 MB, free: 11.88 MB / 154.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.614/1.614, allocations: 221.3 MB / 441.4 MB, free: 4.613 MB / 330.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008896/0.0008901, allocations: 92.59 kB / 0.5124 GB, free: 24.14 MB / 394.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.001841/0.001841, allocations: 279.1 kB / 0.5939 GB, free: 7.949 MB / 442.7 MB Notification: Performance of FrontEnd - loaded program: time 5.182e-05/5.219e-05, allocations: 8 kB / 0.6835 GB, free: 12.22 MB / 0.5261 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.487/0.4871, allocations: 82.77 MB / 0.7643 GB, free: 108.7 MB / 0.5261 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.1259/0.613, allocations: 108.5 MB / 0.8702 GB, free: 80 kB / 0.5261 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002228/0.6133, allocations: 84.45 kB / 0.8703 GB, free: 0 / 0.5261 GB Notification: Performance of FrontEnd - DAE generated: time 0.00242/0.6157, allocations: 0.8658 MB / 0.8711 GB, free: 15.14 MB / 0.5417 GB Notification: Performance of FrontEnd: time 1.533e-06/0.6157, allocations: 4 kB / 0.8711 GB, free: 15.13 MB / 0.5417 GB Notification: Performance of Transformations before backend: time 5.561e-06/0.6157, allocations: 2.125 kB / 0.8711 GB, free: 15.13 MB / 0.5417 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.0002456/0.616, allocations: 320.2 kB / 0.8714 GB, free: 14.78 MB / 0.5417 GB Notification: Performance of prepare preOptimizeDAE: time 4.488e-05/0.616, allocations: 8.031 kB / 0.8714 GB, free: 14.77 MB / 0.5417 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.192e-05/0.6161, allocations: 0 / 0.8714 GB, free: 14.77 MB / 0.5417 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000115/0.6162, allocations: 163.8 kB / 0.8716 GB, free: 14.57 MB / 0.5417 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.563e-05/0.6162, allocations: 7.953 kB / 0.8716 GB, free: 14.56 MB / 0.5417 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.28e-05/0.6162, allocations: 3.438 kB / 0.8716 GB, free: 14.56 MB / 0.5417 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000104/0.6163, allocations: 41.62 kB / 0.8717 GB, free: 14.52 MB / 0.5417 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.034e-05/0.6164, allocations: 0 / 0.8717 GB, free: 14.52 MB / 0.5417 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.758e-06/0.6164, allocations: 0 / 0.8717 GB, free: 14.52 MB / 0.5417 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.438e-06/0.6164, allocations: 0 / 0.8717 GB, free: 14.52 MB / 0.5417 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.469e-05/0.6164, allocations: 4 kB / 0.8717 GB, free: 14.51 MB / 0.5417 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001725/0.6166, allocations: 157.7 kB / 0.8718 GB, free: 14.31 MB / 0.5417 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001592/0.6168, allocations: 34.64 kB / 0.8718 GB, free: 14.27 MB / 0.5417 GB Notification: Performance of preOpt resolveLoops (simulation): time 2.593e-05/0.6168, allocations: 20.8 kB / 0.8719 GB, free: 14.25 MB / 0.5417 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001492/0.617, allocations: 81.11 kB / 0.8719 GB, free: 14.15 MB / 0.5417 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.557e-05/0.617, allocations: 34.5 kB / 0.872 GB, free: 14.11 MB / 0.5417 GB Notification: Performance of pre-optimization done (n=3): time 1.112e-06/0.617, allocations: 3.938 kB / 0.872 GB, free: 14.1 MB / 0.5417 GB Notification: Performance of matching and sorting (n=5): time 0.00252/0.6195, allocations: 352.3 kB / 0.8723 GB, free: 13.75 MB / 0.5417 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.373e-05/0.6196, allocations: 55.41 kB / 0.8724 GB, free: 13.69 MB / 0.5417 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 3.51e-05/0.6196, allocations: 85 kB / 0.8724 GB, free: 13.6 MB / 0.5417 GB Notification: Performance of collectPreVariables (initialization): time 2.258e-05/0.6197, allocations: 29.7 kB / 0.8725 GB, free: 13.56 MB / 0.5417 GB Notification: Performance of collectInitialEqns (initialization): time 3.219e-05/0.6197, allocations: 80.14 kB / 0.8726 GB, free: 13.48 MB / 0.5417 GB Notification: Performance of collectInitialBindings (initialization): time 3.56e-05/0.6197, allocations: 11.75 kB / 0.8726 GB, free: 13.47 MB / 0.5417 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.131e-05/0.6198, allocations: 8 kB / 0.8726 GB, free: 13.46 MB / 0.5417 GB Notification: Performance of setup shared object (initialization): time 0.0001131/0.6199, allocations: 314.8 kB / 0.8729 GB, free: 13.14 MB / 0.5417 GB Notification: Performance of preBalanceInitialSystem (initialization): time 4.212e-05/0.6199, allocations: 7.984 kB / 0.8729 GB, free: 13.14 MB / 0.5417 GB Notification: Performance of partitionIndependentBlocks (initialization): time 5.323e-05/0.62, allocations: 26.58 kB / 0.8729 GB, free: 13.1 MB / 0.5417 GB Notification: Performance of analyzeInitialSystem (initialization): time 5.633e-05/0.62, allocations: 8 kB / 0.8729 GB, free: 13.09 MB / 0.5417 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.31e-07/0.62, allocations: 4 kB / 0.8729 GB, free: 13.09 MB / 0.5417 GB Notification: Performance of matching and sorting (n=5) (initialization): time 0.0001603/0.6202, allocations: 69.56 kB / 0.873 GB, free: 13.02 MB / 0.5417 GB Notification: Performance of prepare postOptimizeDAE: time 1.614e-05/0.6202, allocations: 4 kB / 0.873 GB, free: 13.01 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.25e-06/0.6202, allocations: 0 / 0.873 GB, free: 13.01 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.578e-05/0.6203, allocations: 4 kB / 0.873 GB, free: 13.01 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003945/0.6207, allocations: 52 kB / 0.873 GB, free: 12.96 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.297e-06/0.6207, allocations: 0 / 0.873 GB, free: 12.96 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003378/0.621, allocations: 43.98 kB / 0.8731 GB, free: 12.91 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.58e-05/0.6211, allocations: 4 kB / 0.8731 GB, free: 12.91 MB / 0.5417 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 () * 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 8.742e-05/0.6211, allocations: 108.9 kB / 0.8732 GB, free: 12.8 MB / 0.5417 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.68e-05/0.6212, allocations: 3.953 kB / 0.8732 GB, free: 12.79 MB / 0.5417 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002777/0.6215, allocations: 85.2 kB / 0.8733 GB, free: 12.71 MB / 0.5417 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.546e-06/0.6215, allocations: 0 / 0.8733 GB, free: 12.71 MB / 0.5417 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.6e-06/0.6215, allocations: 0 / 0.8733 GB, free: 12.71 MB / 0.5417 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.102e-06/0.6215, allocations: 4 kB / 0.8733 GB, free: 12.7 MB / 0.5417 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004656/0.622, allocations: 314.4 kB / 0.8736 GB, free: 12.34 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.413e-06/0.622, allocations: 0 / 0.8736 GB, free: 12.34 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003716/0.6223, allocations: 47.97 kB / 0.8736 GB, free: 12.29 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.465e-06/0.6224, allocations: 4 kB / 0.8736 GB, free: 12.29 MB / 0.5417 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.406e-05/0.6224, allocations: 0 / 0.8736 GB, free: 12.29 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.472e-06/0.6224, allocations: 0 / 0.8736 GB, free: 12.29 MB / 0.5417 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.717e-06/0.6224, allocations: 320 / 0.8736 GB, free: 12.29 MB / 0.5417 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001979/0.6226, allocations: 163.5 kB / 0.8738 GB, free: 12.11 MB / 0.5417 GB Notification: Performance of postOpt removeConstants (simulation): time 4.044e-05/0.6227, allocations: 81.06 kB / 0.8739 GB, free: 12.02 MB / 0.5417 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.245e-05/0.6227, allocations: 8 kB / 0.8739 GB, free: 12.01 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003566/0.623, allocations: 35.98 kB / 0.8739 GB, free: 11.97 MB / 0.5417 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.302e-05/0.6231, allocations: 7.984 kB / 0.8739 GB, free: 11.96 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.047e-05/0.6231, allocations: 0 / 0.8739 GB, free: 11.96 MB / 0.5417 GB Notification: Performance of sorting global known variables: time 3.312e-05/0.6231, allocations: 75.28 kB / 0.874 GB, free: 11.89 MB / 0.5417 GB Notification: Performance of sort global known variables: time 1.914e-06/0.6231, allocations: 0 / 0.874 GB, free: 11.89 MB / 0.5417 GB Notification: Performance of remove unused functions: time 0.0002285/0.6234, allocations: 19.88 kB / 0.874 GB, free: 11.87 MB / 0.5417 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 () * 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0001902/0.6236, allocations: 107.2 kB / 0.8741 GB, free: 11.75 MB / 0.5417 GB Notification: Performance of simCode: created initialization part: time 0.0001504/0.6237, allocations: 31.92 kB / 0.8741 GB, free: 11.72 MB / 0.5417 GB Notification: Performance of simCode: created event and clocks part: time 2.325e-06/0.6237, allocations: 0 / 0.8741 GB, free: 11.72 MB / 0.5417 GB Notification: Performance of simCode: created simulation system equations: time 5.025e-05/0.6238, allocations: 12 kB / 0.8741 GB, free: 11.71 MB / 0.5417 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001234/0.6239, allocations: 0 / 0.8741 GB, free: 11.71 MB / 0.5417 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005634/0.6245, allocations: 116 kB / 0.8743 GB, free: 11.58 MB / 0.5417 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002774/0.6248, allocations: 0.677 MB / 0.8749 GB, free: 10.88 MB / 0.5417 GB Notification: Performance of simCode: alias equations: time 0.0002185/0.625, allocations: 36 kB / 0.875 GB, free: 10.84 MB / 0.5417 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.245e-05/0.6251, allocations: 7.438 kB / 0.875 GB, free: 10.83 MB / 0.5417 GB Notification: Performance of SimCode: time 2.51e-07/0.6251, allocations: 0 / 0.875 GB, free: 10.83 MB / 0.5417 GB Notification: Performance of Templates: time 0.002684/0.6278, allocations: 0.8 MB / 0.8757 GB, free: 10.04 MB / 0.5417 GB make -j1 -f BuildingSystems_BuildingSystems.Utilities.Math.Functions.Examples.SmoothHeavisideDerivatives.makefile (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 & ./BuildingSystems_BuildingSystems.Utilities.Math.Functions.Examples.SmoothHeavisideDerivatives -abortSlowSimulation -alarm=480 -lv LOG_STATS > BuildingSystems_BuildingSystems.Utilities.Math.Functions.Examples.SmoothHeavisideDerivatives.pipe 2>&1)