Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Clocked.Examples.CascadeControlledDrive.SubClocked.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.CascadeControlledDrive.SubClocked,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.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_4.0.0_Modelica.Clocked.Examples.CascadeControlledDrive.SubClocked") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001568/0.001569, allocations: 186.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.372/1.372, allocations: 222.9 MB / 240.9 MB, free: 10.99 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.001113/0.001113, allocations: 106.7 kB / 291.2 MB, free: 10.95 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0008371/0.0008372, allocations: 39.94 kB / 350 MB, free: 84 kB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2737/0.2746, allocations: 49.44 MB / 399.5 MB, free: 33.38 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.CascadeControlledDrive.SubClocked): time 0.003288/0.2779, allocations: 2.386 MB / 401.8 MB, free: 30.98 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.001354/0.2793, allocations: 0.7934 MB / 402.6 MB, free: 30.19 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001849/0.2795, allocations: 4 kB / 402.6 MB, free: 30.19 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0003351/0.2799, allocations: 43.7 kB / 402.7 MB, free: 30.14 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001881/0.2801, allocations: 39.75 kB / 402.7 MB, free: 30.11 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004621/0.2806, allocations: 165.9 kB / 402.9 MB, free: 29.95 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0003148/0.2809, allocations: 363.6 kB / 403.2 MB, free: 29.59 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001945/0.2811, allocations: 98.88 kB / 403.3 MB, free: 29.5 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000227/0.2813, allocations: 143.5 kB / 403.5 MB, free: 29.36 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002256/0.2816, allocations: 175.2 kB / 403.7 MB, free: 29.18 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 4.85e-05/0.2816, allocations: 24 kB / 403.7 MB, free: 29.16 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 4.506e-05/0.2817, allocations: 20 kB / 403.7 MB, free: 29.14 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001003/0.2818, allocations: 79.73 kB / 403.8 MB, free: 29.06 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001211/0.2819, allocations: 139.2 kB / 403.9 MB, free: 28.93 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002457/0.2822, allocations: 316.5 kB / 404.2 MB, free: 28.62 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.118e-06/0.2822, allocations: 3.938 kB / 404.2 MB, free: 28.61 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.113e-06/0.2822, allocations: 0 / 404.2 MB, free: 28.61 MB / 298.7 MB Notification: Performance of Transformations before backend: time 4.639e-06/0.2822, allocations: 4 kB / 404.2 MB, free: 28.61 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.00123/0.2834, allocations: 0.6201 MB / 404.8 MB, free: 27.94 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.896e-05/0.2835, allocations: 8.031 kB / 404.9 MB, free: 27.93 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.476e-05/0.2836, allocations: 40.56 kB / 404.9 MB, free: 27.89 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002946/0.2839, allocations: 272.3 kB / 405.2 MB, free: 27.59 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001645/0.284, allocations: 138.3 kB / 405.3 MB, free: 27.43 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.719e-05/0.2841, allocations: 32.38 kB / 405.3 MB, free: 27.4 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001024/0.2851, allocations: 0.5706 MB / 405.9 MB, free: 26.8 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.839e-05/0.2852, allocations: 0 / 405.9 MB, free: 26.8 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.224e-05/0.2852, allocations: 12 kB / 405.9 MB, free: 26.79 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.001e-05/0.2852, allocations: 8 kB / 405.9 MB, free: 26.79 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001324/0.2865, allocations: 0.5151 MB / 406.4 MB, free: 26.27 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001314/0.2879, allocations: 1.01 MB / 407.4 MB, free: 25.18 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001447/0.2893, allocations: 0.5024 MB / 407.9 MB, free: 24.64 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005528/0.2899, allocations: 263.3 kB / 408.2 MB, free: 24.38 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.415e-05/0.29, allocations: 8 kB / 408.2 MB, free: 24.37 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.44e-05/0.29, allocations: 38.56 kB / 408.2 MB, free: 24.32 MB / 298.7 MB Notification: Performance of pre-optimization done (n=44): time 3.226e-06/0.29, allocations: 0 / 408.2 MB, free: 24.32 MB / 298.7 MB Notification: Performance of matching and sorting (n=72): time 0.03673/0.3267, allocations: 5.704 MB / 413.9 MB, free: 18.61 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.66e-05/0.3269, allocations: 149 kB / 414.1 MB, free: 18.43 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000188/0.3271, allocations: 200.1 kB / 414.3 MB, free: 18.22 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 5.792e-05/0.3271, allocations: 41.7 kB / 414.3 MB, free: 18.17 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 7.244e-05/0.3272, allocations: 141.6 kB / 414.5 MB, free: 18.03 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001548/0.3274, allocations: 197.2 kB / 414.7 MB, free: 17.84 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002694/0.3276, allocations: 110.7 kB / 414.8 MB, free: 17.72 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 7.228e-05/0.3277, allocations: 342.8 kB / 415.1 MB, free: 17.38 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001426/0.3292, allocations: 0.6191 MB / 415.7 MB, free: 16.76 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001527/0.3307, allocations: 0.7934 MB / 416.5 MB, free: 15.89 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002776/0.3335, allocations: 1.247 MB / 417.8 MB, free: 14.57 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.504e-06/0.3335, allocations: 4 kB / 417.8 MB, free: 14.56 MB / 298.7 MB Notification: Performance of matching and sorting (n=83) (initialization): time 0.003398/0.3369, allocations: 1.401 MB / 419.2 MB, free: 13.15 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.176e-05/0.337, allocations: 4 kB / 419.2 MB, free: 13.15 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.667e-05/0.337, allocations: 11.98 kB / 419.2 MB, free: 13.14 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.544e-05/0.337, allocations: 8 kB / 419.2 MB, free: 13.13 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001295/0.3383, allocations: 211.7 kB / 419.4 MB, free: 12.92 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.861e-05/0.3384, allocations: 12 kB / 419.4 MB, free: 12.91 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009787/0.3394, allocations: 99.73 kB / 419.5 MB, free: 12.81 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.718e-05/0.3394, allocations: 27.98 kB / 419.5 MB, free: 12.79 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.000329/0.3398, allocations: 189.5 kB / 419.7 MB, free: 12.59 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002975/0.3401, allocations: 161.2 kB / 419.9 MB, free: 12.43 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000196/0.3403, allocations: 55.31 kB / 419.9 MB, free: 12.37 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.047e-06/0.3403, allocations: 8 kB / 419.9 MB, free: 12.36 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.156e-05/0.3403, allocations: 4 kB / 419.9 MB, free: 12.36 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.488e-06/0.3403, allocations: 3.984 kB / 419.9 MB, free: 12.36 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004201/0.3446, allocations: 2.172 MB / 422.1 MB, free: 10 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.192e-05/0.3446, allocations: 12 kB / 422.1 MB, free: 9.988 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000722/0.3453, allocations: 191.7 kB / 422.3 MB, free: 9.801 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.498e-05/0.3453, allocations: 12.23 kB / 422.3 MB, free: 9.789 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.7e-05/0.3454, allocations: 24 kB / 422.4 MB, free: 9.766 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.387e-05/0.3454, allocations: 19.94 kB / 422.4 MB, free: 9.746 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.358e-06/0.3454, allocations: 15.94 kB / 422.4 MB, free: 9.73 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.005679/0.3511, allocations: 2.397 MB / 424.8 MB, free: 7.152 MB / 298.7 MB Error: post-optimization module symbolicJacobian (simulation) failed.