Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_Synchronous_cpp_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/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/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_cpp_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_cpp_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.0008926/0.0008927, allocations: 177.5 kB / 17.44 MB, free: 4.375 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.23/1.23, allocations: 205.4 MB / 223.6 MB, free: 9.02 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.0007143/0.0007143, allocations: 85.88 kB / 271.9 MB, free: 8.254 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_Synchronous 0.93.0/package.mo): time 0.06245/0.06245, allocations: 12.19 MB / 332.4 MB, free: 11.64 MB / 282.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003807/0.0003808, allocations: 16 kB / 392.8 MB, free: 67.01 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.06439/0.06479, allocations: 50.3 MB / 443.1 MB, free: 16.66 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica_Synchronous.Examples.Elementary.BooleanSignals.TickBasedPulse): time 0.001129/0.06595, allocations: 1.145 MB / 444.2 MB, free: 15.5 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.000152/0.06612, allocations: 35.91 kB / 444.2 MB, free: 15.47 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 5.049e-05/0.06619, allocations: 0 / 444.2 MB, free: 15.47 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 1.596e-05/0.06621, allocations: 3.938 kB / 444.2 MB, free: 15.46 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 4.412e-05/0.06626, allocations: 4 kB / 444.2 MB, free: 15.46 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001993/0.06647, allocations: 31.91 kB / 444.3 MB, free: 15.43 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 6.747e-05/0.06654, allocations: 27.92 kB / 444.3 MB, free: 15.4 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 8.166e-05/0.06663, allocations: 12 kB / 444.3 MB, free: 15.39 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 4.194e-05/0.06668, allocations: 15.92 kB / 444.3 MB, free: 15.38 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 3.588e-05/0.06672, allocations: 15.92 kB / 444.3 MB, free: 15.36 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 1.53e-05/0.06675, allocations: 4 kB / 444.4 MB, free: 15.36 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 1.016e-05/0.06676, allocations: 0 / 444.4 MB, free: 15.36 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 1.575e-05/0.06678, allocations: 11.98 kB / 444.4 MB, free: 15.34 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 3.368e-05/0.06682, allocations: 41.62 kB / 444.4 MB, free: 15.3 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 5.409e-05/0.06688, allocations: 15.95 kB / 444.4 MB, free: 15.28 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.296e-06/0.06689, allocations: 0 / 444.4 MB, free: 15.28 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.443e-06/0.0669, allocations: 4 kB / 444.4 MB, free: 15.28 MB / 298.7 MB Notification: Performance of Transformations before backend: time 2.906e-06/0.06691, allocations: 4 kB / 444.4 MB, free: 15.27 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.000317/0.06723, allocations: 339.6 kB / 444.8 MB, free: 14.89 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.288e-05/0.06728, allocations: 12.02 kB / 444.8 MB, free: 14.88 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.639e-05/0.06732, allocations: 12.78 kB / 444.8 MB, free: 14.87 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001243/0.06745, allocations: 180.3 kB / 445 MB, free: 14.65 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.0001136/0.06757, allocations: 38.25 kB / 445 MB, free: 14.61 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.294e-05/0.06759, allocations: 4.375 kB / 445 MB, free: 14.61 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002381/0.06784, allocations: 123.8 kB / 445.1 MB, free: 14.47 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.365e-06/0.06786, allocations: 7.875 kB / 445.1 MB, free: 14.46 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.004e-05/0.06787, allocations: 4 kB / 445.1 MB, free: 14.46 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.657e-06/0.06788, allocations: 0 / 445.1 MB, free: 14.46 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 5.545e-05/0.06794, allocations: 15.98 kB / 445.1 MB, free: 14.45 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 9.409e-05/0.06804, allocations: 165.6 kB / 445.3 MB, free: 14.23 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001454/0.0682, allocations: 143.7 kB / 445.4 MB, free: 14.07 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.597e-05/0.06825, allocations: 28.84 kB / 445.5 MB, free: 14.04 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.051e-05/0.06827, allocations: 0 / 445.5 MB, free: 14.04 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.544e-05/0.06829, allocations: 30.56 kB / 445.5 MB, free: 14 MB / 298.7 MB Notification: Performance of pre-optimization done (n=5): time 1.362e-06/0.0683, allocations: 0 / 445.5 MB, free: 14 MB / 298.7 MB Notification: Performance of matching and sorting (n=5): time 0.0001846/0.06849, allocations: 73.62 kB / 445.6 MB, free: 13.92 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 1.463e-05/0.06851, allocations: 55.39 kB / 445.6 MB, free: 13.85 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.261e-05/0.06857, allocations: 114 kB / 445.7 MB, free: 13.73 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 8.015e-06/0.06859, allocations: 25.7 kB / 445.8 MB, free: 13.7 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 1.681e-05/0.06861, allocations: 84.12 kB / 445.9 MB, free: 13.61 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 6.311e-06/0.06862, allocations: 4 kB / 445.9 MB, free: 13.61 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.705e-06/0.06863, allocations: 3.938 kB / 445.9 MB, free: 13.61 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 3.664e-05/0.06867, allocations: 318.8 kB / 446.2 MB, free: 13.29 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.285e-05/0.06869, allocations: 4 kB / 446.2 MB, free: 13.28 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 2.043e-05/0.06872, allocations: 40.28 kB / 446.2 MB, free: 13.23 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 3.283e-05/0.06876, allocations: 40.23 kB / 446.3 MB, free: 13.17 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.453e-06/0.06877, allocations: 0 / 446.3 MB, free: 13.17 MB / 298.7 MB Notification: Performance of matching and sorting (n=5) (initialization): time 7.066e-05/0.06884, allocations: 69.47 kB / 446.3 MB, free: 13.1 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.065e-05/0.06886, allocations: 8 kB / 446.3 MB, free: 13.09 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.528e-06/0.06887, allocations: 3.938 kB / 446.3 MB, free: 13.09 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.268e-05/0.06889, allocations: 4 kB / 446.3 MB, free: 13.08 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 3.165e-05/0.06892, allocations: 0 / 446.3 MB, free: 13.08 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.239e-06/0.06894, allocations: 4 kB / 446.3 MB, free: 13.08 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.119e-05/0.06896, allocations: 0 / 446.3 MB, free: 13.08 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.668e-06/0.06897, allocations: 4 kB / 446.3 MB, free: 13.07 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 4.83e-05/0.06902, allocations: 126.6 kB / 446.5 MB, free: 12.94 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.036e-05/0.06904, allocations: 0 / 446.5 MB, free: 12.94 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.69e-05/0.06906, allocations: 15.91 kB / 446.5 MB, free: 12.93 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.925e-06/0.06907, allocations: 0 / 446.5 MB, free: 12.93 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.42e-07/0.06908, allocations: 3.938 kB / 446.5 MB, free: 12.92 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 1.659e-05/0.0691, allocations: 81.02 kB / 446.6 MB, free: 12.82 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.712e-05/0.06912, allocations: 4 kB / 446.6 MB, free: 12.82 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.555e-05/0.06917, allocations: 3.984 kB / 446.6 MB, free: 12.82 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.426e-06/0.06918, allocations: 3.938 kB / 446.6 MB, free: 12.81 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 [...]