Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0-beta.om_Modelica.Clocked.Examples.Elementary.RealSignals.TickBasedSine.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001589/0.001589, allocations: 114.5 kB / 21.18 MB, free: 0.7305 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001761/0.001761, allocations: 206.1 kB / 24.48 MB, free: 4.125 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/package.mo): time 1.513/1.513, allocations: 230.4 MB / 258.1 MB, free: 8.141 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-beta.om/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=5011,variableFilter="time|assignClock1.y",fileNamePrefix="Modelica_4.1.0-beta.om_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-beta.om_Modelica.Clocked.Examples.Elementary.RealSignals.TickBasedSine") [Timeout 660] "Warning: Requested package Modelica of version trunk, but this package was already loaded with version 4.1.0. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Warning: Requested package Complex of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Warning: Requested package ModelicaServices of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Notification: Performance of FrontEnd - loaded program: time 0.001995/0.001995, allocations: 79.8 kB / 378.8 MB, free: 2.875 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2716/0.2736, allocations: 53.32 MB / 432.1 MB, free: 7.371 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.RealSignals.TickBasedSine): time 0.00315/0.2767, allocations: 1.614 MB / 433.7 MB, free: 5.754 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001012/0.2777, allocations: 0.5181 MB / 434.2 MB, free: 5.23 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.751e-05/0.2778, allocations: 0 / 434.2 MB, free: 5.23 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 3.693e-05/0.2779, allocations: 3.938 kB / 434.2 MB, free: 5.227 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001744/0.278, allocations: 19.86 kB / 434.2 MB, free: 5.207 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002706/0.2783, allocations: 43.89 kB / 434.3 MB, free: 5.164 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001463/0.2785, allocations: 75.75 kB / 434.3 MB, free: 5.09 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 9.374e-05/0.2786, allocations: 8 kB / 434.4 MB, free: 5.082 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001905/0.2787, allocations: 39.84 kB / 434.4 MB, free: 5.043 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 7.613e-05/0.2788, allocations: 35.84 kB / 434.4 MB, free: 5.008 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 1.806e-05/0.2788, allocations: 4 kB / 434.4 MB, free: 5.004 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.462e-05/0.2789, allocations: 8 kB / 434.4 MB, free: 4.996 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 3.093e-05/0.2789, allocations: 19.92 kB / 434.5 MB, free: 4.977 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 4.585e-05/0.279, allocations: 23.86 kB / 434.5 MB, free: 4.953 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001633/0.2791, allocations: 73.61 kB / 434.6 MB, free: 4.883 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.017e-06/0.2791, allocations: 4 kB / 434.6 MB, free: 4.879 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.623e-06/0.2791, allocations: 0 / 434.6 MB, free: 4.879 MB / 334.1 MB Notification: Performance of Transformations before backend: time 5.36e-06/0.2791, allocations: 0 / 434.6 MB, free: 4.879 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.0006012/0.2797, allocations: 383.2 kB / 434.9 MB, free: 4.457 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.877e-05/0.2798, allocations: 15.91 kB / 434.9 MB, free: 4.441 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002405/0.28, allocations: 20.88 kB / 435 MB, free: 4.422 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002769/0.2803, allocations: 191.5 kB / 435.2 MB, free: 4.199 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.927e-05/0.2804, allocations: 38.25 kB / 435.2 MB, free: 4.156 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.529e-05/0.2804, allocations: 4.375 kB / 435.2 MB, free: 4.152 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003988/0.2808, allocations: 173 kB / 435.4 MB, free: 3.965 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.117e-06/0.2808, allocations: 0 / 435.4 MB, free: 3.965 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.285e-05/0.2808, allocations: 0 / 435.4 MB, free: 3.965 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.649e-06/0.2808, allocations: 0 / 435.4 MB, free: 3.965 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001372/0.281, allocations: 35.97 kB / 435.4 MB, free: 3.93 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002226/0.2812, allocations: 186.5 kB / 435.6 MB, free: 3.695 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003074/0.2815, allocations: 162.4 kB / 435.7 MB, free: 3.5 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001038/0.2816, allocations: 41.64 kB / 435.8 MB, free: 3.453 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.978e-05/0.2816, allocations: 0 / 435.8 MB, free: 3.453 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.382e-05/0.2817, allocations: 42.5 kB / 435.8 MB, free: 3.402 MB / 334.1 MB Notification: Performance of pre-optimization done (n=7): time 1.243e-06/0.2817, allocations: 0 / 435.8 MB, free: 3.402 MB / 334.1 MB Notification: Performance of matching and sorting (n=7): time 0.000354/0.282, allocations: 117.5 kB / 435.9 MB, free: 3.281 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.822e-05/0.2821, allocations: 77.11 kB / 436 MB, free: 3.188 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001306/0.2822, allocations: 125.8 kB / 436.1 MB, free: 3.055 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 2.454e-05/0.2822, allocations: 29.7 kB / 436.2 MB, free: 3.02 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.762e-05/0.2823, allocations: 92.2 kB / 436.3 MB, free: 2.926 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.057e-05/0.2823, allocations: 7.984 kB / 436.3 MB, free: 2.918 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.086e-05/0.2824, allocations: 17.72 kB / 436.3 MB, free: 2.895 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001952/0.2826, allocations: 322.8 kB / 436.6 MB, free: 2.57 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.594e-05/0.2826, allocations: 8 kB / 436.6 MB, free: 2.562 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 9.154e-05/0.2827, allocations: 61.98 kB / 436.7 MB, free: 2.48 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001504/0.2829, allocations: 73.94 kB / 436.7 MB, free: 2.387 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.585e-06/0.2829, allocations: 0 / 436.7 MB, free: 2.387 MB / 334.1 MB Notification: Performance of matching and sorting (n=7) (initialization): time 0.0001919/0.2831, allocations: 93.42 kB / 436.8 MB, free: 2.289 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.064e-05/0.2831, allocations: 11.94 kB / 436.8 MB, free: 2.277 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.969e-06/0.2831, allocations: 0 / 436.8 MB, free: 2.277 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.776e-05/0.2831, allocations: 4 kB / 436.8 MB, free: 2.273 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.606e-05/0.2832, allocations: 12.16 kB / 436.9 MB, free: 2.262 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.202e-05/0.2832, allocations: 8.156 kB / 436.9 MB, free: 2.254 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.455e-05/0.2832, allocations: 7.984 kB / 436.9 MB, free: 2.246 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.199e-05/0.2833, allocations: 8 kB / 436.9 MB, free: 2.238 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.775e-05/0.2834, allocations: 121.7 kB / 437 MB, free: 2.109 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.307e-05/0.2834, allocations: 11.89 kB / 437 MB, free: 2.098 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.78e-05/0.2834, allocations: 12.36 kB / 437 MB, free: 2.086 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.406e-06/0.2834, allocations: 4 kB / 437 MB, free: 2.082 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.012e-06/0.2834, allocations: 0 / 437 MB, free: 2.082 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.381e-05/0.2835, allocations: 93.05 kB / 437.1 MB, free: 1.973 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.598e-05/0.2835, allocations: 7.984 kB / 437.1 MB, free: 1.965 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.128e-05/0.2836, allocations: 4 kB / 437.1 MB, free: 1.961 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.026e-05/0.2836, allocations: 0 / 437.1 MB, free: 1.961 MB / 334.1 MB [/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/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_2/OpenModelica/OMCompiler/build/bin/../lib/x86_64-linux-gnu/omc/libOpenModelicaRuntimeC.so(mmc_setStacktraceMessages_threadData) [bt] #2 /var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/OpenModelica/OMCompiler/build/bin/../lib/x86_64-linux-gnu/omc/libOpenModelicaRuntimeC.so(mmc_do_stackoverflow) [bt] #3...4 /var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/OpenModelica/OMCompiler/build/bin/../lib/x86_64-linux-gnu/omc/libOpenModelicaCompiler.so(ComponentReference.expandCref_impl) [bt] #5 /var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/OpenModelica/OMCompiler/build/bin/../lib/x86_64-linux-gnu/omc/libOpenModelicaCompiler.so(ComponentReference.expandCref) [bt] #6 /var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/OpenModelica/OMCompiler/build/bin/../lib/x86_64-linux-gnu/omc/libOpenModelicaCompiler.so(BackendVariable.getVar) [bt] #7 /var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/OpenModelica/OMCompiler/build/bin/../lib/x86_64-linux-gnu/omc/libOpenModelicaCompiler.so(BackendDAEUtil.traversingadjacencyRowExpFinder) [bt] #8 /var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/OpenModelica/OMCompiler/build/bin/../lib/x86_64-linux-gnu/omc/libOpenModelicaCompiler.so(boxptr_BackendDAEUtil_traversingadjacencyRowExpFinder) [bt] #9...10 /var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/OpenModelica/OMCompiler/build/bin/../lib/x86_64-linux-gnu/omc/libOpenModelicaCompiler.so(Expression.traverseExpTopDown1) [bt] #11 /var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/OpenModelica/OMCompiler/build/bin/../lib/x86_64-linux-gnu/omc/libOpenModelicaCompiler.so(Expression.traverseExpTopDown) [bt] #12 /var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/OpenModelica/OMCompiler/build/bin/../lib/x86_64-linux-gnu/omc/libOpenModelicaCompiler.so(BackendDAEUtil.traversingadjacencyRowIfExp) [bt] #13 /var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/OpenModelica/OMCompiler/build/bin/../lib/x86_64-linux-gnu/omc/libOpenModelicaCompiler.so(BackendDAEUtil.traversingadjacencyRowExpFinder) [bt] #14 /var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/OpenModelica/OMCompiler/build/bin/../lib/x86_64-linux-gnu/omc/libOpenModelicaCompiler.so(boxptr_BackendDAEUtil_traversingadjacencyRowExpFinder) [bt] #15 /var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/OpenModelica/OMCompiler/build/bin/../lib/x86_64-linux-gnu/omc/libOpenModelicaCompiler.so(Expression.traverseExpTopDown) [bt] #16 /var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/OpenModelica/OMCompiler/build/bin/../lib/x86_64-linux-gnu/omc/libOpenModelicaCompiler.so(BackendDAEUtil.adjacencyRowExp) [bt] #17...18 /var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/OpenModelica/OMCompiler/build/bin/../lib/x86_64-linux-gnu/omc/libOpenModelicaCompiler.so(BackendDAEUtil.adjacencyRow) [bt] #19 /var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/OpenModelica/OMCompiler/build/bin/../lib/x86_64-linux-gnu/omc/libOpenModelicaCompiler.so(BackendDAEUtil.adjacencyMatrixDispatchScalar) [bt] #20 /var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/OpenModelica/OMCompiler/build/bin/../lib/x86_64-linux-gnu/omc/libOpenModelicaCompiler.so(BackendDAEUtil.adjacencyMatrixScalar) [bt] #21 /var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/OpenModelica/OMCompiler/build/bin/../lib/x86_64-linux-gnu/omc/libOpenModelicaCompiler.so(DAEMode.getDiscAndContEqns) [bt] #22...1024 /var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/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.564839290920645] Failed to read output from testmodel.py, exit status != 0: ['time', 'assignClock1.y'] 1.3123009237460792 1.321631408 1.039965564 Calling exit ...