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.001295/0.001295, allocations: 109.3 kB / 17.75 MB, free: 5.301 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.001303/0.001303, allocations: 188.4 kB / 18.69 MB, free: 4.375 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.284/1.284, allocations: 222.9 MB / 242.4 MB, free: 15.08 MB / 206.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.946e-05/2.946e-05, allocations: 5.375 kB / 351.9 MB, free: 3.293 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteController): time 0.002975/0.003014, allocations: 2 MB / 353.9 MB, free: 1.277 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.0009244/0.003952, allocations: 0.5181 MB / 354.4 MB, free: 0.7539 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001318/0.004096, allocations: 7.938 kB / 354.4 MB, free: 0.7461 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001122/0.004215, allocations: 15.8 kB / 354.5 MB, free: 0.7305 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001568/0.004378, allocations: 27.78 kB / 354.5 MB, free: 0.7031 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002439/0.004658, allocations: 63.86 kB / 354.5 MB, free: 0.6406 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001911/0.004856, allocations: 139.5 kB / 354.7 MB, free: 0.5039 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001583/0.005021, allocations: 61.27 kB / 354.7 MB, free: 452 kB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 7.718e-05/0.005105, allocations: 55.72 kB / 354.8 MB, free: 396 kB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 7.322e-05/0.005184, allocations: 55.77 kB / 354.9 MB, free: 340 kB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 2.536e-05/0.005215, allocations: 8 kB / 354.9 MB, free: 332 kB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 2.081e-05/0.005241, allocations: 12 kB / 354.9 MB, free: 320 kB / 286.1 MB Notification: Performance of combineBinaries: time 0.000134/0.00538, allocations: 197.6 kB / 355.1 MB, free: 120 kB / 286.1 MB Notification: Performance of replaceArrayConstructors: time 7.721e-05/0.005463, allocations: 126.1 kB / 355.2 MB, free: 15.99 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 3.27e-05/0.005501, allocations: 19.94 kB / 355.2 MB, free: 15.97 MB / 302.1 MB Notification: Performance of FrontEnd: time 4.805e-05/0.005555, allocations: 11.88 kB / 355.2 MB, free: 15.96 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.0006206/0.006181, allocations: 0.6626 MB / 355.9 MB, free: 15.2 MB / 302.1 MB Notification: Performance of FunctionAlias: time 5.648e-05/0.006244, allocations: 27.91 kB / 355.9 MB, free: 15.17 MB / 302.1 MB Notification: Performance of Early Inline: time 0.0002506/0.006501, allocations: 320.1 kB / 356.2 MB, free: 14.83 MB / 302.1 MB Notification: Performance of simplify1: time 2.947e-05/0.006537, allocations: 31.89 kB / 356.3 MB, free: 14.8 MB / 302.1 MB Notification: Performance of Alias: time 0.0008237/0.007367, allocations: 0.6716 MB / 356.9 MB, free: 14 MB / 302.1 MB Notification: Performance of simplify2: time 1.407e-05/0.007391, allocations: 11.97 kB / 356.9 MB, free: 13.99 MB / 302.1 MB Notification: Performance of Detect States: time 0.000144/0.007541, allocations: 96.12 kB / 357 MB, free: 13.88 MB / 302.1 MB Notification: Performance of Events: time 9.89e-05/0.007648, allocations: 56.95 kB / 357.1 MB, free: 13.82 MB / 302.1 MB Notification: Performance of Partitioning: time 0.0001012/0.007757, allocations: 100.4 kB / 357.2 MB, free: 13.7 MB / 302.1 MB Notification: Performance of Causalize: time 0.0003635/0.008127, allocations: 348.8 kB / 357.5 MB, free: 13.34 MB / 302.1 MB Notification: Performance of After Index Reduction Inline: time 0.0001727/0.008308, allocations: 228.2 kB / 357.7 MB, free: 13.09 MB / 302.1 MB Notification: Performance of Inline: time 0.0002988/0.008613, allocations: 343.1 kB / 358.1 MB, free: 12.72 MB / 302.1 MB Notification: Performance of Partitioning: time 3.003e-05/0.008651, allocations: 28.05 kB / 358.1 MB, free: 12.69 MB / 302.1 MB Notification: Performance of Cleanup: time 2.034e-05/0.008677, allocations: 23.97 kB / 358.1 MB, free: 12.66 MB / 302.1 MB Notification: Performance of Causalize: time 0.0007603/0.009442, allocations: 0.6964 MB / 358.8 MB, free: 11.96 MB / 302.1 MB Notification: Performance of Tearing: time 9.438e-06/0.009461, allocations: 0 / 358.8 MB, free: 11.96 MB / 302.1 MB Notification: Performance of Initialization: time 3.3e-07/0.009468, allocations: 0 / 358.8 MB, free: 11.96 MB / 302.1 MB Notification: Performance of Tearing: time 2.134e-06/0.009476, allocations: 4 kB / 358.8 MB, free: 11.96 MB / 302.1 MB Notification: Performance of Categorize: time 7.704e-06/0.009489, allocations: 0 / 358.8 MB, free: 11.96 MB / 302.1 MB Notification: Performance of Solve: time 9.639e-05/0.009589, allocations: 63.88 kB / 358.9 MB, free: 11.89 MB / 302.1 MB Notification: Performance of Jacobian: time 0.0001368/0.009733, allocations: 214 kB / 359.1 MB, free: 11.65 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.507e-05/0.009775, allocations: 22.83 kB / 359.1 MB, free: 11.63 MB / 302.1 MB Error: Internal error NSimVar.SimVars.splitByType failed because of unhandled Variable sample2.clock.