Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscretizedContinuousController.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.ClockedWithDiscretizedContinuousController,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|load.phi|load.w|PI.x|PI.y",fileNamePrefix="Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscretizedContinuousController") translateModel(Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscretizedContinuousController,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|load.phi|load.w|PI.x|PI.y",fileNamePrefix="Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscretizedContinuousController") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001787/0.001787, allocations: 207.3 kB / 17.99 MB, free: 3.773 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.426/1.426, 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.0009722/0.0009723, allocations: 109.5 kB / 296.7 MB, free: 6.461 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0009558/0.0009559, allocations: 47.92 kB / 356.6 MB, free: 10.59 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2315/0.2324, allocations: 50.45 MB / 407 MB, free: 27.8 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscretizedContinuousController): time 0.002811/0.2353, allocations: 2.118 MB / 409.2 MB, free: 25.69 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.0007497/0.2361, allocations: 0.5213 MB / 409.7 MB, free: 25.16 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.644e-05/0.2362, allocations: 4 kB / 409.7 MB, free: 25.16 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001035/0.2363, allocations: 19.8 kB / 409.7 MB, free: 25.14 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 5.812e-05/0.2363, allocations: 23.25 kB / 409.7 MB, free: 25.12 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.000243/0.2366, allocations: 55.86 kB / 409.8 MB, free: 25.07 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001268/0.2367, allocations: 119.6 kB / 409.9 MB, free: 24.95 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001276/0.2369, allocations: 53.45 kB / 409.9 MB, free: 24.89 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 5.856e-05/0.2369, allocations: 47.73 kB / 410 MB, free: 24.85 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 7.155e-05/0.237, allocations: 63.69 kB / 410.1 MB, free: 24.79 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 2.169e-05/0.237, allocations: 4 kB / 410.1 MB, free: 24.78 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 1.768e-05/0.2371, allocations: 8 kB / 410.1 MB, free: 24.77 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 2.322e-05/0.2371, allocations: 19.92 kB / 410.1 MB, free: 24.75 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 4.965e-05/0.2371, allocations: 59.67 kB / 410.1 MB, free: 24.7 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001187/0.2373, allocations: 125 kB / 410.3 MB, free: 24.57 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.258e-06/0.2373, allocations: 0 / 410.3 MB, free: 24.57 MB / 298.7 MB Notification: Performance of FrontEnd: time 7.72e-07/0.2373, allocations: 8 kB / 410.3 MB, free: 24.57 MB / 298.7 MB Notification: Performance of Transformations before backend: time 3.797e-06/0.2373, allocations: 0 / 410.3 MB, free: 24.57 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: 29 * Number of variables: 29 Notification: Performance of Generate backend data structure: time 0.000496/0.2378, allocations: 427 kB / 410.7 MB, free: 24.1 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.426e-05/0.2378, allocations: 8.031 kB / 410.7 MB, free: 24.09 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.64e-05/0.2379, allocations: 16.75 kB / 410.7 MB, free: 24.08 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001624/0.238, allocations: 206.6 kB / 410.9 MB, free: 23.84 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.446e-06/0.2381, allocations: 8.375 kB / 410.9 MB, free: 23.83 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.91e-05/0.2381, allocations: 12.38 kB / 410.9 MB, free: 23.82 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003996/0.2385, allocations: 238.8 kB / 411.2 MB, free: 23.56 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.534e-05/0.2385, allocations: 0 / 411.2 MB, free: 23.56 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.355e-05/0.2385, allocations: 4 kB / 411.2 MB, free: 23.56 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.357e-06/0.2386, allocations: 8 kB / 411.2 MB, free: 23.55 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002215/0.2388, allocations: 79.88 kB / 411.3 MB, free: 23.47 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004938/0.2393, allocations: 0.5998 MB / 411.9 MB, free: 22.8 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002783/0.2396, allocations: 155.9 kB / 412 MB, free: 22.62 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001265/0.2397, allocations: 74.64 kB / 412.1 MB, free: 22.54 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.228e-05/0.2397, allocations: 3.938 kB / 412.1 MB, free: 22.54 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.549e-05/0.2398, allocations: 42.55 kB / 412.1 MB, free: 22.48 MB / 298.7 MB Notification: Performance of pre-optimization done (n=14): time 1.232e-06/0.2398, allocations: 0 / 412.1 MB, free: 22.48 MB / 298.7 MB Notification: Performance of matching and sorting (n=14): time 0.0004328/0.2402, allocations: 185.3 kB / 412.3 MB, free: 22.3 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.295e-05/0.2403, allocations: 110.7 kB / 412.4 MB, free: 22.16 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.089e-05/0.2404, allocations: 136.6 kB / 412.6 MB, free: 22.02 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 1.159e-05/0.2404, allocations: 29.7 kB / 412.6 MB, free: 21.99 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 4.361e-05/0.2404, allocations: 112 kB / 412.7 MB, free: 21.88 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.899e-05/0.2405, allocations: 31.77 kB / 412.7 MB, free: 21.84 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.14e-05/0.2405, allocations: 37.7 kB / 412.8 MB, free: 21.8 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 4.779e-05/0.2406, allocations: 322.8 kB / 413.1 MB, free: 21.48 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001024/0.2407, allocations: 39.97 kB / 413.1 MB, free: 21.44 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001232/0.2408, allocations: 136.7 kB / 413.2 MB, free: 21.26 MB / 298.7 MB Warning: It was not possible to determine if the initialization problem is consistent, because of not evaluable parameters/start values during compile time: PI.y = PI.y_start (0.0 = PI.y_start) Notification: Performance of analyzeInitialSystem (initialization): time 0.0003573/0.2412, allocations: 274.7 kB / 413.5 MB, free: 20.92 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.254e-06/0.2412, allocations: 0 / 413.5 MB, free: 20.92 MB / 298.7 MB Notification: Performance of matching and sorting (n=21) (initialization): time 0.000337/0.2415, allocations: 213 kB / 413.7 MB, free: 20.71 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.297e-05/0.2415, allocations: 4 kB / 413.7 MB, free: 20.7 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.221e-06/0.2415, allocations: 4.469 kB / 413.7 MB, free: 20.7 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.37e-05/0.2416, allocations: 8 kB / 413.7 MB, free: 20.69 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000136/0.2417, allocations: 47.91 kB / 413.8 MB, free: 20.64 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.047e-06/0.2417, allocations: 4 kB / 413.8 MB, free: 20.64 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.464e-05/0.2418, allocations: 19.84 kB / 413.8 MB, free: 20.62 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.083e-05/0.2418, allocations: 8 kB / 413.8 MB, free: 20.61 MB / 298.7 MB Warning: The initial conditions are over specified. The following 1 initial equations are redundant, so they are removed from the initialization system: PI.y = PI.y_start. 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 7.745e-05/0.2419, allocations: 147.1 kB / 414 MB, free: 20.46 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001277/0.2421, allocations: 85.53 kB / 414 MB, free: 20.37 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.082e-05/0.2421, allocations: 20.72 kB / 414.1 MB, free: 20.34 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.286e-06/0.2421, allocations: 4 kB / 414.1 MB, free: 20.34 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.75e-06/0.2421, allocations: 3.984 kB / 414.1 MB, free: 20.34 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.827e-06/0.2421, allocations: 0 / 414.1 MB, free: 20.34 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001941/0.2423, allocations: 205.5 kB / 414.3 MB, free: 20.09 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.944e-06/0.2423, allocations: 4 kB / 414.3 MB, free: 20.08 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001868/0.2425, allocations: 39.97 kB / 414.3 MB, free: 20.04 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.756e-06/0.2425, allocations: 4.406 kB / 414.3 MB, free: 20.04 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.297e-05/0.2426, allocations: 11.94 kB / 414.3 MB, free: 20.03 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.683e-06/0.2426, allocations: 0 / 414.3 MB, free: 20.03 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.663e-06/0.2426, allocations: 3.984 kB / 414.3 MB, free: 20.02 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 = (if firstTick() then 0.0 else $DER.PI.x) * interval() + previous(PI.x)" 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.0007518/0.2433, allocations: 0.6085 MB / 414.9 MB, free: 19.37 MB / 298.7 MB Error: post-optimization module symbolicJacobian (simulation) failed.