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: 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/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001348/0.001348, allocations: 111.3 kB / 15.23 MB, free: 0.6406 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.001334/0.001334, allocations: 192.3 kB / 16.14 MB, free: 6.715 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.424/1.424, allocations: 222.9 MB / 239.8 MB, free: 4.605 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002725/0.002725, allocations: 278.9 kB / 290.2 MB, free: 2.215 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 1.061/1.061, allocations: 178.6 MB / 0.5068 GB, free: 4.785 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002734/0.002734, allocations: 104.1 kB / 0.6057 GB, free: 25.11 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1774/0.1802, allocations: 89.14 MB / 0.6928 GB, free: 4.832 MB / 494.1 MB Notification: Performance of NFInst.instantiate(BuildingSystems.Utilities.Math.Functions.Examples.SmoothHeavisideDerivatives): time 0.001864/0.1821, allocations: 0.6593 MB / 0.6934 GB, free: 4.176 MB / 494.1 MB Notification: Performance of NFInst.instExpressions: time 0.001413/0.1835, allocations: 1.102 MB / 0.6945 GB, free: 3.059 MB / 494.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.172e-05/0.1835, allocations: 0 / 0.6945 GB, free: 3.059 MB / 494.1 MB Notification: Performance of NFTyping.typeComponents: time 1.871e-05/0.1836, allocations: 4.688 kB / 0.6945 GB, free: 3.055 MB / 494.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001872/0.1838, allocations: 13.7 kB / 0.6945 GB, free: 3.043 MB / 494.1 MB Notification: Performance of NFTyping.typeClassSections: time 2.595e-06/0.1838, allocations: 0 / 0.6945 GB, free: 3.043 MB / 494.1 MB Notification: Performance of NFFlatten.flatten: time 2.849e-05/0.1838, allocations: 0 / 0.6945 GB, free: 3.043 MB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.92e-05/0.1839, allocations: 4 kB / 0.6945 GB, free: 3.039 MB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.494e-05/0.1839, allocations: 0 / 0.6945 GB, free: 3.039 MB / 494.1 MB Notification: Performance of NFSimplifyModel.simplify: time 2.265e-05/0.1839, allocations: 12.52 kB / 0.6946 GB, free: 3.027 MB / 494.1 MB Notification: Performance of NFPackage.collectConstants: time 6.321e-06/0.1839, allocations: 0 / 0.6946 GB, free: 3.027 MB / 494.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000101/0.184, allocations: 23.98 kB / 0.6946 GB, free: 3.004 MB / 494.1 MB Notification: Performance of NFScalarize.scalarize: time 6.382e-06/0.184, allocations: 4 kB / 0.6946 GB, free: 3 MB / 494.1 MB Notification: Performance of NFVerifyModel.verify: time 1.351e-05/0.1841, allocations: 0 / 0.6946 GB, free: 3 MB / 494.1 MB Notification: Performance of NFConvertDAE.convert: time 7.673e-05/0.1841, allocations: 15.97 kB / 0.6946 GB, free: 2.984 MB / 494.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.927e-06/0.1841, allocations: 3.938 kB / 0.6946 GB, free: 2.98 MB / 494.1 MB Notification: Performance of FrontEnd: time 6.31e-07/0.1841, allocations: 0 / 0.6946 GB, free: 2.98 MB / 494.1 MB Notification: Performance of Transformations before backend: time 5.431e-06/0.1842, allocations: 0 / 0.6946 GB, free: 2.98 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.0003163/0.1845, allocations: 324.9 kB / 0.6949 GB, free: 2.617 MB / 494.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.69e-05/0.1845, allocations: 8.031 kB / 0.6949 GB, free: 2.609 MB / 494.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.352e-05/0.1846, allocations: 0.9375 kB / 0.6949 GB, free: 2.609 MB / 494.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001177/0.1847, allocations: 168.4 kB / 0.6951 GB, free: 2.406 MB / 494.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.116e-05/0.1847, allocations: 384 / 0.6951 GB, free: 2.406 MB / 494.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.345e-05/0.1847, allocations: 4.375 kB / 0.6951 GB, free: 2.402 MB / 494.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 9.785e-05/0.1848, allocations: 38.02 kB / 0.6951 GB, free: 2.359 MB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.738e-06/0.1848, allocations: 0 / 0.6951 GB, free: 2.359 MB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.574e-06/0.1849, allocations: 0 / 0.6951 GB, free: 2.359 MB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.1e-06/0.1849, allocations: 3.938 kB / 0.6951 GB, free: 2.355 MB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.572e-05/0.1849, allocations: 7.984 kB / 0.6951 GB, free: 2.348 MB / 494.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001993/0.1851, allocations: 157.8 kB / 0.6953 GB, free: 2.145 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001884/0.1853, allocations: 38.61 kB / 0.6953 GB, free: 2.098 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 2.02e-05/0.1854, allocations: 4.859 kB / 0.6953 GB, free: 2.09 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001677/0.1855, allocations: 89.17 kB / 0.6954 GB, free: 1.984 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.115e-05/0.1856, allocations: 38.5 kB / 0.6954 GB, free: 1.938 MB / 494.1 MB Notification: Performance of pre-optimization done (n=3): time 1.292e-06/0.1856, allocations: 0 / 0.6954 GB, free: 1.938 MB / 494.1 MB Notification: Performance of matching and sorting (n=5): time 0.004444/0.19, allocations: 0.5676 MB / 0.696 GB, free: 1.363 MB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.05e-05/0.1901, allocations: 55.41 kB / 0.6961 GB, free: 1.297 MB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.559e-05/0.1901, allocations: 89.86 kB / 0.6961 GB, free: 1.199 MB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 2.599e-05/0.1902, allocations: 29.7 kB / 0.6962 GB, free: 1.164 MB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.867e-05/0.1902, allocations: 80.14 kB / 0.6962 GB, free: 1.082 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.496e-05/0.1903, allocations: 15.8 kB / 0.6963 GB, free: 1.066 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.945e-05/0.1903, allocations: 17.72 kB / 0.6963 GB, free: 1.043 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 0.0001374/0.1905, allocations: 314.8 kB / 0.6966 GB, free: 0.7266 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006148/0.1911, allocations: 87.95 kB / 0.6967 GB, free: 0.6406 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006157/0.1917, allocations: 102.5 kB / 0.6968 GB, free: 0.5312 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0012/0.1929, allocations: 186.5 kB / 0.6969 GB, free: 348 kB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.82e-07/0.1929, allocations: 0 / 0.6969 GB, free: 348 kB / 494.1 MB Notification: Performance of matching and sorting (n=5) (initialization): time 0.001323/0.1943, allocations: 213.5 kB / 0.6971 GB, free: 128 kB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.111e-05/0.1943, allocations: 8 kB / 0.6971 GB, free: 120 kB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.01e-06/0.1943, allocations: 3.938 kB / 0.6971 GB, free: 116 kB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.211e-05/0.1943, allocations: 0 / 0.6971 GB, free: 116 kB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004063/0.1947, allocations: 56 kB / 0.6972 GB, free: 60 kB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.065e-05/0.1948, allocations: 3.984 kB / 0.6972 GB, free: 56 kB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003596/0.1951, allocations: 43.92 kB / 0.6972 GB, free: 12 kB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.426e-05/0.1952, allocations: 0 / 0.6972 GB, free: 12 kB / 494.1 MB 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 0.0001702/0.1953, allocations: 109.8 kB / 0.6974 GB, free: 15.89 MB / 0.4981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.55e-05/0.1954, allocations: 8.031 kB / 0.6974 GB, free: 15.89 MB / 0.4981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001458/0.1968, allocations: 249 kB / 0.6976 GB, free: 15.64 MB / 0.4981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.876e-06/0.1968, allocations: 4 kB / 0.6976 GB, free: 15.64 MB / 0.4981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.687e-06/0.1968, allocations: 0 / 0.6976 GB, free: 15.64 MB / 0.4981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.274e-06/0.1969, allocations: 0 / 0.6976 GB, free: 15.64 MB / 0.4981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001617/0.1985, allocations: 450.5 kB / 0.698 GB, free: 15.14 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.683e-06/0.1985, allocations: 4 kB / 0.698 GB, free: 15.14 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004064/0.1989, allocations: 47.91 kB / 0.6981 GB, free: 15.09 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.205e-06/0.1989, allocations: 4 kB / 0.6981 GB, free: 15.09 MB / 0.4981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.6e-05/0.1989, allocations: 4 kB / 0.6981 GB, free: 15.08 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.343e-06/0.1989, allocations: 0 / 0.6981 GB, free: 15.08 MB / 0.4981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.12e-07/0.199, allocations: 0 / 0.6981 GB, free: 15.08 MB / 0.4981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001353/0.2003, allocations: 307.4 kB / 0.6984 GB, free: 14.77 MB / 0.4981 GB Notification: Performance of postOpt removeConstants (simulation): time 4.149e-05/0.2004, allocations: 81.05 kB / 0.6985 GB, free: 14.67 MB / 0.4981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.765e-05/0.2004, allocations: 4 kB / 0.6985 GB, free: 14.66 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003824/0.2008, allocations: 43.97 kB / 0.6985 GB, free: 14.62 MB / 0.4981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.233e-05/0.2008, allocations: 0 / 0.6985 GB, free: 14.62 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.118e-05/0.2008, allocations: 4 kB / 0.6985 GB, free: 14.62 MB / 0.4981 GB Notification: Performance of sorting global known variables: time 4.143e-05/0.2009, allocations: 79.28 kB / 0.6986 GB, free: 14.54 MB / 0.4981 GB Notification: Performance of sort global known variables: time 1.1e-07/0.2009, allocations: 0 / 0.6986 GB, free: 14.54 MB / 0.4981 GB Notification: Performance of remove unused functions: time 0.0002674/0.2012, allocations: 15.94 kB / 0.6986 GB, free: 14.52 MB / 0.4981 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.0001825/0.2013, allocations: 115.2 kB / 0.6987 GB, free: 14.4 MB / 0.4981 GB Notification: Performance of simCode: created initialization part: time 0.001288/0.2026, allocations: 179.8 kB / 0.6989 GB, free: 14.22 MB / 0.4981 GB Notification: Performance of simCode: created event and clocks part: time 4.618e-06/0.2027, allocations: 4.188 kB / 0.6989 GB, free: 14.22 MB / 0.4981 GB Notification: Performance of simCode: created simulation system equations: time 0.0006012/0.2033, allocations: 87.89 kB / 0.699 GB, free: 14.13 MB / 0.4981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002196/0.2035, allocations: 7.984 kB / 0.699 GB, free: 14.12 MB / 0.4981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001154/0.2047, allocations: 222.8 kB / 0.6992 GB, free: 13.88 MB / 0.4981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003432/0.205, allocations: 0.6731 MB / 0.6998 GB, free: 13.18 MB / 0.4981 GB Notification: Performance of simCode: alias equations: time 0.0002374/0.2053, allocations: 35.98 kB / 0.6999 GB, free: 13.15 MB / 0.4981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.878e-05/0.2053, allocations: 15.42 kB / 0.6999 GB, free: 13.13 MB / 0.4981 GB Notification: Performance of SimCode: time 2.2e-07/0.2053, allocations: 0 / 0.6999 GB, free: 13.13 MB / 0.4981 GB Notification: Performance of Templates: time 0.003163/0.2085, allocations: 0.8094 MB / 0.7007 GB, free: 12.34 MB / 0.4981 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)