Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Clocked.Examples.CascadeControlledDrive.SubClocked.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.CascadeControlledDrive.SubClocked,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|load.phi|load.w|PI.x|PI.y",fileNamePrefix="Modelica_trunk_Modelica.Clocked.Examples.CascadeControlledDrive.SubClocked") translateModel(Modelica.Clocked.Examples.CascadeControlledDrive.SubClocked,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|load.phi|load.w|PI.x|PI.y",fileNamePrefix="Modelica_trunk_Modelica.Clocked.Examples.CascadeControlledDrive.SubClocked") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001878/0.001878, 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.289/1.289, allocations: 226.7 MB / 245.5 MB, free: 6.961 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0009912/0.0009913, allocations: 96.78 kB / 296.7 MB, free: 6.5 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0008507/0.0008507, allocations: 51.92 kB / 356.6 MB, free: 10.62 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2041/0.205, allocations: 50.45 MB / 407 MB, free: 27.83 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.CascadeControlledDrive.SubClocked): time 0.003188/0.2082, allocations: 2.395 MB / 409.4 MB, free: 25.44 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.00127/0.2095, allocations: 0.8336 MB / 410.3 MB, free: 24.61 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001361/0.2097, allocations: 4 kB / 410.3 MB, free: 24.6 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0002861/0.21, allocations: 35.7 kB / 410.3 MB, free: 24.57 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001764/0.2102, allocations: 43.75 kB / 410.3 MB, free: 24.52 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004127/0.2106, allocations: 158.9 kB / 410.5 MB, free: 24.37 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0002562/0.2108, allocations: 367.5 kB / 410.9 MB, free: 24.01 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000174/0.211, allocations: 97.31 kB / 411 MB, free: 23.92 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002316/0.2113, allocations: 151.5 kB / 411.1 MB, free: 23.77 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001872/0.2115, allocations: 175.2 kB / 411.3 MB, free: 23.6 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 4.396e-05/0.2115, allocations: 20 kB / 411.3 MB, free: 23.58 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 4.362e-05/0.2116, allocations: 24 kB / 411.3 MB, free: 23.55 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001312/0.2117, allocations: 83.77 kB / 411.4 MB, free: 23.47 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001142/0.2118, allocations: 143.2 kB / 411.5 MB, free: 23.33 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002227/0.2121, allocations: 308.5 kB / 411.8 MB, free: 23.03 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.208e-06/0.2121, allocations: 0 / 411.8 MB, free: 23.03 MB / 298.7 MB Notification: Performance of FrontEnd: time 6.91e-07/0.2121, allocations: 3.938 kB / 411.8 MB, free: 23.03 MB / 298.7 MB Notification: Performance of Transformations before backend: time 5.591e-06/0.2121, allocations: 0 / 411.8 MB, free: 23.03 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: 73 * Number of variables: 73 Notification: Performance of Generate backend data structure: time 0.00112/0.2132, allocations: 0.6201 MB / 412.5 MB, free: 22.36 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.468e-05/0.2133, allocations: 16.86 kB / 412.5 MB, free: 22.34 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.783e-05/0.2133, allocations: 44.56 kB / 412.5 MB, free: 22.3 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003224/0.2137, allocations: 277.8 kB / 412.8 MB, free: 21.99 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001638/0.2138, allocations: 138.3 kB / 412.9 MB, free: 21.84 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.261e-05/0.2139, allocations: 36.27 kB / 413 MB, free: 21.8 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001002/0.2149, allocations: 0.5583 MB / 413.5 MB, free: 21.22 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.441e-05/0.215, allocations: 4 kB / 413.5 MB, free: 21.21 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.259e-05/0.215, allocations: 8 kB / 413.5 MB, free: 21.21 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.015e-06/0.215, allocations: 8 kB / 413.5 MB, free: 21.2 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001292/0.2163, allocations: 0.5151 MB / 414.1 MB, free: 20.68 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001266/0.2176, allocations: 0.9945 MB / 415.1 MB, free: 19.61 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001398/0.219, allocations: 0.5069 MB / 415.6 MB, free: 19.07 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005387/0.2195, allocations: 271.4 kB / 415.8 MB, free: 18.79 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.822e-05/0.2196, allocations: 4 kB / 415.8 MB, free: 18.79 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.711e-05/0.2196, allocations: 42.56 kB / 415.9 MB, free: 18.73 MB / 298.7 MB Notification: Performance of pre-optimization done (n=44): time 1.914e-06/0.2196, allocations: 0 / 415.9 MB, free: 18.73 MB / 298.7 MB Notification: Performance of matching and sorting (n=72): time 0.03569/0.2553, allocations: 5.715 MB / 421.6 MB, free: 13.01 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.313e-05/0.2555, allocations: 145 kB / 421.7 MB, free: 12.84 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002101/0.2557, allocations: 203.3 kB / 421.9 MB, free: 12.62 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 5.767e-05/0.2558, allocations: 37.7 kB / 422 MB, free: 12.58 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 6.001e-05/0.2558, allocations: 137.6 kB / 422.1 MB, free: 12.45 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.000133/0.256, allocations: 189.3 kB / 422.3 MB, free: 12.26 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002584/0.2562, allocations: 110.7 kB / 422.4 MB, free: 12.14 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 6.156e-05/0.2563, allocations: 354.7 kB / 422.7 MB, free: 11.79 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001388/0.2577, allocations: 0.611 MB / 423.3 MB, free: 11.18 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00143/0.2591, allocations: 0.7929 MB / 424.1 MB, free: 10.31 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002616/0.2618, allocations: 1.247 MB / 425.4 MB, free: 8.984 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.709e-06/0.2618, allocations: 0 / 425.4 MB, free: 8.984 MB / 298.7 MB Notification: Performance of matching and sorting (n=83) (initialization): time 0.003079/0.2649, allocations: 1.398 MB / 426.8 MB, free: 7.582 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.492e-05/0.2649, allocations: 18.78 kB / 426.8 MB, free: 7.566 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.234e-05/0.2649, allocations: 7.938 kB / 426.8 MB, free: 7.559 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.598e-05/0.265, allocations: 12 kB / 426.8 MB, free: 7.547 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001232/0.2662, allocations: 211.6 kB / 427 MB, free: 7.34 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.441e-05/0.2662, allocations: 11.98 kB / 427 MB, free: 7.328 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008867/0.2671, allocations: 99.73 kB / 427.1 MB, free: 7.23 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.436e-05/0.2672, allocations: 35.98 kB / 427.2 MB, free: 7.195 MB / 298.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 25 * Number of states: 0 () * Number of discrete variables: 2 (kinematicPTP.noWphase,kinematicPTP.moving[1]) * Number of discrete states: 0 () * Number of clocked states: 1 (PI.x) * Top-level inputs: 0 Notification: Strong component statistics for initialization (83): * Single equations (assignments): 83 * 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 0.000246/0.2674, allocations: 177.5 kB / 427.3 MB, free: 7.012 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002672/0.2677, allocations: 153.2 kB / 427.5 MB, free: 6.855 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001738/0.2679, allocations: 67.3 kB / 427.6 MB, free: 6.789 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.252e-06/0.2679, allocations: 8 kB / 427.6 MB, free: 6.781 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.474e-06/0.2679, allocations: 0 / 427.6 MB, free: 6.781 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.653e-06/0.2679, allocations: 3.984 kB / 427.6 MB, free: 6.777 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003978/0.2719, allocations: 2.179 MB / 429.8 MB, free: 4.414 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.638e-06/0.272, allocations: 8 kB / 429.8 MB, free: 4.406 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006725/0.2726, allocations: 183.7 kB / 429.9 MB, free: 4.227 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.208e-05/0.2727, allocations: 16 kB / 430 MB, free: 4.211 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.642e-05/0.2727, allocations: 28.39 kB / 430 MB, free: 4.184 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.039e-05/0.2727, allocations: 19.94 kB / 430 MB, free: 4.164 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.271e-06/0.2727, allocations: 15.94 kB / 430 MB, free: 4.148 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.005252/0.278, allocations: 2.389 MB / 432.4 MB, free: 1.574 MB / 298.7 MB Error: post-optimization module symbolicJacobian (simulation) failed.