Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_cpp_Modelica.Clocked.Examples.Elementary.RealSignals.TickBasedSine.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Running command: translateModel(Modelica.Clocked.Examples.Elementary.RealSignals.TickBasedSine,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|assignClock1.y",fileNamePrefix="Modelica_trunk_cpp_Modelica.Clocked.Examples.Elementary.RealSignals.TickBasedSine") translateModel(Modelica.Clocked.Examples.Elementary.RealSignals.TickBasedSine,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|assignClock1.y",fileNamePrefix="Modelica_trunk_cpp_Modelica.Clocked.Examples.Elementary.RealSignals.TickBasedSine") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001481/0.001481, allocations: 198.4 kB / 18.04 MB, free: 3.785 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.644/1.644, allocations: 226.5 MB / 245.3 MB, free: 8.199 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008217/0.0008218, allocations: 99.55 kB / 297.4 MB, free: 6.918 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002784/0.0002785, allocations: 8 kB / 357.4 MB, free: 10.92 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2744/0.2747, allocations: 51.29 MB / 408.7 MB, free: 27.73 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.RealSignals.TickBasedSine): time 0.001964/0.2768, allocations: 1.297 MB / 410 MB, free: 26.44 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.0008277/0.2776, allocations: 463.1 kB / 410.4 MB, free: 25.98 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.685e-05/0.2777, allocations: 4.625 kB / 410.4 MB, free: 25.98 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 2.099e-05/0.2778, allocations: 3.938 kB / 410.4 MB, free: 25.97 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001872/0.278, allocations: 8.781 kB / 410.5 MB, free: 25.96 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002452/0.2782, allocations: 37.11 kB / 410.5 MB, free: 25.93 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.000108/0.2783, allocations: 55.78 kB / 410.5 MB, free: 25.88 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001514/0.2785, allocations: 19.97 kB / 410.6 MB, free: 25.86 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001934/0.2787, allocations: 25.77 kB / 410.6 MB, free: 25.84 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 8.704e-05/0.2788, allocations: 35.83 kB / 410.6 MB, free: 25.8 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 2.495e-05/0.2788, allocations: 0 / 410.6 MB, free: 25.8 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 5.39e-05/0.2789, allocations: 16 kB / 410.6 MB, free: 25.79 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 1.934e-05/0.2789, allocations: 8.797 kB / 410.6 MB, free: 25.78 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 5.351e-05/0.279, allocations: 53.56 kB / 410.7 MB, free: 25.72 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001136/0.2791, allocations: 39.91 kB / 410.7 MB, free: 25.68 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.681e-06/0.2791, allocations: 0.5625 kB / 410.7 MB, free: 25.68 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.613e-06/0.2791, allocations: 1.969 kB / 410.7 MB, free: 25.68 MB / 298.7 MB Notification: Performance of Transformations before backend: time 5.22e-06/0.2791, allocations: 0 / 410.7 MB, free: 25.68 MB / 298.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 10 * Number of variables: 10 Notification: Performance of Generate backend data structure: time 0.0005667/0.2797, allocations: 360.3 kB / 411.1 MB, free: 25.28 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.147e-05/0.2798, allocations: 11.22 kB / 411.1 MB, free: 25.27 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000228/0.28, allocations: 28.83 kB / 411.1 MB, free: 25.25 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002078/0.2802, allocations: 192.1 kB / 411.3 MB, free: 25.02 MB / 298.7 MB Error: Internal error - BackendDAEOptimize.makeEquationToResidualExp failed to transform equation: sine.startOutput = previous(sine.counter) >= sine.startTick - 1 to residual form! Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001462/0.2804, allocations: 42.19 kB / 411.4 MB, free: 24.97 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.092e-05/0.2804, allocations: 4.375 kB / 411.4 MB, free: 24.97 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003808/0.2808, allocations: 169 kB / 411.5 MB, free: 24.79 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.252e-05/0.2808, allocations: 4 kB / 411.5 MB, free: 24.78 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.611e-05/0.2808, allocations: 0 / 411.5 MB, free: 24.78 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.532e-06/0.2808, allocations: 0 / 411.5 MB, free: 24.78 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001309/0.281, allocations: 47.91 kB / 411.6 MB, free: 24.73 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000187/0.2812, allocations: 178.4 kB / 411.8 MB, free: 24.51 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002825/0.2815, allocations: 170.4 kB / 411.9 MB, free: 24.3 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 8.76e-05/0.2816, allocations: 45.7 kB / 412 MB, free: 24.25 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.709e-05/0.2816, allocations: 3.938 kB / 412 MB, free: 24.25 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.649e-05/0.2816, allocations: 42.48 kB / 412 MB, free: 24.2 MB / 298.7 MB Notification: Performance of pre-optimization done (n=7): time 1.703e-06/0.2816, allocations: 0 / 412 MB, free: 24.2 MB / 298.7 MB Notification: Performance of matching and sorting (n=7): time 0.0003173/0.282, allocations: 117.7 kB / 412.1 MB, free: 24.08 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.732e-05/0.282, allocations: 77.11 kB / 412.2 MB, free: 23.98 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.968e-05/0.2821, allocations: 121.8 kB / 412.3 MB, free: 23.86 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 1.511e-05/0.2821, allocations: 29.7 kB / 412.4 MB, free: 23.82 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 4.001e-05/0.2822, allocations: 88.14 kB / 412.4 MB, free: 23.73 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.586e-05/0.2822, allocations: 3.906 kB / 412.4 MB, free: 23.73 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.09e-06/0.2822, allocations: 4 kB / 412.4 MB, free: 23.72 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 7.744e-05/0.2823, allocations: 318.8 kB / 412.8 MB, free: 23.4 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.417e-05/0.2823, allocations: 16.03 kB / 412.8 MB, free: 23.39 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.663e-05/0.2824, allocations: 57.94 kB / 412.8 MB, free: 23.31 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001056/0.2825, allocations: 81.94 kB / 412.9 MB, free: 23.21 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.305e-06/0.2825, allocations: 0 / 412.9 MB, free: 23.21 MB / 298.7 MB Notification: Performance of matching and sorting (n=7) (initialization): time 0.0001492/0.2827, allocations: 101.4 kB / 413 MB, free: 23.1 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.973e-05/0.2827, allocations: 7.938 kB / 413 MB, free: 23.09 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.405e-06/0.2827, allocations: 4 kB / 413 MB, free: 23.09 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.956e-05/0.2827, allocations: 0 / 413 MB, free: 23.09 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.76e-05/0.2828, allocations: 12 kB / 413 MB, free: 23.08 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.535e-05/0.2828, allocations: 4.219 kB / 413 MB, free: 23.07 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.129e-05/0.2829, allocations: 15.98 kB / 413.1 MB, free: 23.06 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.879e-06/0.2829, allocations: 7.938 kB / 413.1 MB, free: 23.05 MB / 298.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 7 * Number of states: 0 () * Number of discrete variables: 2 (sine.startOutput,sine.counter) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (7): * Single equations (assignments): 7 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 8.921e-05/0.283, allocations: 121.7 kB / 413.2 MB, free: 22.92 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.738e-05/0.283, allocations: 11.84 kB / 413.2 MB, free: 22.91 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.267e-05/0.2831, allocations: 16.36 kB / 413.2 MB, free: 22.89 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.947e-06/0.2831, allocations: 0 / 413.2 MB, free: 22.89 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.242e-06/0.2831, allocations: 0 / 413.2 MB, free: 22.89 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5.039e-05/0.2832, allocations: 93 kB / 413.3 MB, free: 22.78 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.555e-05/0.2832, allocations: 4 kB / 413.3 MB, free: 22.78 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.565e-05/0.2833, allocations: 4 kB / 413.3 MB, free: 22.77 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.838e-05/0.2833, allocations: 4 kB / 413.3 MB, free: 22.77 MB / 298.7 MB [/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/Compiler/BackEnd/DAEMode.mo:155:5-155:157:writable] Error: Internal error Stack overflow in DAEMode.getEqSystemDAEmode... [bt] #1 /var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/bin/../lib/x86_64-linux-gnu/omc/libOpenModelicaRuntimeC.so(mmc_setStacktraceMessages_threadData) [bt] #2 /var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/bin/../lib/x86_64-linux-gnu/omc/libOpenModelicaRuntimeC.so(mmc_do_stackoverflow) [bt] #3 /var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/bin/../lib/x86_64-linux-gnu/omc/libOpenModelicaCompiler.so(Expression.isConstValue) [bt] #4 /var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/bin/../lib/x86_64-linux-gnu/omc/libOpenModelicaCompiler.so(ExpressionSimplify.simplifyBinary) [bt] #5 /var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/bin/../lib/x86_64-linux-gnu/omc/libOpenModelicaCompiler.so(ExpressionSimplify.simplifyWork) [bt] #6...7 /var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/bin/../lib/x86_64-linux-gnu/omc/libOpenModelicaCompiler.so(Expression.traverseExpBottomUp) [bt] #8 /var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/bin/../lib/x86_64-linux-gnu/omc/libOpenModelicaCompiler.so(ExpressionSimplify.simplify1FixP) [bt] #9 /var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/bin/../lib/x86_64-linux-gnu/omc/libOpenModelicaCompiler.so(ExpressionSimplify.simplifyWithOptions) [bt] #10 /var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/bin/../lib/x86_64-linux-gnu/omc/libOpenModelicaCompiler.so(ExpressionSimplify.simplify) [bt] #11 /var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/bin/../lib/x86_64-linux-gnu/omc/libOpenModelicaCompiler.so(BackendDAEUtil.traversingadjacencyRowIfExp) [bt] #12 /var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/bin/../lib/x86_64-linux-gnu/omc/libOpenModelicaCompiler.so(BackendDAEUtil.traversingadjacencyRowExpFinder) [bt] #13 /var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/bin/../lib/x86_64-linux-gnu/omc/libOpenModelicaCompiler.so(boxptr_BackendDAEUtil_traversingadjacencyRowExpFinder) [bt] #14 /var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/bin/../lib/x86_64-linux-gnu/omc/libOpenModelicaCompiler.so(Expression.traverseExpTopDown) [bt] #15 /var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/bin/../lib/x86_64-linux-gnu/omc/libOpenModelicaCompiler.so(BackendDAEUtil.adjacencyRowExp) [bt] #16...17 /var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/bin/../lib/x86_64-linux-gnu/omc/libOpenModelicaCompiler.so(BackendDAEUtil.adjacencyRow) [bt] #18 /var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/bin/../lib/x86_64-linux-gnu/omc/libOpenModelicaCompiler.so(BackendDAEUtil.adjacencyMatrixDispatchScalar) [bt] #19 /var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/bin/../lib/x86_64-linux-gnu/omc/libOpenModelicaCompiler.so(BackendDAEUtil.adjacencyMatrixScalar) [bt] #20 /var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/bin/../lib/x86_64-linux-gnu/omc/libOpenModelicaCompiler.so(DAEMode.getDiscAndContEqns) [bt] #21...1024 /var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/bin/../lib/x86_64-linux-gnu/omc/libOpenModelicaCompiler.so(DAEMode.traverserStrongComponents) [bt] #1025 [...]