Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr IDEAS_IDEAS.Utilities.Math.Functions.Examples.SpliceFunctionDerivativeCheck.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/IDEAS 3.0.0-master/package.mo", uses=false) Using package IDEAS with version 3.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0-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(IDEAS.Utilities.Math.Functions.Examples.SpliceFunctionDerivativeCheck,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="IDEAS_IDEAS.Utilities.Math.Functions.Examples.SpliceFunctionDerivativeCheck") translateModel(IDEAS.Utilities.Math.Functions.Examples.SpliceFunctionDerivativeCheck,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="IDEAS_IDEAS.Utilities.Math.Functions.Examples.SpliceFunctionDerivativeCheck") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.000818/0.000818, allocations: 100.6 kB / 15.05 MB, free: 1.105 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.0008499/0.0008498, allocations: 177.3 kB / 15.94 MB, free: 228 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.219/1.219, allocations: 223.2 MB / 239.9 MB, free: 5.25 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0-master/package.mo): time 0.865/0.865, allocations: 135.2 MB / 426.2 MB, free: 14.36 MB / 350.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003184/0.0003186, allocations: 8 kB / 0.5068 GB, free: 5.234 MB / 414.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1537/0.1541, allocations: 82.31 MB / 0.5872 GB, free: 3.102 MB / 494.1 MB Notification: Performance of NFInst.instantiate(IDEAS.Utilities.Math.Functions.Examples.SpliceFunctionDerivativeCheck): time 0.0006439/0.1547, allocations: 331 kB / 0.5875 GB, free: 2.773 MB / 494.1 MB Notification: Performance of NFInst.instExpressions: time 0.001318/0.1561, allocations: 1.214 MB / 0.5887 GB, free: 1.547 MB / 494.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.638e-05/0.1561, allocations: 4 kB / 0.5887 GB, free: 1.543 MB / 494.1 MB Notification: Performance of NFTyping.typeComponents: time 1.263e-05/0.1561, allocations: 3.938 kB / 0.5887 GB, free: 1.539 MB / 494.1 MB Notification: Performance of NFTyping.typeBindings: time 1.911e-05/0.1561, allocations: 0 / 0.5887 GB, free: 1.539 MB / 494.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002927/0.1564, allocations: 55.23 kB / 0.5888 GB, free: 1.488 MB / 494.1 MB Notification: Performance of NFFlatten.flatten: time 4.647e-05/0.1565, allocations: 11.98 kB / 0.5888 GB, free: 1.477 MB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.763e-05/0.1565, allocations: 3.938 kB / 0.5888 GB, free: 1.473 MB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 2.051e-05/0.1566, allocations: 11.94 kB / 0.5888 GB, free: 1.461 MB / 494.1 MB Notification: Performance of NFSimplifyModel.simplify: time 5.837e-05/0.1566, allocations: 11.98 kB / 0.5888 GB, free: 1.449 MB / 494.1 MB Notification: Performance of NFPackage.collectConstants: time 1.049e-05/0.1566, allocations: 0 / 0.5888 GB, free: 1.449 MB / 494.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000181/0.1568, allocations: 99.83 kB / 0.5889 GB, free: 1.352 MB / 494.1 MB Notification: Performance of NFScalarize.scalarize: time 1.322e-05/0.1569, allocations: 7.969 kB / 0.5889 GB, free: 1.344 MB / 494.1 MB Notification: Performance of NFVerifyModel.verify: time 2.696e-05/0.1569, allocations: 29.7 kB / 0.5889 GB, free: 1.309 MB / 494.1 MB Notification: Performance of NFConvertDAE.convert: time 9.218e-05/0.157, allocations: 35.97 kB / 0.589 GB, free: 1.273 MB / 494.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.713e-06/0.157, allocations: 3.938 kB / 0.589 GB, free: 1.27 MB / 494.1 MB Notification: Performance of FrontEnd: time 1.944e-06/0.157, allocations: 3.984 kB / 0.589 GB, free: 1.266 MB / 494.1 MB Notification: Performance of Transformations before backend: time 3.226e-06/0.157, allocations: 0 / 0.589 GB, free: 1.266 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: 8 * Number of variables: 8 Notification: Performance of Generate backend data structure: time 0.0004006/0.1574, allocations: 339.3 kB / 0.5893 GB, free: 0.8867 MB / 494.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.592e-05/0.1575, allocations: 12.03 kB / 0.5893 GB, free: 0.875 MB / 494.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.592e-05/0.1575, allocations: 4 kB / 0.5893 GB, free: 0.8711 MB / 494.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001168/0.1576, allocations: 175.2 kB / 0.5895 GB, free: 0.6602 MB / 494.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.594e-05/0.1577, allocations: 4 kB / 0.5895 GB, free: 0.6562 MB / 494.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.684e-05/0.1577, allocations: 7.984 kB / 0.5895 GB, free: 0.6484 MB / 494.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001317/0.1578, allocations: 53.67 kB / 0.5895 GB, free: 0.5898 MB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.193e-05/0.1578, allocations: 0 / 0.5895 GB, free: 0.5898 MB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.251e-05/0.1579, allocations: 0 / 0.5895 GB, free: 0.5898 MB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.49e-06/0.1579, allocations: 4 kB / 0.5895 GB, free: 0.5859 MB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 6.778e-05/0.1579, allocations: 19.98 kB / 0.5896 GB, free: 0.5664 MB / 494.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001913/0.1581, allocations: 177.5 kB / 0.5897 GB, free: 352 kB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001148/0.1583, allocations: 62.48 kB / 0.5898 GB, free: 280 kB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0004897/0.1588, allocations: 0.5583 MB / 0.5903 GB, free: 15.59 MB / 0.4981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.72e-05/0.1588, allocations: 34.56 kB / 0.5904 GB, free: 15.54 MB / 0.4981 GB Notification: Performance of pre-optimization done (n=8): time 1.122e-06/0.1588, allocations: 0 / 0.5904 GB, free: 15.54 MB / 0.4981 GB Warning: Some equations could not be differentiated for following variables having attribute stateSelect=StateSelect.prefer. They will be treated as if they had stateSelect=StateSelect.default ======================================== 1: x 2: deltax Please use -d=bltdump for more information. Notification: Performance of matching and sorting (n=17): time 0.01799/0.1768, allocations: 4.204 MB / 0.5945 GB, free: 11.2 MB / 0.4981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.97e-05/0.1769, allocations: 55.41 kB / 0.5945 GB, free: 11.14 MB / 0.4981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.369e-05/0.177, allocations: 93.81 kB / 0.5946 GB, free: 11.04 MB / 0.4981 GB Notification: Performance of collectPreVariables (initialization): time 6.883e-05/0.177, allocations: 25.7 kB / 0.5946 GB, free: 11 MB / 0.4981 GB Notification: Performance of collectInitialEqns (initialization): time 2.932e-05/0.1771, allocations: 88.27 kB / 0.5947 GB, free: 10.91 MB / 0.4981 GB Notification: Performance of collectInitialBindings (initialization): time 9.696e-05/0.1772, allocations: 59.19 kB / 0.5948 GB, free: 10.86 MB / 0.4981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.32e-05/0.1772, allocations: 0 / 0.5948 GB, free: 10.86 MB / 0.4981 GB Notification: Performance of setup shared object (initialization): time 0.0001062/0.1773, allocations: 326.8 kB / 0.5951 GB, free: 10.53 MB / 0.4981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000453/0.1778, allocations: 307.8 kB / 0.5954 GB, free: 10.23 MB / 0.4981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004556/0.1783, allocations: 314.2 kB / 0.5957 GB, free: 9.922 MB / 0.4981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006622/0.1789, allocations: 375.9 kB / 0.5961 GB, free: 9.555 MB / 0.4981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.233e-06/0.1789, allocations: 0 / 0.5961 GB, free: 9.555 MB / 0.4981 GB Notification: Performance of matching and sorting (n=18) (initialization): time 0.001375/0.1803, allocations: 0.7926 MB / 0.5968 GB, free: 8.758 MB / 0.4981 GB Notification: Performance of prepare postOptimizeDAE: time 1.816e-05/0.1804, allocations: 12 kB / 0.5968 GB, free: 8.746 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.012e-06/0.1804, allocations: 0 / 0.5968 GB, free: 8.746 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.299e-05/0.1804, allocations: 0 / 0.5968 GB, free: 8.746 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007432/0.1811, allocations: 91.89 kB / 0.5969 GB, free: 8.656 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.732e-06/0.1811, allocations: 0 / 0.5969 GB, free: 8.656 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004927/0.1816, allocations: 15.98 kB / 0.5969 GB, free: 8.641 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.284e-05/0.1817, allocations: 35.94 kB / 0.597 GB, free: 8.605 MB / 0.4981 GB 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 (18): * Single equations (assignments): 18 * 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 0.0001889/0.1819, allocations: 121.8 kB / 0.5971 GB, free: 8.477 MB / 0.4981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.272e-05/0.182, allocations: 3.906 kB / 0.5971 GB, free: 8.473 MB / 0.4981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002942/0.1849, allocations: 1.396 MB / 0.5985 GB, free: 7.066 MB / 0.4981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.241e-06/0.185, allocations: 4 kB / 0.5985 GB, free: 7.062 MB / 0.4981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.293e-06/0.185, allocations: 3.984 kB / 0.5985 GB, free: 7.059 MB / 0.4981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.638e-06/0.185, allocations: 3.938 kB / 0.5985 GB, free: 7.055 MB / 0.4981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00262/0.1876, allocations: 1.81 MB / 0.6002 GB, free: 5.184 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.545e-06/0.1876, allocations: 0 / 0.6002 GB, free: 5.184 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000735/0.1884, allocations: 107.9 kB / 0.6003 GB, free: 5.078 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (simulation): time 7.023e-06/0.1884, allocations: 4 kB / 0.6003 GB, free: 5.074 MB / 0.4981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.462e-05/0.1884, allocations: 31.94 kB / 0.6004 GB, free: 5.043 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.817e-06/0.1884, allocations: 4 kB / 0.6004 GB, free: 5.039 MB / 0.4981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.112e-06/0.1885, allocations: 0 / 0.6004 GB, free: 5.039 MB / 0.4981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002059/0.1905, allocations: 1.459 MB / 0.6018 GB, free: 3.555 MB / 0.4981 GB Notification: Performance of postOpt removeConstants (simulation): time 5.087e-05/0.1906, allocations: 96.89 kB / 0.6019 GB, free: 3.441 MB / 0.4981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.741e-05/0.1907, allocations: 8 kB / 0.6019 GB, free: 3.434 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004865/0.1912, allocations: 8 kB / 0.6019 GB, free: 3.426 MB / 0.4981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000112/0.1913, allocations: 47.91 kB / 0.602 GB, free: 3.379 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.249e-05/0.1914, allocations: 31.98 kB / 0.602 GB, free: 3.348 MB / 0.4981 GB Notification: Performance of sorting global known variables: time 3.658e-05/0.1914, allocations: 79.28 kB / 0.6021 GB, free: 3.27 MB / 0.4981 GB Notification: Performance of sort global known variables: time 2e-07/0.1914, allocations: 4.156 kB / 0.6021 GB, free: 3.266 MB / 0.4981 GB Notification: Performance of remove unused functions: time 0.0005323/0.1919, allocations: 172 kB / 0.6022 GB, free: 3.098 MB / 0.4981 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 1 (y_comp) * 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 (40): * Single equations (assignments): 40 * 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.0004742/0.1924, allocations: 219.1 kB / 0.6024 GB, free: 2.875 MB / 0.4981 GB Notification: Performance of simCode: created initialization part: time 0.001098/0.1935, allocations: 0.719 MB / 0.6031 GB, free: 2.156 MB / 0.4981 GB Notification: Performance of simCode: created event and clocks part: time 2.645e-06/0.1935, allocations: 0 / 0.6031 GB, free: 2.156 MB / 0.4981 GB Notification: Performance of simCode: created simulation system equations: time 0.0005713/0.1941, allocations: 455.7 kB / 0.6036 GB, free: 1.711 MB / 0.4981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001961/0.1943, allocations: 8 kB / 0.6036 GB, free: 1.703 MB / 0.4981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003126/0.1975, allocations: 0.8639 MB / 0.6044 GB, free: 0.8086 MB / 0.4981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002216/0.1977, allocations: 0.7262 MB / 0.6051 GB, free: 60 kB / 0.4981 GB Notification: Performance of simCode: alias equations: time 0.2399/0.4376, allocations: 288.9 kB / 0.6054 GB, free: 49.61 MB / 0.4981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004906/0.4381, allocations: 88.75 kB / 0.6055 GB, free: 49.6 MB / 0.4981 GB Notification: Performance of SimCode: time 1.774e-06/0.4381, allocations: 0 / 0.6055 GB, free: 49.6 MB / 0.4981 GB Notification: Performance of Templates: time 0.0114/0.4495, allocations: 10.34 MB / 0.6156 GB, free: 49.04 MB / 0.4981 GB make -j1 -f IDEAS_IDEAS.Utilities.Math.Functions.Examples.SpliceFunctionDerivativeCheck.makefile Environment - environmentSimulation: (rm -f IDEAS_IDEAS.Utilities.Math.Functions.Examples.SpliceFunctionDerivativeCheck.pipe ; mkfifo IDEAS_IDEAS.Utilities.Math.Functions.Examples.SpliceFunctionDerivativeCheck.pipe ; head -c 1048576 < IDEAS_IDEAS.Utilities.Math.Functions.Examples.SpliceFunctionDerivativeCheck.pipe >> ../files/IDEAS_IDEAS.Utilities.Math.Functions.Examples.SpliceFunctionDerivativeCheck.sim & ./IDEAS_IDEAS.Utilities.Math.Functions.Examples.SpliceFunctionDerivativeCheck -abortSlowSimulation -alarm=480 -lv LOG_STATS > IDEAS_IDEAS.Utilities.Math.Functions.Examples.SpliceFunctionDerivativeCheck.pipe 2>&1) Environment - environmentSimulation: