Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController.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.ClockedWithDiscreteTextbookController,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|load.phi|load.w|PI.x|PI.y",fileNamePrefix="Modelica_trunk_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_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001851/0.001851, 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.311/1.311, 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.0009581/0.0009581, allocations: 103.4 kB / 296.7 MB, free: 6.457 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0008748/0.0008749, allocations: 47.92 kB / 356.6 MB, free: 10.59 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2172/0.2181, allocations: 50.46 MB / 407 MB, free: 27.81 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController): time 0.002848/0.221, allocations: 2.065 MB / 409.1 MB, free: 25.75 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.000735/0.2218, allocations: 0.5299 MB / 409.6 MB, free: 25.21 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.205e-05/0.2219, allocations: 0 / 409.6 MB, free: 25.21 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001121/0.222, allocations: 11.92 kB / 409.7 MB, free: 25.2 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 5.574e-05/0.2221, allocations: 19.78 kB / 409.7 MB, free: 25.18 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002639/0.2223, allocations: 43.97 kB / 409.7 MB, free: 25.14 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.000118/0.2225, allocations: 119.6 kB / 409.8 MB, free: 25.02 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001823/0.2226, allocations: 57.06 kB / 409.9 MB, free: 24.96 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 6.351e-05/0.2227, allocations: 47.73 kB / 409.9 MB, free: 24.92 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 6.614e-05/0.2228, allocations: 47.77 kB / 410 MB, free: 24.87 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 2.148e-05/0.2228, allocations: 8 kB / 410 MB, free: 24.86 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 1.887e-05/0.2228, allocations: 8 kB / 410 MB, free: 24.86 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 2.429e-05/0.2229, allocations: 23.92 kB / 410 MB, free: 24.83 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 4.72e-05/0.2229, allocations: 55.66 kB / 410.1 MB, free: 24.78 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001179/0.223, allocations: 117.1 kB / 410.2 MB, free: 24.66 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.358e-06/0.2231, allocations: 8 kB / 410.2 MB, free: 24.66 MB / 298.7 MB Notification: Performance of FrontEnd: time 7.61e-07/0.2231, allocations: 0 / 410.2 MB, free: 24.66 MB / 298.7 MB Notification: Performance of Transformations before backend: time 4.328e-06/0.2231, allocations: 0 / 410.2 MB, free: 24.66 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: 30 * Number of variables: 30 Notification: Performance of Generate backend data structure: time 0.0005034/0.2236, allocations: 423.1 kB / 410.6 MB, free: 24.2 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.436e-05/0.2236, allocations: 8.031 kB / 410.6 MB, free: 24.19 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.023e-05/0.2237, allocations: 16.75 kB / 410.6 MB, free: 24.17 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001544/0.2238, allocations: 200.1 kB / 410.8 MB, free: 23.94 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.193e-05/0.2238, allocations: 12.36 kB / 410.8 MB, free: 23.93 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.571e-05/0.2239, allocations: 16.38 kB / 410.9 MB, free: 23.91 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003849/0.2243, allocations: 242.8 kB / 411.1 MB, free: 23.65 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.266e-05/0.2243, allocations: 4 kB / 411.1 MB, free: 23.64 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.364e-05/0.2243, allocations: 4 kB / 411.1 MB, free: 23.64 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.751e-06/0.2243, allocations: 4 kB / 411.1 MB, free: 23.64 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002155/0.2245, allocations: 87.86 kB / 411.2 MB, free: 23.55 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004536/0.225, allocations: 0.5843 MB / 411.8 MB, free: 22.89 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002097/0.2252, allocations: 147.9 kB / 411.9 MB, free: 22.72 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001298/0.2254, allocations: 82.56 kB / 412 MB, free: 22.63 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.514e-05/0.2254, allocations: 4 kB / 412 MB, free: 22.63 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.4e-05/0.2254, allocations: 42.5 kB / 412 MB, free: 22.58 MB / 298.7 MB Notification: Performance of pre-optimization done (n=14): time 1.253e-06/0.2254, allocations: 0 / 412 MB, free: 22.58 MB / 298.7 MB Notification: Performance of matching and sorting (n=14): time 0.0004396/0.2259, allocations: 173.4 kB / 412.2 MB, free: 22.4 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.984e-05/0.2259, allocations: 114.7 kB / 412.3 MB, free: 22.27 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.106e-05/0.226, allocations: 132.9 kB / 412.5 MB, free: 22.12 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 9.778e-06/0.226, allocations: 29.7 kB / 412.5 MB, free: 22.09 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 3.995e-05/0.2261, allocations: 112.1 kB / 412.6 MB, free: 21.98 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.041e-05/0.2261, allocations: 31.66 kB / 412.6 MB, free: 21.95 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.096e-05/0.2261, allocations: 33.7 kB / 412.7 MB, free: 21.91 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 4.303e-05/0.2262, allocations: 314.8 kB / 413 MB, free: 21.59 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.882e-05/0.2263, allocations: 35.97 kB / 413 MB, free: 21.55 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001201/0.2264, allocations: 135.2 kB / 413.1 MB, free: 21.38 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002719/0.2267, allocations: 180.6 kB / 413.3 MB, free: 21.16 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.996e-06/0.2267, allocations: 4 kB / 413.3 MB, free: 21.15 MB / 298.7 MB Notification: Performance of matching and sorting (n=20) (initialization): time 0.0002923/0.227, allocations: 185.2 kB / 413.5 MB, free: 20.96 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.317e-05/0.227, allocations: 4 kB / 413.5 MB, free: 20.96 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.293e-06/0.227, allocations: 7.984 kB / 413.5 MB, free: 20.95 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.514e-05/0.2271, allocations: 7.938 kB / 413.5 MB, free: 20.95 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001479/0.2272, allocations: 48.36 kB / 413.6 MB, free: 20.9 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.235e-06/0.2272, allocations: 4 kB / 413.6 MB, free: 20.89 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.709e-05/0.2273, allocations: 23.83 kB / 413.6 MB, free: 20.87 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.079e-05/0.2273, allocations: 12 kB / 413.6 MB, free: 20.86 MB / 298.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 15 * 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 (20): * Single equations (assignments): 20 * 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.502e-05/0.2274, allocations: 127.3 kB / 413.7 MB, free: 20.73 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001075/0.2275, allocations: 86.05 kB / 413.8 MB, free: 20.64 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.787e-05/0.2276, allocations: 28.62 kB / 413.8 MB, free: 20.6 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.866e-06/0.2276, allocations: 4 kB / 413.8 MB, free: 20.6 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.468e-06/0.2276, allocations: 0 / 413.8 MB, free: 20.6 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.665e-06/0.2276, allocations: 4.094 kB / 413.8 MB, free: 20.59 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001834/0.2278, allocations: 209.5 kB / 414 MB, free: 20.34 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.322e-06/0.2278, allocations: 0 / 414 MB, free: 20.34 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001447/0.2279, allocations: 31.98 kB / 414.1 MB, free: 20.31 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.044e-06/0.2279, allocations: 0 / 414.1 MB, free: 20.31 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.128e-05/0.228, allocations: 7.938 kB / 414.1 MB, free: 20.3 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.615e-06/0.228, allocations: 3.984 kB / 414.1 MB, free: 20.3 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.062e-06/0.228, allocations: 3.938 kB / 414.1 MB, free: 20.29 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.Td" 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.0007477/0.2287, allocations: 0.578 MB / 414.7 MB, free: 19.67 MB / 298.7 MB Error: post-optimization module symbolicJacobian (simulation) failed.