Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr EHPTlib_main_EHPTlib.ElectricDrives.ASMArelated.ControlLogic.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) 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/EHPTlib 2.1.4-main/package.mo", uses=false) Using package EHPTlib with version 2.1.4 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/EHPTlib 2.1.4-main/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) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: translateModel(EHPTlib.ElectricDrives.ASMArelated.ControlLogic,tolerance=1e-06,outputFormat="empty",numberOfIntervals=10000,variableFilter="",fileNamePrefix="EHPTlib_main_EHPTlib.ElectricDrives.ASMArelated.ControlLogic") translateModel(EHPTlib.ElectricDrives.ASMArelated.ControlLogic,tolerance=1e-06,outputFormat="empty",numberOfIntervals=10000,variableFilter="",fileNamePrefix="EHPTlib_main_EHPTlib.ElectricDrives.ASMArelated.ControlLogic") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001387/0.001388, allocations: 101.4 kB / 16.24 MB, free: 6.383 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001598/0.001598, allocations: 192.3 kB / 17.17 MB, free: 5.977 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.299/1.299, allocations: 222.9 MB / 240.9 MB, free: 15.3 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/EHPTlib 2.1.4-main/package.mo): time 0.03811/0.03812, allocations: 8.022 MB / 299 MB, free: 6.93 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001734/0.001735, allocations: 59.91 kB / 361.2 MB, free: 8.707 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1826/0.1844, allocations: 51.19 MB / 412.4 MB, free: 26.22 MB / 302.1 MB Notification: Performance of NFInst.instantiate(EHPTlib.ElectricDrives.ASMArelated.ControlLogic): time 0.002288/0.1867, allocations: 1.831 MB / 414.2 MB, free: 24.38 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.0004599/0.1872, allocations: 275.4 kB / 414.5 MB, free: 24.11 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.507e-05/0.1873, allocations: 7.938 kB / 414.5 MB, free: 24.1 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 3.801e-05/0.1873, allocations: 15.8 kB / 414.5 MB, free: 24.08 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002045/0.1875, allocations: 35.72 kB / 414.5 MB, free: 24.05 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002127/0.1878, allocations: 110.7 kB / 414.7 MB, free: 23.94 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001577/0.1879, allocations: 203.4 kB / 414.9 MB, free: 23.74 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001263/0.1881, allocations: 53.83 kB / 414.9 MB, free: 23.69 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 5.995e-05/0.1881, allocations: 71.77 kB / 415 MB, free: 23.62 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001092/0.1882, allocations: 91.58 kB / 415.1 MB, free: 23.53 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 3.141e-05/0.1883, allocations: 20 kB / 415.1 MB, free: 23.51 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 2.453e-05/0.1883, allocations: 16 kB / 415.1 MB, free: 23.49 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 3.327e-05/0.1884, allocations: 47.77 kB / 415.2 MB, free: 23.45 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 5.021e-05/0.1884, allocations: 79.56 kB / 415.2 MB, free: 23.37 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000127/0.1885, allocations: 149.4 kB / 415.4 MB, free: 23.22 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.566e-06/0.1886, allocations: 4 kB / 415.4 MB, free: 23.22 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.092e-06/0.1886, allocations: 0 / 415.4 MB, free: 23.22 MB / 302.1 MB Notification: Performance of Transformations before backend: time 4.669e-06/0.1886, allocations: 0 / 415.4 MB, free: 23.22 MB / 302.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 26 * Number of variables: 26 Notification: Performance of Generate backend data structure: time 0.0007901/0.1894, allocations: 0.5143 MB / 415.9 MB, free: 22.66 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.161e-05/0.1894, allocations: 8.031 kB / 415.9 MB, free: 22.65 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.259e-05/0.1895, allocations: 24.66 kB / 415.9 MB, free: 22.62 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001958/0.1897, allocations: 224.1 kB / 416.1 MB, free: 22.37 MB / 302.1 MB Error: Internal error - BackendDAEOptimize.makeEquationToResidualExp failed to transform equation: tauToDW.tauIsMax = false to residual form! Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001408/0.1898, allocations: 79.89 kB / 416.2 MB, free: 22.28 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.234e-05/0.1898, allocations: 16.12 kB / 416.2 MB, free: 22.26 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003072/0.1902, allocations: 180.8 kB / 416.4 MB, free: 22.07 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.208e-06/0.1902, allocations: 0 / 416.4 MB, free: 22.07 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.881e-05/0.1902, allocations: 4 kB / 416.4 MB, free: 22.07 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.851e-06/0.1902, allocations: 11.98 kB / 416.4 MB, free: 22.05 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002992/0.1905, allocations: 135.9 kB / 416.6 MB, free: 21.92 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007072/0.1912, allocations: 0.4884 MB / 417 MB, free: 21.38 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000423/0.1917, allocations: 198.6 kB / 417.2 MB, free: 21.18 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001573/0.1918, allocations: 72.81 kB / 417.3 MB, free: 21.11 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.63e-05/0.1919, allocations: 7.938 kB / 417.3 MB, free: 21.1 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.652e-05/0.1919, allocations: 38.55 kB / 417.4 MB, free: 21.05 MB / 302.1 MB Notification: Performance of pre-optimization done (n=11): time 1.423e-06/0.1919, allocations: 3.938 kB / 417.4 MB, free: 21.05 MB / 302.1 MB Notification: Performance of matching and sorting (n=11): time 0.0005679/0.1925, allocations: 233.3 kB / 417.6 MB, free: 20.81 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.223e-05/0.1925, allocations: 102.8 kB / 417.7 MB, free: 20.69 MB / 302.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/EHPTlib 2.1.4-main/ElectricDrives/ASMArelated/ControlLogic.mo:16:3-16:76:writable] Warning: Parameter pp has no value, and is fixed during initialization (fixed=true), using available start value (start=2) as default value. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/EHPTlib 2.1.4-main/ElectricDrives/ASMArelated/ControlLogic.mo:12:3-13:32:writable] Warning: Parameter Lstray has no value, and is fixed during initialization (fixed=true), using available start value (start=0.2036 / weBase) as default value. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/EHPTlib 2.1.4-main/ElectricDrives/ASMArelated/ControlLogic.mo:8:3-9:38:writable] Warning: Parameter uBase has no value, and is fixed during initialization (fixed=true), using available start value (start=400.0) as default value. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/EHPTlib 2.1.4-main/ElectricDrives/ASMArelated/ControlLogic.mo:6:3-7:24:writable] Warning: Parameter Rs has no value, and is fixed during initialization (fixed=true), using available start value (start=0.03) as default value. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/EHPTlib 2.1.4-main/ElectricDrives/ASMArelated/ControlLogic.mo:4:3-5:23:writable] Warning: Parameter Rr has no value, and is fixed during initialization (fixed=true), using available start value (start=0.04) as default value. Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000156/0.1927, allocations: 194.2 kB / 417.9 MB, free: 20.49 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 1.587e-05/0.1927, allocations: 25.7 kB / 417.9 MB, free: 20.46 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.474e-05/0.1927, allocations: 124.1 kB / 418 MB, free: 20.33 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.158e-05/0.1928, allocations: 35.55 kB / 418.1 MB, free: 20.3 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.052e-05/0.1928, allocations: 33.7 kB / 418.1 MB, free: 20.26 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 4.11e-05/0.1929, allocations: 326.8 kB / 418.4 MB, free: 19.93 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001618/0.193, allocations: 72.75 kB / 418.5 MB, free: 19.86 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001587/0.1932, allocations: 82.86 kB / 418.6 MB, free: 19.77 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002842/0.1935, allocations: 124.8 kB / 418.7 MB, free: 19.64 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.084e-06/0.1935, allocations: 4.031 kB / 418.7 MB, free: 19.64 MB / 302.1 MB Notification: Performance of matching and sorting (n=11) (initialization): time 0.000352/0.1939, allocations: 185.3 kB / 418.9 MB, free: 19.45 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.125e-05/0.1939, allocations: 10.19 kB / 418.9 MB, free: 19.44 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.148e-06/0.1939, allocations: 3.984 kB / 418.9 MB, free: 19.44 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.218e-05/0.1939, allocations: 0 / 418.9 MB, free: 19.44 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001558/0.1941, allocations: 23.97 kB / 418.9 MB, free: 19.41 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.696e-06/0.1941, allocations: 4 kB / 418.9 MB, free: 19.41 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002062/0.1943, allocations: 35.88 kB / 418.9 MB, free: 19.38 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.696e-05/0.1943, allocations: 7.984 kB / 419 MB, free: 19.37 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0001193/0.1944, allocations: 124.1 kB / 419.1 MB, free: 19.24 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 9.293e-05/0.1945, allocations: 70.53 kB / 419.1 MB, free: 19.16 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.0001541/0.1947, allocations: 80.81 kB / 419.2 MB, free: 19.08 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 8.31e-07/0.1947, allocations: 4 kB / 419.2 MB, free: 19.08 MB / 302.1 MB Notification: Performance of matching and sorting (n=11) (initialization_lambda0): time 0.0002295/0.1949, allocations: 141.4 kB / 419.4 MB, free: 18.93 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.65e-06/0.195, allocations: 7.938 kB / 419.4 MB, free: 18.93 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.673e-06/0.195, allocations: 4 kB / 419.4 MB, free: 18.92 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.533e-06/0.195, allocations: 0 / 419.4 MB, free: 18.92 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.375e-05/0.1951, allocations: 11.98 kB / 419.4 MB, free: 18.91 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.623e-06/0.1951, allocations: 7.938 kB / 419.4 MB, free: 18.9 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001845/0.1953, allocations: 28.38 kB / 419.4 MB, free: 18.88 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.14e-05/0.1953, allocations: 8 kB / 419.4 MB, free: 18.87 MB / 302.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 3 (toMaxSpeed.y,toWeakening.y,tauToDW.tauIsMax) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (10): * Single equations (assignments): 9 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 1 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 5.935e-05/0.1954, allocations: 185.1 kB / 419.6 MB, free: 18.68 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.092e-05/0.1954, allocations: 19.75 kB / 419.6 MB, free: 18.66 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.674e-05/0.1954, allocations: 17.39 kB / 419.7 MB, free: 18.64 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.856e-06/0.1955, allocations: 3.938 kB / 419.7 MB, free: 18.64 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.31e-07/0.1955, allocations: 0 / 419.7 MB, free: 18.64 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 2.458e-05/0.1955, allocations: 85.02 kB / 419.7 MB, free: 18.54 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.686e-05/0.1955, allocations: 4 kB / 419.7 MB, free: 18.54 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000237/0.1958, allocations: 31.97 kB / 419.8 MB, free: 18.5 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.556e-05/0.1958, allocations: 15.97 kB / 419.8 MB, free: 18.49 MB / 302.1 MB [/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/Compiler/BackEnd/DAEMode.mo:528:7-530:90:writable] Error: Internal error DAEMode.traverserStrongComponents failed on equation: 1/1 (2): if Tstar > tauToDW.Tmax then tauToDW.tauIsMax = true tauToDW.Tmax = 3.0 * tauToDW.Rr * tauToDW.y * tauToDW.Kw ^ 2.0 / ((/*Real*/(tauToDW.pp) * tauToDW.y * tauToDW.Lstray) ^ 2.0 + tauToDW.Rr ^ 2.0) elseif Tstar < (-tauToDW.Tmax) then tauToDW.tauIsMax = true -tauToDW.Tmax = 3.0 * tauToDW.Rr * tauToDW.y * tauToDW.Kw ^ 2.0 / ((/*Real*/(tauToDW.pp) * tauToDW.y * tauToDW.Lstray) ^ 2.0 + tauToDW.Rr ^ 2.0) else tauToDW.tauIsMax = false Tstar = 3.0 * tauToDW.Rr * tauToDW.y * tauToDW.Kw ^ 2.0 / ((/*Real*/(tauToDW.pp) * tauToDW.y * tauToDW.Lstray) ^ 2.0 + tauToDW.Rr ^ 2.0) end if Variables: 1: tauToDW.tauIsMax:DISCRETE(flow=false ) type: Boolean 2: tauToDW.y:VARIABLE(flow=false ) type: Real [/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/Compiler/BackEnd/BackendDAEUtil.mo:9746:5-9747:77:writable] Error: Internal error BackendDAEUtil.traverseEqSystemStrongComponents failed with function: omc_DAEMode_traverserStrongComponents Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.0005737/0.1964, allocations: 158.1 kB / 419.9 MB, free: 18.33 MB / 302.1 MB Error: post-optimization module createDAEmodeBDAE (simulation) failed. Error: Internal error SimCode DAEmode: The model EHPTlib.ElectricDrives.ASMArelated.ControlLogic could not be translated