Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr IDEAS_dev_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_dev_IDEAS.Utilities.Math.Functions.Examples.SpliceFunctionDerivativeCheck") translateModel(IDEAS.Utilities.Math.Functions.Examples.SpliceFunctionDerivativeCheck,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="IDEAS_dev_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.00159/0.00159, allocations: 103.4 kB / 15.33 MB, free: 0.5078 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.00187/0.00187, allocations: 192.8 kB / 16.25 MB, free: 6.625 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.517/1.517, allocations: 222.9 MB / 239.9 MB, free: 4.496 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0-master/package.mo): time 1.012/1.012, allocations: 135.1 MB / 425.2 MB, free: 11.98 MB / 350.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001199/0.001199, allocations: 71.8 kB / 0.5049 GB, free: 5.625 MB / 414.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1755/0.1767, allocations: 80.92 MB / 0.5839 GB, free: 4.871 MB / 494.1 MB Notification: Performance of NFInst.instantiate(IDEAS.Utilities.Math.Functions.Examples.SpliceFunctionDerivativeCheck): time 0.001588/0.1783, allocations: 0.6543 MB / 0.5845 GB, free: 4.207 MB / 494.1 MB Notification: Performance of NFInst.instExpressions: time 0.001417/0.1797, allocations: 1.269 MB / 0.5858 GB, free: 2.922 MB / 494.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.454e-05/0.1798, allocations: 0 / 0.5858 GB, free: 2.922 MB / 494.1 MB Notification: Performance of NFTyping.typeComponents: time 1.454e-05/0.1798, allocations: 7.938 kB / 0.5858 GB, free: 2.914 MB / 494.1 MB Notification: Performance of NFTyping.typeBindings: time 1.456e-05/0.1798, allocations: 0 / 0.5858 GB, free: 2.914 MB / 494.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002835/0.1801, allocations: 63.86 kB / 0.5858 GB, free: 2.852 MB / 494.1 MB Notification: Performance of NFFlatten.flatten: time 4.059e-05/0.1801, allocations: 23.98 kB / 0.5859 GB, free: 2.828 MB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 2.706e-05/0.1802, allocations: 0 / 0.5859 GB, free: 2.828 MB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.869e-05/0.1802, allocations: 11.94 kB / 0.5859 GB, free: 2.816 MB / 494.1 MB Notification: Performance of NFSimplifyModel.simplify: time 4.865e-05/0.1803, allocations: 23.91 kB / 0.5859 GB, free: 2.793 MB / 494.1 MB Notification: Performance of NFPackage.collectConstants: time 8.045e-06/0.1803, allocations: 0 / 0.5859 GB, free: 2.793 MB / 494.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001812/0.1804, allocations: 91.91 kB / 0.586 GB, free: 2.703 MB / 494.1 MB Notification: Performance of NFScalarize.scalarize: time 1.291e-05/0.1805, allocations: 11.91 kB / 0.586 GB, free: 2.691 MB / 494.1 MB Notification: Performance of NFVerifyModel.verify: time 2.363e-05/0.1805, allocations: 11.94 kB / 0.586 GB, free: 2.68 MB / 494.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001066/0.1806, allocations: 67.8 kB / 0.5861 GB, free: 2.613 MB / 494.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.296e-06/0.1806, allocations: 0 / 0.5861 GB, free: 2.613 MB / 494.1 MB Notification: Performance of FrontEnd: time 1.192e-06/0.1806, allocations: 0 / 0.5861 GB, free: 2.613 MB / 494.1 MB Notification: Performance of Transformations before backend: time 3.446e-06/0.1806, allocations: 4 kB / 0.5861 GB, free: 2.609 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.0003545/0.181, allocations: 351.5 kB / 0.5864 GB, free: 2.219 MB / 494.1 MB Notification: Performance of prepare preOptimizeDAE: time 2.679e-05/0.181, allocations: 8.031 kB / 0.5864 GB, free: 2.211 MB / 494.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.425e-05/0.1811, allocations: 0.9375 kB / 0.5864 GB, free: 2.211 MB / 494.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000101/0.1812, allocations: 172.6 kB / 0.5866 GB, free: 2.004 MB / 494.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.655e-06/0.1812, allocations: 4.375 kB / 0.5866 GB, free: 2 MB / 494.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.874e-05/0.1812, allocations: 8.375 kB / 0.5866 GB, free: 1.992 MB / 494.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 9.505e-05/0.1813, allocations: 50 kB / 0.5867 GB, free: 1.938 MB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.203e-06/0.1813, allocations: 0 / 0.5867 GB, free: 1.938 MB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.071e-05/0.1813, allocations: 4 kB / 0.5867 GB, free: 1.934 MB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.446e-06/0.1813, allocations: 0 / 0.5867 GB, free: 1.934 MB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 6.776e-05/0.1814, allocations: 31.91 kB / 0.5867 GB, free: 1.902 MB / 494.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001557/0.1816, allocations: 173.5 kB / 0.5869 GB, free: 1.684 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 9.943e-05/0.1817, allocations: 58.56 kB / 0.5869 GB, free: 1.617 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.761e-05/0.1817, allocations: 24.84 kB / 0.5869 GB, free: 1.59 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0004501/0.1822, allocations: 0.5544 MB / 0.5875 GB, free: 0.9062 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.632e-05/0.1822, allocations: 38.5 kB / 0.5875 GB, free: 0.8594 MB / 494.1 MB Notification: Performance of pre-optimization done (n=8): time 1.162e-06/0.1822, allocations: 0 / 0.5875 GB, free: 0.8594 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.02039/0.2026, allocations: 4.301 MB / 0.5917 GB, free: 12.42 MB / 0.4981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.932e-05/0.2027, allocations: 59.34 kB / 0.5918 GB, free: 12.35 MB / 0.4981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.839e-05/0.2028, allocations: 97.84 kB / 0.5919 GB, free: 12.25 MB / 0.4981 GB Notification: Performance of collectPreVariables (initialization): time 7.2e-05/0.2029, allocations: 33.64 kB / 0.5919 GB, free: 12.21 MB / 0.4981 GB Notification: Performance of collectInitialEqns (initialization): time 2.686e-05/0.2029, allocations: 84.14 kB / 0.592 GB, free: 12.12 MB / 0.4981 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001122/0.203, allocations: 55.11 kB / 0.592 GB, free: 12.07 MB / 0.4981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000248/0.2033, allocations: 89.67 kB / 0.5921 GB, free: 11.97 MB / 0.4981 GB Notification: Performance of setup shared object (initialization): time 0.0001212/0.2034, allocations: 322.8 kB / 0.5924 GB, free: 11.65 MB / 0.4981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004993/0.2039, allocations: 311.9 kB / 0.5927 GB, free: 11.34 MB / 0.4981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004974/0.2044, allocations: 311.9 kB / 0.593 GB, free: 11.04 MB / 0.4981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001449/0.2059, allocations: 0.745 MB / 0.5937 GB, free: 10.29 MB / 0.4981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.683e-06/0.2059, allocations: 8.125 kB / 0.5937 GB, free: 10.29 MB / 0.4981 GB Notification: Performance of matching and sorting (n=18) (initialization): time 0.001546/0.2074, allocations: 0.7922 MB / 0.5945 GB, free: 9.488 MB / 0.4981 GB Notification: Performance of prepare postOptimizeDAE: time 3.064e-05/0.2075, allocations: 7.984 kB / 0.5945 GB, free: 9.48 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.656e-06/0.2075, allocations: 0 / 0.5945 GB, free: 9.48 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.621e-05/0.2075, allocations: 4 kB / 0.5945 GB, free: 9.477 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008723/0.2084, allocations: 91.95 kB / 0.5946 GB, free: 9.387 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.227e-06/0.2084, allocations: 0 / 0.5946 GB, free: 9.387 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004936/0.2089, allocations: 4 kB / 0.5946 GB, free: 9.383 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.332e-05/0.209, allocations: 43.91 kB / 0.5947 GB, free: 9.34 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.0002364/0.2093, allocations: 125.7 kB / 0.5948 GB, free: 9.207 MB / 0.4981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.322e-05/0.2094, allocations: 4 kB / 0.5948 GB, free: 9.203 MB / 0.4981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003279/0.2127, allocations: 1.384 MB / 0.5961 GB, free: 7.812 MB / 0.4981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.033e-06/0.2127, allocations: 4 kB / 0.5961 GB, free: 7.809 MB / 0.4981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.322e-06/0.2127, allocations: 0 / 0.5961 GB, free: 7.809 MB / 0.4981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.633e-06/0.2127, allocations: 3.984 kB / 0.5962 GB, free: 7.805 MB / 0.4981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003003/0.2157, allocations: 1.813 MB / 0.5979 GB, free: 5.93 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.517e-06/0.2157, allocations: 3.938 kB / 0.5979 GB, free: 5.926 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000768/0.2165, allocations: 111.9 kB / 0.598 GB, free: 5.816 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (simulation): time 8.697e-06/0.2165, allocations: 4 kB / 0.598 GB, free: 5.812 MB / 0.4981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.855e-05/0.2166, allocations: 31.92 kB / 0.5981 GB, free: 5.781 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.599e-06/0.2166, allocations: 3.938 kB / 0.5981 GB, free: 5.777 MB / 0.4981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.126e-06/0.2166, allocations: 4 kB / 0.5981 GB, free: 5.773 MB / 0.4981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00227/0.2189, allocations: 1.449 MB / 0.5995 GB, free: 4.305 MB / 0.4981 GB Notification: Performance of postOpt removeConstants (simulation): time 7.269e-05/0.219, allocations: 97.03 kB / 0.5996 GB, free: 4.191 MB / 0.4981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.438e-05/0.2191, allocations: 11.94 kB / 0.5996 GB, free: 4.18 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004956/0.2196, allocations: 16 kB / 0.5996 GB, free: 4.164 MB / 0.4981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000146/0.2197, allocations: 39.97 kB / 0.5996 GB, free: 4.125 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.37e-05/0.2198, allocations: 32 kB / 0.5997 GB, free: 4.094 MB / 0.4981 GB Notification: Performance of sorting global known variables: time 4.995e-05/0.2199, allocations: 79.27 kB / 0.5998 GB, free: 4.016 MB / 0.4981 GB Notification: Performance of sort global known variables: time 1.3e-07/0.2199, allocations: 0 / 0.5998 GB, free: 4.016 MB / 0.4981 GB Notification: Performance of remove unused functions: time 0.0005734/0.2205, allocations: 168 kB / 0.5999 GB, free: 3.852 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.0005753/0.221, allocations: 223.8 kB / 0.6001 GB, free: 3.625 MB / 0.4981 GB Notification: Performance of simCode: created initialization part: time 0.001292/0.2223, allocations: 0.7456 MB / 0.6009 GB, free: 2.879 MB / 0.4981 GB Notification: Performance of simCode: created event and clocks part: time 3.016e-06/0.2223, allocations: 0 / 0.6009 GB, free: 2.879 MB / 0.4981 GB Notification: Performance of simCode: created simulation system equations: time 0.0006217/0.223, allocations: 455.7 kB / 0.6013 GB, free: 2.434 MB / 0.4981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003103/0.2233, allocations: 16 kB / 0.6013 GB, free: 2.418 MB / 0.4981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003168/0.2265, allocations: 0.8592 MB / 0.6021 GB, free: 1.531 MB / 0.4981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002524/0.2267, allocations: 0.718 MB / 0.6028 GB, free: 0.7891 MB / 0.4981 GB Notification: Performance of simCode: alias equations: time 0.001368/0.2281, allocations: 297.5 kB / 0.6031 GB, free: 0.4922 MB / 0.4981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005297/0.2286, allocations: 95.41 kB / 0.6032 GB, free: 408 kB / 0.4981 GB Notification: Performance of SimCode: time 4.01e-07/0.2287, allocations: 0 / 0.6032 GB, free: 408 kB / 0.4981 GB Notification: Performance of Templates: time 0.2632/0.4919, allocations: 11.16 MB / 0.6141 GB, free: 52.27 MB / 0.4981 GB make -j1 -f IDEAS_dev_IDEAS.Utilities.Math.Functions.Examples.SpliceFunctionDerivativeCheck.makefile (rm -f IDEAS_dev_IDEAS.Utilities.Math.Functions.Examples.SpliceFunctionDerivativeCheck.pipe ; mkfifo IDEAS_dev_IDEAS.Utilities.Math.Functions.Examples.SpliceFunctionDerivativeCheck.pipe ; head -c 1048576 < IDEAS_dev_IDEAS.Utilities.Math.Functions.Examples.SpliceFunctionDerivativeCheck.pipe >> ../files/IDEAS_dev_IDEAS.Utilities.Math.Functions.Examples.SpliceFunctionDerivativeCheck.sim & ./IDEAS_dev_IDEAS.Utilities.Math.Functions.Examples.SpliceFunctionDerivativeCheck -abortSlowSimulation -alarm=480 -lv LOG_STATS > IDEAS_dev_IDEAS.Utilities.Math.Functions.Examples.SpliceFunctionDerivativeCheck.pipe 2>&1)