Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController.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.ExactlyClockedWithDiscreteController,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|load.phi|load.w|PI.x|PI.y",fileNamePrefix="Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController") translateModel(Modelica.Clocked.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|load.phi|load.w|PI.x|PI.y",fileNamePrefix="Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001749/0.001749, 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.374/1.374, allocations: 226.7 MB / 245.5 MB, free: 6.973 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001016/0.001016, allocations: 101.6 kB / 296.7 MB, free: 6.461 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0009163/0.0009164, allocations: 43.92 kB / 356.6 MB, free: 10.6 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.214/0.2149, allocations: 50.46 MB / 407 MB, free: 27.8 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController): time 0.003614/0.2187, allocations: 2.093 MB / 409.1 MB, free: 25.71 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.0009097/0.2196, allocations: 0.5946 MB / 409.7 MB, free: 25.12 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001224/0.2197, allocations: 7.594 kB / 409.7 MB, free: 25.11 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.00015/0.2199, allocations: 11.86 kB / 409.7 MB, free: 25.1 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001705/0.2201, allocations: 27.84 kB / 409.8 MB, free: 25.07 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002491/0.2203, allocations: 59.88 kB / 409.8 MB, free: 25.02 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001346/0.2205, allocations: 123.6 kB / 410 MB, free: 24.89 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001369/0.2206, allocations: 57.5 kB / 410 MB, free: 24.84 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 7.069e-05/0.2207, allocations: 51.72 kB / 410.1 MB, free: 24.79 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 7.859e-05/0.2208, allocations: 59.7 kB / 410.1 MB, free: 24.73 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 2.144e-05/0.2208, allocations: 8 kB / 410.1 MB, free: 24.72 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 1.94e-05/0.2208, allocations: 8 kB / 410.1 MB, free: 24.71 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 5.283e-05/0.2209, allocations: 23.86 kB / 410.2 MB, free: 24.69 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 5.485e-05/0.221, allocations: 75.58 kB / 410.2 MB, free: 24.62 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001393/0.2211, allocations: 125.1 kB / 410.4 MB, free: 24.5 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.218e-06/0.2211, allocations: 0 / 410.4 MB, free: 24.5 MB / 298.7 MB Notification: Performance of FrontEnd: time 7.32e-07/0.2211, allocations: 4 kB / 410.4 MB, free: 24.49 MB / 298.7 MB Notification: Performance of Transformations before backend: time 3.807e-06/0.2211, allocations: 0 / 410.4 MB, free: 24.49 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: 32 * Number of variables: 32 Notification: Performance of Generate backend data structure: time 0.0005637/0.2217, allocations: 454.8 kB / 410.8 MB, free: 24 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.353e-05/0.2217, allocations: 15.97 kB / 410.8 MB, free: 23.98 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.974e-05/0.2218, allocations: 16.75 kB / 410.8 MB, free: 23.97 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001808/0.222, allocations: 213 kB / 411 MB, free: 23.72 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.331e-05/0.222, allocations: 12.38 kB / 411.1 MB, free: 23.71 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.97e-05/0.222, allocations: 24.28 kB / 411.1 MB, free: 23.69 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004606/0.2225, allocations: 253.7 kB / 411.3 MB, free: 23.42 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.538e-05/0.2225, allocations: 0 / 411.3 MB, free: 23.42 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.6e-05/0.2226, allocations: 8 kB / 411.3 MB, free: 23.41 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.032e-06/0.2226, allocations: 4 kB / 411.3 MB, free: 23.41 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002227/0.2228, allocations: 79.88 kB / 411.4 MB, free: 23.33 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005073/0.2233, allocations: 0.596 MB / 412 MB, free: 22.66 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003034/0.2236, allocations: 151.7 kB / 412.2 MB, free: 22.48 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001352/0.2238, allocations: 82.75 kB / 412.2 MB, free: 22.39 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.764e-05/0.2238, allocations: 3.984 kB / 412.2 MB, free: 22.39 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.446e-05/0.2238, allocations: 38.56 kB / 412.3 MB, free: 22.34 MB / 298.7 MB Notification: Performance of pre-optimization done (n=15): time 1.242e-06/0.2238, allocations: 0 / 412.3 MB, free: 22.34 MB / 298.7 MB Notification: Performance of matching and sorting (n=15): time 0.0004661/0.2243, allocations: 197.2 kB / 412.5 MB, free: 22.14 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.929e-05/0.2244, allocations: 110.8 kB / 412.6 MB, free: 22.01 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001021/0.2245, allocations: 163.7 kB / 412.7 MB, free: 21.84 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 1.015e-05/0.2245, allocations: 25.7 kB / 412.8 MB, free: 21.81 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 6.015e-05/0.2246, allocations: 116.4 kB / 412.9 MB, free: 21.69 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.996e-05/0.2246, allocations: 23.78 kB / 412.9 MB, free: 21.67 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.622e-05/0.2246, allocations: 45.7 kB / 413 MB, free: 21.62 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 6.263e-05/0.2247, allocations: 318.8 kB / 413.3 MB, free: 21.3 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000103/0.2248, allocations: 39.91 kB / 413.3 MB, free: 21.26 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001237/0.2249, allocations: 141.3 kB / 413.4 MB, free: 21.07 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002531/0.2252, allocations: 189.5 kB / 413.6 MB, free: 20.84 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.565e-06/0.2252, allocations: 3.938 kB / 413.6 MB, free: 20.84 MB / 298.7 MB Notification: Performance of matching and sorting (n=21) (initialization): time 0.0003068/0.2255, allocations: 193.2 kB / 413.8 MB, free: 20.64 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.712e-05/0.2255, allocations: 8 kB / 413.8 MB, free: 20.63 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.394e-06/0.2256, allocations: 7.938 kB / 413.8 MB, free: 20.62 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.684e-05/0.2256, allocations: 4 kB / 413.8 MB, free: 20.62 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001355/0.2257, allocations: 48.38 kB / 413.9 MB, free: 20.57 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.037e-06/0.2257, allocations: 8 kB / 413.9 MB, free: 20.57 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.303e-05/0.2258, allocations: 23.83 kB / 413.9 MB, free: 20.54 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.119e-05/0.2259, allocations: 8 kB / 413.9 MB, free: 20.54 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 8.847e-05/0.226, allocations: 137.7 kB / 414.1 MB, free: 20.39 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001213/0.2261, allocations: 97.42 kB / 414.2 MB, free: 20.29 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000136/0.2262, allocations: 16.72 kB / 414.2 MB, free: 20.27 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.885e-06/0.2262, allocations: 0 / 414.2 MB, free: 20.27 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.841e-06/0.2262, allocations: 4 kB / 414.2 MB, free: 20.27 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.568e-06/0.2263, allocations: 7.984 kB / 414.2 MB, free: 20.26 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002043/0.2265, allocations: 217.4 kB / 414.4 MB, free: 20 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.374e-06/0.2265, allocations: 4 kB / 414.4 MB, free: 19.99 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001596/0.2266, allocations: 39.91 kB / 414.4 MB, free: 19.95 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.645e-06/0.2266, allocations: 0 / 414.4 MB, free: 19.95 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.323e-05/0.2267, allocations: 8.469 kB / 414.4 MB, free: 19.95 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.813e-06/0.2267, allocations: 0 / 414.4 MB, free: 19.95 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.041e-06/0.2267, allocations: 0 / 414.4 MB, free: 19.95 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.0007794/0.2275, allocations: 0.5969 MB / 415 MB, free: 19.3 MB / 298.7 MB Error: post-optimization module symbolicJacobian (simulation) failed.