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/Complex 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) 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/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_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/Complex 4.0.0+maint.om/package.mo): time 0.001514/0.001514, allocations: 183.3 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/package.mo): time 0.773/0.773, allocations: 132.2 MB / 148.9 MB, free: 12.15 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.382/1.382, allocations: 222.9 MB / 403.3 MB, free: 7.105 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.000952/0.0009519, allocations: 108.3 kB / 484.4 MB, free: 8.711 MB / 394.7 MB Notification: Performance of FrontEnd - loaded program: time 0.001029/0.001029, allocations: 51.92 kB / 0.5619 GB, free: 71.07 MB / 426.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1499/0.1509, allocations: 80.21 MB / 0.6402 GB, free: 6.785 MB / 442.7 MB Notification: Performance of NFInst.instantiate(IDEAS.Utilities.Math.Functions.Examples.SpliceFunctionDerivativeCheck): time 0.001709/0.1527, allocations: 0.6776 MB / 0.6408 GB, free: 6.102 MB / 442.7 MB Notification: Performance of NFInst.instExpressions: time 0.001631/0.1543, allocations: 1.28 MB / 0.6421 GB, free: 4.805 MB / 442.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.795e-05/0.1544, allocations: 0 / 0.6421 GB, free: 4.805 MB / 442.7 MB Notification: Performance of NFTyping.typeComponents: time 1.642e-05/0.1544, allocations: 0 / 0.6421 GB, free: 4.805 MB / 442.7 MB Notification: Performance of NFTyping.typeBindings: time 2.538e-05/0.1544, allocations: 4 kB / 0.6421 GB, free: 4.801 MB / 442.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003432/0.1548, allocations: 55.81 kB / 0.6422 GB, free: 4.746 MB / 442.7 MB Notification: Performance of NFFlatten.flatten: time 5.897e-05/0.1548, allocations: 19.98 kB / 0.6422 GB, free: 4.727 MB / 442.7 MB Notification: Performance of NFFlatten.resolveConnections: time 4.354e-05/0.1549, allocations: 0 / 0.6422 GB, free: 4.727 MB / 442.7 MB Notification: Performance of NFEvalConstants.evaluate: time 2.5e-05/0.1549, allocations: 15.92 kB / 0.6422 GB, free: 4.711 MB / 442.7 MB Notification: Performance of NFSimplifyModel.simplify: time 6.953e-05/0.155, allocations: 15.92 kB / 0.6422 GB, free: 4.695 MB / 442.7 MB Notification: Performance of NFPackage.collectConstants: time 1.155e-05/0.155, allocations: 0 / 0.6422 GB, free: 4.695 MB / 442.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002202/0.1552, allocations: 99.83 kB / 0.6423 GB, free: 4.598 MB / 442.7 MB Notification: Performance of NFScalarize.scalarize: time 1.634e-05/0.1553, allocations: 11.98 kB / 0.6423 GB, free: 4.586 MB / 442.7 MB Notification: Performance of NFVerifyModel.verify: time 2.569e-05/0.1553, allocations: 11.94 kB / 0.6423 GB, free: 4.574 MB / 442.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001419/0.1554, allocations: 59.86 kB / 0.6424 GB, free: 4.516 MB / 442.7 MB Notification: Performance of FrontEnd - DAE generated: time 6.172e-06/0.1555, allocations: 4 kB / 0.6424 GB, free: 4.512 MB / 442.7 MB Notification: Performance of FrontEnd: time 8.91e-07/0.1555, allocations: 0 / 0.6424 GB, free: 4.512 MB / 442.7 MB Notification: Performance of Transformations before backend: time 6.341e-06/0.1555, allocations: 0 / 0.6424 GB, free: 4.512 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.0004847/0.156, allocations: 347.5 kB / 0.6427 GB, free: 4.125 MB / 442.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.188e-05/0.156, allocations: 8.031 kB / 0.6427 GB, free: 4.117 MB / 442.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.324e-05/0.156, allocations: 0.9375 kB / 0.6427 GB, free: 4.117 MB / 442.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001334/0.1562, allocations: 176.5 kB / 0.6429 GB, free: 3.906 MB / 442.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.464e-05/0.1562, allocations: 4.375 kB / 0.6429 GB, free: 3.902 MB / 442.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.596e-05/0.1562, allocations: 12.27 kB / 0.6429 GB, free: 3.891 MB / 442.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001397/0.1564, allocations: 57.98 kB / 0.643 GB, free: 3.828 MB / 442.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.258e-05/0.1564, allocations: 0 / 0.643 GB, free: 3.828 MB / 442.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.042e-05/0.1564, allocations: 0 / 0.643 GB, free: 3.828 MB / 442.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.33e-06/0.1564, allocations: 0 / 0.643 GB, free: 3.828 MB / 442.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 6.877e-05/0.1565, allocations: 27.97 kB / 0.643 GB, free: 3.801 MB / 442.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001733/0.1567, allocations: 161.7 kB / 0.6431 GB, free: 3.594 MB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00012/0.1568, allocations: 62.5 kB / 0.6432 GB, free: 3.523 MB / 442.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.837e-05/0.1569, allocations: 28.84 kB / 0.6432 GB, free: 3.492 MB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0004603/0.1573, allocations: 0.5544 MB / 0.6438 GB, free: 2.809 MB / 442.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.666e-05/0.1574, allocations: 34.5 kB / 0.6438 GB, free: 2.766 MB / 442.7 MB Notification: Performance of pre-optimization done (n=8): time 1.383e-06/0.1574, allocations: 7.938 kB / 0.6438 GB, free: 2.758 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.01958/0.177, allocations: 4.297 MB / 0.648 GB, free: 14.3 MB / 458.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.355e-05/0.1771, allocations: 55.41 kB / 0.6481 GB, free: 14.24 MB / 458.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.096e-05/0.1772, allocations: 101.8 kB / 0.6482 GB, free: 14.13 MB / 458.7 MB Notification: Performance of collectPreVariables (initialization): time 5.844e-05/0.1772, allocations: 29.7 kB / 0.6482 GB, free: 14.09 MB / 458.7 MB Notification: Performance of collectInitialEqns (initialization): time 3.241e-05/0.1773, allocations: 84.14 kB / 0.6483 GB, free: 14.01 MB / 458.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001197/0.1774, allocations: 59.09 kB / 0.6483 GB, free: 13.95 MB / 458.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002419/0.1776, allocations: 89.67 kB / 0.6484 GB, free: 13.86 MB / 458.7 MB Notification: Performance of setup shared object (initialization): time 0.0001225/0.1778, allocations: 322.8 kB / 0.6487 GB, free: 13.53 MB / 458.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005093/0.1783, allocations: 311.8 kB / 0.649 GB, free: 13.23 MB / 458.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005053/0.1788, allocations: 309.4 kB / 0.6493 GB, free: 12.93 MB / 458.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001389/0.1802, allocations: 0.7595 MB / 0.6501 GB, free: 12.16 MB / 458.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.303e-06/0.1802, allocations: 0 / 0.6501 GB, free: 12.16 MB / 458.7 MB Notification: Performance of matching and sorting (n=18) (initialization): time 0.001528/0.1817, allocations: 0.7873 MB / 0.6508 GB, free: 11.37 MB / 458.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.979e-05/0.1818, allocations: 5.406 kB / 0.6508 GB, free: 11.37 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.386e-06/0.1818, allocations: 3.984 kB / 0.6508 GB, free: 11.36 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.474e-05/0.1818, allocations: 4 kB / 0.6508 GB, free: 11.36 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008241/0.1826, allocations: 91.89 kB / 0.6509 GB, free: 11.27 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.705e-06/0.1826, allocations: 3.938 kB / 0.6509 GB, free: 11.27 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005312/0.1832, allocations: 8 kB / 0.6509 GB, free: 11.26 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.135e-05/0.1833, allocations: 35.97 kB / 0.651 GB, free: 11.22 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.000178/0.1835, allocations: 127.1 kB / 0.6511 GB, free: 11.09 MB / 458.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.942e-05/0.1836, allocations: 7.906 kB / 0.6511 GB, free: 11.08 MB / 458.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003359/0.1869, allocations: 1.391 MB / 0.6525 GB, free: 9.688 MB / 458.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.671e-06/0.1869, allocations: 4 kB / 0.6525 GB, free: 9.684 MB / 458.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.45e-06/0.1869, allocations: 0 / 0.6525 GB, free: 9.684 MB / 458.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.834e-06/0.187, allocations: 3.984 kB / 0.6525 GB, free: 9.68 MB / 458.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002881/0.1899, allocations: 1.798 MB / 0.6542 GB, free: 7.816 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.887e-06/0.1899, allocations: 4.031 kB / 0.6542 GB, free: 7.812 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000803/0.1907, allocations: 107.9 kB / 0.6543 GB, free: 7.707 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.686e-06/0.1907, allocations: 4 kB / 0.6543 GB, free: 7.703 MB / 458.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.466e-05/0.1908, allocations: 31.92 kB / 0.6544 GB, free: 7.672 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.25e-06/0.1908, allocations: 4 kB / 0.6544 GB, free: 7.668 MB / 458.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.044e-06/0.1908, allocations: 0 / 0.6544 GB, free: 7.668 MB / 458.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005044/0.1959, allocations: 3.024 MB / 0.6573 GB, free: 4.504 MB / 458.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.137e-05/0.1959, allocations: 92.86 kB / 0.6574 GB, free: 4.395 MB / 458.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.202e-05/0.196, allocations: 11.98 kB / 0.6574 GB, free: 4.383 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005336/0.1965, allocations: 12 kB / 0.6574 GB, free: 4.371 MB / 458.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001588/0.1967, allocations: 47.89 kB / 0.6575 GB, free: 4.324 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.549e-05/0.1968, allocations: 28 kB / 0.6575 GB, free: 4.297 MB / 458.7 MB Notification: Performance of sorting global known variables: time 3.84e-05/0.1969, allocations: 75.28 kB / 0.6576 GB, free: 4.223 MB / 458.7 MB Notification: Performance of sort global known variables: time 1.3e-07/0.1969, allocations: 8.188 kB / 0.6576 GB, free: 4.215 MB / 458.7 MB Notification: Performance of remove unused functions: time 0.0006308/0.1975, allocations: 172 kB / 0.6577 GB, free: 4.047 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.0004851/0.198, allocations: 219 kB / 0.658 GB, free: 3.824 MB / 458.7 MB Notification: Performance of simCode: created initialization part: time 0.001221/0.1992, allocations: 0.7223 MB / 0.6587 GB, free: 3.102 MB / 458.7 MB Notification: Performance of simCode: created event and clocks part: time 2.695e-06/0.1992, allocations: 3.938 kB / 0.6587 GB, free: 3.098 MB / 458.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0006186/0.1999, allocations: 447.8 kB / 0.6591 GB, free: 2.66 MB / 458.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003128/0.2002, allocations: 23.94 kB / 0.6591 GB, free: 2.637 MB / 458.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003604/0.2038, allocations: 1.083 MB / 0.6602 GB, free: 1.512 MB / 458.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000282/0.2041, allocations: 0.7223 MB / 0.6609 GB, free: 0.7656 MB / 458.7 MB Notification: Performance of simCode: alias equations: time 0.001447/0.2055, allocations: 297.5 kB / 0.6612 GB, free: 488 kB / 458.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005531/0.2061, allocations: 95.41 kB / 0.6612 GB, free: 392 kB / 458.7 MB Notification: Performance of SimCode: time 5.91e-07/0.2061, allocations: 0 / 0.6612 GB, free: 392 kB / 458.7 MB Notification: Performance of Templates: time 0.01595/0.2221, allocations: 11.18 MB / 0.6722 GB, free: 5.227 MB / 474.7 MB 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)