Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_cpp_Modelica.Clocked.Examples.Elementary.BooleanSignals.TickBasedPulse.conf.json 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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) 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) Running command: translateModel(Modelica.Clocked.Examples.Elementary.BooleanSignals.TickBasedPulse,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|assignClock1.y",fileNamePrefix="Modelica_trunk_cpp_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_cpp_Modelica.Clocked.Examples.Elementary.BooleanSignals.TickBasedPulse") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001156/0.001156, allocations: 197.9 kB / 18.05 MB, free: 3.66 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.461/1.461, allocations: 226.5 MB / 245.3 MB, free: 6.48 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0007972/0.0007972, allocations: 95.36 kB / 297.4 MB, free: 6.699 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003068/0.0003069, allocations: 8 kB / 357.4 MB, free: 10.72 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2309/0.2312, allocations: 51.3 MB / 408.7 MB, free: 27.71 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.BooleanSignals.TickBasedPulse): time 0.001313/0.2326, allocations: 1.152 MB / 409.8 MB, free: 26.55 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.0001788/0.2328, allocations: 39.84 kB / 409.9 MB, free: 26.52 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 5.516e-05/0.2329, allocations: 2.781 kB / 409.9 MB, free: 26.52 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 1.412e-05/0.2329, allocations: 0 / 409.9 MB, free: 26.52 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 5.854e-05/0.233, allocations: 3.938 kB / 409.9 MB, free: 26.51 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002248/0.2332, allocations: 31.97 kB / 409.9 MB, free: 26.48 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 6.905e-05/0.2333, allocations: 31.92 kB / 409.9 MB, free: 26.45 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 8.448e-05/0.2334, allocations: 8 kB / 410 MB, free: 26.44 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 4.659e-05/0.2334, allocations: 20.42 kB / 410 MB, free: 26.42 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 3.819e-05/0.2335, allocations: 15.91 kB / 410 MB, free: 26.41 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 1.489e-05/0.2335, allocations: 4.5 kB / 410 MB, free: 26.4 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 1.049e-05/0.2335, allocations: 4.844 kB / 410 MB, free: 26.4 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 1.517e-05/0.2335, allocations: 4 kB / 410 MB, free: 26.39 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 3.488e-05/0.2336, allocations: 46.25 kB / 410 MB, free: 26.34 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 5.891e-05/0.2336, allocations: 23.94 kB / 410.1 MB, free: 26.32 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.43e-06/0.2336, allocations: 0.75 kB / 410.1 MB, free: 26.32 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.873e-06/0.2336, allocations: 0 / 410.1 MB, free: 26.32 MB / 298.7 MB Notification: Performance of Transformations before backend: time 3.656e-06/0.2337, allocations: 3.188 kB / 410.1 MB, free: 26.32 MB / 298.7 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.0003427/0.234, allocations: 347.4 kB / 410.4 MB, free: 25.93 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.317e-05/0.234, allocations: 8.031 kB / 410.4 MB, free: 25.92 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.547e-05/0.2341, allocations: 4.938 kB / 410.4 MB, free: 25.92 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001385/0.2342, allocations: 177.3 kB / 410.6 MB, free: 25.71 MB / 298.7 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 0.0001271/0.2344, allocations: 38.25 kB / 410.6 MB, free: 25.66 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.335e-05/0.2344, allocations: 4.375 kB / 410.6 MB, free: 25.66 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002496/0.2346, allocations: 126.2 kB / 410.8 MB, free: 25.53 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.797e-06/0.2347, allocations: 3.938 kB / 410.8 MB, free: 25.52 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.063e-05/0.2347, allocations: 0 / 410.8 MB, free: 25.52 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.079e-06/0.2347, allocations: 4.734 kB / 410.8 MB, free: 25.52 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 5.701e-05/0.2348, allocations: 19.98 kB / 410.8 MB, free: 25.5 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 9.822e-05/0.2349, allocations: 166.8 kB / 411 MB, free: 25.29 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001539/0.235, allocations: 139.2 kB / 411.1 MB, free: 25.13 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.51e-05/0.2351, allocations: 28.84 kB / 411.1 MB, free: 25.1 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 6.593e-06/0.2351, allocations: 0 / 411.1 MB, free: 25.1 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.222e-05/0.2351, allocations: 34.56 kB / 411.2 MB, free: 25.05 MB / 298.7 MB Notification: Performance of pre-optimization done (n=5): time 1.032e-06/0.2351, allocations: 0 / 411.2 MB, free: 25.05 MB / 298.7 MB Notification: Performance of matching and sorting (n=5): time 0.000177/0.2353, allocations: 80.59 kB / 411.2 MB, free: 24.97 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 1.661e-05/0.2353, allocations: 55.41 kB / 411.3 MB, free: 24.91 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.612e-05/0.2354, allocations: 105.8 kB / 411.4 MB, free: 24.79 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 1.004e-05/0.2354, allocations: 29.7 kB / 411.4 MB, free: 24.76 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 2.049e-05/0.2354, allocations: 80.14 kB / 411.5 MB, free: 24.68 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 5.891e-06/0.2354, allocations: 7.938 kB / 411.5 MB, free: 24.67 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.094e-06/0.2355, allocations: 0 / 411.5 MB, free: 24.67 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 4.694e-05/0.2355, allocations: 317 kB / 411.8 MB, free: 24.35 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.708e-06/0.2355, allocations: 8 kB / 411.8 MB, free: 24.34 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 1.991e-05/0.2356, allocations: 28.3 kB / 411.9 MB, free: 24.3 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 3.588e-05/0.2356, allocations: 52.23 kB / 411.9 MB, free: 24.23 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.044e-06/0.2356, allocations: 0 / 411.9 MB, free: 24.23 MB / 298.7 MB Notification: Performance of matching and sorting (n=5) (initialization): time 6.861e-05/0.2357, allocations: 65.59 kB / 412 MB, free: 24.16 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.188e-05/0.2357, allocations: 8 kB / 412 MB, free: 24.16 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.651e-06/0.2357, allocations: 3.938 kB / 412 MB, free: 24.15 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.217e-05/0.2357, allocations: 3.984 kB / 412 MB, free: 24.15 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 3.395e-05/0.2358, allocations: 7.938 kB / 412 MB, free: 24.14 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.214e-06/0.2358, allocations: 7.984 kB / 412 MB, free: 24.13 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.218e-05/0.2358, allocations: 3.938 kB / 412 MB, free: 24.13 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.949e-06/0.2358, allocations: 4.562 kB / 412 MB, free: 24.12 MB / 298.7 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 5.17e-05/0.2359, allocations: 114 kB / 412.1 MB, free: 24 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.132e-05/0.2359, allocations: 7.906 kB / 412.1 MB, free: 24 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.978e-05/0.2359, allocations: 11.91 kB / 412.1 MB, free: 23.98 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.946e-06/0.2359, allocations: 4 kB / 412.1 MB, free: 23.97 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.573e-06/0.2359, allocations: 3.984 kB / 412.1 MB, free: 23.97 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 1.821e-05/0.2359, allocations: 77.11 kB / 412.2 MB, free: 23.88 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.748e-05/0.236, allocations: 4 kB / 412.2 MB, free: 23.87 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.42e-05/0.236, allocations: 8 kB / 412.2 MB, free: 23.86 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.346e-06/0.236, allocations: 0 / 412.2 MB, free: 23.86 MB / 298.7 MB [/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/Compiler/BackEnd/DAEMode.mo:155:5-155: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 [...]