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/package.mo", uses=false) Using package IDEAS with version 3.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0/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.001121/0.001121, allocations: 111.3 kB / 15.23 MB, free: 0.6602 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.001082/0.001082, allocations: 193.6 kB / 16.14 MB, free: 6.664 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.391/1.391, allocations: 222.9 MB / 239.8 MB, free: 4.621 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0/package.mo): time 0.7496/0.7496, allocations: 132.2 MB / 422.2 MB, free: 2.023 MB / 350.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001205/0.001205, allocations: 64.27 kB / 0.5011 GB, free: 9.18 MB / 414.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1709/0.1721, allocations: 80.2 MB / 0.5794 GB, free: 9.199 MB / 494.1 MB Notification: Performance of NFInst.instantiate(IDEAS.Utilities.Math.Functions.Examples.SpliceFunctionDerivativeCheck): time 0.00205/0.1742, allocations: 0.6659 MB / 0.5801 GB, free: 8.527 MB / 494.1 MB Notification: Performance of NFInst.instExpressions: time 0.001788/0.176, allocations: 1.289 MB / 0.5813 GB, free: 7.223 MB / 494.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.401e-05/0.176, allocations: 0 / 0.5813 GB, free: 7.223 MB / 494.1 MB Notification: Performance of NFTyping.typeComponents: time 1.169e-05/0.1761, allocations: 0 / 0.5813 GB, free: 7.223 MB / 494.1 MB Notification: Performance of NFTyping.typeBindings: time 2.041e-05/0.1761, allocations: 0 / 0.5813 GB, free: 7.223 MB / 494.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002898/0.1764, allocations: 55.81 kB / 0.5814 GB, free: 7.168 MB / 494.1 MB Notification: Performance of NFFlatten.flatten: time 4.525e-05/0.1765, allocations: 23.98 kB / 0.5814 GB, free: 7.145 MB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.951e-05/0.1765, allocations: 7.984 kB / 0.5814 GB, free: 7.137 MB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 2.021e-05/0.1765, allocations: 11.94 kB / 0.5814 GB, free: 7.125 MB / 494.1 MB Notification: Performance of NFSimplifyModel.simplify: time 5.929e-05/0.1766, allocations: 15.92 kB / 0.5815 GB, free: 7.109 MB / 494.1 MB Notification: Performance of NFPackage.collectConstants: time 9.749e-06/0.1766, allocations: 0 / 0.5815 GB, free: 7.109 MB / 494.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001967/0.1768, allocations: 95.89 kB / 0.5815 GB, free: 7.016 MB / 494.1 MB Notification: Performance of NFScalarize.scalarize: time 1.079e-05/0.1768, allocations: 0 / 0.5815 GB, free: 7.016 MB / 494.1 MB Notification: Performance of NFVerifyModel.verify: time 2.64e-05/0.1769, allocations: 15.92 kB / 0.5816 GB, free: 7 MB / 494.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001353/0.177, allocations: 67.84 kB / 0.5816 GB, free: 6.934 MB / 494.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.116e-06/0.177, allocations: 0 / 0.5816 GB, free: 6.934 MB / 494.1 MB Notification: Performance of FrontEnd: time 7.21e-07/0.177, allocations: 4 kB / 0.5816 GB, free: 6.93 MB / 494.1 MB Notification: Performance of Transformations before backend: time 3.246e-06/0.177, allocations: 0 / 0.5816 GB, free: 6.93 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.0003998/0.1774, allocations: 351.5 kB / 0.582 GB, free: 6.539 MB / 494.1 MB Notification: Performance of prepare preOptimizeDAE: time 2.778e-05/0.1775, allocations: 8.031 kB / 0.582 GB, free: 6.531 MB / 494.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.242e-05/0.1775, allocations: 4.938 kB / 0.582 GB, free: 6.527 MB / 494.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001396/0.1777, allocations: 168.5 kB / 0.5821 GB, free: 6.324 MB / 494.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.733e-06/0.1777, allocations: 384 / 0.5821 GB, free: 6.324 MB / 494.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.276e-05/0.1777, allocations: 8.375 kB / 0.5821 GB, free: 6.316 MB / 494.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000106/0.1778, allocations: 57.98 kB / 0.5822 GB, free: 6.254 MB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.169e-05/0.1778, allocations: 3.984 kB / 0.5822 GB, free: 6.25 MB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.796e-06/0.1778, allocations: 0 / 0.5822 GB, free: 6.25 MB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.119e-06/0.1778, allocations: 4 kB / 0.5822 GB, free: 6.246 MB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 6.155e-05/0.1779, allocations: 27.98 kB / 0.5822 GB, free: 6.219 MB / 494.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001567/0.1781, allocations: 169.6 kB / 0.5824 GB, free: 6.004 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001078/0.1782, allocations: 54.5 kB / 0.5824 GB, free: 5.941 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.041e-05/0.1782, allocations: 32.8 kB / 0.5825 GB, free: 5.906 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0004566/0.1787, allocations: 0.5583 MB / 0.583 GB, free: 5.219 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.863e-05/0.1787, allocations: 38.73 kB / 0.5831 GB, free: 5.172 MB / 494.1 MB Notification: Performance of pre-optimization done (n=8): time 1.082e-06/0.1787, allocations: 0 / 0.5831 GB, free: 5.172 MB / 494.1 MB 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.01997/0.1987, allocations: 4.304 MB / 0.5873 GB, free: 0.7383 MB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.758e-05/0.1988, allocations: 51.41 kB / 0.5873 GB, free: 0.6758 MB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.901e-05/0.1989, allocations: 89.86 kB / 0.5874 GB, free: 0.5781 MB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 7.368e-05/0.1989, allocations: 33.7 kB / 0.5874 GB, free: 0.5391 MB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.164e-05/0.199, allocations: 84.12 kB / 0.5875 GB, free: 464 kB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001269/0.1991, allocations: 59.23 kB / 0.5876 GB, free: 404 kB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002397/0.1994, allocations: 89.67 kB / 0.5877 GB, free: 308 kB / 494.1 MB Notification: Performance of setup shared object (initialization): time 0.0001168/0.1995, allocations: 326.8 kB / 0.588 GB, free: 15.97 MB / 0.4981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000529/0.2, allocations: 303.9 kB / 0.5883 GB, free: 15.68 MB / 0.4981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005269/0.2006, allocations: 315.8 kB / 0.5886 GB, free: 15.37 MB / 0.4981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001504/0.2021, allocations: 0.753 MB / 0.5893 GB, free: 14.61 MB / 0.4981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.473e-06/0.2021, allocations: 0 / 0.5893 GB, free: 14.61 MB / 0.4981 GB Notification: Performance of matching and sorting (n=18) (initialization): time 0.001587/0.2037, allocations: 0.7888 MB / 0.5901 GB, free: 13.82 MB / 0.4981 GB Notification: Performance of prepare postOptimizeDAE: time 2.247e-05/0.2037, allocations: 8 kB / 0.5901 GB, free: 13.81 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.253e-06/0.2037, allocations: 7.938 kB / 0.5901 GB, free: 13.8 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.704e-05/0.2037, allocations: 0 / 0.5901 GB, free: 13.8 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007517/0.2045, allocations: 99.88 kB / 0.5902 GB, free: 13.71 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.123e-06/0.2045, allocations: 0 / 0.5902 GB, free: 13.71 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004687/0.205, allocations: 8 kB / 0.5902 GB, free: 13.7 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.8e-05/0.2051, allocations: 35.97 kB / 0.5902 GB, free: 13.66 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001918/0.2053, allocations: 118.4 kB / 0.5903 GB, free: 13.54 MB / 0.4981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.513e-05/0.2054, allocations: 4 kB / 0.5903 GB, free: 13.54 MB / 0.4981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003331/0.2087, allocations: 1.4 MB / 0.5917 GB, free: 12.13 MB / 0.4981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.067e-06/0.2087, allocations: 4 kB / 0.5917 GB, free: 12.12 MB / 0.4981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.009e-05/0.2088, allocations: 0 / 0.5917 GB, free: 12.12 MB / 0.4981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.396e-06/0.2088, allocations: 3.984 kB / 0.5917 GB, free: 12.12 MB / 0.4981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003551/0.2123, allocations: 1.813 MB / 0.5935 GB, free: 10.25 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.493e-06/0.2124, allocations: 0 / 0.5935 GB, free: 10.25 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008433/0.2132, allocations: 107.9 kB / 0.5936 GB, free: 10.14 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.428e-05/0.2132, allocations: 4 kB / 0.5936 GB, free: 10.14 MB / 0.4981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.198e-05/0.2133, allocations: 27.94 kB / 0.5936 GB, free: 10.11 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.706e-06/0.2134, allocations: 11.97 kB / 0.5936 GB, free: 10.1 MB / 0.4981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.322e-06/0.2134, allocations: 3.984 kB / 0.5936 GB, free: 10.09 MB / 0.4981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002542/0.2159, allocations: 1.461 MB / 0.5951 GB, free: 8.613 MB / 0.4981 GB Notification: Performance of postOpt removeConstants (simulation): time 4.999e-05/0.216, allocations: 92.97 kB / 0.5951 GB, free: 8.504 MB / 0.4981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.455e-05/0.2161, allocations: 15.92 kB / 0.5952 GB, free: 8.488 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004553/0.2166, allocations: 8 kB / 0.5952 GB, free: 8.48 MB / 0.4981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001741/0.2167, allocations: 48.03 kB / 0.5952 GB, free: 8.434 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.579e-05/0.2168, allocations: 28 kB / 0.5952 GB, free: 8.406 MB / 0.4981 GB Notification: Performance of sorting global known variables: time 4.577e-05/0.2169, allocations: 79.28 kB / 0.5953 GB, free: 8.328 MB / 0.4981 GB Notification: Performance of sort global known variables: time 1.2e-07/0.2169, allocations: 0 / 0.5953 GB, free: 8.328 MB / 0.4981 GB Notification: Performance of remove unused functions: time 0.0006714/0.2176, allocations: 172 kB / 0.5955 GB, free: 8.16 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 (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.0006286/0.2182, allocations: 217.7 kB / 0.5957 GB, free: 7.941 MB / 0.4981 GB Notification: Performance of simCode: created initialization part: time 0.001281/0.2195, allocations: 0.7261 MB / 0.5964 GB, free: 7.215 MB / 0.4981 GB Notification: Performance of simCode: created event and clocks part: time 5.059e-06/0.2195, allocations: 4.094 kB / 0.5964 GB, free: 7.211 MB / 0.4981 GB Notification: Performance of simCode: created simulation system equations: time 0.0006695/0.2202, allocations: 447.8 kB / 0.5968 GB, free: 6.773 MB / 0.4981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00034/0.2205, allocations: 16 kB / 0.5968 GB, free: 6.758 MB / 0.4981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003113/0.2237, allocations: 0.8541 MB / 0.5977 GB, free: 5.875 MB / 0.4981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002595/0.2239, allocations: 0.7184 MB / 0.5984 GB, free: 5.133 MB / 0.4981 GB Notification: Performance of simCode: alias equations: time 0.001448/0.2254, allocations: 289.5 kB / 0.5987 GB, free: 4.848 MB / 0.4981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005926/0.226, allocations: 95.41 kB / 0.5987 GB, free: 4.754 MB / 0.4981 GB Notification: Performance of SimCode: time 8.02e-07/0.226, allocations: 0 / 0.5987 GB, free: 4.754 MB / 0.4981 GB Notification: Performance of Templates: time 0.2807/0.5067, allocations: 10.66 MB / 0.6092 GB, free: 56.18 MB / 0.4981 GB make -j1 -f IDEAS_IDEAS.Utilities.Math.Functions.Examples.SpliceFunctionDerivativeCheck.makefile (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)