Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Clocked.Examples.Elementary.BooleanSignals.TickBasedPulse.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.BooleanSignals.TickBasedPulse,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|assignClock1.y",fileNamePrefix="Modelica_trunk_Modelica.Clocked.Examples.Elementary.BooleanSignals.TickBasedPulse") translateModel(Modelica.Clocked.Examples.Elementary.BooleanSignals.TickBasedPulse,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|assignClock1.y",fileNamePrefix="Modelica_trunk_Modelica.Clocked.Examples.Elementary.BooleanSignals.TickBasedPulse") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001123/0.001123, allocations: 118.3 kB / 18.46 MB, free: 4.605 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001277/0.001277, allocations: 202.7 kB / 19.42 MB, free: 3.66 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.351/1.351, allocations: 227.4 MB / 247.6 MB, free: 10.52 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00123/0.00123, allocations: 63.89 kB / 359.4 MB, free: 12.95 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2346/0.2359, allocations: 50.54 MB / 409.9 MB, free: 1.789 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.BooleanSignals.TickBasedPulse): time 0.002714/0.2386, allocations: 1.44 MB / 411.4 MB, free: 360 kB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.0002174/0.2389, allocations: 39.84 kB / 411.4 MB, free: 320 kB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 6.789e-05/0.239, allocations: 4 kB / 411.4 MB, free: 316 kB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 3.565e-05/0.239, allocations: 7.938 kB / 411.4 MB, free: 308 kB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 6.711e-05/0.2391, allocations: 7.922 kB / 411.4 MB, free: 300 kB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002507/0.2394, allocations: 23.98 kB / 411.5 MB, free: 276 kB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.000125/0.2395, allocations: 43.89 kB / 411.5 MB, free: 232 kB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001243/0.2396, allocations: 4 kB / 411.5 MB, free: 228 kB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 6.71e-05/0.2397, allocations: 19.92 kB / 411.5 MB, free: 208 kB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 4.235e-05/0.2397, allocations: 19.92 kB / 411.5 MB, free: 188 kB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 2.261e-05/0.2398, allocations: 4 kB / 411.5 MB, free: 184 kB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.382e-05/0.2398, allocations: 8 kB / 411.6 MB, free: 176 kB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 2.523e-05/0.2398, allocations: 11.92 kB / 411.6 MB, free: 164 kB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 3.826e-05/0.2399, allocations: 15.92 kB / 411.6 MB, free: 148 kB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001109/0.24, allocations: 43.81 kB / 411.6 MB, free: 104 kB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.998e-06/0.24, allocations: 0 / 411.6 MB, free: 104 kB / 318.1 MB Notification: Performance of FrontEnd: time 1.633e-06/0.24, allocations: 0 / 411.6 MB, free: 104 kB / 318.1 MB Notification: Performance of Transformations before backend: time 6.532e-06/0.24, allocations: 0 / 411.6 MB, free: 104 kB / 318.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 8 * Number of variables: 8 Notification: Performance of Generate backend data structure: time 0.0004584/0.2405, allocations: 351.3 kB / 412 MB, free: 15.71 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.09e-05/0.2405, allocations: 8.031 kB / 412 MB, free: 15.7 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.258e-05/0.2406, allocations: 12.83 kB / 412 MB, free: 15.69 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002199/0.2408, allocations: 184.4 kB / 412.2 MB, free: 15.47 MB / 334.1 MB Error: Internal error - BackendDAEOptimize.makeEquationToResidualExp failed to transform equation: pulse.startOutput = previous(pulse.counter) >= pulse.startTick - 1 to residual form! Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.522e-05/0.2409, allocations: 37.81 kB / 412.2 MB, free: 15.43 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.491e-05/0.2409, allocations: 8.375 kB / 412.2 MB, free: 15.42 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002871/0.2412, allocations: 119.8 kB / 412.3 MB, free: 15.29 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.007e-05/0.2412, allocations: 3.938 kB / 412.3 MB, free: 15.29 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.087e-06/0.2413, allocations: 0 / 412.3 MB, free: 15.29 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.618e-06/0.2413, allocations: 4 kB / 412.3 MB, free: 15.29 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 6.165e-05/0.2413, allocations: 19.98 kB / 412.4 MB, free: 15.27 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001376/0.2415, allocations: 165.6 kB / 412.5 MB, free: 15.05 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001858/0.2417, allocations: 135.7 kB / 412.6 MB, free: 14.89 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.456e-05/0.2417, allocations: 28.84 kB / 412.7 MB, free: 14.86 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.287e-05/0.2418, allocations: 4 kB / 412.7 MB, free: 14.86 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.371e-05/0.2418, allocations: 38.56 kB / 412.7 MB, free: 14.81 MB / 334.1 MB Notification: Performance of pre-optimization done (n=5): time 1.633e-06/0.2418, allocations: 0 / 412.7 MB, free: 14.81 MB / 334.1 MB Notification: Performance of matching and sorting (n=5): time 0.0001953/0.242, allocations: 69.62 kB / 412.8 MB, free: 14.74 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.163e-05/0.242, allocations: 59.34 kB / 412.8 MB, free: 14.67 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.299e-05/0.2421, allocations: 109.8 kB / 413 MB, free: 14.55 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 1.621e-05/0.2421, allocations: 29.7 kB / 413 MB, free: 14.52 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.249e-05/0.2422, allocations: 84.12 kB / 413.1 MB, free: 14.43 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.174e-06/0.2422, allocations: 0 / 413.1 MB, free: 14.43 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.507e-05/0.2422, allocations: 21.72 kB / 413.1 MB, free: 14.4 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001018/0.2424, allocations: 318.8 kB / 413.4 MB, free: 14.08 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.449e-05/0.2424, allocations: 3.984 kB / 413.4 MB, free: 14.08 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 3.162e-05/0.2424, allocations: 36.3 kB / 413.4 MB, free: 14.02 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 5.879e-05/0.2425, allocations: 44.23 kB / 413.5 MB, free: 13.96 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.314e-06/0.2425, allocations: 0 / 413.5 MB, free: 13.96 MB / 334.1 MB Notification: Performance of matching and sorting (n=5) (initialization): time 9.356e-05/0.2426, allocations: 65.52 kB / 413.5 MB, free: 13.89 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.401e-05/0.2426, allocations: 4 kB / 413.5 MB, free: 13.89 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.492e-06/0.2426, allocations: 4.094 kB / 413.5 MB, free: 13.89 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.463e-05/0.2426, allocations: 8 kB / 413.6 MB, free: 13.88 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 3.804e-05/0.2427, allocations: 4 kB / 413.6 MB, free: 13.88 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.408e-06/0.2427, allocations: 3.984 kB / 413.6 MB, free: 13.87 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.684e-05/0.2427, allocations: 7.938 kB / 413.6 MB, free: 13.86 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.671e-06/0.2427, allocations: 4 kB / 413.6 MB, free: 13.86 MB / 334.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 5 * Number of states: 0 () * Number of discrete variables: 5 (pulse.startOutput,pulse.counter,pulse.y,assignClock1.y,assignClock1.u) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (5): * Single equations (assignments): 5 * 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 7.238e-05/0.2428, allocations: 117.8 kB / 413.7 MB, free: 13.73 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.371e-05/0.2428, allocations: 4.047 kB / 413.7 MB, free: 13.73 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.7e-05/0.2429, allocations: 15.83 kB / 413.7 MB, free: 13.71 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.076e-06/0.2429, allocations: 4 kB / 413.7 MB, free: 13.7 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.032e-06/0.2429, allocations: 0 / 413.7 MB, free: 13.7 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.523e-05/0.2429, allocations: 81.06 kB / 413.8 MB, free: 13.61 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.208e-05/0.243, allocations: 11.98 kB / 413.8 MB, free: 13.59 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.732e-05/0.243, allocations: 4 kB / 413.8 MB, free: 13.59 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.416e-06/0.243, allocations: 0.5625 kB / 413.8 MB, free: 13.59 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.BooleanSignals.TickBasedPulse could not be translated