Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.RealSignals.TickBasedSine.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001875/0.001875, allocations: 110.8 kB / 21.19 MB, free: 0.6641 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.001459/0.001459, allocations: 205.3 kB / 24.49 MB, free: 3.965 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.429/1.429, allocations: 230.6 MB / 258.3 MB, free: 7.793 MB / 206.1 MB " [Timeout remaining time 178] Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: translateModel(Modelica.Clocked.Examples.Elementary.RealSignals.TickBasedSine,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5011,variableFilter="time|assignClock1.y",fileNamePrefix="Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.RealSignals.TickBasedSine") translateModel(Modelica.Clocked.Examples.Elementary.RealSignals.TickBasedSine,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5011,variableFilter="time|assignClock1.y",fileNamePrefix="Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.RealSignals.TickBasedSine") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001563/0.001563, allocations: 47.92 kB / 379 MB, free: 2.477 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2183/0.2199, allocations: 53.36 MB / 432.3 MB, free: 6.723 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.RealSignals.TickBasedSine): time 0.002869/0.2227, allocations: 1.606 MB / 433.9 MB, free: 5.113 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.0009534/0.2237, allocations: 494.7 kB / 434.4 MB, free: 4.625 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.015e-05/0.2238, allocations: 0 / 434.4 MB, free: 4.625 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 4.525e-05/0.2238, allocations: 7.875 kB / 434.4 MB, free: 4.617 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001585/0.224, allocations: 11.88 kB / 434.4 MB, free: 4.605 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002789/0.2242, allocations: 51.88 kB / 434.5 MB, free: 4.555 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001366/0.2244, allocations: 67.78 kB / 434.6 MB, free: 4.488 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 8.019e-05/0.2245, allocations: 15.97 kB / 434.6 MB, free: 4.473 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001391/0.2246, allocations: 39.86 kB / 434.6 MB, free: 4.434 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 6.242e-05/0.2247, allocations: 35.83 kB / 434.7 MB, free: 4.398 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 1.989e-05/0.2247, allocations: 8 kB / 434.7 MB, free: 4.391 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 3.631e-05/0.2247, allocations: 4 kB / 434.7 MB, free: 4.387 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 2.647e-05/0.2247, allocations: 15.92 kB / 434.7 MB, free: 4.371 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 3.863e-05/0.2248, allocations: 23.86 kB / 434.7 MB, free: 4.348 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001295/0.2249, allocations: 70.39 kB / 434.8 MB, free: 4.285 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.397e-06/0.2249, allocations: 0 / 434.8 MB, free: 4.285 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.432e-06/0.2249, allocations: 0 / 434.8 MB, free: 4.285 MB / 334.1 MB Notification: Performance of Transformations before backend: time 3.767e-06/0.2249, allocations: 3.938 kB / 434.8 MB, free: 4.281 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.0005075/0.2254, allocations: 310 kB / 435.1 MB, free: 3.949 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.69e-05/0.2255, allocations: 12.03 kB / 435.1 MB, free: 3.938 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002257/0.2257, allocations: 20.88 kB / 435.1 MB, free: 3.918 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002123/0.2259, allocations: 137.6 kB / 435.2 MB, free: 3.762 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 8.326e-05/0.226, allocations: 38.25 kB / 435.3 MB, free: 3.719 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.686e-05/0.226, allocations: 8.375 kB / 435.3 MB, free: 3.711 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003887/0.2264, allocations: 165 kB / 435.5 MB, free: 3.531 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.144e-06/0.2264, allocations: 0 / 435.5 MB, free: 3.531 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.567e-05/0.2264, allocations: 4 kB / 435.5 MB, free: 3.527 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.068e-06/0.2264, allocations: 0 / 435.5 MB, free: 3.527 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001274/0.2265, allocations: 39.91 kB / 435.5 MB, free: 3.488 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001518/0.2267, allocations: 122.2 kB / 435.6 MB, free: 3.336 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002437/0.2269, allocations: 85.25 kB / 435.7 MB, free: 3.234 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 9.803e-05/0.227, allocations: 41.7 kB / 435.7 MB, free: 3.188 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.377e-05/0.2271, allocations: 3.938 kB / 435.7 MB, free: 3.184 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.13e-05/0.2271, allocations: 38.56 kB / 435.8 MB, free: 3.137 MB / 334.1 MB Notification: Performance of pre-optimization done (n=7): time 1.362e-06/0.2271, allocations: 0 / 435.8 MB, free: 3.137 MB / 334.1 MB Notification: Performance of matching and sorting (n=7): time 0.0003337/0.2274, allocations: 113.5 kB / 435.9 MB, free: 3.02 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.815e-05/0.2275, allocations: 85.09 kB / 436 MB, free: 2.918 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001173/0.2276, allocations: 117.8 kB / 436.1 MB, free: 2.793 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 2.292e-05/0.2276, allocations: 29.7 kB / 436.1 MB, free: 2.758 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.631e-05/0.2277, allocations: 92.12 kB / 436.2 MB, free: 2.664 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.472e-05/0.2277, allocations: 128 / 436.2 MB, free: 2.664 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.483e-05/0.2277, allocations: 25.72 kB / 436.2 MB, free: 2.633 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001388/0.2279, allocations: 322.8 kB / 436.5 MB, free: 2.309 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.273e-05/0.2279, allocations: 15.98 kB / 436.6 MB, free: 2.293 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.216e-05/0.228, allocations: 57.94 kB / 436.6 MB, free: 2.215 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001308/0.2281, allocations: 73.94 kB / 436.7 MB, free: 2.121 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.014e-06/0.2281, allocations: 0 / 436.7 MB, free: 2.121 MB / 334.1 MB Notification: Performance of matching and sorting (n=7) (initialization): time 0.000175/0.2283, allocations: 89.75 kB / 436.8 MB, free: 2.027 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.215e-05/0.2283, allocations: 4 kB / 436.8 MB, free: 2.023 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.705e-06/0.2283, allocations: 7.938 kB / 436.8 MB, free: 2.016 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.287e-05/0.2283, allocations: 4 kB / 436.8 MB, free: 2.012 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.71e-05/0.2284, allocations: 24.14 kB / 436.8 MB, free: 1.988 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.384e-06/0.2284, allocations: 0 / 436.8 MB, free: 1.988 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.085e-05/0.2285, allocations: 4 kB / 436.8 MB, free: 1.984 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.025e-05/0.2285, allocations: 4 kB / 436.8 MB, free: 1.98 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.752e-05/0.2286, allocations: 121.8 kB / 436.9 MB, free: 1.852 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.073e-05/0.2286, allocations: 7.953 kB / 437 MB, free: 1.844 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.732e-05/0.2286, allocations: 20.23 kB / 437 MB, free: 1.82 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.345e-06/0.2286, allocations: 0 / 437 MB, free: 1.82 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.343e-06/0.2286, allocations: 0 / 437 MB, free: 1.82 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.071e-05/0.2287, allocations: 15.94 kB / 437 MB, free: 1.805 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.329e-05/0.2287, allocations: 12 kB / 437 MB, free: 1.793 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.615e-05/0.2288, allocations: 4 kB / 437 MB, free: 1.789 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.072e-05/0.2288, allocations: 0 / 437 MB, free: 1.789 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 /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 [...] Error: Internal error SimCode DAEmode: The model Modelica.Clocked.Examples.Elementary.RealSignals.TickBasedSine could not be translated " [Timeout remaining time 659] [Calling sys.exit(0), Time elapsed: 3.2720658910038765] Failed to read output from testmodel.py, exit status != 0: ['time', 'assignClock1.y'] 1.1987592260047677 1.208719167 0.981181299 Calling exit ...