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.005768/0.005768, allocations: 99.34 kB / 15.73 MB, free: 6.059 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.001289/0.001289, allocations: 195 kB / 16.67 MB, free: 5.977 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.385/1.385, allocations: 222.9 MB / 240.4 MB, free: 15.16 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0/package.mo): time 0.8337/0.8337, allocations: 132.2 MB / 422.7 MB, free: 6.551 MB / 334.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001198/0.001198, allocations: 58.38 kB / 0.5814 GB, free: 23.77 MB / 446.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1451/0.1463, allocations: 80.21 MB / 0.6597 GB, free: 10.21 MB / 0.4981 GB Notification: Performance of NFInst.instantiate(IDEAS.Utilities.Math.Functions.Examples.SpliceFunctionDerivativeCheck): time 0.001694/0.148, allocations: 0.6133 MB / 0.6603 GB, free: 9.605 MB / 0.4981 GB Notification: Performance of NFInst.instExpressions: time 0.001603/0.1496, allocations: 1.266 MB / 0.6616 GB, free: 8.324 MB / 0.4981 GB Notification: Performance of NFInst.updateImplicitVariability: time 2.215e-05/0.1497, allocations: 4 kB / 0.6616 GB, free: 8.32 MB / 0.4981 GB Notification: Performance of NFTyping.typeComponents: time 1.599e-05/0.1497, allocations: 0 / 0.6616 GB, free: 8.32 MB / 0.4981 GB Notification: Performance of NFTyping.typeBindings: time 2.155e-05/0.1497, allocations: 0 / 0.6616 GB, free: 8.32 MB / 0.4981 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003786/0.1501, allocations: 79.72 kB / 0.6616 GB, free: 8.242 MB / 0.4981 GB Notification: Performance of NFFlatten.flatten: time 6.092e-05/0.1502, allocations: 23.92 kB / 0.6617 GB, free: 8.219 MB / 0.4981 GB Notification: Performance of NFFlatten.resolveConnections: time 4.756e-05/0.1502, allocations: 3.938 kB / 0.6617 GB, free: 8.215 MB / 0.4981 GB Notification: Performance of NFEvalConstants.evaluate: time 2.398e-05/0.1503, allocations: 15.98 kB / 0.6617 GB, free: 8.199 MB / 0.4981 GB Notification: Performance of NFSimplifyModel.simplify: time 6.84e-05/0.1503, allocations: 19.91 kB / 0.6617 GB, free: 8.18 MB / 0.4981 GB Notification: Performance of NFPackage.collectConstants: time 1.109e-05/0.1503, allocations: 0 / 0.6617 GB, free: 8.18 MB / 0.4981 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0002358/0.1506, allocations: 95.89 kB / 0.6618 GB, free: 8.086 MB / 0.4981 GB Notification: Performance of NFScalarize.scalarize: time 1.132e-05/0.1506, allocations: 0 / 0.6618 GB, free: 8.086 MB / 0.4981 GB Notification: Performance of NFVerifyModel.verify: time 2.172e-05/0.1506, allocations: 15.92 kB / 0.6618 GB, free: 8.07 MB / 0.4981 GB Notification: Performance of NFConvertDAE.convert: time 0.0001371/0.1508, allocations: 59.8 kB / 0.6619 GB, free: 8.012 MB / 0.4981 GB Notification: Performance of FrontEnd - DAE generated: time 2.555e-06/0.1508, allocations: 8 kB / 0.6619 GB, free: 8.004 MB / 0.4981 GB Notification: Performance of FrontEnd: time 1.112e-06/0.1508, allocations: 0 / 0.6619 GB, free: 8.004 MB / 0.4981 GB Notification: Performance of Transformations before backend: time 4.849e-06/0.1508, allocations: 0 / 0.6619 GB, free: 8.004 MB / 0.4981 GB 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.0004209/0.1512, allocations: 351.3 kB / 0.6622 GB, free: 7.613 MB / 0.4981 GB Notification: Performance of prepare preOptimizeDAE: time 3.275e-05/0.1513, allocations: 8.031 kB / 0.6622 GB, free: 7.605 MB / 0.4981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.291e-05/0.1513, allocations: 8.891 kB / 0.6622 GB, free: 7.598 MB / 0.4981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001147/0.1514, allocations: 160.4 kB / 0.6624 GB, free: 7.402 MB / 0.4981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.568e-06/0.1514, allocations: 384 / 0.6624 GB, free: 7.402 MB / 0.4981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.411e-05/0.1515, allocations: 12.38 kB / 0.6624 GB, free: 7.391 MB / 0.4981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001119/0.1516, allocations: 61.91 kB / 0.6624 GB, free: 7.324 MB / 0.4981 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.001e-05/0.1516, allocations: 0 / 0.6624 GB, free: 7.324 MB / 0.4981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.205e-05/0.1516, allocations: 4 kB / 0.6625 GB, free: 7.32 MB / 0.4981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.083e-06/0.1516, allocations: 4 kB / 0.6625 GB, free: 7.316 MB / 0.4981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 5.917e-05/0.1517, allocations: 27.86 kB / 0.6625 GB, free: 7.289 MB / 0.4981 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001672/0.1519, allocations: 169.6 kB / 0.6626 GB, free: 7.074 MB / 0.4981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001012/0.152, allocations: 58.5 kB / 0.6627 GB, free: 7.008 MB / 0.4981 GB Notification: Performance of preOpt resolveLoops (simulation): time 4.151e-05/0.152, allocations: 28.84 kB / 0.6627 GB, free: 6.977 MB / 0.4981 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0004666/0.1525, allocations: 0.5544 MB / 0.6633 GB, free: 6.293 MB / 0.4981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.711e-05/0.1525, allocations: 38.5 kB / 0.6633 GB, free: 6.246 MB / 0.4981 GB Notification: Performance of pre-optimization done (n=8): time 1.092e-06/0.1526, allocations: 0 / 0.6633 GB, free: 6.246 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.01912/0.1717, allocations: 4.299 MB / 0.6675 GB, free: 1.809 MB / 0.4981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.756e-05/0.1717, allocations: 51.41 kB / 0.6676 GB, free: 1.746 MB / 0.4981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.375e-05/0.1718, allocations: 93.86 kB / 0.6676 GB, free: 1.645 MB / 0.4981 GB Notification: Performance of collectPreVariables (initialization): time 6.048e-05/0.1719, allocations: 29.7 kB / 0.6677 GB, free: 1.609 MB / 0.4981 GB Notification: Performance of collectInitialEqns (initialization): time 2.83e-05/0.1719, allocations: 84.27 kB / 0.6677 GB, free: 1.523 MB / 0.4981 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001041/0.172, allocations: 67.42 kB / 0.6678 GB, free: 1.457 MB / 0.4981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002588/0.1723, allocations: 89.66 kB / 0.6679 GB, free: 1.363 MB / 0.4981 GB Notification: Performance of setup shared object (initialization): time 0.0001166/0.1724, allocations: 322.8 kB / 0.6682 GB, free: 1.039 MB / 0.4981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005142/0.1729, allocations: 311.9 kB / 0.6685 GB, free: 0.7344 MB / 0.4981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005048/0.1735, allocations: 313.3 kB / 0.6688 GB, free: 440 kB / 0.4981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001466/0.1749, allocations: 0.7567 MB / 0.6695 GB, free: 15.67 MB / 0.5137 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.96e-06/0.1749, allocations: 7.984 kB / 0.6695 GB, free: 15.66 MB / 0.5137 GB Notification: Performance of matching and sorting (n=18) (initialization): time 0.001563/0.1765, allocations: 0.7864 MB / 0.6703 GB, free: 14.87 MB / 0.5137 GB Notification: Performance of prepare postOptimizeDAE: time 1.975e-05/0.1765, allocations: 12 kB / 0.6703 GB, free: 14.86 MB / 0.5137 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.981e-06/0.1766, allocations: 0 / 0.6703 GB, free: 14.86 MB / 0.5137 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.758e-05/0.1766, allocations: 0 / 0.6703 GB, free: 14.86 MB / 0.5137 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008265/0.1774, allocations: 95.94 kB / 0.6704 GB, free: 14.76 MB / 0.5137 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.877e-06/0.1774, allocations: 8 kB / 0.6704 GB, free: 14.75 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005077/0.1779, allocations: 8 kB / 0.6704 GB, free: 14.75 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.132e-05/0.178, allocations: 35.92 kB / 0.6705 GB, free: 14.71 MB / 0.5137 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.0001976/0.1782, allocations: 122.7 kB / 0.6706 GB, free: 14.58 MB / 0.5137 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.728e-05/0.1783, allocations: 0 / 0.6706 GB, free: 14.58 MB / 0.5137 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003168/0.1815, allocations: 1.396 MB / 0.672 GB, free: 13.17 MB / 0.5137 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.607e-06/0.1815, allocations: 4 kB / 0.672 GB, free: 13.17 MB / 0.5137 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.763e-06/0.1815, allocations: 4 kB / 0.672 GB, free: 13.16 MB / 0.5137 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.779e-06/0.1816, allocations: 0 / 0.672 GB, free: 13.16 MB / 0.5137 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002865/0.1844, allocations: 1.798 MB / 0.6737 GB, free: 11.31 MB / 0.5137 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.665e-06/0.1844, allocations: 0 / 0.6737 GB, free: 11.31 MB / 0.5137 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007617/0.1852, allocations: 111.9 kB / 0.6738 GB, free: 11.2 MB / 0.5137 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.779e-06/0.1852, allocations: 4 kB / 0.6738 GB, free: 11.2 MB / 0.5137 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.226e-05/0.1853, allocations: 27.94 kB / 0.6739 GB, free: 11.17 MB / 0.5137 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.119e-06/0.1853, allocations: 4 kB / 0.6739 GB, free: 11.16 MB / 0.5137 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.513e-06/0.1853, allocations: 0 / 0.6739 GB, free: 11.16 MB / 0.5137 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00229/0.1876, allocations: 1.467 MB / 0.6753 GB, free: 9.68 MB / 0.5137 GB Notification: Performance of postOpt removeConstants (simulation): time 5.301e-05/0.1877, allocations: 89.05 kB / 0.6754 GB, free: 9.574 MB / 0.5137 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.657e-05/0.1878, allocations: 11.94 kB / 0.6754 GB, free: 9.562 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004834/0.1883, allocations: 8 kB / 0.6754 GB, free: 9.555 MB / 0.5137 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001316/0.1884, allocations: 47.95 kB / 0.6754 GB, free: 9.508 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.205e-05/0.1885, allocations: 28 kB / 0.6755 GB, free: 9.48 MB / 0.5137 GB Notification: Performance of sorting global known variables: time 4.744e-05/0.1885, allocations: 79.28 kB / 0.6755 GB, free: 9.402 MB / 0.5137 GB Notification: Performance of sort global known variables: time 1.4e-07/0.1885, allocations: 4.156 kB / 0.6755 GB, free: 9.398 MB / 0.5137 GB Notification: Performance of remove unused functions: time 0.0005427/0.1891, allocations: 175.7 kB / 0.6757 GB, free: 9.227 MB / 0.5137 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.0004594/0.1896, allocations: 218.8 kB / 0.6759 GB, free: 9.004 MB / 0.5137 GB Notification: Performance of simCode: created initialization part: time 0.001175/0.1907, allocations: 0.728 MB / 0.6766 GB, free: 8.277 MB / 0.5137 GB Notification: Performance of simCode: created event and clocks part: time 2.405e-06/0.1907, allocations: 0 / 0.6766 GB, free: 8.277 MB / 0.5137 GB Notification: Performance of simCode: created simulation system equations: time 0.0006352/0.1914, allocations: 451.7 kB / 0.6771 GB, free: 7.836 MB / 0.5137 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002879/0.1917, allocations: 20 kB / 0.6771 GB, free: 7.816 MB / 0.5137 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003378/0.1951, allocations: 0.7971 MB / 0.6779 GB, free: 6.992 MB / 0.5137 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002933/0.1954, allocations: 0.7142 MB / 0.6786 GB, free: 6.254 MB / 0.5137 GB Notification: Performance of simCode: alias equations: time 0.001064/0.1964, allocations: 297.5 kB / 0.6788 GB, free: 5.965 MB / 0.5137 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000537/0.197, allocations: 95.34 kB / 0.6789 GB, free: 5.871 MB / 0.5137 GB Notification: Performance of SimCode: time 5.91e-07/0.197, allocations: 0 / 0.6789 GB, free: 5.871 MB / 0.5137 GB Notification: Performance of Templates: time 0.01585/0.2129, allocations: 11.22 MB / 0.6899 GB, free: 10.72 MB / 0.5294 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)