Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.TickBasedSine.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) 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) 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) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 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_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_Modelica.Clocked.Examples.Elementary.RealSignals.TickBasedSine") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001273/0.001273, allocations: 114.3 kB / 18.46 MB, free: 4.598 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001436/0.001436, allocations: 206.8 kB / 19.41 MB, free: 3.652 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.436/1.436, allocations: 227.4 MB / 247.6 MB, free: 10.48 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001346/0.001347, allocations: 67.89 kB / 359.4 MB, free: 12.93 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3108/0.3122, allocations: 50.54 MB / 410 MB, free: 1.621 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.RealSignals.TickBasedSine): time 0.00294/0.3152, allocations: 1.588 MB / 411.5 MB, free: 32 kB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.0009401/0.3161, allocations: 0.4987 MB / 412 MB, free: 15.53 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.373e-05/0.3162, allocations: 0 / 412 MB, free: 15.53 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 3.633e-05/0.3163, allocations: 15.8 kB / 412.1 MB, free: 15.51 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001617/0.3165, allocations: 15.88 kB / 412.1 MB, free: 15.5 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002704/0.3167, allocations: 55.86 kB / 412.1 MB, free: 15.44 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001217/0.3169, allocations: 59.84 kB / 412.2 MB, free: 15.38 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001411/0.317, allocations: 19.97 kB / 412.2 MB, free: 15.36 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001816/0.3172, allocations: 35.86 kB / 412.2 MB, free: 15.33 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 7.318e-05/0.3173, allocations: 35.83 kB / 412.3 MB, free: 15.29 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 2.516e-05/0.3173, allocations: 8 kB / 412.3 MB, free: 15.29 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.887e-05/0.3174, allocations: 7.938 kB / 412.3 MB, free: 15.28 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 3.056e-05/0.3174, allocations: 19.92 kB / 412.3 MB, free: 15.26 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 5.27e-05/0.3175, allocations: 27.86 kB / 412.3 MB, free: 15.23 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001629/0.3177, allocations: 67.78 kB / 412.4 MB, free: 15.16 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.342e-06/0.3177, allocations: 3.938 kB / 412.4 MB, free: 15.16 MB / 334.1 MB Notification: Performance of FrontEnd: time 2.404e-06/0.3177, allocations: 0 / 412.4 MB, free: 15.16 MB / 334.1 MB Notification: Performance of Transformations before backend: time 5.751e-06/0.3177, allocations: 0 / 412.4 MB, free: 15.16 MB / 334.1 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.0006371/0.3183, allocations: 375.1 kB / 412.8 MB, free: 14.75 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.161e-05/0.3184, allocations: 8.031 kB / 412.8 MB, free: 14.74 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002394/0.3186, allocations: 20.83 kB / 412.8 MB, free: 14.72 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003032/0.3189, allocations: 201.5 kB / 413 MB, free: 14.49 MB / 334.1 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 9.752e-05/0.319, allocations: 34.2 kB / 413 MB, free: 14.45 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.205e-05/0.3191, allocations: 12.31 kB / 413 MB, free: 14.44 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003995/0.3195, allocations: 165 kB / 413.2 MB, free: 14.25 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.646e-06/0.3195, allocations: 0 / 413.2 MB, free: 14.25 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.405e-05/0.3195, allocations: 4 kB / 413.2 MB, free: 14.25 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.943e-06/0.3195, allocations: 4 kB / 413.2 MB, free: 14.25 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001294/0.3197, allocations: 35.91 kB / 413.2 MB, free: 14.21 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002289/0.3199, allocations: 182.5 kB / 413.4 MB, free: 13.98 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003088/0.3202, allocations: 170.4 kB / 413.6 MB, free: 13.78 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001047/0.3203, allocations: 41.64 kB / 413.6 MB, free: 13.73 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.032e-05/0.3204, allocations: 0 / 413.6 MB, free: 13.73 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.81e-05/0.3204, allocations: 46.48 kB / 413.7 MB, free: 13.68 MB / 334.1 MB Notification: Performance of pre-optimization done (n=7): time 1.352e-06/0.3204, allocations: 0 / 413.7 MB, free: 13.68 MB / 334.1 MB Notification: Performance of matching and sorting (n=7): time 0.0003574/0.3208, allocations: 113.6 kB / 413.8 MB, free: 13.56 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.54e-05/0.3208, allocations: 81.14 kB / 413.9 MB, free: 13.46 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001007/0.3209, allocations: 121.8 kB / 414 MB, free: 13.33 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 1.952e-05/0.321, allocations: 29.7 kB / 414 MB, free: 13.3 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001029/0.3211, allocations: 88.14 kB / 414.1 MB, free: 13.21 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.996e-05/0.3211, allocations: 11.84 kB / 414.1 MB, free: 13.2 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.537e-05/0.3212, allocations: 21.7 kB / 414.1 MB, free: 13.17 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001366/0.3213, allocations: 318.8 kB / 414.4 MB, free: 12.85 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.05e-05/0.3214, allocations: 19.98 kB / 414.5 MB, free: 12.83 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.729e-05/0.3214, allocations: 54 kB / 414.5 MB, free: 12.75 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001248/0.3216, allocations: 73.88 kB / 414.6 MB, free: 12.66 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.454e-06/0.3216, allocations: 0 / 414.6 MB, free: 12.66 MB / 334.1 MB Notification: Performance of matching and sorting (n=7) (initialization): time 0.000166/0.3218, allocations: 93.55 kB / 414.7 MB, free: 12.56 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.795e-05/0.3218, allocations: 7.938 kB / 414.7 MB, free: 12.55 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.527e-05/0.3218, allocations: 4 kB / 414.7 MB, free: 12.55 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.471e-05/0.3218, allocations: 0 / 414.7 MB, free: 12.55 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.908e-05/0.3219, allocations: 19.92 kB / 414.7 MB, free: 12.53 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.406e-06/0.3219, allocations: 4.156 kB / 414.7 MB, free: 12.53 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.98e-05/0.322, allocations: 3.938 kB / 414.7 MB, free: 12.52 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.416e-06/0.322, allocations: 7.938 kB / 414.7 MB, free: 12.52 MB / 334.1 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 9.917e-05/0.3221, allocations: 129.9 kB / 414.9 MB, free: 12.38 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.436e-05/0.3221, allocations: 15.84 kB / 414.9 MB, free: 12.36 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.431e-05/0.3222, allocations: 12.36 kB / 414.9 MB, free: 12.35 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.328e-06/0.3222, allocations: 0 / 414.9 MB, free: 12.35 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.698e-06/0.3222, allocations: 4 kB / 414.9 MB, free: 12.35 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.579e-05/0.3223, allocations: 85 kB / 415 MB, free: 12.25 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.691e-05/0.3223, allocations: 8 kB / 415 MB, free: 12.24 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.784e-05/0.3224, allocations: 7.984 kB / 415 MB, free: 12.23 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.91e-05/0.3225, allocations: 3.938 kB / 415 MB, free: 12.23 MB / 334.1 MB [/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/Compiler/BackEnd/DAEMode.mo:161:5-161: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...4 /var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/bin/../lib/x86_64-linux-gnu/omc/libOpenModelicaCompiler.so(ComponentReference.expandCref_impl) [bt] #5 /var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/bin/../lib/x86_64-linux-gnu/omc/libOpenModelicaCompiler.so(ComponentReference.expandCref) [bt] #6 /var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/bin/../lib/x86_64-linux-gnu/omc/libOpenModelicaCompiler.so(BackendVariable.getVar) [bt] #7 /var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/bin/../lib/x86_64-linux-gnu/omc/libOpenModelicaCompiler.so(BackendDAEUtil.traversingadjacencyRowExpFinder) [bt] #8 /var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/bin/../lib/x86_64-linux-gnu/omc/libOpenModelicaCompiler.so(boxptr_BackendDAEUtil_traversingadjacencyRowExpFinder) [bt] #9...10 /var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/bin/../lib/x86_64-linux-gnu/omc/libOpenModelicaCompiler.so(Expression.traverseExpTopDown1) [bt] #11 /var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/bin/../lib/x86_64-linux-gnu/omc/libOpenModelicaCompiler.so(Expression.traverseExpTopDown) [bt] #12 /var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/bin/../lib/x86_64-linux-gnu/omc/libOpenModelicaCompiler.so(BackendDAEUtil.traversingadjacencyRowIfExp) [bt] #13 /var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/bin/../lib/x86_64-linux-gnu/omc/libOpenModelicaCompiler.so(BackendDAEUtil.traversingadjacencyRowExpFinder) [bt] #14 /var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/bin/../lib/x86_64-linux-gnu/omc/libOpenModelicaCompiler.so(boxptr_BackendDAEUtil_traversingadjacencyRowExpFinder) [bt] #15 /var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/bin/../lib/x86_64-linux-gnu/omc/libOpenModelicaCompiler.so(Expression.traverseExpTopDown) [bt] #16 /var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/bin/../lib/x86_64-linux-gnu/omc/libOpenModelicaCompiler.so(BackendDAEUtil.adjacencyRowExp) [bt] #17...18 /var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/bin/../lib/x86_64-linux-gnu/omc/libOpenModelicaCompiler.so(BackendDAEUtil.adjacencyRow) [bt] #19 /var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/bin/../lib/x86_64-linux-gnu/omc/libOpenModelicaCompiler.so(BackendDAEUtil.adjacencyMatrixDispatchScalar) [bt] #20 /var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/bin/../lib/x86_64-linux-gnu/omc/libOpenModelicaCompiler.so(BackendDAEUtil.adjacencyMatrixScalar) [bt] #21 /var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/bin/../lib/x86_64-linux-gnu/omc/libOpenModelicaCompiler.so(DAEMode.getDiscAndContEqns) [bt] #22...1024 /var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/bin/../lib/x86_64-linux-gnu/omc/libOpenModelicaCompiler.so(DAEMode.traverserStrongComponents) [bt] #1025 [...] Error: Internal error SimCode DAEmode: The model Modelica.Clocked.Examples.Elementary.RealSignals.TickBasedSine could not be translated