Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.ClockSignals.LogicalSample.conf.json 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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) 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) Running command: translateModel(Modelica.Clocked.Examples.Elementary.ClockSignals.LogicalSample,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|rotational_clock_1.angle|rotational_clock_1.direction|rotational_clock_1.direction_changed|rotational_clock_2.angle|rotational_clock_2.direction|rotational_clock_2.direction_changed|sample_conjunctive.y|sample_disjunctive.y",fileNamePrefix="Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.ClockSignals.LogicalSample") translateModel(Modelica.Clocked.Examples.Elementary.ClockSignals.LogicalSample,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|rotational_clock_1.angle|rotational_clock_1.direction|rotational_clock_1.direction_changed|rotational_clock_2.angle|rotational_clock_2.direction|rotational_clock_2.direction_changed|sample_conjunctive.y|sample_disjunctive.y",fileNamePrefix="Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.ClockSignals.LogicalSample") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001254/0.001254, allocations: 188.9 kB / 17.27 MB, free: 4.504 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.446/1.446, allocations: 222.9 MB / 240.9 MB, free: 10.98 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001073/0.001073, allocations: 102 kB / 291.2 MB, free: 10.95 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0008214/0.0008215, allocations: 39.94 kB / 350 MB, free: 76 kB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2926/0.2935, allocations: 49.43 MB / 399.5 MB, free: 33.36 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.ClockSignals.LogicalSample): time 0.003709/0.2972, allocations: 3.127 MB / 402.6 MB, free: 30.22 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.001652/0.2989, allocations: 1.075 MB / 403.7 MB, free: 29.14 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002292/0.2992, allocations: 15.94 kB / 403.7 MB, free: 29.12 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0002031/0.2994, allocations: 63.36 kB / 403.8 MB, free: 29.06 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001235/0.2995, allocations: 27.73 kB / 403.8 MB, free: 29.04 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007169/0.3003, allocations: 339.6 kB / 404.1 MB, free: 28.7 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0004856/0.3008, allocations: 0.8586 MB / 405 MB, free: 27.84 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0007982/0.3016, allocations: 0.9165 MB / 405.9 MB, free: 26.89 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002968/0.3019, allocations: 306.6 kB / 406.2 MB, free: 26.59 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002381/0.3021, allocations: 381.9 kB / 406.6 MB, free: 26.21 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 7.799e-05/0.3022, allocations: 56 kB / 406.6 MB, free: 26.16 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001202/0.3023, allocations: 67.98 kB / 406.7 MB, free: 26.09 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 0.000125/0.3025, allocations: 187.3 kB / 406.9 MB, free: 25.91 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0002391/0.3027, allocations: 401.6 kB / 407.3 MB, free: 25.52 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0006825/0.3034, allocations: 1.248 MB / 408.5 MB, free: 24.27 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.937e-06/0.3034, allocations: 0 / 408.5 MB, free: 24.27 MB / 298.7 MB Notification: Performance of FrontEnd: time 7.91e-07/0.3034, allocations: 0 / 408.5 MB, free: 24.27 MB / 298.7 MB Notification: Performance of Transformations before backend: time 1.748e-05/0.3034, allocations: 4 kB / 408.5 MB, free: 24.26 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: 242 * Number of variables: 242 Notification: Performance of Generate backend data structure: time 0.001538/0.305, allocations: 1.181 MB / 409.7 MB, free: 23.01 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.368e-05/0.305, allocations: 11.97 kB / 409.7 MB, free: 23 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001359/0.3052, allocations: 107.7 kB / 409.8 MB, free: 22.89 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006403/0.3058, allocations: 0.5266 MB / 410.3 MB, free: 22.33 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.364e-05/0.3059, allocations: 137.9 kB / 410.5 MB, free: 22.18 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.5e-05/0.306, allocations: 104.3 kB / 410.6 MB, free: 22.08 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002094/0.3081, allocations: 1.715 MB / 412.3 MB, free: 20.31 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.372e-05/0.3082, allocations: 3.938 kB / 412.3 MB, free: 20.31 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.632e-05/0.3082, allocations: 39.97 kB / 412.3 MB, free: 20.27 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.393e-05/0.3082, allocations: 20 kB / 412.3 MB, free: 20.25 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001228/0.3095, allocations: 0.7938 MB / 413.1 MB, free: 19.46 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002478/0.312, allocations: 2.14 MB / 415.3 MB, free: 17.24 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001367/0.3134, allocations: 1.048 MB / 416.3 MB, free: 16.12 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006188/0.314, allocations: 484.6 kB / 416.8 MB, free: 15.62 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 7.849e-05/0.3141, allocations: 28.11 kB / 416.8 MB, free: 15.6 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005646/0.3147, allocations: 403.8 kB / 417.2 MB, free: 15.18 MB / 298.7 MB Notification: Performance of pre-optimization done (n=102): time 2.966e-06/0.3147, allocations: 0 / 417.2 MB, free: 15.18 MB / 298.7 MB Notification: Performance of matching and sorting (n=102): time 0.001776/0.3165, allocations: 1.138 MB / 418.4 MB, free: 14.04 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.626e-05/0.3166, allocations: 253.5 kB / 418.6 MB, free: 13.75 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003488/0.3169, allocations: 421.1 kB / 419 MB, free: 13.33 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 6.295e-05/0.317, allocations: 61.69 kB / 419.1 MB, free: 13.26 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001314/0.3171, allocations: 285.1 kB / 419.4 MB, free: 12.98 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 9.404e-05/0.3172, allocations: 158.2 kB / 419.5 MB, free: 12.82 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002235/0.3175, allocations: 218.6 kB / 419.7 MB, free: 12.6 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 7.369e-05/0.3175, allocations: 374.8 kB / 420.1 MB, free: 12.22 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000472/0.318, allocations: 321.8 kB / 420.4 MB, free: 11.91 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005588/0.3186, allocations: 0.608 MB / 421 MB, free: 11.17 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009259/0.3195, allocations: 0.865 MB / 421.9 MB, free: 10.17 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.932e-06/0.3195, allocations: 4 kB / 421.9 MB, free: 10.17 MB / 298.7 MB Notification: Performance of matching and sorting (n=117) (initialization): time 0.001324/0.3209, allocations: 0.9932 MB / 422.9 MB, free: 9.164 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.381e-05/0.3209, allocations: 33.7 kB / 422.9 MB, free: 9.125 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.5e-05/0.3209, allocations: 12 kB / 422.9 MB, free: 9.113 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.572e-05/0.321, allocations: 12 kB / 422.9 MB, free: 9.102 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003256/0.3213, allocations: 111.7 kB / 423 MB, free: 8.992 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.927e-05/0.3213, allocations: 23.92 kB / 423.1 MB, free: 8.969 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003342/0.3217, allocations: 83.34 kB / 423.1 MB, free: 8.887 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.999e-05/0.3217, allocations: 48.06 kB / 423.2 MB, free: 8.84 MB / 298.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 43 * Number of states: 0 () * Number of discrete variables: 91 (disjunctiveClock.reset_ticked.input_tick.y,disjunctiveClock.reset_ticked.input_tick.u,disjunctiveClock.reset_ticked.input_sample.y,conjunctiveClock.reset_ticked.input_tick.y,conjunctiveClock.reset_ticked.input_tick.u,conjunctiveClock.reset_ticked.input_sample.y,disjunctiveClock.input_ticked[2].input_tick.y,disjunctiveClock.input_ticked[2].input_tick.u,disjunctiveClock.input_ticked[2].input_sample.y,conjunctiveClock.input_ticked[2].input_tick.y,conjunctiveClock.input_ticked[2].input_tick.u,conjunctiveClock.input_ticked[2].input_sample.y,rotational_clock_2.changed.y,$CLKPRE.rotational_clock_2.changed.u,rotational_clock_2.changed.u,rotational_clock_2.cast.y,rotational_clock_2.direction_changed,rotational_clock_2.direction,$whenCondition5,disjunctiveClock.splitter.y[2],disjunctiveClock.reset_ticked.input_ticked.u,$PRE.disjunctiveClock.reset_ticked.input_ticked.u,disjunctiveClock.input_memory[2].pre.u,$PRE.disjunctiveClock.input_memory[2].pre.u,disjunctiveClock.input_memory[2].QI,disjunctiveClock.input_memory[2].Q,disjunctiveClock.input_memory[1].pre.u,$PRE.disjunctiveClock.input_memory[1].pre.u,disjunctiveClock.input_memory[1].QI,disjunctiveClock.input_memory[1].Q,disjunctiveClock.suppress_S[2].y,disjunctiveClock.suppress_S[1].y,disjunctiveClock.forbidden_state[2].y,disjunctiveClock.forbidden_state[2].u2,disjunctiveClock.forbidden_state[1].y,disjunctiveClock.forbidden_state[1].u2,disjunctiveClock.input_ticked[2].input_ticked.u,$PRE.disjunctiveClock.input_ticked[2].input_ticked.u,disjunctiveClock.input_ticked[1].input_ticked.u,$PRE.disjunctiveClock.input_ticked[1].input_ticked.u,disjunctiveClock.combinator.y,disjunctiveClock.reset_ticked.input_hold.u,disjunctiveClock.input_ticked[2].input_hold.u,disjunctiveClock.input_ticked[1].input_hold.u,disjunctiveClock.input_ticked[1].input_tick.y,disjunctiveClock.input_ticked[1].input_tick.u,disjunctiveClock.input_ticked[1].input_sample.y,$whenCondition4,conjunctiveClock.splitter.y[2],conjunctiveClock.reset_ticked.input_ticked.u,$PRE.conjunctiveClock.reset_ticked.input_ticked.u,conjunctiveClock.input_memory[2].pre.u,$PRE.conjunctiveClock.input_memory[2].pre.u,conjunctiveClock.input_memory[2].QI,conjunctiveClock.input_memory[2].Q,conjunctiveClock.input_memory[1].pre.u,$PRE.conjunctiveClock.input_memory[1].pre.u,conjunctiveClock.input_memory[1].QI,conjunctiveClock.input_memory[1].Q,conjunctiveClock.suppress_S[2].y,conjunctiveClock.suppress_S[1].y,conjunctiveClock.forbidden_state[2].y,conjunctiveClock.forbidden_state[2].u2,conjunctiveClock.forbidden_state[1].y,conjunctiveClock.forbidden_state[1].u2,conjunctiveClock.input_ticked[2].input_ticked.u,$PRE.conjunctiveClock.input_ticked[2].input_ticked.u,conjunctiveClock.input_ticked[1].input_ticked.u,$PRE.conjunctiveClock.input_ticked[1].input_ticked.u,conjunctiveClock.combinator.y,conjunctiveClock.reset_ticked.input_hold.u,conjunctiveClock.input_ticked[2].input_hold.u,conjunctiveClock.input_ticked[1].input_hold.u,conjunctiveClock.input_ticked[1].input_tick.y,conjunctiveClock.input_ticked[1].input_tick.u,conjunctiveClock.input_ticked[1].input_sample.y,rotational_clock_1.changed.y,$CLKPRE.rotational_clock_1.changed.u,rotational_clock_1.changed.u,rotational_clock_1.cast.y,rotational_clock_1.direction_changed,rotational_clock_1.direction,$whenCondition3,$whenCondition2,rotational_clock_2.less.y,rotational_clock_1.less.y,trigger_interval_input.count,$PRE.trigger_interval_input.count,trigger_interval_input.T_start,$PRE.trigger_interval_input.T_start,$whenCondition1) * Number of discrete states: 0 () * Number of clocked states: 2 (rotational_clock_2.changed.u,rotational_clock_1.changed.u) * Top-level inputs: 0 Notification: Strong component statistics for initialization (116): * Single equations (assignments): 115 * Array equations: 0 * Algorithm blocks: 1 * 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.0004468/0.3222, allocations: 407.1 kB / 423.6 MB, free: 8.43 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005391/0.3227, allocations: 391.3 kB / 424 MB, free: 8.043 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005493/0.3233, allocations: 416.5 kB / 424.4 MB, free: 7.629 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.445e-06/0.3233, allocations: 12 kB / 424.4 MB, free: 7.617 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.965e-06/0.3233, allocations: 0 / 424.4 MB, free: 7.617 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.939e-06/0.3233, allocations: 11.97 kB / 424.4 MB, free: 7.605 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001899/0.3252, allocations: 1.66 MB / 426.1 MB, free: 5.891 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.582e-06/0.3253, allocations: 0 / 426.1 MB, free: 5.891 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003152/0.3256, allocations: 99.73 kB / 426.2 MB, free: 5.793 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.532e-06/0.3256, allocations: 4 kB / 426.2 MB, free: 5.789 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.494e-05/0.3257, allocations: 31.92 kB / 426.2 MB, free: 5.758 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.113e-06/0.3257, allocations: 4.125 kB / 426.2 MB, free: 5.754 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.605e-06/0.3257, allocations: 15.88 kB / 426.2 MB, free: 5.738 MB / 298.7 MB [/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/Compiler/BackEnd/BackendDAETransform.mo:332:7-332:48:writable] Error: Internal error BackendDAETransform.analyseStrongComponentBlock failed (Purely discrete algebraic loops cannot be solved by iterative processes. Try to break them open using the delay() operator.) disjunctiveClock.reset_ticked.input_sample.y disjunctiveClock.reset_ticked.input_ticked.u disjunctiveClock.reset_ticked.input_hold.u disjunctiveClock.reset_ticked.input_tick.y disjunctiveClock.reset_ticked.input_tick.u disjunctiveClock.reset_ticked.input_tick.u = disjunctiveClock.reset_ticked.input_sample.y disjunctiveClock.reset_ticked.input_tick.y = not disjunctiveClock.reset_ticked.input_tick.u disjunctiveClock.reset_ticked.input_hold.u = disjunctiveClock.reset_ticked.input_tick.y disjunctiveClock.reset_ticked.input_ticked.u = $getPart(disjunctiveClock.reset_ticked.input_hold.u) disjunctiveClock.reset_ticked.input_sample.y = $getPart(disjunctiveClock.reset_ticked.input_ticked.u) [/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/Compiler/BackEnd/BackendDAETransform.mo:342:7-342:48:writable] Error: Internal error BackendDAETransform.analyseStrongComponentBlock failed variables: disjunctiveClock.reset_ticked.input_sample.y disjunctiveClock.reset_ticked.input_ticked.u disjunctiveClock.reset_ticked.input_hold.u disjunctiveClock.reset_ticked.input_tick.y disjunctiveClock.reset_ticked.input_tick.u equations: disjunctiveClock.reset_ticked.input_tick.u = disjunctiveClock.reset_ticked.input_sample.y disjunctiveClock.reset_ticked.input_tick.y = not disjunctiveClock.reset_ticked.input_tick.u disjunctiveClock.reset_ticked.input_hold.u = disjunctiveClock.reset_ticked.input_tick.y disjunctiveClock.reset_ticked.input_ticked.u = $getPart(disjunctiveClock.reset_ticked.input_hold.u) disjunctiveClock.reset_ticked.input_sample.y = $getPart(disjunctiveClock.reset_ticked.input_ticked.u) [/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/Compiler/BackEnd/BackendDAETransform.mo:346:7-346:90:writable] Error: Internal error function analyseStrongComponentBlock failed [/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/Compiler/BackEnd/BackendDAETransform.mo:196:5-196:89:writable] Error: Internal error function analyseStrongComponentScalar failed [/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/Compiler/BackEnd/BackendDAETransform.mo:107:7-107:113:writable] Error: Internal error function strongComponentsScalar failed (sorting strong components) [/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/Compiler/BackEnd/BackendDAEUtil.mo:7947:5-7947:89:writable] Error: Internal error Transformation module sort components failed Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001274/0.327, allocations: 1.127 MB / 427.3 MB, free: 4.586 MB / 298.7 MB Error: post-optimization module symbolicJacobian (simulation) failed.