Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.TickBasedPulse.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: translateModel(Modelica.Clocked.Examples.Elementary.BooleanSignals.TickBasedPulse,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|assignClock1.y",fileNamePrefix="Modelica_4.0.0_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_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.TickBasedPulse") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001607/0.001607, allocations: 109.2 kB / 17.74 MB, free: 5.336 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.002271/0.002271, allocations: 186.5 kB / 18.67 MB, free: 4.418 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.422/1.422, allocations: 222.9 MB / 242.4 MB, free: 15.16 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001112/0.001112, allocations: 47.92 kB / 352 MB, free: 3.258 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2947/0.2958, allocations: 49.43 MB / 401.4 MB, free: 8.762 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.BooleanSignals.TickBasedPulse): time 0.002604/0.2985, allocations: 1.429 MB / 402.8 MB, free: 7.449 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.0002164/0.2987, allocations: 43.84 kB / 402.9 MB, free: 7.406 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 6.863e-05/0.2988, allocations: 4 kB / 402.9 MB, free: 7.402 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 2.633e-05/0.2989, allocations: 0 / 402.9 MB, free: 7.402 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 6.118e-05/0.2989, allocations: 3.938 kB / 402.9 MB, free: 7.398 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002333/0.2992, allocations: 27.91 kB / 402.9 MB, free: 7.371 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 8.901e-05/0.2993, allocations: 39.91 kB / 403 MB, free: 7.332 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 9.61e-05/0.2994, allocations: 12 kB / 403 MB, free: 7.32 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 5.514e-05/0.2994, allocations: 19.92 kB / 403 MB, free: 7.301 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 3.99e-05/0.2995, allocations: 19.91 kB / 403 MB, free: 7.281 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 2.327e-05/0.2995, allocations: 4 kB / 403 MB, free: 7.277 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.271e-05/0.2995, allocations: 4 kB / 403 MB, free: 7.273 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 2.342e-05/0.2995, allocations: 11.94 kB / 403 MB, free: 7.262 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 3.529e-05/0.2996, allocations: 19.92 kB / 403 MB, free: 7.242 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000108/0.2997, allocations: 35.88 kB / 403.1 MB, free: 7.207 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.618e-06/0.2997, allocations: 0 / 403.1 MB, free: 7.207 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.994e-06/0.2997, allocations: 3.938 kB / 403.1 MB, free: 7.203 MB / 318.1 MB Notification: Performance of Transformations before backend: time 6.001e-06/0.2997, allocations: 0 / 403.1 MB, free: 7.203 MB / 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.0004761/0.3002, allocations: 356.8 kB / 403.4 MB, free: 6.805 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.093e-05/0.3003, allocations: 15.89 kB / 403.4 MB, free: 6.789 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.69e-05/0.3003, allocations: 0.9375 kB / 403.4 MB, free: 6.789 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001956/0.3005, allocations: 188.2 kB / 403.6 MB, free: 6.566 MB / 318.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.012e-05/0.3006, allocations: 34.25 kB / 403.7 MB, free: 6.527 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.262e-05/0.3006, allocations: 4.375 kB / 403.7 MB, free: 6.523 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002957/0.3009, allocations: 119.9 kB / 403.8 MB, free: 6.395 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.04e-05/0.3009, allocations: 3.938 kB / 403.8 MB, free: 6.391 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.161e-05/0.301, allocations: 4 kB / 403.8 MB, free: 6.387 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.823e-06/0.301, allocations: 4 kB / 403.8 MB, free: 6.383 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 6.146e-05/0.301, allocations: 19.92 kB / 403.8 MB, free: 6.363 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001327/0.3012, allocations: 161.3 kB / 404 MB, free: 6.16 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001853/0.3014, allocations: 147.8 kB / 404.1 MB, free: 5.988 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.311e-05/0.3014, allocations: 24.84 kB / 404.1 MB, free: 5.961 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 9.097e-06/0.3014, allocations: 0 / 404.1 MB, free: 5.961 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.115e-05/0.3015, allocations: 34.5 kB / 404.2 MB, free: 5.918 MB / 318.1 MB Notification: Performance of pre-optimization done (n=5): time 1.192e-06/0.3015, allocations: 0 / 404.2 MB, free: 5.918 MB / 318.1 MB Notification: Performance of matching and sorting (n=5): time 0.000196/0.3017, allocations: 81.53 kB / 404.3 MB, free: 5.832 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.077e-05/0.3017, allocations: 55.39 kB / 404.3 MB, free: 5.766 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.954e-05/0.3018, allocations: 109.8 kB / 404.4 MB, free: 5.648 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 1.757e-05/0.3018, allocations: 25.7 kB / 404.4 MB, free: 5.617 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.186e-05/0.3019, allocations: 88.12 kB / 404.5 MB, free: 5.527 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.337e-06/0.3019, allocations: 0 / 404.5 MB, free: 5.527 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.731e-05/0.3019, allocations: 21.72 kB / 404.5 MB, free: 5.5 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0001217/0.3021, allocations: 314.8 kB / 404.9 MB, free: 5.184 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.582e-05/0.3021, allocations: 7.984 kB / 404.9 MB, free: 5.176 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 3.334e-05/0.3021, allocations: 40.23 kB / 404.9 MB, free: 5.121 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 6.281e-05/0.3022, allocations: 40.8 kB / 404.9 MB, free: 5.066 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.904e-06/0.3022, allocations: 0 / 404.9 MB, free: 5.066 MB / 318.1 MB Notification: Performance of matching and sorting (n=5) (initialization): time 8.49e-05/0.3023, allocations: 61.62 kB / 405 MB, free: 5 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.463e-05/0.3023, allocations: 4 kB / 405 MB, free: 4.996 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.985e-06/0.3023, allocations: 7.938 kB / 405 MB, free: 4.988 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.177e-05/0.3024, allocations: 0 / 405 MB, free: 4.988 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.262e-05/0.3024, allocations: 15.92 kB / 405 MB, free: 4.973 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.267e-06/0.3024, allocations: 3.984 kB / 405 MB, free: 4.969 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.445e-05/0.3024, allocations: 4 kB / 405 MB, free: 4.965 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.918e-06/0.3025, allocations: 0 / 405 MB, free: 4.965 MB / 318.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 8.155e-05/0.3025, allocations: 121.9 kB / 405.2 MB, free: 4.836 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.412e-05/0.3026, allocations: 7.906 kB / 405.2 MB, free: 4.828 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.432e-05/0.3026, allocations: 11.91 kB / 405.2 MB, free: 4.812 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.835e-06/0.3026, allocations: 0 / 405.2 MB, free: 4.812 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.22e-07/0.3026, allocations: 0 / 405.2 MB, free: 4.812 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.567e-05/0.3026, allocations: 85.09 kB / 405.3 MB, free: 4.711 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.789e-05/0.3027, allocations: 0 / 405.3 MB, free: 4.711 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.918e-05/0.3027, allocations: 8 kB / 405.3 MB, free: 4.703 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.697e-06/0.3027, allocations: 0 / 405.3 MB, free: 4.703 MB / 318.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(ComponentReference.makeCrefQual) [bt] #4 /var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/bin/../lib/x86_64-linux-gnu/omc/libOpenModelicaCompiler.so(List.map3r) [bt] #5 /var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/bin/../lib/x86_64-linux-gnu/omc/libOpenModelicaCompiler.so(ComponentReference.expandCref_impl) [bt] #6 /var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/bin/../lib/x86_64-linux-gnu/omc/libOpenModelicaCompiler.so(ComponentReference.expandCref) [bt] #7 /var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/bin/../lib/x86_64-linux-gnu/omc/libOpenModelicaCompiler.so(BackendVariable.getVar) [bt] #8 /var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/bin/../lib/x86_64-linux-gnu/omc/libOpenModelicaCompiler.so(BackendDAEUtil.traversingadjacencyRowExpFinder) [bt] #9 /var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/bin/../lib/x86_64-linux-gnu/omc/libOpenModelicaCompiler.so(boxptr_BackendDAEUtil_traversingadjacencyRowExpFinder) [bt] #10...11 /var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/bin/../lib/x86_64-linux-gnu/omc/libOpenModelicaCompiler.so(Expression.traverseExpTopDown1) [bt] #12 /var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/bin/../lib/x86_64-linux-gnu/omc/libOpenModelicaCompiler.so(Expression.traverseExpTopDown) [bt] #13 /var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/bin/../lib/x86_64-linux-gnu/omc/libOpenModelicaCompiler.so(BackendDAEUtil.traversingadjacencyRowIfExp) [bt] #14 /var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/bin/../lib/x86_64-linux-gnu/omc/libOpenModelicaCompiler.so(BackendDAEUtil.traversingadjacencyRowExpFinder) [bt] #15 /var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/bin/../lib/x86_64-linux-gnu/omc/libOpenModelicaCompiler.so(boxptr_BackendDAEUtil_traversingadjacencyRowExpFinder) [bt] #16 /var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/bin/../lib/x86_64-linux-gnu/omc/libOpenModelicaCompiler.so(Expression.traverseExpTopDown) [bt] #17 /var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/bin/../lib/x86_64-linux-gnu/omc/libOpenModelicaCompiler.so(BackendDAEUtil.adjacencyRowExp) [bt] #18...19 /var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/bin/../lib/x86_64-linux-gnu/omc/libOpenModelicaCompiler.so(BackendDAEUtil.adjacencyRow) [bt] #20 /var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/bin/../lib/x86_64-linux-gnu/omc/libOpenModelicaCompiler.so(BackendDAEUtil.adjacencyMatrixDispatchScalar) [bt] #21 /var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/bin/../lib/x86_64-linux-gnu/omc/libOpenModelicaCompiler.so(BackendDAEUtil.adjacencyMatrixScalar) [bt] #22 /var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/bin/../lib/x86_64-linux-gnu/omc/libOpenModelicaCompiler.so(DAEMode.getDiscAndContEqns) [bt] #23...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