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.001445/0.001445, allocations: 113.9 kB / 18.46 MB, free: 4.594 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.002327/0.002327, allocations: 208 kB / 19.41 MB, free: 3.652 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.487/1.487, allocations: 227.4 MB / 247.6 MB, free: 10.44 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00145/0.00145, allocations: 55.91 kB / 359.4 MB, free: 12.92 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3723/0.3738, allocations: 50.54 MB / 409.9 MB, free: 1.562 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.BooleanSignals.TickBasedPulse): time 0.003478/0.3773, allocations: 1.445 MB / 411.4 MB, free: 116 kB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.0002625/0.3776, allocations: 39.91 kB / 411.4 MB, free: 76 kB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.37e-05/0.3777, allocations: 0 / 411.4 MB, free: 76 kB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 3.726e-05/0.3778, allocations: 3.938 kB / 411.4 MB, free: 72 kB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 6.551e-05/0.3779, allocations: 11.92 kB / 411.4 MB, free: 60 kB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002731/0.3781, allocations: 23.97 kB / 411.5 MB, free: 36 kB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001078/0.3783, allocations: 35.92 kB / 411.5 MB, free: 0 / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001444/0.3784, allocations: 19.97 kB / 411.5 MB, free: 15.98 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 6.58e-05/0.3785, allocations: 11.94 kB / 411.5 MB, free: 15.97 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 4.682e-05/0.3785, allocations: 19.92 kB / 411.5 MB, free: 15.95 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 2.811e-05/0.3786, allocations: 4 kB / 411.5 MB, free: 15.95 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.138e-05/0.3786, allocations: 0 / 411.5 MB, free: 15.95 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 3.536e-05/0.3786, allocations: 15.92 kB / 411.6 MB, free: 15.93 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 4.018e-05/0.3787, allocations: 19.86 kB / 411.6 MB, free: 15.91 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000122/0.3788, allocations: 39.88 kB / 411.6 MB, free: 15.87 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.653e-06/0.3788, allocations: 0 / 411.6 MB, free: 15.87 MB / 334.1 MB Notification: Performance of FrontEnd: time 2.014e-06/0.3788, allocations: 4 kB / 411.6 MB, free: 15.87 MB / 334.1 MB Notification: Performance of Transformations before backend: time 6.041e-06/0.3788, allocations: 0 / 411.6 MB, free: 15.87 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: 8 * Number of variables: 8 Notification: Performance of Generate backend data structure: time 0.0005818/0.3794, allocations: 355.1 kB / 412 MB, free: 15.47 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.678e-05/0.3795, allocations: 8.031 kB / 412 MB, free: 15.46 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.877e-05/0.3795, allocations: 8.844 kB / 412 MB, free: 15.46 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000256/0.3798, allocations: 176.4 kB / 412.2 MB, free: 15.25 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 0.0001057/0.3799, allocations: 42.25 kB / 412.2 MB, free: 15.2 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.369e-05/0.3799, allocations: 4.375 kB / 412.2 MB, free: 15.2 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003218/0.3803, allocations: 123.8 kB / 412.3 MB, free: 15.06 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.011e-05/0.3803, allocations: 11.88 kB / 412.3 MB, free: 15.05 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.275e-05/0.3803, allocations: 0 / 412.3 MB, free: 15.05 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.642e-06/0.3803, allocations: 0 / 412.3 MB, free: 15.05 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 6.43e-05/0.3804, allocations: 15.98 kB / 412.3 MB, free: 15.04 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002319/0.3806, allocations: 165.7 kB / 412.5 MB, free: 14.82 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003223/0.381, allocations: 139.7 kB / 412.6 MB, free: 14.66 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.741e-05/0.381, allocations: 24.86 kB / 412.7 MB, free: 14.63 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.205e-05/0.381, allocations: 3.984 kB / 412.7 MB, free: 14.63 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.629e-05/0.3811, allocations: 30.56 kB / 412.7 MB, free: 14.59 MB / 334.1 MB Notification: Performance of pre-optimization done (n=5): time 1.403e-06/0.3811, allocations: 0 / 412.7 MB, free: 14.59 MB / 334.1 MB Notification: Performance of matching and sorting (n=5): time 0.0002394/0.3813, allocations: 85.47 kB / 412.8 MB, free: 14.5 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.746e-05/0.3814, allocations: 51.41 kB / 412.8 MB, free: 14.44 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.345e-05/0.3815, allocations: 109.8 kB / 412.9 MB, free: 14.32 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 1.677e-05/0.3815, allocations: 29.64 kB / 413 MB, free: 14.29 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.905e-05/0.3816, allocations: 84.14 kB / 413.1 MB, free: 14.2 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.458e-06/0.3816, allocations: 4 kB / 413.1 MB, free: 14.2 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.406e-05/0.3817, allocations: 21.7 kB / 413.1 MB, free: 14.16 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001888/0.3819, allocations: 310.8 kB / 413.4 MB, free: 13.85 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.521e-05/0.3819, allocations: 8.438 kB / 413.4 MB, free: 13.84 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 3.802e-05/0.3819, allocations: 36.3 kB / 413.4 MB, free: 13.79 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 7.97e-05/0.382, allocations: 48.22 kB / 413.5 MB, free: 13.73 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.954e-06/0.382, allocations: 0 / 413.5 MB, free: 13.73 MB / 334.1 MB Notification: Performance of matching and sorting (n=5) (initialization): time 9.199e-05/0.3821, allocations: 65.61 kB / 413.5 MB, free: 13.66 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.81e-05/0.3822, allocations: 10.97 kB / 413.5 MB, free: 13.65 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.115e-05/0.3822, allocations: 7.922 kB / 413.6 MB, free: 13.64 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.489e-05/0.3822, allocations: 0 / 413.6 MB, free: 13.64 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.193e-05/0.3822, allocations: 4 kB / 413.6 MB, free: 13.64 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.174e-05/0.3823, allocations: 8.156 kB / 413.6 MB, free: 13.63 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.778e-05/0.3823, allocations: 3.906 kB / 413.6 MB, free: 13.63 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.745e-06/0.3823, allocations: 4 kB / 413.6 MB, free: 13.62 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 0.0001788/0.3825, allocations: 117.7 kB / 413.7 MB, free: 13.5 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.173e-05/0.3825, allocations: 4 kB / 413.7 MB, free: 13.5 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.663e-05/0.3825, allocations: 11.89 kB / 413.7 MB, free: 13.48 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.348e-06/0.3825, allocations: 4 kB / 413.7 MB, free: 13.47 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.11e-07/0.3826, allocations: 0 / 413.7 MB, free: 13.47 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.997e-05/0.3826, allocations: 81.11 kB / 413.8 MB, free: 13.38 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.844e-05/0.3826, allocations: 4 kB / 413.8 MB, free: 13.37 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.017e-05/0.3827, allocations: 4 kB / 413.8 MB, free: 13.37 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.909e-06/0.3827, allocations: 3.938 kB / 413.8 MB, free: 13.36 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.compare) [bt] #4 /var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/bin/../lib/x86_64-linux-gnu/omc/libOpenModelicaCompiler.so(Expression.expEqual) [bt] #5 /var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/bin/../lib/x86_64-linux-gnu/omc/libOpenModelicaCompiler.so(ExpressionSimplify.simplifyBinary) [bt] #6 /var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/bin/../lib/x86_64-linux-gnu/omc/libOpenModelicaCompiler.so(ExpressionSimplify.simplifyWork) [bt] #7...8 /var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/bin/../lib/x86_64-linux-gnu/omc/libOpenModelicaCompiler.so(Expression.traverseExpBottomUp) [bt] #9 /var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/bin/../lib/x86_64-linux-gnu/omc/libOpenModelicaCompiler.so(ExpressionSimplify.simplify1FixP) [bt] #10 /var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/bin/../lib/x86_64-linux-gnu/omc/libOpenModelicaCompiler.so(ExpressionSimplify.simplifyWithOptions) [bt] #11 /var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/bin/../lib/x86_64-linux-gnu/omc/libOpenModelicaCompiler.so(ExpressionSimplify.simplify) [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