Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteController.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.SimpleControlledDrive.ClockedWithDiscreteController,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|load.phi|load.w|PI.x|PI.y",fileNamePrefix="Modelica_trunk_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_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteController") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.002031/0.002032, 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.6/1.6, allocations: 226.7 MB / 245.5 MB, free: 6.984 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0009683/0.0009683, allocations: 113 kB / 296.7 MB, free: 6.473 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.000966/0.0009661, allocations: 47.92 kB / 356.6 MB, free: 10.61 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2007/0.2017, allocations: 50.46 MB / 407 MB, free: 27.81 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteController): time 0.002506/0.2042, allocations: 2.066 MB / 409.1 MB, free: 25.75 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.0006812/0.2049, allocations: 0.5494 MB / 409.7 MB, free: 25.2 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.559e-05/0.205, allocations: 5.031 kB / 409.7 MB, free: 25.19 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 9.85e-05/0.2051, allocations: 11.86 kB / 409.7 MB, free: 25.18 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001072/0.2053, allocations: 27.12 kB / 409.7 MB, free: 25.16 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001849/0.2055, allocations: 51.89 kB / 409.8 MB, free: 25.11 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001145/0.2056, allocations: 119.6 kB / 409.9 MB, free: 24.99 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001145/0.2057, allocations: 49.08 kB / 409.9 MB, free: 24.94 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 5.994e-05/0.2058, allocations: 51.77 kB / 410 MB, free: 24.89 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 6.632e-05/0.2058, allocations: 55.77 kB / 410 MB, free: 24.84 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 1.985e-05/0.2059, allocations: 8 kB / 410 MB, free: 24.83 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 1.808e-05/0.2059, allocations: 8 kB / 410 MB, free: 24.82 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 2.464e-05/0.2059, allocations: 23.86 kB / 410.1 MB, free: 24.8 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 4.797e-05/0.206, allocations: 59.66 kB / 410.1 MB, free: 24.74 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.00011/0.2061, allocations: 117.1 kB / 410.2 MB, free: 24.62 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.749e-06/0.2061, allocations: 4 kB / 410.2 MB, free: 24.62 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.283e-06/0.2061, allocations: 4 kB / 410.2 MB, free: 24.62 MB / 298.7 MB Notification: Performance of Transformations before backend: time 4.118e-06/0.2061, allocations: 0 / 410.2 MB, free: 24.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: 31 * Number of variables: 31 Notification: Performance of Generate backend data structure: time 0.0004667/0.2066, allocations: 427 kB / 410.7 MB, free: 24.15 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.091e-05/0.2066, allocations: 8.031 kB / 410.7 MB, free: 24.14 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.477e-05/0.2067, allocations: 12.84 kB / 410.7 MB, free: 24.13 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001417/0.2068, allocations: 200.1 kB / 410.9 MB, free: 23.9 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.17e-05/0.2068, allocations: 12.38 kB / 410.9 MB, free: 23.89 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.77e-05/0.2069, allocations: 16.28 kB / 410.9 MB, free: 23.87 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003848/0.2072, allocations: 252.8 kB / 411.2 MB, free: 23.6 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.269e-05/0.2073, allocations: 0 / 411.2 MB, free: 23.6 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.489e-05/0.2073, allocations: 8 kB / 411.2 MB, free: 23.59 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.733e-06/0.2073, allocations: 4 kB / 411.2 MB, free: 23.59 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002242/0.2075, allocations: 91.81 kB / 411.3 MB, free: 23.5 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004279/0.208, allocations: 0.5882 MB / 411.8 MB, free: 22.84 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002769/0.2083, allocations: 155.8 kB / 412 MB, free: 22.66 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001277/0.2084, allocations: 74.64 kB / 412.1 MB, free: 22.58 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.471e-05/0.2084, allocations: 4 kB / 412.1 MB, free: 22.57 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.253e-05/0.2084, allocations: 34.56 kB / 412.1 MB, free: 22.53 MB / 298.7 MB Notification: Performance of pre-optimization done (n=15): time 1.393e-06/0.2085, allocations: 0 / 412.1 MB, free: 22.53 MB / 298.7 MB Notification: Performance of matching and sorting (n=15): time 0.0004294/0.2089, allocations: 197.6 kB / 412.3 MB, free: 22.33 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.755e-05/0.2089, allocations: 110.8 kB / 412.4 MB, free: 22.2 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.597e-05/0.209, allocations: 133.3 kB / 412.5 MB, free: 22.06 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 9.157e-06/0.209, allocations: 25.7 kB / 412.6 MB, free: 22.03 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 3.631e-05/0.2091, allocations: 112 kB / 412.7 MB, free: 21.91 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.832e-05/0.2091, allocations: 31.58 kB / 412.7 MB, free: 21.88 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.847e-05/0.2091, allocations: 33.72 kB / 412.7 MB, free: 21.84 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 4.16e-05/0.2092, allocations: 327 kB / 413.1 MB, free: 21.52 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.809e-05/0.2093, allocations: 35.97 kB / 413.1 MB, free: 21.48 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001173/0.2094, allocations: 137.3 kB / 413.2 MB, free: 21.3 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002104/0.2096, allocations: 189.5 kB / 413.4 MB, free: 21.07 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.074e-06/0.2096, allocations: 4 kB / 413.4 MB, free: 21.06 MB / 298.7 MB Notification: Performance of matching and sorting (n=21) (initialization): time 0.0002895/0.2099, allocations: 201.1 kB / 413.6 MB, free: 20.86 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.359e-05/0.2099, allocations: 6.812 kB / 413.6 MB, free: 20.86 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.402e-06/0.21, allocations: 7.984 kB / 413.6 MB, free: 20.85 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.328e-05/0.21, allocations: 4 kB / 413.6 MB, free: 20.84 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001269/0.2101, allocations: 43.92 kB / 413.7 MB, free: 20.8 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.374e-06/0.2101, allocations: 4 kB / 413.7 MB, free: 20.8 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.031e-05/0.2102, allocations: 28.3 kB / 413.7 MB, free: 20.77 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.124e-05/0.2102, allocations: 12 kB / 413.7 MB, free: 20.76 MB / 298.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 16 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 1 (PI.x) * Top-level inputs: 0 Notification: Strong component statistics for initialization (21): * Single equations (assignments): 21 * Array equations: 0 * Algorithm blocks: 0 * 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 6.057e-05/0.2103, allocations: 127.2 kB / 413.8 MB, free: 20.62 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001125/0.2104, allocations: 89.53 kB / 413.9 MB, free: 20.53 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.988e-05/0.2105, allocations: 20.7 kB / 413.9 MB, free: 20.5 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.204e-06/0.2105, allocations: 0 / 413.9 MB, free: 20.5 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.011e-06/0.2105, allocations: 8 kB / 414 MB, free: 20.5 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.356e-06/0.2106, allocations: 0 / 414 MB, free: 20.5 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001878/0.2107, allocations: 213.5 kB / 414.2 MB, free: 20.24 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.392e-06/0.2108, allocations: 4 kB / 414.2 MB, free: 20.23 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001553/0.2109, allocations: 39.91 kB / 414.2 MB, free: 20.2 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.244e-06/0.2109, allocations: 3.938 kB / 414.2 MB, free: 20.19 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.265e-05/0.2109, allocations: 4 kB / 414.2 MB, free: 20.19 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.573e-06/0.211, allocations: 0 / 414.2 MB, free: 20.19 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.012e-06/0.211, allocations: 0 / 414.2 MB, free: 20.19 MB / 298.7 MB [/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/Compiler/BackEnd/Differentiate.mo:267:5-267:157:writable] Error: Derivative of expression "PI.x = previous(PI.x) + PI.u * PI.Ts / PI.T" w.r.t. "dummyVarA" is non-existent. Error: Internal error SymbolicJacobian.deriveAll failed [/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/Compiler/BackEnd/SymbolicJacobian.mo:2440:7-2440:87:writable] Error: Internal error function generateSymbolicJacobian failed [/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/Compiler/BackEnd/SymbolicJacobian.mo:2231:9-2231:79:writable] Error: Internal error function createJacobian failed Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007515/0.2117, allocations: 0.5895 MB / 414.8 MB, free: 19.55 MB / 298.7 MB Error: post-optimization module symbolicJacobian (simulation) failed.