Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscretizedContinuousController.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.ClockedWithDiscretizedContinuousController,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.ClockedWithDiscretizedContinuousController") translateModel(Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscretizedContinuousController,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.ClockedWithDiscretizedContinuousController") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001188/0.001188, 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.463/1.463, 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.001209/0.001209, allocations: 111.5 kB / 291.2 MB, free: 10.95 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.000828/0.0008284, allocations: 35.94 kB / 350 MB, free: 100 kB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2619/0.2627, allocations: 49.44 MB / 399.5 MB, free: 33.38 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscretizedContinuousController): time 0.002915/0.2657, allocations: 2.107 MB / 401.6 MB, free: 31.27 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.0006376/0.2664, allocations: 0.4885 MB / 402.1 MB, free: 30.78 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001074/0.2665, allocations: 4 kB / 402.1 MB, free: 30.78 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.000111/0.2666, allocations: 11.86 kB / 402.1 MB, free: 30.77 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 5.856e-05/0.2667, allocations: 27.84 kB / 402.1 MB, free: 30.74 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.000251/0.2669, allocations: 47.91 kB / 402.1 MB, free: 30.69 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001481/0.2671, allocations: 123.6 kB / 402.3 MB, free: 30.57 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001374/0.2672, allocations: 53.33 kB / 402.3 MB, free: 30.52 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 6.164e-05/0.2673, allocations: 47.73 kB / 402.4 MB, free: 30.47 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 6.878e-05/0.2674, allocations: 55.7 kB / 402.4 MB, free: 30.41 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 2.401e-05/0.2674, allocations: 4 kB / 402.4 MB, free: 30.41 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 1.914e-05/0.2674, allocations: 8 kB / 402.4 MB, free: 30.4 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 2.593e-05/0.2675, allocations: 27.91 kB / 402.5 MB, free: 30.38 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 5.224e-05/0.2675, allocations: 59.67 kB / 402.5 MB, free: 30.32 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001367/0.2677, allocations: 117.1 kB / 402.6 MB, free: 30.2 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.216e-06/0.2677, allocations: 4 kB / 402.6 MB, free: 30.2 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.082e-06/0.2677, allocations: 0 / 402.6 MB, free: 30.2 MB / 298.7 MB Notification: Performance of Transformations before backend: time 3.567e-06/0.2677, allocations: 0 / 402.6 MB, free: 30.2 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: 29 * Number of variables: 29 Notification: Performance of Generate backend data structure: time 0.0005144/0.2682, allocations: 439 kB / 403.1 MB, free: 29.72 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.711e-05/0.2683, allocations: 8.031 kB / 403.1 MB, free: 29.71 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.02e-05/0.2683, allocations: 16.75 kB / 403.1 MB, free: 29.7 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001698/0.2685, allocations: 212 kB / 403.3 MB, free: 29.45 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.045e-05/0.2685, allocations: 12.38 kB / 403.3 MB, free: 29.44 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.243e-05/0.2685, allocations: 12.38 kB / 403.3 MB, free: 29.43 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003968/0.2689, allocations: 230.9 kB / 403.5 MB, free: 29.18 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.537e-05/0.269, allocations: 3.906 kB / 403.6 MB, free: 29.18 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.403e-05/0.269, allocations: 4 kB / 403.6 MB, free: 29.17 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.372e-06/0.269, allocations: 4 kB / 403.6 MB, free: 29.17 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002425/0.2692, allocations: 83.88 kB / 403.6 MB, free: 29.09 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005155/0.2698, allocations: 0.5999 MB / 404.2 MB, free: 28.41 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00028/0.2701, allocations: 143.9 kB / 404.4 MB, free: 28.25 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001274/0.2702, allocations: 78.62 kB / 404.5 MB, free: 28.16 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.399e-05/0.2702, allocations: 7.984 kB / 404.5 MB, free: 28.15 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.606e-05/0.2703, allocations: 38.5 kB / 404.5 MB, free: 28.11 MB / 298.7 MB Notification: Performance of pre-optimization done (n=14): time 1.924e-06/0.2703, allocations: 0 / 404.5 MB, free: 28.11 MB / 298.7 MB Notification: Performance of matching and sorting (n=14): time 0.0004388/0.2707, allocations: 185.3 kB / 404.7 MB, free: 27.92 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.355e-05/0.2708, allocations: 106.8 kB / 404.8 MB, free: 27.79 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.076e-05/0.2708, allocations: 149.3 kB / 404.9 MB, free: 27.64 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 9.248e-06/0.2709, allocations: 29.7 kB / 405 MB, free: 27.6 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 4.181e-05/0.2709, allocations: 112 kB / 405.1 MB, free: 27.49 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.804e-05/0.2709, allocations: 27.64 kB / 405.1 MB, free: 27.46 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.583e-05/0.271, allocations: 37.84 kB / 405.1 MB, free: 27.42 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 7.181e-05/0.2711, allocations: 322.8 kB / 405.5 MB, free: 27.09 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001011/0.2712, allocations: 39.97 kB / 405.5 MB, free: 27.05 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001207/0.2713, allocations: 138 kB / 405.6 MB, free: 26.87 MB / 298.7 MB Warning: It was not possible to determine if the initialization problem is consistent, because of not evaluable parameters/start values during compile time: PI.y = PI.y_start (0.0 = PI.y_start) Notification: Performance of analyzeInitialSystem (initialization): time 0.0004021/0.2717, allocations: 274.7 kB / 405.9 MB, free: 26.54 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.356e-06/0.2717, allocations: 4 kB / 405.9 MB, free: 26.53 MB / 298.7 MB Notification: Performance of matching and sorting (n=21) (initialization): time 0.0003017/0.272, allocations: 197.1 kB / 406.1 MB, free: 26.33 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.547e-05/0.272, allocations: 7.938 kB / 406.1 MB, free: 26.32 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.815e-06/0.2721, allocations: 4 kB / 406.1 MB, free: 26.32 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.74e-05/0.2721, allocations: 4.469 kB / 406.1 MB, free: 26.32 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001356/0.2722, allocations: 55.91 kB / 406.2 MB, free: 26.26 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.348e-06/0.2722, allocations: 4 kB / 406.2 MB, free: 26.26 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.273e-05/0.2723, allocations: 19.83 kB / 406.2 MB, free: 26.24 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.186e-05/0.2724, allocations: 16 kB / 406.2 MB, free: 26.22 MB / 298.7 MB Warning: The initial conditions are over specified. The following 1 initial equations are redundant, so they are removed from the initialization system: PI.y = PI.y_start. 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 8.833e-05/0.2725, allocations: 137.6 kB / 406.3 MB, free: 26.08 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000129/0.2726, allocations: 89.44 kB / 406.4 MB, free: 25.98 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.008e-05/0.2726, allocations: 20.7 kB / 406.4 MB, free: 25.96 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.747e-06/0.2726, allocations: 8 kB / 406.5 MB, free: 25.95 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.189e-06/0.2727, allocations: 0 / 406.5 MB, free: 25.95 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.928e-06/0.2727, allocations: 0 / 406.5 MB, free: 25.95 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001961/0.2729, allocations: 213.5 kB / 406.7 MB, free: 25.7 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.703e-06/0.2729, allocations: 0 / 406.7 MB, free: 25.7 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002116/0.2731, allocations: 43.95 kB / 406.7 MB, free: 25.65 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.635e-06/0.2731, allocations: 0 / 406.7 MB, free: 25.65 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.466e-05/0.2731, allocations: 8 kB / 406.7 MB, free: 25.64 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.974e-06/0.2731, allocations: 0 / 406.7 MB, free: 25.64 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.844e-06/0.2731, allocations: 0 / 406.7 MB, free: 25.64 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 = (if firstTick() then 0.0 else $DER.PI.x) * interval() + previous(PI.x)" 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.000774/0.2739, allocations: 0.6042 MB / 407.3 MB, free: 24.99 MB / 298.7 MB Error: post-optimization module symbolicJacobian (simulation) failed.