Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.BooleanSignals.TickBasedPulse.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_Synchronous 0.93.0-master/package.mo", uses=false) Using package Modelica_Synchronous with version 0.93.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_Synchronous 0.93.0-master/package.mo) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Running command: translateModel(Modelica_Synchronous.Examples.Elementary.BooleanSignals.TickBasedPulse,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="Time|assignClock1.y|pulse.y",fileNamePrefix="Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.BooleanSignals.TickBasedPulse") translateModel(Modelica_Synchronous.Examples.Elementary.BooleanSignals.TickBasedPulse,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="Time|assignClock1.y|pulse.y",fileNamePrefix="Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.BooleanSignals.TickBasedPulse") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001399/0.001399, allocations: 175.5 kB / 16.78 MB, free: 5.023 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.405/1.405, allocations: 205 MB / 222.6 MB, free: 9.145 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0007004/0.0007004, allocations: 92.19 kB / 270.5 MB, free: 8.672 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_Synchronous 0.93.0-master/package.mo): time 0.06558/0.06558, allocations: 12.57 MB / 331 MB, free: 12.08 MB / 282.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003346/0.0003346, allocations: 12 kB / 391.7 MB, free: 66.45 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.06918/0.06953, allocations: 49.99 MB / 441.7 MB, free: 16.4 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica_Synchronous.Examples.Elementary.BooleanSignals.TickBasedPulse): time 0.001206/0.07076, allocations: 1.156 MB / 442.9 MB, free: 15.23 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.0001595/0.07093, allocations: 35.84 kB / 442.9 MB, free: 15.2 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 6.402e-05/0.07101, allocations: 0 / 442.9 MB, free: 15.2 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 3.786e-05/0.07106, allocations: 3.984 kB / 442.9 MB, free: 15.2 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 5.553e-05/0.07112, allocations: 7.938 kB / 442.9 MB, free: 15.19 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002331/0.07136, allocations: 31.97 kB / 442.9 MB, free: 15.16 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 7.164e-05/0.07144, allocations: 31.92 kB / 443 MB, free: 15.12 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 9.551e-05/0.07154, allocations: 8 kB / 443 MB, free: 15.12 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 5.268e-05/0.0716, allocations: 23.91 kB / 443 MB, free: 15.09 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 3.577e-05/0.07165, allocations: 15.92 kB / 443 MB, free: 15.08 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 1.68e-05/0.07167, allocations: 0 / 443 MB, free: 15.08 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 1.076e-05/0.07168, allocations: 0 / 443 MB, free: 15.08 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 1.876e-05/0.07171, allocations: 11.94 kB / 443 MB, free: 15.07 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 3.282e-05/0.07175, allocations: 15.92 kB / 443 MB, free: 15.05 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 7.972e-05/0.07183, allocations: 31.88 kB / 443.1 MB, free: 15.02 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.769e-06/0.07184, allocations: 0 / 443.1 MB, free: 15.02 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.363e-06/0.07185, allocations: 0 / 443.1 MB, free: 15.02 MB / 298.7 MB Notification: Performance of Transformations before backend: time 4.378e-06/0.07186, allocations: 4 kB / 443.1 MB, free: 15.02 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.0003871/0.07225, allocations: 351.6 kB / 443.4 MB, free: 14.62 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.089e-05/0.0723, allocations: 8.031 kB / 443.4 MB, free: 14.61 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.973e-05/0.07235, allocations: 8.844 kB / 443.4 MB, free: 14.61 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001422/0.07249, allocations: 176.3 kB / 443.6 MB, free: 14.39 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.0001243/0.07263, allocations: 39.19 kB / 443.6 MB, free: 14.35 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.24e-05/0.07264, allocations: 384 / 443.6 MB, free: 14.35 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002534/0.0729, allocations: 135.7 kB / 443.8 MB, free: 14.21 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.06e-05/0.07292, allocations: 7.922 kB / 443.8 MB, free: 14.2 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.706e-06/0.07294, allocations: 8 kB / 443.8 MB, free: 14.19 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.278e-06/0.07295, allocations: 3.938 kB / 443.8 MB, free: 14.19 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 5.359e-05/0.07301, allocations: 12 kB / 443.8 MB, free: 14.18 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001082/0.07312, allocations: 157.7 kB / 444 MB, free: 13.97 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000167/0.0733, allocations: 147.7 kB / 444.1 MB, free: 13.8 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.729e-05/0.07336, allocations: 28.86 kB / 444.1 MB, free: 13.77 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 7.564e-06/0.07337, allocations: 0 / 444.1 MB, free: 13.77 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.227e-05/0.07339, allocations: 30.56 kB / 444.2 MB, free: 13.73 MB / 298.7 MB Notification: Performance of pre-optimization done (n=5): time 1.133e-06/0.07339, allocations: 0 / 444.2 MB, free: 13.73 MB / 298.7 MB Notification: Performance of matching and sorting (n=5): time 0.000184/0.07358, allocations: 81.61 kB / 444.2 MB, free: 13.64 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 1.474e-05/0.07361, allocations: 51.41 kB / 444.3 MB, free: 13.58 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.515e-05/0.07368, allocations: 105.8 kB / 444.4 MB, free: 13.47 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 8.687e-06/0.07369, allocations: 29.64 kB / 444.4 MB, free: 13.43 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 1.852e-05/0.07372, allocations: 92.14 kB / 444.5 MB, free: 13.34 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 6.091e-06/0.07373, allocations: 0 / 444.5 MB, free: 13.34 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.991e-05/0.07375, allocations: 13.72 kB / 444.5 MB, free: 13.32 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 4.217e-05/0.0738, allocations: 322.8 kB / 444.8 MB, free: 13 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.796e-06/0.07382, allocations: 0 / 444.8 MB, free: 13 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 2.013e-05/0.07384, allocations: 36.3 kB / 444.9 MB, free: 12.95 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 3.373e-05/0.07388, allocations: 44.23 kB / 444.9 MB, free: 12.89 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.773e-06/0.07389, allocations: 0 / 444.9 MB, free: 12.89 MB / 298.7 MB Notification: Performance of matching and sorting (n=5) (initialization): time 7.165e-05/0.07397, allocations: 73.59 kB / 445 MB, free: 12.81 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.009e-05/0.07398, allocations: 4 kB / 445 MB, free: 12.8 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.95e-06/0.07399, allocations: 3.938 kB / 445 MB, free: 12.8 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.103e-05/0.07401, allocations: 4 kB / 445 MB, free: 12.8 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 3.179e-05/0.07405, allocations: 3.984 kB / 445 MB, free: 12.79 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.291e-06/0.07406, allocations: 4 kB / 445 MB, free: 12.79 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.972e-05/0.07408, allocations: 0 / 445 MB, free: 12.79 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.659e-06/0.07409, allocations: 4 kB / 445 MB, free: 12.79 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 4.762e-05/0.07415, allocations: 114.7 kB / 445.1 MB, free: 12.66 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.063e-05/0.07416, allocations: 8.031 kB / 445.1 MB, free: 12.66 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.727e-05/0.07418, allocations: 7.906 kB / 445.1 MB, free: 12.65 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.725e-06/0.07419, allocations: 0 / 445.1 MB, free: 12.65 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.283e-06/0.0742, allocations: 0 / 445.1 MB, free: 12.65 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 1.841e-05/0.07422, allocations: 96.88 kB / 445.2 MB, free: 12.54 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.665e-05/0.07424, allocations: 4 kB / 445.2 MB, free: 12.53 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.279e-05/0.07429, allocations: 0 / 445.2 MB, free: 12.53 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.043e-06/0.0743, allocations: 4 kB / 445.2 MB, free: 12.53 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 [...]