Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Clocked.Examples.Elementary.ClockSignals.LogicalSample.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/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_trunk_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_trunk_Modelica.Clocked.Examples.Elementary.ClockSignals.LogicalSample") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001727/0.001727, allocations: 207.3 kB / 17.99 MB, free: 3.777 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.589/1.589, allocations: 226.7 MB / 245.5 MB, free: 6.988 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001013/0.001013, allocations: 109.5 kB / 296.7 MB, free: 6.465 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.001186/0.001187, allocations: 47.92 kB / 356.6 MB, free: 10.61 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2304/0.2316, allocations: 50.46 MB / 407.1 MB, free: 27.81 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.ClockSignals.LogicalSample): time 0.003708/0.2353, allocations: 3.139 MB / 410.2 MB, free: 24.67 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.001738/0.2371, allocations: 1.138 MB / 411.3 MB, free: 23.53 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002222/0.2373, allocations: 15.94 kB / 411.3 MB, free: 23.51 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0002226/0.2376, allocations: 59.41 kB / 411.4 MB, free: 23.45 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001254/0.2377, allocations: 31.72 kB / 411.4 MB, free: 23.42 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007377/0.2385, allocations: 338.9 kB / 411.8 MB, free: 23.09 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0005022/0.239, allocations: 0.8626 MB / 412.6 MB, free: 22.23 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0007691/0.2398, allocations: 0.9127 MB / 413.5 MB, free: 21.28 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003187/0.2401, allocations: 314.6 kB / 413.8 MB, free: 20.97 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000255/0.2404, allocations: 378 kB / 414.2 MB, free: 20.6 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 8.299e-05/0.2404, allocations: 52 kB / 414.3 MB, free: 20.55 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001369/0.2406, allocations: 79.98 kB / 414.3 MB, free: 20.47 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001353/0.2407, allocations: 187.3 kB / 414.5 MB, free: 20.29 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0002522/0.241, allocations: 409.6 kB / 414.9 MB, free: 19.89 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0007049/0.2417, allocations: 1.263 MB / 416.2 MB, free: 18.62 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.268e-06/0.2417, allocations: 0 / 416.2 MB, free: 18.62 MB / 298.7 MB Notification: Performance of FrontEnd: time 9.72e-07/0.2417, allocations: 0 / 416.2 MB, free: 18.62 MB / 298.7 MB Notification: Performance of Transformations before backend: time 1.091e-05/0.2417, allocations: 0 / 416.2 MB, free: 18.62 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.001506/0.2432, allocations: 1.181 MB / 417.4 MB, free: 17.37 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.434e-05/0.2433, allocations: 8.031 kB / 417.4 MB, free: 17.36 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003041/0.2436, allocations: 127.7 kB / 417.5 MB, free: 17.24 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006391/0.2443, allocations: 0.5304 MB / 418 MB, free: 16.67 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.391e-05/0.2444, allocations: 134 kB / 418.2 MB, free: 16.53 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.459e-05/0.2445, allocations: 96.38 kB / 418.3 MB, free: 16.43 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002148/0.2466, allocations: 1.726 MB / 420 MB, free: 14.65 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.06e-05/0.2466, allocations: 0 / 420 MB, free: 14.65 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.37e-05/0.2467, allocations: 36 kB / 420 MB, free: 14.62 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.306e-05/0.2467, allocations: 20 kB / 420 MB, free: 14.6 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001191/0.2479, allocations: 0.7976 MB / 420.8 MB, free: 13.8 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002378/0.2503, allocations: 2.144 MB / 423 MB, free: 11.58 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001294/0.2516, allocations: 1.036 MB / 424 MB, free: 10.47 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006113/0.2522, allocations: 480.5 kB / 424.5 MB, free: 9.98 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 6.74e-05/0.2523, allocations: 32.06 kB / 424.5 MB, free: 9.949 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005435/0.2529, allocations: 403.8 kB / 424.9 MB, free: 9.535 MB / 298.7 MB Notification: Performance of pre-optimization done (n=102): time 2.655e-06/0.2529, allocations: 0 / 424.9 MB, free: 9.535 MB / 298.7 MB Notification: Performance of matching and sorting (n=102): time 0.001872/0.2548, allocations: 1.148 MB / 426.1 MB, free: 8.387 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.367e-05/0.2549, allocations: 245.6 kB / 426.3 MB, free: 8.098 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003422/0.2552, allocations: 421.1 kB / 426.7 MB, free: 7.68 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 6.118e-05/0.2553, allocations: 65.69 kB / 426.8 MB, free: 7.609 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001357/0.2554, allocations: 281.2 kB / 427.1 MB, free: 7.328 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 9.58e-05/0.2555, allocations: 154.2 kB / 427.2 MB, free: 7.176 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000205/0.2557, allocations: 222.6 kB / 427.4 MB, free: 6.949 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 7.907e-05/0.2558, allocations: 366.8 kB / 427.8 MB, free: 6.582 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004663/0.2563, allocations: 317.8 kB / 428.1 MB, free: 6.273 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005748/0.2569, allocations: 0.6158 MB / 428.7 MB, free: 5.527 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009484/0.2578, allocations: 0.8527 MB / 429.6 MB, free: 4.539 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.77e-06/0.2579, allocations: 4 kB / 429.6 MB, free: 4.535 MB / 298.7 MB Notification: Performance of matching and sorting (n=117) (initialization): time 0.001297/0.2592, allocations: 0.9954 MB / 430.6 MB, free: 3.527 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.497e-05/0.2592, allocations: 41.69 kB / 430.6 MB, free: 3.48 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.142e-05/0.2592, allocations: 8.719 kB / 430.6 MB, free: 3.473 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.491e-05/0.2593, allocations: 16 kB / 430.6 MB, free: 3.457 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00031/0.2596, allocations: 115.6 kB / 430.7 MB, free: 3.344 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.621e-05/0.2596, allocations: 19.92 kB / 430.8 MB, free: 3.324 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000322/0.2599, allocations: 83.36 kB / 430.8 MB, free: 3.242 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.147e-05/0.26, allocations: 47.98 kB / 430.9 MB, free: 3.195 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.0003939/0.2604, allocations: 407.5 kB / 431.3 MB, free: 2.785 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005266/0.2609, allocations: 399.6 kB / 431.7 MB, free: 2.391 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005691/0.2615, allocations: 415.4 kB / 432.1 MB, free: 1.98 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.216e-06/0.2615, allocations: 12 kB / 432.1 MB, free: 1.969 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.796e-06/0.2616, allocations: 8 kB / 432.1 MB, free: 1.961 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.298e-06/0.2616, allocations: 3.984 kB / 432.1 MB, free: 1.957 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001887/0.2635, allocations: 1.673 MB / 433.8 MB, free: 232 kB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.889e-06/0.2635, allocations: 0 / 433.8 MB, free: 232 kB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003071/0.2638, allocations: 91.8 kB / 433.9 MB, free: 140 kB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.292e-06/0.2638, allocations: 4 kB / 433.9 MB, free: 136 kB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.35e-05/0.2639, allocations: 23.98 kB / 433.9 MB, free: 112 kB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.222e-06/0.2639, allocations: 7.938 kB / 433.9 MB, free: 104 kB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.555e-06/0.2639, allocations: 3.938 kB / 433.9 MB, free: 100 kB / 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.00157/0.2654, allocations: 1.131 MB / 435 MB, free: 14.93 MB / 314.7 MB Error: post-optimization module symbolicJacobian (simulation) failed.