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/Complex 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) 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/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/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 IDEAS with version 3.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0-master/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) 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/Complex 4.0.0+maint.om/package.mo): time 0.001681/0.001681, allocations: 181.6 kB / 15.98 MB, free: 5.77 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0-master/package.mo): time 0.8812/0.8812, allocations: 133.3 MB / 150.1 MB, free: 11.16 MB / 122.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.613/1.613, allocations: 222.9 MB / 404.7 MB, free: 6.07 MB / 314.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001094/0.001093, allocations: 107.4 kB / 485.9 MB, free: 7.215 MB / 394.7 MB Notification: Performance of FrontEnd - loaded program: time 0.001296/0.001296, allocations: 55.92 kB / 0.5636 GB, free: 69.89 MB / 426.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1383/0.1396, allocations: 80.43 MB / 0.6422 GB, free: 5.387 MB / 442.7 MB Notification: Performance of NFInst.instantiate(IDEAS.Utilities.Math.Functions.Examples.SpliceFunctionDerivativeCheck): time 0.001901/0.1415, allocations: 0.6622 MB / 0.6428 GB, free: 4.715 MB / 442.7 MB Notification: Performance of NFInst.instExpressions: time 0.001641/0.1432, allocations: 1.281 MB / 0.6441 GB, free: 3.418 MB / 442.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.808e-05/0.1432, allocations: 0 / 0.6441 GB, free: 3.418 MB / 442.7 MB Notification: Performance of NFTyping.typeComponents: time 1.416e-05/0.1433, allocations: 4 kB / 0.6441 GB, free: 3.414 MB / 442.7 MB Notification: Performance of NFTyping.typeBindings: time 2.056e-05/0.1433, allocations: 0 / 0.6441 GB, free: 3.414 MB / 442.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003143/0.1436, allocations: 63.8 kB / 0.6441 GB, free: 3.352 MB / 442.7 MB Notification: Performance of NFFlatten.flatten: time 4.767e-05/0.1437, allocations: 19.98 kB / 0.6441 GB, free: 3.332 MB / 442.7 MB Notification: Performance of NFFlatten.resolveConnections: time 3.518e-05/0.1437, allocations: 0 / 0.6441 GB, free: 3.332 MB / 442.7 MB Notification: Performance of NFEvalConstants.evaluate: time 2.205e-05/0.1437, allocations: 11.94 kB / 0.6442 GB, free: 3.32 MB / 442.7 MB Notification: Performance of NFSimplifyModel.simplify: time 5.937e-05/0.1438, allocations: 23.91 kB / 0.6442 GB, free: 3.297 MB / 442.7 MB Notification: Performance of NFPackage.collectConstants: time 1.103e-05/0.1438, allocations: 0 / 0.6442 GB, free: 3.297 MB / 442.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001982/0.144, allocations: 91.91 kB / 0.6443 GB, free: 3.207 MB / 442.7 MB Notification: Performance of NFScalarize.scalarize: time 1.413e-05/0.144, allocations: 7.969 kB / 0.6443 GB, free: 3.199 MB / 442.7 MB Notification: Performance of NFVerifyModel.verify: time 2.2e-05/0.1441, allocations: 11.94 kB / 0.6443 GB, free: 3.188 MB / 442.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001322/0.1442, allocations: 59.86 kB / 0.6443 GB, free: 3.129 MB / 442.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.246e-06/0.1442, allocations: 4 kB / 0.6443 GB, free: 3.125 MB / 442.7 MB Notification: Performance of FrontEnd: time 7.31e-07/0.1442, allocations: 0 / 0.6443 GB, free: 3.125 MB / 442.7 MB Notification: Performance of Transformations before backend: time 3.286e-06/0.1442, allocations: 0 / 0.6443 GB, free: 3.125 MB / 442.7 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.0004173/0.1447, allocations: 351.5 kB / 0.6447 GB, free: 2.734 MB / 442.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.286e-05/0.1447, allocations: 12.03 kB / 0.6447 GB, free: 2.723 MB / 442.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.237e-05/0.1447, allocations: 0.9375 kB / 0.6447 GB, free: 2.723 MB / 442.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001082/0.1448, allocations: 176.5 kB / 0.6449 GB, free: 2.512 MB / 442.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.18e-05/0.1449, allocations: 384 / 0.6449 GB, free: 2.512 MB / 442.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.42e-05/0.1449, allocations: 20.27 kB / 0.6449 GB, free: 2.492 MB / 442.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001184/0.145, allocations: 50 kB / 0.6449 GB, free: 2.438 MB / 442.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.129e-05/0.145, allocations: 0 / 0.6449 GB, free: 2.438 MB / 442.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.24e-05/0.1451, allocations: 4 kB / 0.6449 GB, free: 2.434 MB / 442.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.29e-06/0.1451, allocations: 0 / 0.6449 GB, free: 2.434 MB / 442.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 6.781e-05/0.1451, allocations: 23.98 kB / 0.645 GB, free: 2.41 MB / 442.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001773/0.1453, allocations: 169.6 kB / 0.6451 GB, free: 2.195 MB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001169/0.1454, allocations: 58.5 kB / 0.6452 GB, free: 2.129 MB / 442.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.118e-05/0.1455, allocations: 28.84 kB / 0.6452 GB, free: 2.098 MB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0004565/0.146, allocations: 0.5505 MB / 0.6457 GB, free: 1.418 MB / 442.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.18e-05/0.146, allocations: 42.5 kB / 0.6458 GB, free: 1.367 MB / 442.7 MB Notification: Performance of pre-optimization done (n=8): time 1.212e-06/0.146, allocations: 0 / 0.6458 GB, free: 1.367 MB / 442.7 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.01942/0.1654, allocations: 4.3 MB / 0.65 GB, free: 12.91 MB / 458.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.698e-05/0.1655, allocations: 55.41 kB / 0.65 GB, free: 12.84 MB / 458.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.782e-05/0.1656, allocations: 93.84 kB / 0.6501 GB, free: 12.74 MB / 458.7 MB Notification: Performance of collectPreVariables (initialization): time 6.14e-05/0.1656, allocations: 29.7 kB / 0.6501 GB, free: 12.71 MB / 458.7 MB Notification: Performance of collectInitialEqns (initialization): time 3.322e-05/0.1657, allocations: 84.27 kB / 0.6502 GB, free: 12.62 MB / 458.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001081/0.1658, allocations: 59.11 kB / 0.6503 GB, free: 12.56 MB / 458.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002406/0.166, allocations: 89.67 kB / 0.6504 GB, free: 12.47 MB / 458.7 MB Notification: Performance of setup shared object (initialization): time 0.0001068/0.1662, allocations: 322.8 kB / 0.6507 GB, free: 12.14 MB / 458.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005067/0.1667, allocations: 311.8 kB / 0.651 GB, free: 11.84 MB / 458.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005003/0.1672, allocations: 311.9 kB / 0.6513 GB, free: 11.54 MB / 458.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001387/0.1686, allocations: 0.7477 MB / 0.652 GB, free: 10.79 MB / 458.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.432e-06/0.1686, allocations: 0 / 0.652 GB, free: 10.79 MB / 458.7 MB Notification: Performance of matching and sorting (n=18) (initialization): time 0.001458/0.17, allocations: 0.7993 MB / 0.6528 GB, free: 9.98 MB / 458.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.833e-05/0.1701, allocations: 8 kB / 0.6528 GB, free: 9.973 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.524e-06/0.1701, allocations: 480 / 0.6528 GB, free: 9.973 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.797e-05/0.1701, allocations: 3.984 kB / 0.6528 GB, free: 9.969 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008038/0.1709, allocations: 99.89 kB / 0.6529 GB, free: 9.871 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.221e-06/0.1709, allocations: 0 / 0.6529 GB, free: 9.871 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005223/0.1715, allocations: 4 kB / 0.6529 GB, free: 9.867 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.466e-05/0.1716, allocations: 35.97 kB / 0.6529 GB, free: 9.832 MB / 458.7 MB 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.0001556/0.1717, allocations: 125.7 kB / 0.653 GB, free: 9.699 MB / 458.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.938e-05/0.1718, allocations: 7.906 kB / 0.6531 GB, free: 9.691 MB / 458.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003376/0.1752, allocations: 1.395 MB / 0.6544 GB, free: 8.297 MB / 458.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.039e-06/0.1752, allocations: 4 kB / 0.6544 GB, free: 8.293 MB / 458.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.959e-06/0.1752, allocations: 0 / 0.6544 GB, free: 8.293 MB / 458.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.913e-06/0.1752, allocations: 3.984 kB / 0.6544 GB, free: 8.289 MB / 458.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002855/0.1781, allocations: 1.798 MB / 0.6562 GB, free: 6.426 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.699e-06/0.1781, allocations: 0 / 0.6562 GB, free: 6.426 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007726/0.1789, allocations: 111.8 kB / 0.6563 GB, free: 6.316 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.865e-06/0.1789, allocations: 4 kB / 0.6563 GB, free: 6.312 MB / 458.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.847e-05/0.179, allocations: 35.95 kB / 0.6563 GB, free: 6.277 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.136e-06/0.179, allocations: 0 / 0.6563 GB, free: 6.277 MB / 458.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.338e-06/0.179, allocations: 4 kB / 0.6563 GB, free: 6.273 MB / 458.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004973/0.184, allocations: 3.019 MB / 0.6593 GB, free: 3.117 MB / 458.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5.534e-05/0.1841, allocations: 101 kB / 0.6594 GB, free: 3 MB / 458.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.819e-05/0.1841, allocations: 7.938 kB / 0.6594 GB, free: 2.996 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005417/0.1847, allocations: 15.98 kB / 0.6594 GB, free: 2.98 MB / 458.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001564/0.1849, allocations: 43.91 kB / 0.6594 GB, free: 2.938 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.281e-05/0.1849, allocations: 32 kB / 0.6595 GB, free: 2.906 MB / 458.7 MB Notification: Performance of sorting global known variables: time 3.309e-05/0.185, allocations: 75.28 kB / 0.6595 GB, free: 2.832 MB / 458.7 MB Notification: Performance of sort global known variables: time 1e-07/0.185, allocations: 0 / 0.6595 GB, free: 2.832 MB / 458.7 MB Notification: Performance of remove unused functions: time 0.0006164/0.1856, allocations: 176 kB / 0.6597 GB, free: 2.66 MB / 458.7 MB 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.0005195/0.1861, allocations: 219.8 kB / 0.6599 GB, free: 2.438 MB / 458.7 MB Notification: Performance of simCode: created initialization part: time 0.001267/0.1874, allocations: 0.728 MB / 0.6606 GB, free: 1.711 MB / 458.7 MB Notification: Performance of simCode: created event and clocks part: time 5.731e-06/0.1874, allocations: 0 / 0.6606 GB, free: 1.711 MB / 458.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0006536/0.1881, allocations: 451.7 kB / 0.6611 GB, free: 1.27 MB / 458.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002856/0.1884, allocations: 16 kB / 0.6611 GB, free: 1.254 MB / 458.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003515/0.1919, allocations: 1.082 MB / 0.6621 GB, free: 132 kB / 458.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002612/0.1922, allocations: 0.7262 MB / 0.6628 GB, free: 15.38 MB / 474.7 MB Notification: Performance of simCode: alias equations: time 0.001372/0.1936, allocations: 289.5 kB / 0.6631 GB, free: 15.09 MB / 474.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005311/0.1941, allocations: 99.41 kB / 0.6632 GB, free: 15 MB / 474.7 MB Notification: Performance of SimCode: time 5.01e-07/0.1941, allocations: 3.938 kB / 0.6632 GB, free: 14.99 MB / 474.7 MB Notification: Performance of Templates: time 0.01697/0.2111, allocations: 11.19 MB / 0.6741 GB, free: 3.832 MB / 474.7 MB 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)