Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Clocked.Examples.CascadeControlledDrive.SuperSampled.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.SuperSampled,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.SuperSampled") translateModel(Modelica.Clocked.Examples.CascadeControlledDrive.SuperSampled,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.SuperSampled") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001288/0.001288, 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.469/1.469, allocations: 222.9 MB / 240.9 MB, free: 10.96 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.001067/0.001066, allocations: 103.8 kB / 291.2 MB, free: 10.93 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.001273/0.001273, allocations: 47.94 kB / 350 MB, free: 60 kB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2984/0.2997, allocations: 49.44 MB / 399.5 MB, free: 33.34 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.CascadeControlledDrive.SuperSampled): time 0.002954/0.3027, allocations: 2.358 MB / 401.8 MB, free: 30.98 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.001098/0.3039, allocations: 0.7552 MB / 402.6 MB, free: 30.22 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001412/0.304, allocations: 7.938 kB / 402.6 MB, free: 30.21 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.000277/0.3043, allocations: 35.77 kB / 402.6 MB, free: 30.18 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001578/0.3045, allocations: 51.69 kB / 402.7 MB, free: 30.12 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003876/0.3049, allocations: 147.7 kB / 402.8 MB, free: 29.98 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0002737/0.3052, allocations: 351.7 kB / 403.2 MB, free: 29.64 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001619/0.3053, allocations: 87.12 kB / 403.2 MB, free: 29.55 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001598/0.3055, allocations: 151.4 kB / 403.4 MB, free: 29.41 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001752/0.3057, allocations: 167.2 kB / 403.6 MB, free: 29.24 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 4.121e-05/0.3057, allocations: 20 kB / 403.6 MB, free: 29.22 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 4.17e-05/0.3058, allocations: 20 kB / 403.6 MB, free: 29.2 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 8.224e-05/0.3059, allocations: 87.77 kB / 403.7 MB, free: 29.12 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001078/0.306, allocations: 135.2 kB / 403.8 MB, free: 28.98 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002201/0.3062, allocations: 308.5 kB / 404.1 MB, free: 28.68 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.558e-06/0.3062, allocations: 0 / 404.1 MB, free: 28.68 MB / 298.7 MB Notification: Performance of FrontEnd: time 9.41e-07/0.3062, allocations: 0 / 404.1 MB, free: 28.68 MB / 298.7 MB Notification: Performance of Transformations before backend: time 4.709e-06/0.3062, allocations: 0 / 404.1 MB, free: 28.68 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: 70 * Number of variables: 70 Notification: Performance of Generate backend data structure: time 0.001022/0.3073, allocations: 0.6045 MB / 404.7 MB, free: 28.03 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.331e-05/0.3073, allocations: 8.031 kB / 404.7 MB, free: 28.02 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.352e-05/0.3074, allocations: 44.56 kB / 404.8 MB, free: 27.98 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003182/0.3077, allocations: 261.6 kB / 405 MB, free: 27.68 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001622/0.3079, allocations: 146.2 kB / 405.2 MB, free: 27.52 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.707e-05/0.3079, allocations: 24.38 kB / 405.2 MB, free: 27.5 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009853/0.3089, allocations: 0.5582 MB / 405.8 MB, free: 26.92 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.768e-05/0.309, allocations: 3.906 kB / 405.8 MB, free: 26.91 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.136e-05/0.309, allocations: 12 kB / 405.8 MB, free: 26.9 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.067e-06/0.309, allocations: 8 kB / 405.8 MB, free: 26.89 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001267/0.3103, allocations: 0.5191 MB / 406.3 MB, free: 26.38 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001188/0.3115, allocations: 1.002 MB / 407.3 MB, free: 25.3 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001452/0.3129, allocations: 0.5024 MB / 407.8 MB, free: 24.76 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005463/0.3135, allocations: 263.4 kB / 408.1 MB, free: 24.49 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.379e-05/0.3136, allocations: 8.141 kB / 408.1 MB, free: 24.48 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.722e-05/0.3136, allocations: 42.5 kB / 408.1 MB, free: 24.43 MB / 298.7 MB Notification: Performance of pre-optimization done (n=44): time 2.014e-06/0.3136, allocations: 0 / 408.1 MB, free: 24.43 MB / 298.7 MB Notification: Performance of matching and sorting (n=72): time 0.03563/0.3492, allocations: 5.7 MB / 413.8 MB, free: 18.71 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.527e-05/0.3493, allocations: 153 kB / 414 MB, free: 18.54 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001614/0.3495, allocations: 195.1 kB / 414.1 MB, free: 18.34 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 5.734e-05/0.3496, allocations: 37.7 kB / 414.2 MB, free: 18.29 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 5.8e-05/0.3496, allocations: 141.5 kB / 414.3 MB, free: 18.15 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001352/0.3498, allocations: 189.3 kB / 414.5 MB, free: 17.96 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002623/0.35, allocations: 110.7 kB / 414.6 MB, free: 17.85 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 5.732e-05/0.3501, allocations: 346.8 kB / 415 MB, free: 17.5 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001418/0.3515, allocations: 0.6149 MB / 415.6 MB, free: 16.89 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001427/0.353, allocations: 0.804 MB / 416.4 MB, free: 16.01 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002648/0.3556, allocations: 1.244 MB / 417.6 MB, free: 14.69 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.147e-06/0.3556, allocations: 0 / 417.6 MB, free: 14.69 MB / 298.7 MB Notification: Performance of matching and sorting (n=83) (initialization): time 0.003075/0.3587, allocations: 1.405 MB / 419 MB, free: 13.27 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.149e-05/0.3588, allocations: 8.375 kB / 419 MB, free: 13.27 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.175e-05/0.3588, allocations: 8 kB / 419 MB, free: 13.26 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.184e-05/0.3588, allocations: 8 kB / 419 MB, free: 13.25 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001258/0.3601, allocations: 215.7 kB / 419.3 MB, free: 13.04 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.567e-05/0.3601, allocations: 11.94 kB / 419.3 MB, free: 13.03 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009026/0.361, allocations: 99.73 kB / 419.4 MB, free: 12.93 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.465e-05/0.3611, allocations: 35.98 kB / 419.4 MB, free: 12.89 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.0002518/0.3613, allocations: 181.5 kB / 419.6 MB, free: 12.71 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002564/0.3616, allocations: 149.2 kB / 419.7 MB, free: 12.55 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001816/0.3618, allocations: 67.3 kB / 419.8 MB, free: 12.49 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.442e-06/0.3618, allocations: 8 kB / 419.8 MB, free: 12.48 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.096e-06/0.3618, allocations: 0 / 419.8 MB, free: 12.48 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.043e-06/0.3618, allocations: 3.984 kB / 419.8 MB, free: 12.48 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00401/0.3659, allocations: 2.172 MB / 422 MB, free: 10.12 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.947e-06/0.3659, allocations: 12.09 kB / 422 MB, free: 10.11 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006898/0.3666, allocations: 183.6 kB / 422.2 MB, free: 9.93 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.319e-05/0.3666, allocations: 20 kB / 422.2 MB, free: 9.91 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.448e-05/0.3667, allocations: 23.98 kB / 422.2 MB, free: 9.887 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.124e-05/0.3667, allocations: 19.94 kB / 422.2 MB, free: 9.867 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.665e-06/0.3667, allocations: 20.16 kB / 422.2 MB, free: 9.848 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.005364/0.3721, allocations: 2.389 MB / 424.6 MB, free: 7.273 MB / 298.7 MB Error: post-optimization module symbolicJacobian (simulation) failed.