Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr EHPTlib_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_EHPTlib.ElectricDrives.ASMArelated.ControlLogic") translateModel(EHPTlib.ElectricDrives.ASMArelated.ControlLogic,tolerance=1e-06,outputFormat="empty",numberOfIntervals=10000,variableFilter="",fileNamePrefix="EHPTlib_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.001078/0.001079, allocations: 116.2 kB / 16.42 MB, free: 6.5 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.001022/0.001022, allocations: 183.9 kB / 17.34 MB, free: 5.758 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.301/1.301, allocations: 222.9 MB / 241.1 MB, free: 15.2 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/EHPTlib 2.1.4-main/package.mo): time 0.04055/0.04055, allocations: 8.359 MB / 299.6 MB, free: 6.496 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001189/0.001189, allocations: 55.91 kB / 414.2 MB, free: 21.86 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07253/0.07373, allocations: 51.25 MB / 465.5 MB, free: 2.566 MB / 334.1 MB [/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. [/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:8:3-9:38:writable] Warning: Parameter uBase has no value, and is fixed during initialization (fixed=true), using available start value (start=400) 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: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. Notification: Performance of NFInst.instantiate(EHPTlib.ElectricDrives.ASMArelated.ControlLogic): time 0.00264/0.0764, allocations: 1.85 MB / 467.3 MB, free: 0.707 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.0005294/0.07694, allocations: 283.3 kB / 467.6 MB, free: 440 kB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.583e-05/0.07703, allocations: 4 kB / 467.6 MB, free: 436 kB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 4.299e-05/0.07708, allocations: 19.73 kB / 467.6 MB, free: 416 kB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002284/0.07731, allocations: 31.72 kB / 467.7 MB, free: 384 kB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002477/0.07757, allocations: 127.8 kB / 467.8 MB, free: 256 kB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002066/0.07779, allocations: 191.3 kB / 468 MB, free: 64 kB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001356/0.07793, allocations: 53.84 kB / 468 MB, free: 12 kB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 9.176e-05/0.07803, allocations: 79.77 kB / 468.1 MB, free: 15.93 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001366/0.07817, allocations: 95.58 kB / 468.2 MB, free: 15.84 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 3.184e-05/0.07821, allocations: 16 kB / 468.2 MB, free: 15.82 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 2.813e-05/0.07825, allocations: 16 kB / 468.2 MB, free: 15.8 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 4.383e-05/0.0783, allocations: 35.89 kB / 468.3 MB, free: 15.77 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 7.571e-05/0.07838, allocations: 87.44 kB / 468.3 MB, free: 15.68 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001879/0.07857, allocations: 159.3 kB / 468.5 MB, free: 15.53 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.206e-06/0.07858, allocations: 0 / 468.5 MB, free: 15.53 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.314e-06/0.07859, allocations: 4 kB / 468.5 MB, free: 15.52 MB / 350.1 MB Notification: Performance of Transformations before backend: time 4.509e-06/0.0786, allocations: 3.938 kB / 468.5 MB, free: 15.52 MB / 350.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.0009191/0.07952, allocations: 0.5181 MB / 469 MB, free: 14.95 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.306e-05/0.07956, allocations: 8.031 kB / 469 MB, free: 14.95 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.597e-05/0.07963, allocations: 20.84 kB / 469.1 MB, free: 14.93 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002523/0.07988, allocations: 240 kB / 469.3 MB, free: 14.65 MB / 350.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.0001307/0.08002, allocations: 71.95 kB / 469.4 MB, free: 14.57 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.755e-05/0.08006, allocations: 15.94 kB / 469.4 MB, free: 14.55 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003731/0.08044, allocations: 185 kB / 469.6 MB, free: 14.36 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.225e-06/0.08046, allocations: 0 / 469.6 MB, free: 14.36 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.06e-05/0.08048, allocations: 4 kB / 469.6 MB, free: 14.36 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.771e-06/0.0805, allocations: 4 kB / 469.6 MB, free: 14.35 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003738/0.08087, allocations: 143.9 kB / 469.7 MB, free: 14.21 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008433/0.08173, allocations: 492.2 kB / 470.2 MB, free: 13.68 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005298/0.08227, allocations: 198.6 kB / 470.4 MB, free: 13.48 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001927/0.08247, allocations: 76.75 kB / 470.5 MB, free: 13.4 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.51e-05/0.08251, allocations: 11.94 kB / 470.5 MB, free: 13.39 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.692e-05/0.08254, allocations: 34.5 kB / 470.5 MB, free: 13.34 MB / 350.1 MB Notification: Performance of pre-optimization done (n=11): time 1.563e-06/0.08255, allocations: 0 / 470.5 MB, free: 13.34 MB / 350.1 MB Notification: Performance of matching and sorting (n=11): time 0.0006746/0.08323, allocations: 233.8 kB / 470.7 MB, free: 13.11 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.958e-05/0.08329, allocations: 106.8 kB / 470.8 MB, free: 12.98 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001564/0.08345, allocations: 175.6 kB / 471 MB, free: 12.8 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.283e-05/0.08348, allocations: 29.7 kB / 471 MB, free: 12.76 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.067e-05/0.08356, allocations: 124.2 kB / 471.2 MB, free: 12.63 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.052e-05/0.08359, allocations: 39.69 kB / 471.2 MB, free: 12.59 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.838e-05/0.08367, allocations: 33.69 kB / 471.2 MB, free: 12.55 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 9.761e-05/0.08377, allocations: 322.8 kB / 471.5 MB, free: 12.23 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001997/0.08398, allocations: 72.75 kB / 471.6 MB, free: 12.16 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002049/0.08419, allocations: 90.45 kB / 471.7 MB, free: 12.06 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003576/0.08456, allocations: 132.8 kB / 471.8 MB, free: 11.93 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.793e-06/0.08457, allocations: 0 / 471.8 MB, free: 11.93 MB / 350.1 MB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0004415/0.08501, allocations: 185.4 kB / 472 MB, free: 11.74 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.187e-05/0.08503, allocations: 4 kB / 472 MB, free: 11.73 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.637e-06/0.08504, allocations: 0 / 472 MB, free: 11.73 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.197e-05/0.08506, allocations: 4 kB / 472 MB, free: 11.73 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001763/0.08524, allocations: 27.98 kB / 472 MB, free: 11.7 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.412e-06/0.08526, allocations: 7.984 kB / 472.1 MB, free: 11.7 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002187/0.08548, allocations: 31.89 kB / 472.1 MB, free: 11.66 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.894e-05/0.08551, allocations: 4 kB / 472.1 MB, free: 11.66 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0001496/0.08567, allocations: 128.1 kB / 472.2 MB, free: 11.53 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0001194/0.0858, allocations: 62.55 kB / 472.3 MB, free: 11.46 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.0001904/0.08599, allocations: 96.73 kB / 472.4 MB, free: 11.36 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 1.082e-06/0.086, allocations: 0 / 472.4 MB, free: 11.36 MB / 350.1 MB Notification: Performance of matching and sorting (n=11) (initialization_lambda0): time 0.0002712/0.08628, allocations: 133.6 kB / 472.5 MB, free: 11.23 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 9.228e-06/0.0863, allocations: 7.938 kB / 472.5 MB, free: 11.22 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.283e-06/0.0863, allocations: 0 / 472.5 MB, free: 11.22 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 4.298e-06/0.08631, allocations: 4 kB / 472.5 MB, free: 11.21 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.594e-05/0.08641, allocations: 15.92 kB / 472.5 MB, free: 11.2 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.286e-06/0.08643, allocations: 4 kB / 472.5 MB, free: 11.2 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001894/0.08662, allocations: 23.97 kB / 472.6 MB, free: 11.17 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.317e-05/0.08664, allocations: 8 kB / 472.6 MB, free: 11.16 MB / 350.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 9.5e-05/0.08675, allocations: 184.7 kB / 472.7 MB, free: 10.98 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.738e-05/0.0868, allocations: 19.84 kB / 472.8 MB, free: 10.96 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.678e-05/0.08685, allocations: 17.39 kB / 472.8 MB, free: 10.93 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.476e-06/0.08686, allocations: 0 / 472.8 MB, free: 10.93 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.243e-06/0.08687, allocations: 4 kB / 472.8 MB, free: 10.92 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.538e-05/0.08692, allocations: 96.88 kB / 472.9 MB, free: 10.81 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.284e-05/0.08696, allocations: 8 kB / 472.9 MB, free: 10.8 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002561/0.08722, allocations: 27.97 kB / 472.9 MB, free: 10.77 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.003e-05/0.08729, allocations: 11.98 kB / 472.9 MB, free: 10.76 MB / 350.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:9805:5-9806:77:writable] Error: Internal error BackendDAEUtil.traverseEqSystemStrongComponents failed with function: omc_DAEMode_traverserStrongComponents Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.0006309/0.08793, allocations: 169.1 kB / 473.1 MB, free: 10.59 MB / 350.1 MB Error: post-optimization module createDAEmodeBDAE (simulation) failed. Error: Internal error SimCode DAEmode: The model EHPTlib.ElectricDrives.ASMArelated.ControlLogic could not be translated