Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.TickBasedSine.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) 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(Modelica.Clocked.Examples.Elementary.RealSignals.TickBasedSine,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|assignClock1.y",fileNamePrefix="Modelica_4.0.0_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_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.TickBasedSine") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001499/0.001499, allocations: 110.9 kB / 17.75 MB, free: 5.332 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.001618/0.001618, allocations: 190.6 kB / 18.68 MB, free: 4.41 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.439/1.439, allocations: 222.9 MB / 242.4 MB, free: 15.15 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001242/0.001242, allocations: 47.94 kB / 352 MB, free: 3.242 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3166/0.3179, allocations: 49.43 MB / 401.4 MB, free: 8.746 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.RealSignals.TickBasedSine): time 0.002817/0.3207, allocations: 1.594 MB / 403 MB, free: 7.266 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.0008122/0.3216, allocations: 442.9 kB / 403.4 MB, free: 6.828 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 6.795e-05/0.3217, allocations: 7.938 kB / 403.5 MB, free: 6.82 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 3.351e-05/0.3217, allocations: 3.938 kB / 403.5 MB, free: 6.816 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001584/0.3219, allocations: 11.88 kB / 403.5 MB, free: 6.805 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002071/0.3221, allocations: 35.95 kB / 403.5 MB, free: 6.77 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001353/0.3222, allocations: 75.7 kB / 403.6 MB, free: 6.695 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001014/0.3224, allocations: 11.98 kB / 403.6 MB, free: 6.684 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001018/0.3225, allocations: 27.92 kB / 403.6 MB, free: 6.656 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 6.498e-05/0.3225, allocations: 35.84 kB / 403.7 MB, free: 6.621 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 2.405e-05/0.3226, allocations: 7.984 kB / 403.7 MB, free: 6.613 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.501e-05/0.3226, allocations: 4 kB / 403.7 MB, free: 6.609 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 2.808e-05/0.3226, allocations: 15.92 kB / 403.7 MB, free: 6.594 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 4.882e-05/0.3227, allocations: 31.8 kB / 403.7 MB, free: 6.562 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001188/0.3228, allocations: 71.72 kB / 403.8 MB, free: 6.492 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.296e-06/0.3228, allocations: 0 / 403.8 MB, free: 6.492 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.603e-06/0.3228, allocations: 0 / 403.8 MB, free: 6.492 MB / 318.1 MB Notification: Performance of Transformations before backend: time 8.696e-06/0.3228, allocations: 0 / 403.8 MB, free: 6.492 MB / 318.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.0005946/0.3234, allocations: 372.4 kB / 404.1 MB, free: 6.086 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.85e-05/0.3235, allocations: 8.031 kB / 404.2 MB, free: 6.078 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.506e-05/0.3235, allocations: 8.844 kB / 404.2 MB, free: 6.07 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002288/0.3238, allocations: 187.3 kB / 404.3 MB, free: 5.852 MB / 318.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.618e-05/0.3239, allocations: 46.25 kB / 404.4 MB, free: 5.801 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.487e-05/0.3239, allocations: 4.375 kB / 404.4 MB, free: 5.797 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003815/0.3243, allocations: 172.9 kB / 404.6 MB, free: 5.609 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.053e-05/0.3243, allocations: 3.984 kB / 404.6 MB, free: 5.605 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.46e-05/0.3243, allocations: 4 kB / 404.6 MB, free: 5.602 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.793e-06/0.3243, allocations: 0 / 404.6 MB, free: 5.602 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001294/0.3245, allocations: 43.91 kB / 404.6 MB, free: 5.559 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001949/0.3247, allocations: 174.5 kB / 404.8 MB, free: 5.336 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002957/0.325, allocations: 166.4 kB / 404.9 MB, free: 5.137 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001085/0.3251, allocations: 45.7 kB / 405 MB, free: 5.086 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.169e-05/0.3251, allocations: 4 kB / 405 MB, free: 5.082 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.491e-05/0.3251, allocations: 34.5 kB / 405 MB, free: 5.039 MB / 318.1 MB Notification: Performance of pre-optimization done (n=7): time 2.685e-06/0.3252, allocations: 0 / 405 MB, free: 5.039 MB / 318.1 MB Notification: Performance of matching and sorting (n=7): time 0.0003372/0.3255, allocations: 113.5 kB / 405.1 MB, free: 4.922 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.623e-05/0.3256, allocations: 81.23 kB / 405.2 MB, free: 4.824 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001159/0.3257, allocations: 129.8 kB / 405.3 MB, free: 4.688 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 2.033e-05/0.3257, allocations: 29.7 kB / 405.4 MB, free: 4.652 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.467e-05/0.3258, allocations: 84.14 kB / 405.5 MB, free: 4.566 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.26e-05/0.3258, allocations: 7.984 kB / 405.5 MB, free: 4.559 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.473e-05/0.3258, allocations: 17.72 kB / 405.5 MB, free: 4.535 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0001163/0.326, allocations: 318.8 kB / 405.8 MB, free: 4.215 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.9e-05/0.326, allocations: 12 kB / 405.8 MB, free: 4.203 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.939e-05/0.3261, allocations: 58 kB / 405.9 MB, free: 4.125 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001165/0.3262, allocations: 73.88 kB / 405.9 MB, free: 4.031 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.998e-06/0.3262, allocations: 7.938 kB / 405.9 MB, free: 4.023 MB / 318.1 MB Notification: Performance of matching and sorting (n=7) (initialization): time 0.0001646/0.3264, allocations: 89.44 kB / 406 MB, free: 3.93 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.828e-05/0.3264, allocations: 12.16 kB / 406 MB, free: 3.918 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.091e-06/0.3264, allocations: 4 kB / 406 MB, free: 3.914 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.476e-05/0.3265, allocations: 0 / 406 MB, free: 3.914 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.806e-05/0.3266, allocations: 12.25 kB / 406.1 MB, free: 3.902 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.603e-05/0.3266, allocations: 11.92 kB / 406.1 MB, free: 3.891 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.144e-05/0.3266, allocations: 4 kB / 406.1 MB, free: 3.887 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.506e-06/0.3267, allocations: 4.156 kB / 406.1 MB, free: 3.883 MB / 318.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.569e-05/0.3268, allocations: 121.8 kB / 406.2 MB, free: 3.754 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.053e-05/0.3268, allocations: 15.84 kB / 406.2 MB, free: 3.738 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.727e-05/0.3268, allocations: 16.36 kB / 406.2 MB, free: 3.723 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.386e-06/0.3268, allocations: 0 / 406.2 MB, free: 3.723 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.876e-06/0.3268, allocations: 4 kB / 406.2 MB, free: 3.719 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.646e-05/0.3269, allocations: 85 kB / 406.3 MB, free: 3.617 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.95e-05/0.327, allocations: 11.94 kB / 406.3 MB, free: 3.605 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.399e-05/0.3271, allocations: 4 kB / 406.3 MB, free: 3.602 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.766e-05/0.3271, allocations: 0 / 406.3 MB, free: 3.602 MB / 318.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 /var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/bin/../lib/x86_64-linux-gnu/omc/libOpenModelicaCompiler.so(ComponentReference.makeCrefQual) [bt] #4 /var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/bin/../lib/x86_64-linux-gnu/omc/libOpenModelicaCompiler.so(List.map3r) [bt] #5 /var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/bin/../lib/x86_64-linux-gnu/omc/libOpenModelicaCompiler.so(ComponentReference.expandCref_impl) [bt] #6 /var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/bin/../lib/x86_64-linux-gnu/omc/libOpenModelicaCompiler.so(ComponentReference.expandCref) [bt] #7 /var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/bin/../lib/x86_64-linux-gnu/omc/libOpenModelicaCompiler.so(BackendVariable.getVar) [bt] #8 /var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/bin/../lib/x86_64-linux-gnu/omc/libOpenModelicaCompiler.so(BackendDAEUtil.traversingadjacencyRowExpFinder) [bt] #9 /var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/bin/../lib/x86_64-linux-gnu/omc/libOpenModelicaCompiler.so(boxptr_BackendDAEUtil_traversingadjacencyRowExpFinder) [bt] #10...11 /var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/bin/../lib/x86_64-linux-gnu/omc/libOpenModelicaCompiler.so(Expression.traverseExpTopDown1) [bt] #12 /var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/bin/../lib/x86_64-linux-gnu/omc/libOpenModelicaCompiler.so(Expression.traverseExpTopDown) [bt] #13 /var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/bin/../lib/x86_64-linux-gnu/omc/libOpenModelicaCompiler.so(BackendDAEUtil.traversingadjacencyRowIfExp) [bt] #14 /var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/bin/../lib/x86_64-linux-gnu/omc/libOpenModelicaCompiler.so(BackendDAEUtil.traversingadjacencyRowExpFinder) [bt] #15 /var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/bin/../lib/x86_64-linux-gnu/omc/libOpenModelicaCompiler.so(boxptr_BackendDAEUtil_traversingadjacencyRowExpFinder) [bt] #16 /var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/bin/../lib/x86_64-linux-gnu/omc/libOpenModelicaCompiler.so(Expression.traverseExpTopDown) [bt] #17 /var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/bin/../lib/x86_64-linux-gnu/omc/libOpenModelicaCompiler.so(BackendDAEUtil.adjacencyRowExp) [bt] #18...19 /var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/bin/../lib/x86_64-linux-gnu/omc/libOpenModelicaCompiler.so(BackendDAEUtil.adjacencyRow) [bt] #20 /var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/bin/../lib/x86_64-linux-gnu/omc/libOpenModelicaCompiler.so(BackendDAEUtil.adjacencyMatrixDispatchScalar) [bt] #21 /var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/bin/../lib/x86_64-linux-gnu/omc/libOpenModelicaCompiler.so(BackendDAEUtil.adjacencyMatrixScalar) [bt] #22 /var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/bin/../lib/x86_64-linux-gnu/omc/libOpenModelicaCompiler.so(DAEMode.getDiscAndContEqns) [bt] #23...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