Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWith_AD_DA_Effects.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.ClockedWith_AD_DA_Effects,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|load.phi|load.w|PI.x|PI.y",fileNamePrefix="Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWith_AD_DA_Effects") translateModel(Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWith_AD_DA_Effects,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|load.phi|load.w|PI.x|PI.y",fileNamePrefix="Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWith_AD_DA_Effects") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001237/0.001237, 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.282/1.282, 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.0009937/0.000994, allocations: 95.28 kB / 296.7 MB, free: 6.496 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.001071/0.001071, allocations: 43.92 kB / 356.6 MB, free: 10.64 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2432/0.2443, allocations: 50.46 MB / 407 MB, free: 27.83 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWith_AD_DA_Effects): time 0.003338/0.2477, allocations: 2.711 MB / 409.8 MB, free: 25.11 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.001405/0.2492, allocations: 0.9328 MB / 410.7 MB, free: 24.18 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002188/0.2494, allocations: 11.94 kB / 410.7 MB, free: 24.17 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0002252/0.2497, allocations: 47.58 kB / 410.7 MB, free: 24.12 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002157/0.2499, allocations: 43.69 kB / 410.8 MB, free: 24.08 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005586/0.2505, allocations: 208.9 kB / 411 MB, free: 23.88 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0002731/0.2507, allocations: 366 kB / 411.4 MB, free: 23.52 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002893/0.251, allocations: 184.7 kB / 411.5 MB, free: 23.34 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001171/0.2512, allocations: 123.4 kB / 411.7 MB, free: 23.22 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001533/0.2513, allocations: 143.2 kB / 411.8 MB, free: 23.08 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 4.275e-05/0.2514, allocations: 16 kB / 411.8 MB, free: 23.06 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001159/0.2515, allocations: 51.95 kB / 411.9 MB, free: 23.01 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 9.202e-05/0.2516, allocations: 63.77 kB / 411.9 MB, free: 22.95 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001245/0.2517, allocations: 159 kB / 412.1 MB, free: 22.79 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0003578/0.2521, allocations: 380.2 kB / 412.4 MB, free: 22.42 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.917e-06/0.2521, allocations: 0 / 412.4 MB, free: 22.42 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.252e-06/0.2521, allocations: 4 kB / 412.5 MB, free: 22.42 MB / 298.7 MB Notification: Performance of Transformations before backend: time 7.103e-06/0.2521, allocations: 0 / 412.5 MB, free: 22.42 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: 72 * Number of variables: 72 Notification: Performance of Generate backend data structure: time 0.000918/0.253, allocations: 0.6313 MB / 413.1 MB, free: 21.74 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.717e-05/0.2531, allocations: 16.03 kB / 413.1 MB, free: 21.72 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.66e-05/0.2532, allocations: 40.47 kB / 413.1 MB, free: 21.68 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003503/0.2535, allocations: 331.9 kB / 413.5 MB, free: 21.32 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.461e-05/0.2536, allocations: 20.94 kB / 413.5 MB, free: 21.3 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.405e-05/0.2536, allocations: 24.38 kB / 413.5 MB, free: 21.28 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001086/0.2547, allocations: 0.7404 MB / 414.2 MB, free: 20.5 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.927e-05/0.2547, allocations: 4 kB / 414.2 MB, free: 20.5 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.653e-05/0.2548, allocations: 8 kB / 414.3 MB, free: 20.49 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.686e-06/0.2548, allocations: 8 kB / 414.3 MB, free: 20.48 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005073/0.2553, allocations: 219.6 kB / 414.5 MB, free: 20.27 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006565/0.256, allocations: 0.776 MB / 415.3 MB, free: 19.41 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008457/0.2568, allocations: 0.6271 MB / 415.9 MB, free: 18.71 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003721/0.2572, allocations: 279.2 kB / 416.2 MB, free: 18.43 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0005427/0.2578, allocations: 0.6011 MB / 416.8 MB, free: 17.7 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.892e-05/0.2578, allocations: 38.56 kB / 416.8 MB, free: 17.65 MB / 298.7 MB Notification: Performance of pre-optimization done (n=52): time 2.184e-06/0.2578, allocations: 0 / 416.8 MB, free: 17.65 MB / 298.7 MB Notification: Performance of matching and sorting (n=52): time 0.001026/0.2588, allocations: 0.5319 MB / 417.3 MB, free: 17.11 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.603e-05/0.2589, allocations: 203.9 kB / 417.5 MB, free: 16.87 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002108/0.2591, allocations: 250.6 kB / 417.8 MB, free: 16.62 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 2.139e-05/0.2592, allocations: 37.7 kB / 417.8 MB, free: 16.58 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 7.077e-05/0.2592, allocations: 148.8 kB / 418 MB, free: 16.43 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.565e-05/0.2593, allocations: 51.53 kB / 418 MB, free: 16.38 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.004e-05/0.2594, allocations: 90.38 kB / 418.1 MB, free: 16.29 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 6.565e-05/0.2594, allocations: 346.8 kB / 418.4 MB, free: 15.94 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001557/0.2596, allocations: 89 kB / 418.5 MB, free: 15.85 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002566/0.2599, allocations: 431 kB / 418.9 MB, free: 15.26 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004629/0.2603, allocations: 0.5281 MB / 419.5 MB, free: 14.57 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.971e-06/0.2604, allocations: 3.938 kB / 419.5 MB, free: 14.56 MB / 298.7 MB Notification: Performance of matching and sorting (n=61) (initialization): time 0.000623/0.261, allocations: 0.4893 MB / 420 MB, free: 14.07 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.063e-05/0.261, allocations: 8 kB / 420 MB, free: 14.06 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.279e-05/0.261, allocations: 12 kB / 420 MB, free: 14.05 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.334e-05/0.2611, allocations: 16 kB / 420 MB, free: 14.03 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000275/0.2613, allocations: 119.8 kB / 420.1 MB, free: 13.91 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.786e-05/0.2614, allocations: 24.45 kB / 420.1 MB, free: 13.89 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002315/0.2616, allocations: 59.52 kB / 420.2 MB, free: 13.83 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.595e-05/0.2616, allocations: 32 kB / 420.2 MB, free: 13.8 MB / 298.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 53 * Number of states: 0 () * Number of discrete variables: 6 ($CLKPRE.sample1.noise.seedState[3],sample1.noise.seedState[3],$CLKPRE.sample1.noise.seedState[2],sample1.noise.seedState[2],$CLKPRE.sample1.noise.seedState[1],sample1.noise.seedState[1]) * Number of discrete states: 0 () * Number of clocked states: 4 (PI.x,sample1.noise.seedState[3],sample1.noise.seedState[2],sample1.noise.seedState[1]) * Top-level inputs: 0 Notification: Strong component statistics for initialization (61): * Single equations (assignments): 61 * 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.0001645/0.2618, allocations: 200.4 kB / 420.4 MB, free: 13.6 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005324/0.2624, allocations: 341.9 kB / 420.8 MB, free: 13.26 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005921/0.263, allocations: 364.6 kB / 421.1 MB, free: 12.89 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.994e-06/0.263, allocations: 4 kB / 421.1 MB, free: 12.89 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.272e-05/0.263, allocations: 0 / 421.1 MB, free: 12.89 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.265e-05/0.263, allocations: 7.984 kB / 421.1 MB, free: 12.88 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003481/0.2634, allocations: 337 kB / 421.5 MB, free: 12.5 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.532e-06/0.2634, allocations: 0 / 421.5 MB, free: 12.5 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003468/0.2638, allocations: 103.8 kB / 421.6 MB, free: 12.4 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.318e-06/0.2638, allocations: 8 kB / 421.6 MB, free: 12.39 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.649e-05/0.2638, allocations: 19.98 kB / 421.6 MB, free: 12.37 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.709e-06/0.2638, allocations: 4 kB / 421.6 MB, free: 12.37 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.556e-06/0.2638, allocations: 0 / 421.6 MB, free: 12.37 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.002082/0.2659, allocations: 1.374 MB / 423 MB, free: 10.92 MB / 298.7 MB Error: post-optimization module symbolicJacobian (simulation) failed.