Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController.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.ExactlyClockedWithDiscreteController,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.ExactlyClockedWithDiscreteController") translateModel(Modelica.Clocked.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController,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.ExactlyClockedWithDiscreteController") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001699/0.001699, 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.572/1.572, allocations: 222.9 MB / 240.9 MB, free: 10.97 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.001054/0.001054, allocations: 113.3 kB / 291.2 MB, free: 10.92 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0008865/0.0008868, allocations: 43.94 kB / 350 MB, free: 64 kB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2484/0.2493, allocations: 49.44 MB / 399.5 MB, free: 33.34 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController): time 0.00316/0.2526, allocations: 2.076 MB / 401.5 MB, free: 31.27 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.0008589/0.2535, allocations: 0.5571 MB / 402.1 MB, free: 30.7 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001342/0.2536, allocations: 6.625 kB / 402.1 MB, free: 30.7 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001249/0.2538, allocations: 11.86 kB / 402.1 MB, free: 30.69 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001633/0.2539, allocations: 23.84 kB / 402.1 MB, free: 30.66 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002742/0.2542, allocations: 55.89 kB / 402.2 MB, free: 30.61 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001472/0.2544, allocations: 127.6 kB / 402.3 MB, free: 30.48 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001442/0.2545, allocations: 57.38 kB / 402.4 MB, free: 30.43 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 7.296e-05/0.2546, allocations: 51.73 kB / 402.4 MB, free: 30.38 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 7.96e-05/0.2547, allocations: 55.69 kB / 402.5 MB, free: 30.32 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 2.495e-05/0.2547, allocations: 8 kB / 402.5 MB, free: 30.32 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 2.172e-05/0.2548, allocations: 8 kB / 402.5 MB, free: 30.31 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 6.679e-05/0.2548, allocations: 35.91 kB / 402.5 MB, free: 30.27 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 6.336e-05/0.2549, allocations: 59.61 kB / 402.6 MB, free: 30.21 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001516/0.2551, allocations: 137 kB / 402.7 MB, free: 30.08 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.398e-06/0.2551, allocations: 0 / 402.7 MB, free: 30.08 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.773e-06/0.2551, allocations: 0 / 402.7 MB, free: 30.08 MB / 298.7 MB Notification: Performance of Transformations before backend: time 5.61e-06/0.2551, allocations: 0 / 402.7 MB, free: 30.08 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: 32 * Number of variables: 32 Notification: Performance of Generate backend data structure: time 0.0006937/0.2558, allocations: 458.8 kB / 403.2 MB, free: 29.59 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.535e-05/0.2558, allocations: 8.031 kB / 403.2 MB, free: 29.58 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.165e-05/0.2559, allocations: 24.75 kB / 403.2 MB, free: 29.55 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000216/0.2561, allocations: 224.5 kB / 403.4 MB, free: 29.3 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.865e-05/0.2561, allocations: 12.36 kB / 403.4 MB, free: 29.29 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.649e-05/0.2562, allocations: 12.38 kB / 403.4 MB, free: 29.27 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004864/0.2567, allocations: 260.6 kB / 403.7 MB, free: 29 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.702e-05/0.2567, allocations: 0 / 403.7 MB, free: 29 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.73e-05/0.2568, allocations: 4 kB / 403.7 MB, free: 28.99 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.736e-06/0.2568, allocations: 4 kB / 403.7 MB, free: 28.99 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002444/0.257, allocations: 87.88 kB / 403.8 MB, free: 28.9 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005773/0.2576, allocations: 0.5921 MB / 404.4 MB, free: 28.24 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000313/0.2579, allocations: 147.7 kB / 404.5 MB, free: 28.07 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001418/0.2581, allocations: 78.75 kB / 404.6 MB, free: 27.98 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.284e-05/0.2581, allocations: 8 kB / 404.6 MB, free: 27.97 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.623e-05/0.2581, allocations: 34.56 kB / 404.7 MB, free: 27.93 MB / 298.7 MB Notification: Performance of pre-optimization done (n=15): time 2.004e-06/0.2582, allocations: 0 / 404.7 MB, free: 27.93 MB / 298.7 MB Notification: Performance of matching and sorting (n=15): time 0.0004942/0.2587, allocations: 189.4 kB / 404.8 MB, free: 27.74 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.485e-05/0.2587, allocations: 110.8 kB / 404.9 MB, free: 27.61 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001269/0.2589, allocations: 154.9 kB / 405.1 MB, free: 27.45 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 1.397e-05/0.2589, allocations: 37.83 kB / 405.1 MB, free: 27.4 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 6.002e-05/0.259, allocations: 116.3 kB / 405.2 MB, free: 27.29 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.448e-05/0.259, allocations: 23.73 kB / 405.3 MB, free: 27.26 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.073e-05/0.259, allocations: 37.62 kB / 405.3 MB, free: 27.22 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 8.342e-05/0.2591, allocations: 326.8 kB / 405.6 MB, free: 26.89 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001011/0.2592, allocations: 35.91 kB / 405.7 MB, free: 26.86 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001493/0.2594, allocations: 137.7 kB / 405.8 MB, free: 26.67 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002778/0.2597, allocations: 189.5 kB / 406 MB, free: 26.44 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.655e-06/0.2597, allocations: 3.938 kB / 406 MB, free: 26.43 MB / 298.7 MB Notification: Performance of matching and sorting (n=21) (initialization): time 0.0003093/0.26, allocations: 193.2 kB / 406.2 MB, free: 26.24 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.173e-05/0.26, allocations: 11.98 kB / 406.2 MB, free: 26.23 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.596e-06/0.2601, allocations: 8.844 kB / 406.2 MB, free: 26.22 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.843e-05/0.2601, allocations: 8 kB / 406.2 MB, free: 26.21 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001372/0.2602, allocations: 43.92 kB / 406.2 MB, free: 26.17 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.241e-05/0.2602, allocations: 11.98 kB / 406.3 MB, free: 26.16 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.897e-05/0.2603, allocations: 19.78 kB / 406.3 MB, free: 26.14 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.443e-05/0.2604, allocations: 12 kB / 406.3 MB, free: 26.12 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.813e-05/0.2605, allocations: 138.2 kB / 406.4 MB, free: 25.98 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000128/0.2606, allocations: 93.44 kB / 406.5 MB, free: 25.88 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002014/0.2608, allocations: 20.72 kB / 406.5 MB, free: 25.86 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.999e-06/0.2608, allocations: 4 kB / 406.5 MB, free: 25.86 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.971e-06/0.2608, allocations: 0 / 406.5 MB, free: 25.86 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.591e-06/0.2609, allocations: 3.984 kB / 406.5 MB, free: 25.85 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002539/0.2611, allocations: 221.4 kB / 406.8 MB, free: 25.59 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.693e-06/0.2611, allocations: 0 / 406.8 MB, free: 25.59 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001691/0.2613, allocations: 43.91 kB / 406.8 MB, free: 25.54 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.625e-06/0.2613, allocations: 0 / 406.8 MB, free: 25.54 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.389e-05/0.2613, allocations: 0 / 406.8 MB, free: 25.54 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.813e-06/0.2613, allocations: 4 kB / 406.8 MB, free: 25.54 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.042e-06/0.2613, allocations: 4 kB / 406.8 MB, free: 25.54 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.0008247/0.2622, allocations: 0.5967 MB / 407.4 MB, free: 24.89 MB / 298.7 MB Error: post-optimization module symbolicJacobian (simulation) failed.