Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController.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.ClockedWithDiscreteTextbookController,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.ClockedWithDiscreteTextbookController") translateModel(Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController,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.ClockedWithDiscreteTextbookController") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001068/0.001068, allocations: 110.2 kB / 17.7 MB, free: 5.406 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.0009717/0.0009717, allocations: 192 kB / 18.64 MB, free: 4.477 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.259/1.259, allocations: 222.9 MB / 242.3 MB, free: 15.18 MB / 206.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.241e-05/2.263e-05, allocations: 6.219 kB / 302 MB, free: 5.219 MB / 238.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController): time 0.00291/0.002948, allocations: 1.992 MB / 304 MB, free: 3.23 MB / 238.1 MB Notification: Performance of NFInst.instExpressions: time 0.0007285/0.00369, allocations: 0.5065 MB / 304.5 MB, free: 2.719 MB / 238.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.585e-05/0.003776, allocations: 3.938 kB / 304.5 MB, free: 2.715 MB / 238.1 MB Notification: Performance of NFTyping.typeComponents: time 9.036e-05/0.003872, allocations: 15.86 kB / 304.5 MB, free: 2.699 MB / 238.1 MB Notification: Performance of NFTyping.typeBindings: time 5.779e-05/0.003936, allocations: 27.72 kB / 304.6 MB, free: 2.672 MB / 238.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002186/0.00416, allocations: 55.88 kB / 304.6 MB, free: 2.617 MB / 238.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001469/0.004314, allocations: 135.5 kB / 304.7 MB, free: 2.484 MB / 238.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001267/0.004448, allocations: 57.42 kB / 304.8 MB, free: 2.422 MB / 238.1 MB Notification: Performance of NFEvalConstants.evaluate: time 5.541e-05/0.004509, allocations: 43.8 kB / 304.8 MB, free: 2.379 MB / 238.1 MB Notification: Performance of NFSimplifyModel.simplify: time 6.006e-05/0.004575, allocations: 59.7 kB / 304.9 MB, free: 2.32 MB / 238.1 MB Notification: Performance of NFPackage.collectConstants: time 1.936e-05/0.0046, allocations: 12 kB / 304.9 MB, free: 2.309 MB / 238.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.446e-05/0.004619, allocations: 8 kB / 304.9 MB, free: 2.301 MB / 238.1 MB Notification: Performance of combineBinaries: time 0.0001413/0.004765, allocations: 189.8 kB / 305.1 MB, free: 2.113 MB / 238.1 MB Notification: Performance of replaceArrayConstructors: time 6.173e-05/0.004832, allocations: 126.1 kB / 305.2 MB, free: 1.988 MB / 238.1 MB Notification: Performance of NFVerifyModel.verify: time 2.572e-05/0.004863, allocations: 19.94 kB / 305.3 MB, free: 1.969 MB / 238.1 MB Notification: Performance of FrontEnd: time 2.249e-05/0.00489, allocations: 7.938 kB / 305.3 MB, free: 1.961 MB / 238.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 29 (29) * Number of variables: 29 (29) Notification: Performance of Bindings: time 0.0005875/0.005482, allocations: 0.647 MB / 305.9 MB, free: 1.211 MB / 238.1 MB Notification: Performance of FunctionAlias: time 4.52e-05/0.005535, allocations: 27.98 kB / 305.9 MB, free: 1.184 MB / 238.1 MB Notification: Performance of Early Inline: time 0.0002472/0.005788, allocations: 304.2 kB / 306.2 MB, free: 0.8594 MB / 238.1 MB Notification: Performance of simplify1: time 2.889e-05/0.005823, allocations: 23.97 kB / 306.3 MB, free: 0.8359 MB / 238.1 MB Notification: Performance of Alias: time 0.0006515/0.006479, allocations: 0.6174 MB / 306.9 MB, free: 100 kB / 238.1 MB Notification: Performance of simplify2: time 1.286e-05/0.006503, allocations: 7.984 kB / 306.9 MB, free: 92 kB / 238.1 MB Notification: Performance of Events: time 8.367e-05/0.006592, allocations: 47.89 kB / 306.9 MB, free: 44 kB / 238.1 MB Notification: Performance of Detect States: time 0.0001603/0.006762, allocations: 113.2 kB / 307 MB, free: 15.92 MB / 254.1 MB Notification: Performance of Partitioning: time 0.0001126/0.006885, allocations: 102.7 kB / 307.1 MB, free: 15.8 MB / 254.1 MB Notification: Performance of Causalize: time 0.0004965/0.007389, allocations: 433.3 kB / 307.6 MB, free: 15.35 MB / 254.1 MB Notification: Performance of After Index Reduction Inline: time 0.000263/0.007661, allocations: 212.3 kB / 307.8 MB, free: 15.12 MB / 254.1 MB Notification: Performance of Inline: time 0.0003245/0.007992, allocations: 330.6 kB / 308.1 MB, free: 14.76 MB / 254.1 MB Notification: Performance of Partitioning: time 2.524e-05/0.008026, allocations: 24.06 kB / 308.1 MB, free: 14.73 MB / 254.1 MB Notification: Performance of Cleanup: time 2.094e-05/0.008052, allocations: 19.92 kB / 308.1 MB, free: 14.71 MB / 254.1 MB Notification: Performance of Causalize: time 0.0007055/0.008762, allocations: 0.7187 MB / 308.9 MB, free: 13.99 MB / 254.1 MB Notification: Performance of Tearing: time 6.342e-06/0.008778, allocations: 3.938 kB / 308.9 MB, free: 13.99 MB / 254.1 MB Notification: Performance of Initialization: time 5.21e-07/0.008783, allocations: 0 / 308.9 MB, free: 13.99 MB / 254.1 MB Notification: Performance of Tearing: time 1.352e-06/0.008792, allocations: 4 kB / 308.9 MB, free: 13.98 MB / 254.1 MB Notification: Performance of Categorize: time 7.043e-06/0.008803, allocations: 0 / 308.9 MB, free: 13.98 MB / 254.1 MB Error: Internal error NBDifferentiate.differentiateBuiltinCall1Arg failed for: hold