Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteController.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.ClockedWithDiscreteController,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.ClockedWithDiscreteController") translateModel(Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteController,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.ClockedWithDiscreteController") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.00171/0.00171, allocations: 182.5 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.521/1.521, allocations: 222.9 MB / 240.9 MB, free: 10.98 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.001018/0.001018, allocations: 106.6 kB / 291.2 MB, free: 10.94 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0008066/0.000807, allocations: 39.94 kB / 350 MB, free: 80 kB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2776/0.2785, allocations: 49.45 MB / 399.5 MB, free: 33.35 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteController): time 0.003886/0.2824, allocations: 2.045 MB / 401.5 MB, free: 31.3 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.0009142/0.2834, allocations: 0.5111 MB / 402 MB, free: 30.79 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001284/0.2835, allocations: 7.938 kB / 402 MB, free: 30.78 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.000136/0.2837, allocations: 7.922 kB / 402 MB, free: 30.77 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001514/0.2838, allocations: 27.78 kB / 402.1 MB, free: 30.75 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002797/0.2841, allocations: 47.89 kB / 402.1 MB, free: 30.7 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001859/0.2843, allocations: 119.6 kB / 402.2 MB, free: 30.58 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001626/0.2845, allocations: 56.94 kB / 402.3 MB, free: 30.53 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 7.774e-05/0.2846, allocations: 47.73 kB / 402.3 MB, free: 30.48 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 8.845e-05/0.2847, allocations: 51.77 kB / 402.4 MB, free: 30.43 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 2.692e-05/0.2847, allocations: 8 kB / 402.4 MB, free: 30.42 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 2.618e-05/0.2847, allocations: 11.94 kB / 402.4 MB, free: 30.41 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 3.194e-05/0.2848, allocations: 19.92 kB / 402.4 MB, free: 30.39 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 7.152e-05/0.2849, allocations: 59.66 kB / 402.5 MB, free: 30.33 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001738/0.2851, allocations: 125.1 kB / 402.6 MB, free: 30.21 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.527e-06/0.2851, allocations: 0 / 402.6 MB, free: 30.21 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.372e-06/0.2851, allocations: 0 / 402.6 MB, free: 30.21 MB / 298.7 MB Notification: Performance of Transformations before backend: time 4.518e-06/0.2851, allocations: 0 / 402.6 MB, free: 30.21 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: 31 * Number of variables: 31 Notification: Performance of Generate backend data structure: time 0.0006822/0.2858, allocations: 423.1 kB / 403 MB, free: 29.75 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.386e-05/0.2858, allocations: 12.03 kB / 403 MB, free: 29.74 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.141e-05/0.2859, allocations: 16.75 kB / 403 MB, free: 29.72 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001948/0.2861, allocations: 208.1 kB / 403.3 MB, free: 29.48 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.315e-05/0.2861, allocations: 16.36 kB / 403.3 MB, free: 29.46 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.044e-05/0.2862, allocations: 12.38 kB / 403.3 MB, free: 29.45 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000578/0.2868, allocations: 256.2 kB / 403.5 MB, free: 29.18 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.984e-05/0.2868, allocations: 0 / 403.5 MB, free: 29.18 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.033e-05/0.2868, allocations: 4 kB / 403.5 MB, free: 29.18 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.507e-05/0.2868, allocations: 4 kB / 403.5 MB, free: 29.17 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000331/0.2872, allocations: 87.88 kB / 403.6 MB, free: 29.09 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000643/0.2878, allocations: 0.5921 MB / 404.2 MB, free: 28.42 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003969/0.2882, allocations: 147.9 kB / 404.4 MB, free: 28.25 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001928/0.2885, allocations: 82.62 kB / 404.4 MB, free: 28.16 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.337e-05/0.2885, allocations: 0 / 404.4 MB, free: 28.16 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.084e-05/0.2885, allocations: 42.5 kB / 404.5 MB, free: 28.11 MB / 298.7 MB Notification: Performance of pre-optimization done (n=15): time 1.292e-06/0.2885, allocations: 3.938 kB / 404.5 MB, free: 28.11 MB / 298.7 MB Notification: Performance of matching and sorting (n=15): time 0.0006428/0.2892, allocations: 189.3 kB / 404.7 MB, free: 27.91 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.729e-05/0.2893, allocations: 114.8 kB / 404.8 MB, free: 27.78 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001068/0.2894, allocations: 134 kB / 404.9 MB, free: 27.64 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 1.342e-05/0.2894, allocations: 29.7 kB / 404.9 MB, free: 27.6 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 5.147e-05/0.2895, allocations: 108.4 kB / 405 MB, free: 27.49 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.834e-05/0.2895, allocations: 31.75 kB / 405.1 MB, free: 27.46 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.982e-05/0.2896, allocations: 37.72 kB / 405.1 MB, free: 27.42 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 5.503e-05/0.2896, allocations: 322.8 kB / 405.4 MB, free: 27.09 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001455/0.2898, allocations: 39.91 kB / 405.5 MB, free: 27.05 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001791/0.29, allocations: 133.7 kB / 405.6 MB, free: 26.88 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003226/0.2903, allocations: 189.5 kB / 405.8 MB, free: 26.64 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.795e-06/0.2903, allocations: 0 / 405.8 MB, free: 26.64 MB / 298.7 MB Notification: Performance of matching and sorting (n=21) (initialization): time 0.0004577/0.2908, allocations: 201.1 kB / 406 MB, free: 26.44 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.949e-05/0.2908, allocations: 11.98 kB / 406 MB, free: 26.43 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.855e-06/0.2908, allocations: 0 / 406 MB, free: 26.43 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.871e-05/0.2909, allocations: 8 kB / 406 MB, free: 26.42 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001991/0.2911, allocations: 40.39 kB / 406 MB, free: 26.38 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.349e-05/0.2911, allocations: 19.92 kB / 406.1 MB, free: 26.36 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001502/0.2913, allocations: 19.84 kB / 406.1 MB, free: 26.34 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.63e-05/0.2913, allocations: 8 kB / 406.1 MB, free: 26.33 MB / 298.7 MB 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 9.308e-05/0.2914, allocations: 134.2 kB / 406.2 MB, free: 26.19 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001888/0.2916, allocations: 81.81 kB / 406.3 MB, free: 26.11 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001312/0.2917, allocations: 20.72 kB / 406.3 MB, free: 26.08 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.921e-06/0.2917, allocations: 11.92 kB / 406.3 MB, free: 26.07 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.64e-06/0.2918, allocations: 0 / 406.3 MB, free: 26.07 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.799e-06/0.2918, allocations: 4 kB / 406.3 MB, free: 26.07 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003182/0.2921, allocations: 205.5 kB / 406.5 MB, free: 25.82 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.324e-06/0.2921, allocations: 0 / 406.5 MB, free: 25.82 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002296/0.2923, allocations: 35.97 kB / 406.6 MB, free: 25.78 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.429e-06/0.2924, allocations: 4 kB / 406.6 MB, free: 25.78 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.804e-05/0.2924, allocations: 4 kB / 406.6 MB, free: 25.77 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.318e-06/0.2924, allocations: 8 kB / 406.6 MB, free: 25.77 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.382e-06/0.2924, allocations: 0 / 406.6 MB, free: 25.77 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.001089/0.2935, allocations: 0.5894 MB / 407.2 MB, free: 25.12 MB / 298.7 MB Error: post-optimization module symbolicJacobian (simulation) failed.