Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteController.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) 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) 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) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: translateModel(Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteController,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|load.phi|load.w|PI.x|PI.y",fileNamePrefix="Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteController") translateModel(Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteController,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|load.phi|load.w|PI.x|PI.y",fileNamePrefix="Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteController") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001016/0.001016, allocations: 117 kB / 17.75 MB, free: 5.285 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001079/0.001079, allocations: 188.6 kB / 18.68 MB, free: 4.363 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.197/1.197, allocations: 222.9 MB / 242.4 MB, free: 15.05 MB / 206.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.152e-05/2.152e-05, allocations: 2.281 kB / 351.9 MB, free: 3.277 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteController): time 0.002865/0.002894, allocations: 1.994 MB / 353.9 MB, free: 1.273 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.000889/0.003797, allocations: 0.5298 MB / 354.4 MB, free: 0.7383 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000102/0.00391, allocations: 0 / 354.4 MB, free: 0.7383 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001171/0.004033, allocations: 19.8 kB / 354.5 MB, free: 0.7188 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001349/0.004175, allocations: 27.72 kB / 354.5 MB, free: 0.6914 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000229/0.004422, allocations: 59.86 kB / 354.5 MB, free: 0.6328 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001873/0.004618, allocations: 143.5 kB / 354.7 MB, free: 0.4922 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001408/0.004765, allocations: 57.28 kB / 354.7 MB, free: 444 kB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 7.891e-05/0.004851, allocations: 55.77 kB / 354.8 MB, free: 388 kB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 7.486e-05/0.004934, allocations: 59.77 kB / 354.8 MB, free: 328 kB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 2.336e-05/0.004963, allocations: 8 kB / 354.9 MB, free: 320 kB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 2.097e-05/0.004988, allocations: 12 kB / 354.9 MB, free: 308 kB / 286.1 MB Notification: Performance of combineBinaries: time 0.0001605/0.005154, allocations: 205.5 kB / 355.1 MB, free: 100 kB / 286.1 MB Notification: Performance of replaceArrayConstructors: time 7.433e-05/0.005234, allocations: 126.2 kB / 355.2 MB, free: 15.97 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 4.091e-05/0.005281, allocations: 23.94 kB / 355.2 MB, free: 15.95 MB / 302.1 MB Notification: Performance of FrontEnd: time 3.299e-05/0.005319, allocations: 7.938 kB / 355.2 MB, free: 15.94 MB / 302.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 30 (30) * Number of variables: 30 (30) Notification: Performance of Bindings: time 0.0006694/0.005993, allocations: 0.6585 MB / 355.9 MB, free: 15.18 MB / 302.1 MB Notification: Performance of FunctionAlias: time 5.294e-05/0.006052, allocations: 27.97 kB / 355.9 MB, free: 15.15 MB / 302.1 MB Notification: Performance of Early Inline: time 0.0002794/0.006337, allocations: 320.2 kB / 356.2 MB, free: 14.81 MB / 302.1 MB Notification: Performance of simplify1: time 2.78e-05/0.006372, allocations: 23.91 kB / 356.2 MB, free: 14.79 MB / 302.1 MB Notification: Performance of Alias: time 0.0008332/0.00721, allocations: 0.6754 MB / 356.9 MB, free: 13.99 MB / 302.1 MB Notification: Performance of simplify2: time 1.523e-05/0.007238, allocations: 15.98 kB / 356.9 MB, free: 13.98 MB / 302.1 MB Notification: Performance of Events: time 9.038e-05/0.007333, allocations: 47.89 kB / 357 MB, free: 13.93 MB / 302.1 MB Notification: Performance of Detect States: time 0.0001766/0.007517, allocations: 109.2 kB / 357.1 MB, free: 13.8 MB / 302.1 MB Notification: Performance of Partitioning: time 0.0001237/0.007649, allocations: 108.3 kB / 357.2 MB, free: 13.68 MB / 302.1 MB Notification: Performance of Causalize: time 0.000436/0.008092, allocations: 352.7 kB / 357.5 MB, free: 13.31 MB / 302.1 MB Notification: Performance of After Index Reduction Inline: time 0.0002322/0.008333, allocations: 220.9 kB / 357.8 MB, free: 13.07 MB / 302.1 MB Notification: Performance of Inline: time 0.0003338/0.008673, allocations: 336.2 kB / 358.1 MB, free: 12.7 MB / 302.1 MB Notification: Performance of Partitioning: time 2.981e-05/0.008711, allocations: 32.05 kB / 358.1 MB, free: 12.66 MB / 302.1 MB Notification: Performance of Cleanup: time 1.973e-05/0.008736, allocations: 15.98 kB / 358.1 MB, free: 12.65 MB / 302.1 MB Notification: Performance of Causalize: time 0.0008745/0.009617, allocations: 0.7033 MB / 358.8 MB, free: 11.94 MB / 302.1 MB Notification: Performance of Tearing: time 7.053e-06/0.009635, allocations: 0 / 358.8 MB, free: 11.94 MB / 302.1 MB Notification: Performance of Initialization: time 3.81e-07/0.009643, allocations: 4 kB / 358.8 MB, free: 11.94 MB / 302.1 MB Notification: Performance of Tearing: time 3.606e-06/0.009651, allocations: 4 kB / 358.8 MB, free: 11.93 MB / 302.1 MB Notification: Performance of Categorize: time 1.06e-05/0.009666, allocations: 0 / 358.8 MB, free: 11.93 MB / 302.1 MB Notification: Performance of Solve: time 9.343e-05/0.009763, allocations: 55.88 kB / 358.9 MB, free: 11.88 MB / 302.1 MB Notification: Performance of Jacobian: time 0.0001552/0.009927, allocations: 222 kB / 359.1 MB, free: 11.62 MB / 302.1 MB Notification: Partition statistics after passing the back-end: * Number of ODE partitions: ..................... 0 * Number of algebraic partitions: ............... 0 * Number of ODE event partitions: ............... 1 * Number of algebraic event partitions: ......... 2 * Number of clocked partitions: ................. 0 * Number of initial partitions: ................. 1 * Number of initial(lambda=0) partitions: ....... 0 Notification: Variable statistics after passing the back-end: * Number of states: ............................. 2 (2) {load.w, load.phi} * Number of discrete states: .................... 2 (2) {PI.y, PI.x} * Number of clocked states: ..................... 0 (0) {NOT YET AVAILABLE} * Number of discrete variables: ................. 4 (4) {$SEV_1, $SEV_0, $TEV_1, $TEV_0} * Number of top-level inputs: ................... 0 (0) {} Notification: [Simulation] Strong Component statistics after passing the back-end: * Number of single strong components: ........... 15 (scalar:15, array:0, record:0) * Number of multi strong components: ............ 2 (algorithm:0, when:2, if:0, tuple:0) * Number of for-loop strong components: ......... 0 (generic: 0, entwined:0) * Number of algebraic-loop strong components: ... 0 (linear: 0, nonlinear:0) Notification: [Initialization] Strong Component statistics after passing the back-end: * Number of single strong components: ........... 21 (scalar:21, array:0, record:0) * Number of multi strong components: ............ 0 (algorithm:0, when:0, if:0, tuple:0) * Number of for-loop strong components: ......... 0 (generic: 0, entwined:0) * Number of algebraic-loop strong components: ... 0 (linear: 0, nonlinear:0) Notification: Performance of backend: time 3.727e-05/0.009972, allocations: 21.14 kB / 359.1 MB, free: 11.61 MB / 302.1 MB Error: Internal error NSimVar.SimVars.splitByType failed because of unhandled Variable sample2.clock.