Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0-beta.om_Modelica.Clocked.Examples.Elementary.BooleanSignals.TickBasedPulse.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001672/0.001672, allocations: 112.2 kB / 21.18 MB, free: 0.6289 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.002017/0.002017, allocations: 207 kB / 24.48 MB, free: 4.035 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/package.mo): time 1.426/1.426, allocations: 230.4 MB / 258.1 MB, free: 8.137 MB / 206.1 MB " [Timeout remaining time 178] Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/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=5011,variableFilter="time|assignClock1.y",fileNamePrefix="Modelica_4.1.0-beta.om_Modelica.Clocked.Examples.Elementary.BooleanSignals.TickBasedPulse") translateModel(Modelica.Clocked.Examples.Elementary.BooleanSignals.TickBasedPulse,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5011,variableFilter="time|assignClock1.y",fileNamePrefix="Modelica_4.1.0-beta.om_Modelica.Clocked.Examples.Elementary.BooleanSignals.TickBasedPulse") [Timeout 660] "Warning: Requested package Modelica of version trunk, but this package was already loaded with version 4.1.0. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Warning: Requested package Complex of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Warning: Requested package ModelicaServices of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Notification: Performance of FrontEnd - loaded program: time 0.001916/0.001916, allocations: 67.84 kB / 378.7 MB, free: 2.922 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2187/0.2206, allocations: 53.32 MB / 432 MB, free: 7.395 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.BooleanSignals.TickBasedPulse): time 0.00262/0.2232, allocations: 1.457 MB / 433.5 MB, free: 5.934 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.0001659/0.2234, allocations: 43.84 kB / 433.5 MB, free: 5.891 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 5.394e-05/0.2235, allocations: 3.938 kB / 433.6 MB, free: 5.887 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 2.264e-05/0.2235, allocations: 3.938 kB / 433.6 MB, free: 5.883 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 4.738e-05/0.2235, allocations: 4 kB / 433.6 MB, free: 5.879 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001949/0.2237, allocations: 31.89 kB / 433.6 MB, free: 5.848 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 8.367e-05/0.2238, allocations: 35.92 kB / 433.6 MB, free: 5.812 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 7.793e-05/0.2239, allocations: 11.98 kB / 433.6 MB, free: 5.801 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 4.906e-05/0.2239, allocations: 15.94 kB / 433.7 MB, free: 5.785 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 3.856e-05/0.224, allocations: 19.91 kB / 433.7 MB, free: 5.766 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 1.565e-05/0.224, allocations: 4 kB / 433.7 MB, free: 5.762 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.034e-05/0.224, allocations: 8 kB / 433.7 MB, free: 5.754 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 2.137e-05/0.224, allocations: 11.92 kB / 433.7 MB, free: 5.742 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 3.655e-05/0.2241, allocations: 15.94 kB / 433.7 MB, free: 5.727 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 8.898e-05/0.2242, allocations: 43.66 kB / 433.8 MB, free: 5.688 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.417e-06/0.2242, allocations: 0 / 433.8 MB, free: 5.688 MB / 334.1 MB Notification: Performance of FrontEnd: time 8.12e-07/0.2242, allocations: 0 / 433.8 MB, free: 5.688 MB / 334.1 MB Notification: Performance of Transformations before backend: time 3.968e-06/0.2242, allocations: 0 / 433.8 MB, free: 5.688 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.0004633/0.2246, allocations: 349.5 kB / 434.1 MB, free: 5.297 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.821e-05/0.2247, allocations: 12.03 kB / 434.1 MB, free: 5.285 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.095e-05/0.2247, allocations: 4.891 kB / 434.1 MB, free: 5.281 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000213/0.2249, allocations: 184.3 kB / 434.3 MB, free: 5.062 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 8.807e-05/0.225, allocations: 34.25 kB / 434.3 MB, free: 5.023 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.767e-05/0.225, allocations: 8.375 kB / 434.3 MB, free: 5.016 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002861/0.2253, allocations: 127.8 kB / 434.5 MB, free: 4.879 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.111e-05/0.2253, allocations: 3.938 kB / 434.5 MB, free: 4.875 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.897e-06/0.2253, allocations: 4 kB / 434.5 MB, free: 4.871 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.49e-06/0.2253, allocations: 3.984 kB / 434.5 MB, free: 4.867 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 5.361e-05/0.2254, allocations: 16 kB / 434.5 MB, free: 4.852 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001644/0.2255, allocations: 165.6 kB / 434.6 MB, free: 4.641 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002076/0.2257, allocations: 135.8 kB / 434.8 MB, free: 4.48 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.931e-05/0.2258, allocations: 16.86 kB / 434.8 MB, free: 4.461 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 9.408e-06/0.2258, allocations: 3.938 kB / 434.8 MB, free: 4.457 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.55e-05/0.2258, allocations: 42.55 kB / 434.8 MB, free: 4.406 MB / 334.1 MB Notification: Performance of pre-optimization done (n=5): time 1.233e-06/0.2258, allocations: 0 / 434.8 MB, free: 4.406 MB / 334.1 MB Notification: Performance of matching and sorting (n=5): time 0.0001961/0.226, allocations: 73.62 kB / 434.9 MB, free: 4.328 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.692e-05/0.2261, allocations: 55.41 kB / 435 MB, free: 4.262 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.326e-05/0.2262, allocations: 106 kB / 435.1 MB, free: 4.148 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 1.673e-05/0.2262, allocations: 33.64 kB / 435.1 MB, free: 4.109 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.109e-05/0.2262, allocations: 84.14 kB / 435.2 MB, free: 4.023 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.959e-06/0.2262, allocations: 4 kB / 435.2 MB, free: 4.02 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.058e-05/0.2263, allocations: 17.72 kB / 435.2 MB, free: 3.996 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001359/0.2264, allocations: 322.8 kB / 435.5 MB, free: 3.672 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.256e-05/0.2264, allocations: 4 kB / 435.5 MB, free: 3.668 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 3.904e-05/0.2264, allocations: 36.23 kB / 435.6 MB, free: 3.617 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 6.018e-05/0.2265, allocations: 48.22 kB / 435.6 MB, free: 3.555 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.694e-06/0.2265, allocations: 0 / 435.6 MB, free: 3.555 MB / 334.1 MB Notification: Performance of matching and sorting (n=5) (initialization): time 9.311e-05/0.2266, allocations: 69.52 kB / 435.7 MB, free: 3.48 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.193e-05/0.2266, allocations: 4 kB / 435.7 MB, free: 3.477 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.62e-06/0.2266, allocations: 8.094 kB / 435.7 MB, free: 3.469 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.237e-05/0.2266, allocations: 4 kB / 435.7 MB, free: 3.465 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.999e-05/0.2267, allocations: 0 / 435.7 MB, free: 3.465 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.248e-06/0.2267, allocations: 4 kB / 435.7 MB, free: 3.461 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.327e-05/0.2267, allocations: 3.938 kB / 435.7 MB, free: 3.457 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.771e-06/0.2267, allocations: 4 kB / 435.7 MB, free: 3.453 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 8.618e-05/0.2268, allocations: 113.8 kB / 435.8 MB, free: 3.332 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.32e-05/0.2268, allocations: 4 kB / 435.8 MB, free: 3.328 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.535e-05/0.2268, allocations: 15.89 kB / 435.8 MB, free: 3.312 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.934e-06/0.2268, allocations: 4 kB / 435.8 MB, free: 3.309 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.01e-07/0.2268, allocations: 0 / 435.8 MB, free: 3.309 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.483e-05/0.2269, allocations: 81.06 kB / 435.9 MB, free: 3.211 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.988e-05/0.2269, allocations: 4 kB / 435.9 MB, free: 3.207 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.652e-05/0.2269, allocations: 4 kB / 435.9 MB, free: 3.203 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.559e-06/0.2269, allocations: 4 kB / 435.9 MB, free: 3.199 MB / 334.1 MB [/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/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_2/OpenModelica/OMCompiler/build/bin/../lib/x86_64-linux-gnu/omc/libOpenModelicaRuntimeC.so(mmc_setStacktraceMessages_threadData) [bt] #2 /var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/OpenModelica/OMCompiler/build/bin/../lib/x86_64-linux-gnu/omc/libOpenModelicaRuntimeC.so(mmc_do_stackoverflow) [bt] #3...4 /var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/OpenModelica/OMCompiler/build/bin/../lib/x86_64-linux-gnu/omc/libOpenModelicaCompiler.so(ComponentReference.expandCref_impl) [bt] #5 /var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/OpenModelica/OMCompiler/build/bin/../lib/x86_64-linux-gnu/omc/libOpenModelicaCompiler.so(ComponentReference.expandCref) [bt] #6 /var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/OpenModelica/OMCompiler/build/bin/../lib/x86_64-linux-gnu/omc/libOpenModelicaCompiler.so(BackendVariable.getVar) [bt] #7 /var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/OpenModelica/OMCompiler/build/bin/../lib/x86_64-linux-gnu/omc/libOpenModelicaCompiler.so(BackendDAEUtil.traversingadjacencyRowExpFinder) [bt] #8 /var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/OpenModelica/OMCompiler/build/bin/../lib/x86_64-linux-gnu/omc/libOpenModelicaCompiler.so(boxptr_BackendDAEUtil_traversingadjacencyRowExpFinder) [bt] #9...10 /var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/OpenModelica/OMCompiler/build/bin/../lib/x86_64-linux-gnu/omc/libOpenModelicaCompiler.so(Expression.traverseExpTopDown1) [bt] #11 /var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/OpenModelica/OMCompiler/build/bin/../lib/x86_64-linux-gnu/omc/libOpenModelicaCompiler.so(Expression.traverseExpTopDown) [bt] #12 /var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/OpenModelica/OMCompiler/build/bin/../lib/x86_64-linux-gnu/omc/libOpenModelicaCompiler.so(BackendDAEUtil.traversingadjacencyRowIfExp) [bt] #13 /var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/OpenModelica/OMCompiler/build/bin/../lib/x86_64-linux-gnu/omc/libOpenModelicaCompiler.so(BackendDAEUtil.traversingadjacencyRowExpFinder) [bt] #14 /var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/OpenModelica/OMCompiler/build/bin/../lib/x86_64-linux-gnu/omc/libOpenModelicaCompiler.so(boxptr_BackendDAEUtil_traversingadjacencyRowExpFinder) [bt] #15 /var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/OpenModelica/OMCompiler/build/bin/../lib/x86_64-linux-gnu/omc/libOpenModelicaCompiler.so(Expression.traverseExpTopDown) [bt] #16 /var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/OpenModelica/OMCompiler/build/bin/../lib/x86_64-linux-gnu/omc/libOpenModelicaCompiler.so(BackendDAEUtil.adjacencyRowExp) [bt] #17...18 /var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/OpenModelica/OMCompiler/build/bin/../lib/x86_64-linux-gnu/omc/libOpenModelicaCompiler.so(BackendDAEUtil.adjacencyRow) [bt] #19 /var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/OpenModelica/OMCompiler/build/bin/../lib/x86_64-linux-gnu/omc/libOpenModelicaCompiler.so(BackendDAEUtil.adjacencyMatrixDispatchScalar) [bt] #20 /var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/OpenModelica/OMCompiler/build/bin/../lib/x86_64-linux-gnu/omc/libOpenModelicaCompiler.so(BackendDAEUtil.adjacencyMatrixScalar) [bt] #21 /var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/OpenModelica/OMCompiler/build/bin/../lib/x86_64-linux-gnu/omc/libOpenModelicaCompiler.so(DAEMode.getDiscAndContEqns) [bt] #22...1024 /var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/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 " [Timeout remaining time 659] [Calling sys.exit(0), Time elapsed: 3.314071905333549] Failed to read output from testmodel.py, exit status != 0: ['time', 'assignClock1.y'] 1.2157583106309175 1.224324033 0.997755219 Calling exit ...