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.0008235/0.0008235, allocations: 98.27 kB / 15.36 MB, free: 0.7344 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.004817/0.004817, allocations: 169.5 kB / 16.27 MB, free: 6.336 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.177/1.177, allocations: 223.3 MB / 240.3 MB, free: 5.352 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.001646/0.001646, allocations: 270.7 kB / 291.7 MB, free: 1.891 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.864/0.864, allocations: 169.5 MB / 0.5004 GB, free: 14.1 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003574/0.0003574, allocations: 15.31 kB / 0.5988 GB, free: 28.06 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1229/0.1232, allocations: 88.55 MB / 0.6852 GB, free: 14.96 MB / 494.1 MB Notification: Performance of NFInst.instantiate(BuildingSystems.Utilities.Math.Functions.Examples.SmoothHeavisideDerivatives): time 0.0005536/0.1238, allocations: 318 kB / 0.6855 GB, free: 14.65 MB / 494.1 MB Notification: Performance of NFInst.instExpressions: time 0.001038/0.1249, allocations: 1.09 MB / 0.6866 GB, free: 13.55 MB / 494.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.578e-06/0.1249, allocations: 8.781 kB / 0.6866 GB, free: 13.54 MB / 494.1 MB Notification: Performance of NFTyping.typeComponents: time 9.257e-06/0.1249, allocations: 0 / 0.6866 GB, free: 13.54 MB / 494.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001593/0.1251, allocations: 23.34 kB / 0.6866 GB, free: 13.52 MB / 494.1 MB Notification: Performance of NFTyping.typeClassSections: time 2.134e-06/0.1251, allocations: 0 / 0.6866 GB, free: 13.52 MB / 494.1 MB Notification: Performance of NFFlatten.flatten: time 2.863e-05/0.1251, allocations: 7.938 kB / 0.6866 GB, free: 13.51 MB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 2.885e-05/0.1251, allocations: 0 / 0.6866 GB, free: 13.51 MB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.044e-05/0.1252, allocations: 0 / 0.6866 GB, free: 13.51 MB / 494.1 MB Notification: Performance of NFSimplifyModel.simplify: time 1.861e-05/0.1252, allocations: 4 kB / 0.6867 GB, free: 13.51 MB / 494.1 MB Notification: Performance of NFPackage.collectConstants: time 5.51e-06/0.1252, allocations: 0 / 0.6867 GB, free: 13.51 MB / 494.1 MB Notification: Performance of NFFlatten.collectFunctions: time 8.354e-05/0.1253, allocations: 23.98 kB / 0.6867 GB, free: 13.48 MB / 494.1 MB Notification: Performance of NFScalarize.scalarize: time 6.532e-06/0.1253, allocations: 3.984 kB / 0.6867 GB, free: 13.48 MB / 494.1 MB Notification: Performance of NFVerifyModel.verify: time 2.369e-05/0.1253, allocations: 34.08 kB / 0.6867 GB, free: 13.44 MB / 494.1 MB Notification: Performance of NFConvertDAE.convert: time 5.365e-05/0.1254, allocations: 7.984 kB / 0.6867 GB, free: 13.43 MB / 494.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.735e-06/0.1254, allocations: 0.5938 kB / 0.6867 GB, free: 13.43 MB / 494.1 MB Notification: Performance of FrontEnd: time 1.303e-06/0.1254, allocations: 4.562 kB / 0.6867 GB, free: 13.43 MB / 494.1 MB Notification: Performance of Transformations before backend: time 2.675e-06/0.1254, allocations: 0 / 0.6867 GB, free: 13.43 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.0001966/0.1256, allocations: 316.5 kB / 0.687 GB, free: 13.07 MB / 494.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.14e-05/0.1256, allocations: 13.94 kB / 0.687 GB, free: 13.06 MB / 494.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.616e-05/0.1257, allocations: 34.73 kB / 0.6871 GB, free: 13.02 MB / 494.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 1.564e-05/0.1257, allocations: 0.9375 kB / 0.6871 GB, free: 13.02 MB / 494.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 7.24e-05/0.1258, allocations: 164.3 kB / 0.6872 GB, free: 12.82 MB / 494.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.083e-06/0.1258, allocations: 1.562 kB / 0.6872 GB, free: 12.82 MB / 494.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.939e-05/0.1258, allocations: 8.359 kB / 0.6872 GB, free: 12.81 MB / 494.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 7.09e-05/0.1259, allocations: 37.83 kB / 0.6873 GB, free: 12.77 MB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.927e-06/0.1259, allocations: 0.5625 kB / 0.6873 GB, free: 12.77 MB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.59e-06/0.1259, allocations: 8.531 kB / 0.6873 GB, free: 12.76 MB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.436e-06/0.1259, allocations: 0 / 0.6873 GB, free: 12.76 MB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.899e-05/0.126, allocations: 9.922 kB / 0.6873 GB, free: 12.75 MB / 494.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001124/0.1261, allocations: 149.7 kB / 0.6874 GB, free: 12.56 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001371/0.1262, allocations: 35.14 kB / 0.6875 GB, free: 12.52 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.745e-05/0.1262, allocations: 11.33 kB / 0.6875 GB, free: 12.5 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001183/0.1264, allocations: 81.19 kB / 0.6876 GB, free: 12.41 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.123e-05/0.1264, allocations: 46.44 kB / 0.6876 GB, free: 12.35 MB / 494.1 MB Notification: Performance of pre-optimization done (n=3): time 9.22e-07/0.1264, allocations: 0 / 0.6876 GB, free: 12.35 MB / 494.1 MB Notification: Performance of matching and sorting (n=5): time 0.003846/0.1303, allocations: 0.5682 MB / 0.6882 GB, free: 11.79 MB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.587e-05/0.1303, allocations: 51.41 kB / 0.6882 GB, free: 11.73 MB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 3.519e-05/0.1303, allocations: 93.86 kB / 0.6883 GB, free: 11.62 MB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 1.743e-05/0.1304, allocations: 25.7 kB / 0.6883 GB, free: 11.59 MB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 2.142e-05/0.1304, allocations: 88.12 kB / 0.6884 GB, free: 11.5 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.188e-05/0.1304, allocations: 15.81 kB / 0.6884 GB, free: 11.49 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.463e-05/0.1305, allocations: 13.7 kB / 0.6884 GB, free: 11.47 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 8.4e-05/0.1305, allocations: 314.8 kB / 0.6887 GB, free: 11.15 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005552/0.1311, allocations: 83.95 kB / 0.6888 GB, free: 11.07 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005517/0.1317, allocations: 102.5 kB / 0.6889 GB, free: 10.96 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001074/0.1327, allocations: 190.4 kB / 0.6891 GB, free: 10.77 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.32e-07/0.1328, allocations: 4 kB / 0.6891 GB, free: 10.76 MB / 494.1 MB Notification: Performance of matching and sorting (n=5) (initialization): time 0.001129/0.1339, allocations: 221.5 kB / 0.6893 GB, free: 10.54 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.072e-05/0.1339, allocations: 6.031 kB / 0.6893 GB, free: 10.54 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.537e-06/0.1339, allocations: 0 / 0.6893 GB, free: 10.54 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 7.775e-06/0.1339, allocations: 0 / 0.6893 GB, free: 10.54 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003509/0.1343, allocations: 52 kB / 0.6894 GB, free: 10.48 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.268e-06/0.1343, allocations: 0 / 0.6894 GB, free: 10.48 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003147/0.1346, allocations: 43.97 kB / 0.6894 GB, free: 10.44 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.224e-05/0.1346, allocations: 4 kB / 0.6894 GB, free: 10.44 MB / 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 7.432e-05/0.1347, allocations: 115.1 kB / 0.6895 GB, free: 10.32 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.681e-05/0.1347, allocations: 3.938 kB / 0.6895 GB, free: 10.31 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001235/0.136, allocations: 241 kB / 0.6898 GB, free: 10.07 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.873e-06/0.136, allocations: 0 / 0.6898 GB, free: 10.07 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.956e-06/0.136, allocations: 432 / 0.6898 GB, free: 10.07 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.515e-06/0.136, allocations: 0 / 0.6898 GB, free: 10.07 MB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00133/0.1373, allocations: 458.3 kB / 0.6902 GB, free: 9.566 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.663e-06/0.1374, allocations: 3.938 kB / 0.6902 GB, free: 9.562 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000344/0.1377, allocations: 51.97 kB / 0.6902 GB, free: 9.512 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.693e-06/0.1377, allocations: 0 / 0.6902 GB, free: 9.512 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.461e-05/0.1377, allocations: 7.969 kB / 0.6903 GB, free: 9.504 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.603e-06/0.1377, allocations: 0 / 0.6903 GB, free: 9.504 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.52e-07/0.1377, allocations: 4 kB / 0.6903 GB, free: 9.5 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001153/0.1389, allocations: 303.8 kB / 0.6905 GB, free: 9.188 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.757e-05/0.139, allocations: 85.09 kB / 0.6906 GB, free: 9.086 MB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.75e-05/0.139, allocations: 0 / 0.6906 GB, free: 9.086 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000344/0.1393, allocations: 39.98 kB / 0.6907 GB, free: 9.047 MB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.146e-05/0.1393, allocations: 7.922 kB / 0.6907 GB, free: 9.039 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.064e-05/0.1394, allocations: 4 kB / 0.6907 GB, free: 9.035 MB / 494.1 MB Notification: Performance of sorting global known variables: time 2.059e-05/0.1394, allocations: 75.28 kB / 0.6907 GB, free: 8.961 MB / 494.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.1394, allocations: 4 kB / 0.6908 GB, free: 8.957 MB / 494.1 MB Notification: Performance of remove unused functions: time 0.0002215/0.1396, allocations: 12 kB / 0.6908 GB, free: 8.945 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 (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.001428/0.141, allocations: 0.8296 MB / 0.6916 GB, free: 8.086 MB / 494.1 MB Notification: Performance of simCode: created initialization part: time 0.001119/0.1422, allocations: 191.9 kB / 0.6918 GB, free: 7.898 MB / 494.1 MB Notification: Performance of simCode: created event and clocks part: time 1.874e-06/0.1422, allocations: 0 / 0.6918 GB, free: 7.898 MB / 494.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005368/0.1427, allocations: 84.08 kB / 0.6918 GB, free: 7.816 MB / 494.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001952/0.1429, allocations: 4.75 kB / 0.6918 GB, free: 7.812 MB / 494.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001151/0.1441, allocations: 252.2 kB / 0.6921 GB, free: 7.527 MB / 494.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001997/0.1443, allocations: 0.677 MB / 0.6927 GB, free: 6.824 MB / 494.1 MB Notification: Performance of simCode: alias equations: time 0.0001986/0.1445, allocations: 31.94 kB / 0.6928 GB, free: 6.793 MB / 494.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.063e-05/0.1446, allocations: 15.42 kB / 0.6928 GB, free: 6.777 MB / 494.1 MB Notification: Performance of SimCode: time 3e-07/0.1446, allocations: 3.938 kB / 0.6928 GB, free: 6.773 MB / 494.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 1.523/1.668, allocations: 1.44 MB / 0.6942 GB, free: 5.52 MB / 494.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002231/1.668, allocations: 240.1 kB / 0.6944 GB, free: 5.266 MB / 494.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.686/3.354, allocations: 0 / 0.6944 GB, free: 5.266 MB / 494.1 MB (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)