Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/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_4.0.0_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_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001271/0.001271, allocations: 188.9 kB / 17.27 MB, free: 4.504 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.584/1.584, allocations: 222.9 MB / 240.9 MB, free: 11 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001037/0.001036, allocations: 100.9 kB / 291.2 MB, free: 10.96 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.001188/0.001188, allocations: 35.94 kB / 350 MB, free: 92 kB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.323/0.3242, allocations: 49.44 MB / 399.5 MB, free: 33.38 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController): time 0.003046/0.3273, allocations: 2.059 MB / 401.5 MB, free: 31.31 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.00083/0.3281, allocations: 489.4 kB / 402 MB, free: 30.83 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000143/0.3283, allocations: 7.5 kB / 402 MB, free: 30.83 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001664/0.3285, allocations: 15.86 kB / 402 MB, free: 30.81 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 6.826e-05/0.3286, allocations: 19.84 kB / 402 MB, free: 30.79 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003677/0.3289, allocations: 49.34 kB / 402.1 MB, free: 30.75 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001763/0.3291, allocations: 115.6 kB / 402.2 MB, free: 30.63 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001714/0.3293, allocations: 50.42 kB / 402.3 MB, free: 30.59 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 8.515e-05/0.3294, allocations: 43.8 kB / 402.3 MB, free: 30.54 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 9.854e-05/0.3295, allocations: 63.69 kB / 402.4 MB, free: 30.48 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 2.99e-05/0.3295, allocations: 8 kB / 402.4 MB, free: 30.47 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 2.226e-05/0.3296, allocations: 4 kB / 402.4 MB, free: 30.47 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 3.508e-05/0.3296, allocations: 19.92 kB / 402.4 MB, free: 30.45 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 6.779e-05/0.3297, allocations: 59.67 kB / 402.4 MB, free: 30.39 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001828/0.3299, allocations: 113.1 kB / 402.6 MB, free: 30.28 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 6.592e-06/0.3299, allocations: 4 kB / 402.6 MB, free: 30.28 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.452e-06/0.3299, allocations: 0 / 402.6 MB, free: 30.28 MB / 298.7 MB Notification: Performance of Transformations before backend: time 9.177e-06/0.3299, allocations: 0 / 402.6 MB, free: 30.28 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.0006183/0.3305, allocations: 424.6 kB / 403 MB, free: 29.82 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.404e-05/0.3306, allocations: 12.03 kB / 403 MB, free: 29.8 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.829e-05/0.3306, allocations: 12.75 kB / 403 MB, free: 29.79 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001649/0.3308, allocations: 212.1 kB / 403.2 MB, free: 29.55 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.474e-05/0.3308, allocations: 12.38 kB / 403.2 MB, free: 29.54 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.886e-05/0.3308, allocations: 12.38 kB / 403.2 MB, free: 29.52 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004578/0.3313, allocations: 247.6 kB / 403.5 MB, free: 29.26 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.53e-05/0.3313, allocations: 0 / 403.5 MB, free: 29.26 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.363e-05/0.3314, allocations: 4 kB / 403.5 MB, free: 29.25 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.742e-06/0.3314, allocations: 4 kB / 403.5 MB, free: 29.25 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002176/0.3316, allocations: 87.86 kB / 403.6 MB, free: 29.16 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005691/0.3322, allocations: 0.5959 MB / 404.2 MB, free: 28.5 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002527/0.3324, allocations: 143.9 kB / 404.3 MB, free: 28.33 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001433/0.3326, allocations: 74.64 kB / 404.4 MB, free: 28.25 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.428e-05/0.3326, allocations: 3.984 kB / 404.4 MB, free: 28.24 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.292e-05/0.3327, allocations: 38.5 kB / 404.4 MB, free: 28.2 MB / 298.7 MB Notification: Performance of pre-optimization done (n=14): time 1.794e-06/0.3327, allocations: 0 / 404.4 MB, free: 28.2 MB / 298.7 MB Notification: Performance of matching and sorting (n=14): time 0.0005391/0.3332, allocations: 185.3 kB / 404.6 MB, free: 28.01 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.636e-05/0.3333, allocations: 110.8 kB / 404.7 MB, free: 27.88 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001011/0.3334, allocations: 137.6 kB / 404.8 MB, free: 27.73 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 1.498e-05/0.3334, allocations: 29.7 kB / 404.9 MB, free: 27.7 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 6.782e-05/0.3335, allocations: 112 kB / 405 MB, free: 27.58 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.577e-05/0.3336, allocations: 27.64 kB / 405 MB, free: 27.55 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.028e-05/0.3336, allocations: 29.72 kB / 405 MB, free: 27.52 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 0.0001013/0.3337, allocations: 327 kB / 405.4 MB, free: 27.19 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001098/0.3338, allocations: 35.97 kB / 405.4 MB, free: 27.16 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001481/0.334, allocations: 132.8 kB / 405.5 MB, free: 26.98 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002828/0.3343, allocations: 176.7 kB / 405.7 MB, free: 26.76 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.447e-06/0.3343, allocations: 0 / 405.7 MB, free: 26.76 MB / 298.7 MB Notification: Performance of matching and sorting (n=20) (initialization): time 0.0003572/0.3347, allocations: 185.5 kB / 405.9 MB, free: 26.57 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.423e-05/0.3347, allocations: 8 kB / 405.9 MB, free: 26.57 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.196e-05/0.3347, allocations: 4 kB / 405.9 MB, free: 26.56 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.658e-05/0.3347, allocations: 11.88 kB / 405.9 MB, free: 26.55 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001765/0.3349, allocations: 47.91 kB / 405.9 MB, free: 26.5 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.175e-05/0.335, allocations: 4 kB / 405.9 MB, free: 26.5 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001151/0.3351, allocations: 23.83 kB / 406 MB, free: 26.48 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.417e-05/0.3351, allocations: 12 kB / 406 MB, free: 26.46 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 9.417e-05/0.3352, allocations: 125.9 kB / 406.1 MB, free: 26.33 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001281/0.3353, allocations: 85.53 kB / 406.2 MB, free: 26.24 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.288e-05/0.3354, allocations: 20.89 kB / 406.2 MB, free: 26.22 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.397e-06/0.3354, allocations: 3.984 kB / 406.2 MB, free: 26.21 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.444e-06/0.3354, allocations: 4 kB / 406.2 MB, free: 26.21 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.889e-06/0.3354, allocations: 3.984 kB / 406.2 MB, free: 26.21 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002396/0.3357, allocations: 205.5 kB / 406.4 MB, free: 25.96 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.403e-06/0.3357, allocations: 480 / 406.4 MB, free: 25.96 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001589/0.3358, allocations: 35.92 kB / 406.5 MB, free: 25.92 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.004e-06/0.3359, allocations: 4 kB / 406.5 MB, free: 25.92 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.573e-05/0.3359, allocations: 7.938 kB / 406.5 MB, free: 25.91 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.563e-06/0.3359, allocations: 4 kB / 406.5 MB, free: 25.91 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.313e-06/0.3359, allocations: 3.938 kB / 406.5 MB, free: 25.9 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.001009/0.3369, allocations: 0.5769 MB / 407.1 MB, free: 25.28 MB / 298.7 MB Error: post-optimization module symbolicJacobian (simulation) failed.