Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_cpp_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_cpp_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_cpp_Modelica.Clocked.Examples.Elementary.ClockSignals.LogicalSample") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.0009458/0.0009459, allocations: 193.5 kB / 17.05 MB, free: 5.102 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.442/1.442, allocations: 226.6 MB / 244.3 MB, free: 8.207 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008376/0.0008377, allocations: 103.1 kB / 296.4 MB, free: 6.988 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002702/0.0002703, allocations: 4 kB / 356.2 MB, free: 11.19 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2636/0.2639, allocations: 51.28 MB / 407.5 MB, free: 27.84 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.ClockSignals.LogicalSample): time 0.002721/0.2667, allocations: 2.608 MB / 410.1 MB, free: 25.22 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.001619/0.2683, allocations: 1.107 MB / 411.2 MB, free: 24.11 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002494/0.2686, allocations: 15.94 kB / 411.2 MB, free: 24.1 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001632/0.2688, allocations: 63.36 kB / 411.3 MB, free: 24.04 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001162/0.2689, allocations: 31.72 kB / 411.3 MB, free: 24 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007498/0.2696, allocations: 266.9 kB / 411.6 MB, free: 23.75 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0005544/0.2702, allocations: 0.8252 MB / 412.4 MB, free: 22.93 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0006221/0.2708, allocations: 0.6427 MB / 413 MB, free: 22.27 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002577/0.2711, allocations: 214.8 kB / 413.3 MB, free: 22.06 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001882/0.2713, allocations: 238.4 kB / 413.5 MB, free: 21.82 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 4.849e-05/0.2714, allocations: 24 kB / 413.5 MB, free: 21.8 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001177/0.2715, allocations: 35.98 kB / 413.5 MB, free: 21.77 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 9.42e-05/0.2716, allocations: 123.4 kB / 413.7 MB, free: 21.64 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 9.433e-05/0.2717, allocations: 161.2 kB / 413.8 MB, free: 21.48 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0006064/0.2723, allocations: 1.022 MB / 414.8 MB, free: 20.46 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.07e-06/0.2723, allocations: 0 / 414.8 MB, free: 20.46 MB / 298.7 MB Notification: Performance of FrontEnd: time 2.365e-06/0.2723, allocations: 0 / 414.8 MB, free: 20.46 MB / 298.7 MB Notification: Performance of Transformations before backend: time 1.32e-05/0.2723, allocations: 4 kB / 414.9 MB, free: 20.45 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.001386/0.2737, allocations: 0.9976 MB / 415.8 MB, free: 19.39 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.447e-05/0.2738, allocations: 12.03 kB / 415.9 MB, free: 19.38 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003447/0.2741, allocations: 122.8 kB / 416 MB, free: 19.25 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005743/0.2747, allocations: 0.5332 MB / 416.5 MB, free: 18.68 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001073/0.2748, allocations: 137.4 kB / 416.6 MB, free: 18.53 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.829e-05/0.2749, allocations: 96 kB / 416.7 MB, free: 18.44 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002299/0.2772, allocations: 1.718 MB / 418.5 MB, free: 16.66 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.958e-05/0.2773, allocations: 4 kB / 418.5 MB, free: 16.66 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.031e-05/0.2774, allocations: 39.94 kB / 418.5 MB, free: 16.62 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.447e-05/0.2774, allocations: 20 kB / 418.5 MB, free: 16.6 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001317/0.2787, allocations: 0.8054 MB / 419.3 MB, free: 15.79 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002398/0.2811, allocations: 2.152 MB / 421.5 MB, free: 13.57 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001411/0.2825, allocations: 1.03 MB / 422.5 MB, free: 12.46 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000651/0.2832, allocations: 497 kB / 423 MB, free: 11.95 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 7.175e-05/0.2833, allocations: 31.88 kB / 423 MB, free: 11.92 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006271/0.2839, allocations: 410.9 kB / 423.4 MB, free: 11.5 MB / 298.7 MB Notification: Performance of pre-optimization done (n=102): time 3.586e-06/0.2839, allocations: 3.938 kB / 423.4 MB, free: 11.5 MB / 298.7 MB Notification: Performance of matching and sorting (n=102): time 0.001919/0.2859, allocations: 1.16 MB / 424.6 MB, free: 10.34 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001196/0.286, allocations: 237.6 kB / 424.8 MB, free: 10.06 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003635/0.2864, allocations: 425 kB / 425.2 MB, free: 9.633 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 7.239e-05/0.2864, allocations: 65.69 kB / 425.3 MB, free: 9.562 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001448/0.2866, allocations: 281.1 kB / 425.6 MB, free: 9.281 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001012/0.2867, allocations: 158.2 kB / 425.7 MB, free: 9.125 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.303e-05/0.2867, allocations: 27.94 kB / 425.8 MB, free: 9.098 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 7.608e-05/0.2868, allocations: 374.7 kB / 426.1 MB, free: 8.723 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005058/0.2873, allocations: 321.8 kB / 426.4 MB, free: 8.41 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005782/0.2879, allocations: 0.616 MB / 427.1 MB, free: 7.664 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005415/0.2885, allocations: 399.1 kB / 427.4 MB, free: 7.27 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.46e-06/0.2885, allocations: 0 / 427.4 MB, free: 7.27 MB / 298.7 MB Notification: Performance of matching and sorting (n=117) (initialization): time 0.001363/0.2899, allocations: 1.011 MB / 428.5 MB, free: 6.246 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 5.901e-05/0.2899, allocations: 33.7 kB / 428.5 MB, free: 6.207 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.43e-05/0.2899, allocations: 12 kB / 428.5 MB, free: 6.195 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.407e-05/0.29, allocations: 16 kB / 428.5 MB, free: 6.18 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003527/0.2903, allocations: 111.7 kB / 428.6 MB, free: 6.07 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.59e-05/0.2904, allocations: 19.92 kB / 428.6 MB, free: 6.051 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003604/0.2907, allocations: 103.2 kB / 428.7 MB, free: 5.949 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.9e-05/0.2908, allocations: 36 kB / 428.8 MB, free: 5.914 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,rotational_clock_2.changed.u,$CLKPRE.rotational_clock_2.changed.u,rotational_clock_2.cast.y,rotational_clock_2.direction_changed,rotational_clock_2.direction,disjunctiveClock.input_ticked[1].input_hold.u,disjunctiveClock.input_ticked[2].input_hold.u,disjunctiveClock.reset_ticked.input_hold.u,disjunctiveClock.combinator.y,$PRE.disjunctiveClock.input_ticked[1].input_ticked.u,disjunctiveClock.input_ticked[1].input_ticked.u,$PRE.disjunctiveClock.input_ticked[2].input_ticked.u,disjunctiveClock.input_ticked[2].input_ticked.u,disjunctiveClock.forbidden_state[1].u2,disjunctiveClock.forbidden_state[1].y,disjunctiveClock.forbidden_state[2].u2,disjunctiveClock.forbidden_state[2].y,disjunctiveClock.suppress_S[1].y,disjunctiveClock.suppress_S[2].y,disjunctiveClock.input_memory[1].Q,disjunctiveClock.input_memory[1].QI,$PRE.disjunctiveClock.input_memory[1].pre.u,disjunctiveClock.input_memory[1].pre.u,disjunctiveClock.input_memory[2].Q,disjunctiveClock.input_memory[2].QI,$PRE.disjunctiveClock.input_memory[2].pre.u,disjunctiveClock.input_memory[2].pre.u,$PRE.disjunctiveClock.reset_ticked.input_ticked.u,disjunctiveClock.reset_ticked.input_ticked.u,disjunctiveClock.splitter.y[2],$whenCondition5,disjunctiveClock.input_ticked[1].input_tick.y,disjunctiveClock.input_ticked[1].input_tick.u,disjunctiveClock.input_ticked[1].input_sample.y,conjunctiveClock.input_ticked[1].input_hold.u,conjunctiveClock.input_ticked[2].input_hold.u,conjunctiveClock.reset_ticked.input_hold.u,conjunctiveClock.combinator.y,$PRE.conjunctiveClock.input_ticked[1].input_ticked.u,conjunctiveClock.input_ticked[1].input_ticked.u,$PRE.conjunctiveClock.input_ticked[2].input_ticked.u,conjunctiveClock.input_ticked[2].input_ticked.u,conjunctiveClock.forbidden_state[1].u2,conjunctiveClock.forbidden_state[1].y,conjunctiveClock.forbidden_state[2].u2,conjunctiveClock.forbidden_state[2].y,conjunctiveClock.suppress_S[1].y,conjunctiveClock.suppress_S[2].y,conjunctiveClock.input_memory[1].Q,conjunctiveClock.input_memory[1].QI,$PRE.conjunctiveClock.input_memory[1].pre.u,conjunctiveClock.input_memory[1].pre.u,conjunctiveClock.input_memory[2].Q,conjunctiveClock.input_memory[2].QI,$PRE.conjunctiveClock.input_memory[2].pre.u,conjunctiveClock.input_memory[2].pre.u,$PRE.conjunctiveClock.reset_ticked.input_ticked.u,conjunctiveClock.reset_ticked.input_ticked.u,conjunctiveClock.splitter.y[2],$whenCondition4,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,rotational_clock_1.changed.u,$CLKPRE.rotational_clock_1.changed.u,rotational_clock_1.cast.y,rotational_clock_1.direction_changed,rotational_clock_1.direction,$whenCondition1,$PRE.trigger_interval_input.T_start,trigger_interval_input.T_start,$PRE.trigger_interval_input.count,trigger_interval_input.count,rotational_clock_1.less.y,rotational_clock_2.less.y,$whenCondition2,$whenCondition3) * 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0004217/0.2912, allocations: 411.6 kB / 429.2 MB, free: 5.5 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005503/0.2918, allocations: 395.7 kB / 429.6 MB, free: 5.109 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005466/0.2923, allocations: 411.4 kB / 430 MB, free: 4.707 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.017e-06/0.2924, allocations: 15.94 kB / 430 MB, free: 4.691 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.616e-06/0.2924, allocations: 8 kB / 430 MB, free: 4.684 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.928e-06/0.2924, allocations: 7.922 kB / 430 MB, free: 4.676 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001943/0.2943, allocations: 1.685 MB / 431.7 MB, free: 2.934 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.621e-06/0.2944, allocations: 4 kB / 431.7 MB, free: 2.93 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003583/0.2947, allocations: 95.81 kB / 431.8 MB, free: 2.836 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.624e-06/0.2947, allocations: 11.98 kB / 431.8 MB, free: 2.824 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.434e-05/0.2948, allocations: 23.98 kB / 431.8 MB, free: 2.801 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.31e-06/0.2948, allocations: 4 kB / 431.8 MB, free: 2.797 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.216e-06/0.2948, allocations: 3.938 kB / 431.8 MB, free: 2.793 MB / 298.7 MB [/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/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/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/OpenModelica/OMCompiler/Compiler/BackEnd/BackendDAETransform.mo:346:7-346:90:writable] Error: Internal error function analyseStrongComponentBlock failed [/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/Compiler/BackEnd/BackendDAETransform.mo:196:5-196:89:writable] Error: Internal error function analyseStrongComponentScalar failed [/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/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/OpenModelica/OMCompiler/Compiler/BackEnd/BackendDAEUtil.mo:7863:5-7863:89:writable] Error: Internal error Transformation module sort components failed Warning: The optimization module detectJacobianSparsePattern failed. This module will be skipped and the transformation process continued. Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001385/0.2962, allocations: 1.143 MB / 433 MB, free: 1.621 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 9.655e-05/0.2963, allocations: 144.2 kB / 433.1 MB, free: 1.461 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.704e-05/0.2964, allocations: 39.98 kB / 433.1 MB, free: 1.422 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00037/0.2968, allocations: 43.97 kB / 433.2 MB, free: 1.379 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001469/0.2969, allocations: 95.81 kB / 433.3 MB, free: 1.285 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.207e-05/0.297, allocations: 31.94 kB / 433.3 MB, free: 1.254 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.0002012/0.2972, allocations: 247.2 kB / 433.6 MB, free: 1.012 MB / 298.7 MB Notification: Performance of sort global known variables: time 1.3e-07/0.2972, allocations: 0 / 433.6 MB, free: 1.012 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0007095/0.2979, allocations: 187.4 kB / 433.7 MB, free: 0.8281 MB / 298.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 7 * Number of states: 0 () * Number of discrete variables: 77 (rotational_clock_1.direction,rotational_clock_1.direction_changed,rotational_clock_1.cast.y,rotational_clock_1.changed.u,rotational_clock_1.changed.y,conjunctiveClock.input_ticked[1].input_sample.y,conjunctiveClock.input_ticked[1].input_tick.u,conjunctiveClock.input_ticked[1].input_tick.y,conjunctiveClock.input_ticked[1].input_hold.u,disjunctiveClock.input_ticked[1].input_sample.y,disjunctiveClock.input_ticked[1].input_tick.u,disjunctiveClock.input_ticked[1].input_tick.y,disjunctiveClock.input_ticked[1].input_hold.u,rotational_clock_2.direction,rotational_clock_2.direction_changed,rotational_clock_2.cast.y,rotational_clock_2.changed.u,rotational_clock_2.changed.y,conjunctiveClock.input_ticked[2].input_sample.y,conjunctiveClock.input_ticked[2].input_tick.u,conjunctiveClock.input_ticked[2].input_tick.y,conjunctiveClock.input_ticked[2].input_hold.u,disjunctiveClock.input_ticked[2].input_sample.y,disjunctiveClock.input_ticked[2].input_tick.u,disjunctiveClock.input_ticked[2].input_tick.y,disjunctiveClock.input_ticked[2].input_hold.u,conjunctiveClock.reset_ticked.input_sample.y,conjunctiveClock.reset_ticked.input_tick.u,conjunctiveClock.reset_ticked.input_tick.y,conjunctiveClock.reset_ticked.input_hold.u,disjunctiveClock.reset_ticked.input_sample.y,disjunctiveClock.reset_ticked.input_tick.u,disjunctiveClock.reset_ticked.input_tick.y,disjunctiveClock.reset_ticked.input_hold.u,conjunctiveClock.combinator.y,conjunctiveClock.input_ticked[1].input_ticked.u,conjunctiveClock.input_ticked[2].input_ticked.u,conjunctiveClock.forbidden_state[1].u2,conjunctiveClock.forbidden_state[1].y,conjunctiveClock.forbidden_state[2].u2,conjunctiveClock.forbidden_state[2].y,conjunctiveClock.suppress_S[1].y,conjunctiveClock.suppress_S[2].y,conjunctiveClock.input_memory[1].Q,conjunctiveClock.input_memory[1].QI,conjunctiveClock.input_memory[1].pre.u,conjunctiveClock.input_memory[2].Q,conjunctiveClock.input_memory[2].QI,conjunctiveClock.input_memory[2].pre.u,conjunctiveClock.reset_ticked.input_ticked.u,conjunctiveClock.splitter.y[2],$whenCondition4,disjunctiveClock.combinator.y,disjunctiveClock.input_ticked[1].input_ticked.u,disjunctiveClock.input_ticked[2].input_ticked.u,disjunctiveClock.forbidden_state[1].u2,disjunctiveClock.forbidden_state[1].y,disjunctiveClock.forbidden_state[2].u2,disjunctiveClock.forbidden_state[2].y,disjunctiveClock.suppress_S[1].y,disjunctiveClock.suppress_S[2].y,disjunctiveClock.input_memory[1].Q,disjunctiveClock.input_memory[1].QI,disjunctiveClock.input_memory[1].pre.u,disjunctiveClock.input_memory[2].Q,disjunctiveClock.input_memory[2].QI,disjunctiveClock.input_memory[2].pre.u,disjunctiveClock.reset_ticked.input_ticked.u,disjunctiveClock.splitter.y[2],$whenCondition5,rotational_clock_1.less.y,rotational_clock_2.less.y,$whenCondition1,trigger_interval_input.T_start,trigger_interval_input.count,$whenCondition2,$whenCondition3) * Number of discrete states: 11 (trigger_interval_input.count,disjunctiveClock.input_ticked[1].input_ticked.u,disjunctiveClock.input_ticked[2].input_ticked.u,disjunctiveClock.input_memory[1].pre.u,disjunctiveClock.input_memory[2].pre.u,disjunctiveClock.reset_ticked.input_ticked.u,conjunctiveClock.input_ticked[1].input_ticked.u,conjunctiveClock.input_ticked[2].input_ticked.u,conjunctiveClock.input_memory[1].pre.u,conjunctiveClock.input_memory[2].pre.u,conjunctiveClock.reset_ticked.input_ticked.u) * Number of clocked states: 2 (rotational_clock_1.changed.u,rotational_clock_2.changed.u) * Top-level inputs: 0 Notification: Strong component statistics for simulation (102): * Single equations (assignments): 100 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 2 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0002446/0.2982, allocations: 216.6 kB / 434 MB, free: 0.6016 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.001433/0.2996, allocations: 0.9156 MB / 434.9 MB, free: 15.68 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 3.106e-06/0.2996, allocations: 0 / 434.9 MB, free: 15.68 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.000518/0.3002, allocations: 291.8 kB / 435.2 MB, free: 15.39 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001093/0.3013, allocations: 295.4 kB / 435.4 MB, free: 15.11 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00255/0.3038, allocations: 1.628 MB / 437.1 MB, free: 13.43 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005984/0.3045, allocations: 0.9987 MB / 438.1 MB, free: 12.39 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002091/0.3047, allocations: 63.41 kB / 438.1 MB, free: 12.33 MB / 314.7 MB Notification: Performance of SimCode: time 2.324e-06/0.3047, allocations: 4 kB / 438.1 MB, free: 12.33 MB / 314.7 MB Notification: Performance of Templates: time 0.01398/0.3187, allocations: 9.315 MB / 447.4 MB, free: 2.996 MB / 314.7 MB make -j1 -f Modelica_trunk_cpp_Modelica.Clocked.Examples.Elementary.ClockSignals.LogicalSample.makefile (rm -f Modelica_trunk_cpp_Modelica.Clocked.Examples.Elementary.ClockSignals.LogicalSample.pipe ; mkfifo Modelica_trunk_cpp_Modelica.Clocked.Examples.Elementary.ClockSignals.LogicalSample.pipe ; head -c 1048576 < Modelica_trunk_cpp_Modelica.Clocked.Examples.Elementary.ClockSignals.LogicalSample.pipe >> ../files/Modelica_trunk_cpp_Modelica.Clocked.Examples.Elementary.ClockSignals.LogicalSample.sim & ./Modelica_trunk_cpp_Modelica.Clocked.Examples.Elementary.ClockSignals.LogicalSample --alarm=480 -emit_protected > Modelica_trunk_cpp_Modelica.Clocked.Examples.Elementary.ClockSignals.LogicalSample.pipe 2>&1) diffSimulationResults("Modelica_trunk_cpp_Modelica.Clocked.Examples.Elementary.ClockSignals.LogicalSample_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Clocked/Examples/Elementary/ClockSignals/LogicalSample/LogicalSample.csv","../files/Modelica_trunk_cpp_Modelica.Clocked.Examples.Elementary.ClockSignals.LogicalSample.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) "" Variables in the reference: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 Variables in the result:conjunctiveClock.S_false[1].k,conjunctiveClock.S_false[1].y,conjunctiveClock.S_false[2].k,conjunctiveClock.S_false[2].y,conjunctiveClock.clock.u,conjunctiveClock.clock.useSolver,conjunctiveClock.combinator.u[1],conjunctiveClock.combinator.u[2],conjunctiveClock.combinator.y,conjunctiveClock.forbidden_state[1].u1,conjunctiveClock.forbidden_state[1].u2,conjunctiveClock.forbidden_state[1].y,conjunctiveClock.forbidden_state[2].u1,conjunctiveClock.forbidden_state[2].u2,conjunctiveClock.forbidden_state[2].y,conjunctiveClock.input_memory[1].Q,conjunctiveClock.input_memory[1].QI,conjunctiveClock.input_memory[1].Qini,conjunctiveClock.input_memory[1].R,conjunctiveClock.input_memory[1].S,conjunctiveClock.input_memory[1].nor.u1,conjunctiveClock.input_memory[1].nor.u2,conjunctiveClock.input_memory[1].nor.y,conjunctiveClock.input_memory[1].nor1.u1,conjunctiveClock.input_memory[1].nor1.u2,conjunctiveClock.input_memory[1].nor1.y,conjunctiveClock.input_memory[1].pre.pre_u_start,conjunctiveClock.input_memory[1].pre.u,conjunctiveClock.input_memory[1].pre.y,conjunctiveClock.input_memory[2].Q,conjunctiveClock.input_memory[2].QI,conjunctiveClock.input_memory[2].Qini,conjunctiveClock.input_memory[2].R,conjunctiveClock.input_memory[2].S,conjunctiveClock.input_memory[2].nor.u1,conjunctiveClock.input_memory[2].nor.u2,conjunctiveClock.input_memory[2].nor.y,conjunctiveClock.input_memory[2].nor1.u1,conjunctiveClock.input_memory[2].nor1.u2,conjunctiveClock.input_memory[2].nor1.y,conjunctiveClock.input_memory[2].pre.pre_u_start,conjunctiveClock.input_memory[2].pre.u,conjunctiveClock.input_memory[2].pre.y,conjunctiveClock.input_ticked[1].input_hold.u,conjunctiveClock.input_ticked[1].input_hold.y,conjunctiveClock.input_ticked[1].input_hold.y_start,conjunctiveClock.input_ticked[1].input_sample.u,conjunctiveClock.input_ticked[1].input_sample.y,conjunctiveClock.input_ticked[1].input_tick.u,conjunctiveClock.input_ticked[1].input_tick.y,conjunctiveClock.input_ticked[1].input_ticked.pre_u_start,conjunctiveClock.input_ticked[1].input_ticked.u,conjunctiveClock.input_ticked[1].input_ticked.y,conjunctiveClock.input_ticked[1].y,conjunctiveClock.input_ticked[2].input_hold.u,conjunctiveClock.input_ticked[2].input_hold.y,conjunctiveClock.input_ticked[2].input_hold.y_start,conjunctiveClock.input_ticked[2].input_sample.u,conjunctiveClock.input_ticked[2].input_sample.y,conjunctiveClock.input_ticked[2].input_tick.u,conjunctiveClock.input_ticked[2].input_tick.y,conjunctiveClock.input_ticked[2].input_ticked.pre_u_start,conjunctiveClock.input_ticked[2].input_ticked.u,conjunctiveClock.input_ticked[2].input_ticked.y,conjunctiveClock.input_ticked[2].y,conjunctiveClock.nu,conjunctiveClock.reset_ticked.input_hold.u,conjunctiveClock.reset_ticked.input_hold.y,conjunctiveClock.reset_ticked.input_hold.y_start,conjunctiveClock.reset_ticked.input_sample.u,conjunctiveClock.reset_ticked.input_sample.y,conjunctiveClock.reset_ticked.input_tick.u,conjunctiveClock.reset_ticked.input_tick.y,conjunctiveClock.reset_ticked.input_ticked.pre_u_start,conjunctiveClock.reset_ticked.input_ticked.u,conjunctiveClock.reset_ticked.input_ticked.y,conjunctiveClock.reset_ticked.y,conjunctiveClock.splitter.nout,conjunctiveClock.splitter.u,conjunctiveClock.splitter.y[1],conjunctiveClock.splitter.y[2],conjunctiveClock.suppress_S[1].u1,conjunctiveClock.suppress_S[1].u2,conjunctiveClock.suppress_S[1].u3,conjunctiveClock.suppress_S[1].y,conjunctiveClock.suppress_S[2].u1,conjunctiveClock.suppress_S[2].u2,conjunctiveClock.suppress_S[2].u3,conjunctiveClock.suppress_S[2].y,conjunctiveClock.useSolver,cosine_angle_input.amplitude,cosine_angle_input.f,cosine_angle_input.offset,cosine_angle_input.phase,cosine_angle_input.startTime,cosine_angle_input.y,disjunctiveClock.S_false[1].k,disjunctiveClock.S_false[1].y,disjunctiveClock.S_false[2].k,disjunctiveClock.S_false[2].y,disjunctiveClock.clock.u,disjunctiveClock.clock.useSolver,disjunctiveClock.combinator.u[1],disjunctiveClock.combinator.u[2],disjunctiveClock.combinator.y,disjunctiveClock.forbidden_state[1].u1,disjunctiveClock.forbidden_state[1].u2,disjunctiveClock.forbidden_state[1].y,disjunctiveClock.forbidden_state[2].u1,disjunctiveClock.forbidden_state[2].u2,disjunctiveClock.forbidden_state[2].y,disjunctiveClock.input_memory[1].Q,disjunctiveClock.input_memory[1].QI,disjunctiveClock.input_memory[1].Qini,disjunctiveClock.input_memory[1].R,disjunctiveClock.input_memory[1].S,disjunctiveClock.input_memory[1].nor.u1,disjunctiveClock.input_memory[1].nor.u2,disjunctiveClock.input_memory[1].nor.y,disjunctiveClock.input_memory[1].nor1.u1,disjunctiveClock.input_memory[1].nor1.u2,disjunctiveClock.input_memory[1].nor1.y,disjunctiveClock.input_memory[1].pre.pre_u_start,disjunctiveClock.input_memory[1].pre.u,disjunctiveClock.input_memory[1].pre.y,disjunctiveClock.input_memory[2].Q,disjunctiveClock.input_memory[2].QI,disjunctiveClock.input_memory[2].Qini,disjunctiveClock.input_memory[2].R,disjunctiveClock.input_memory[2].S,disjunctiveClock.input_memory[2].nor.u1,disjunctiveClock.input_memory[2].nor.u2,disjunctiveClock.input_memory[2].nor.y,disjunctiveClock.input_memory[2].nor1.u1,disjunctiveClock.input_memory[2].nor1.u2,disjunctiveClock.input_memory[2].nor1.y,disjunctiveClock.input_memory[2].pre.pre_u_start,disjunctiveClock.input_memory[2].pre.u,disjunctiveClock.input_memory[2].pre.y,disjunctiveClock.input_ticked[1].input_hold.u,disjunctiveClock.input_ticked[1].input_hold.y,disjunctiveClock.input_ticked[1].input_hold.y_start,disjunctiveClock.input_ticked[1].input_sample.u,disjunctiveClock.input_ticked[1].input_sample.y,disjunctiveClock.input_ticked[1].input_tick.u,disjunctiveClock.input_ticked[1].input_tick.y,disjunctiveClock.input_ticked[1].input_ticked.pre_u_start,disjunctiveClock.input_ticked[1].input_ticked.u,disjunctiveClock.input_ticked[1].input_ticked.y,disjunctiveClock.input_ticked[1].y,disjunctiveClock.input_ticked[2].input_hold.u,disjunctiveClock.input_ticked[2].input_hold.y,disjunctiveClock.input_ticked[2].input_hold.y_start,disjunctiveClock.input_ticked[2].input_sample.u,disjunctiveClock.input_ticked[2].input_sample.y,disjunctiveClock.input_ticked[2].input_tick.u,disjunctiveClock.input_ticked[2].input_tick.y,disjunctiveClock.input_ticked[2].input_ticked.pre_u_start,disjunctiveClock.input_ticked[2].input_ticked.u,disjunctiveClock.input_ticked[2].input_ticked.y,disjunctiveClock.input_ticked[2].y,disjunctiveClock.nu,disjunctiveClock.reset_ticked.input_hold.u,disjunctiveClock.reset_ticked.input_hold.y,disjunctiveClock.reset_ticked.input_hold.y_start,disjunctiveClock.reset_ticked.input_sample.u,disjunctiveClock.reset_ticked.input_sample.y,disjunctiveClock.reset_ticked.input_tick.u,disjunctiveClock.reset_ticked.input_tick.y,disjunctiveClock.reset_ticked.input_ticked.pre_u_start,disjunctiveClock.reset_ticked.input_ticked.u,disjunctiveClock.reset_ticked.input_ticked.y,disjunctiveClock.reset_ticked.y,disjunctiveClock.splitter.nout,disjunctiveClock.splitter.u,disjunctiveClock.splitter.y[1],disjunctiveClock.splitter.y[2],disjunctiveClock.suppress_S[1].u1,disjunctiveClock.suppress_S[1].u2,disjunctiveClock.suppress_S[1].u3,disjunctiveClock.suppress_S[1].y,disjunctiveClock.suppress_S[2].u1,disjunctiveClock.suppress_S[2].u2,disjunctiveClock.suppress_S[2].u3,disjunctiveClock.suppress_S[2].y,disjunctiveClock.useSolver,previous(rotational_clock_1.changed.u),previous(rotational_clock_2.changed.u),rotational_clock_1.abs1.generateEvent,rotational_clock_1.abs1.u,rotational_clock_1.abs1.y,rotational_clock_1.abs2.generateEvent,rotational_clock_1.abs2.u,rotational_clock_1.abs2.y,rotational_clock_1.angle,rotational_clock_1.angular_offset.u,rotational_clock_1.angular_offset.y,rotational_clock_1.angular_offset.y_start,rotational_clock_1.cast.u,rotational_clock_1.cast.y,rotational_clock_1.changed.u,rotational_clock_1.changed.y,rotational_clock_1.direction,rotational_clock_1.direction_changed,rotational_clock_1.direction_sign.generateEvent,rotational_clock_1.direction_sign.u,rotational_clock_1.direction_sign.y,rotational_clock_1.less.u1,rotational_clock_1.less.u2,rotational_clock_1.less.y,rotational_clock_1.sub.k1,rotational_clock_1.sub.k2,rotational_clock_1.sub.u1,rotational_clock_1.sub.u2,rotational_clock_1.sub.y,rotational_clock_1.trigger_interval,rotational_clock_1.update_direction.u,rotational_clock_1.update_direction.y,rotational_clock_1.update_offset.u,rotational_clock_1.update_offset.y,rotational_clock_1.useSolver,rotational_clock_1.y_clock.u,rotational_clock_1.y_clock.useSolver,rotational_clock_2.abs1.generateEvent,rotational_clock_2.abs1.u,rotational_clock_2.abs1.y,rotational_clock_2.abs2.generateEvent,rotational_clock_2.abs2.u,rotational_clock_2.abs2.y,rotational_clock_2.angle,rotational_clock_2.angular_offset.u,rotational_clock_2.angular_offset.y,rotational_clock_2.angular_offset.y_start,rotational_clock_2.cast.u,rotational_clock_2.cast.y,rotational_clock_2.changed.u,rotational_clock_2.changed.y,rotational_clock_2.direction,rotational_clock_2.direction_changed,rotational_clock_2.direction_sign.generateEvent,rotational_clock_2.direction_sign.u,rotational_clock_2.direction_sign.y,rotational_clock_2.less.u1,rotational_clock_2.less.u2,rotational_clock_2.less.y,rotational_clock_2.sub.k1,rotational_clock_2.sub.k2,rotational_clock_2.sub.u1,rotational_clock_2.sub.u2,rotational_clock_2.sub.y,rotational_clock_2.trigger_interval,rotational_clock_2.update_direction.u,rotational_clock_2.update_direction.y,rotational_clock_2.update_offset.u,rotational_clock_2.update_offset.y,rotational_clock_2.useSolver,rotational_clock_2.y_clock.u,rotational_clock_2.y_clock.useSolver,sample_conjunctive.u,sample_conjunctive.y,sample_disjunctive.u,sample_disjunctive.y,sine_angle_input.amplitude,sine_angle_input.f,sine_angle_input.offset,sine_angle_input.phase,sine_angle_input.startTime,sine_angle_input.y,time,trigger_interval_input.amplitude,trigger_interval_input.nperiod,trigger_interval_input.offset,trigger_interval_input.period,trigger_interval_input.startTime,trigger_interval_input.width,trigger_interval_input.y