Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr EHPTlib_latest_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_latest_EHPTlib.ElectricDrives.ASMArelated.ControlLogic") translateModel(EHPTlib.ElectricDrives.ASMArelated.ControlLogic,tolerance=1e-06,outputFormat="empty",numberOfIntervals=10000,variableFilter="",fileNamePrefix="EHPTlib_latest_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.001107/0.001107, allocations: 112.7 kB / 16.42 MB, free: 6.512 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.001116/0.001116, allocations: 190.7 kB / 17.35 MB, free: 5.738 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.318/1.318, allocations: 222.9 MB / 241.1 MB, free: 15.14 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/EHPTlib 2.1.4-main/package.mo): time 0.03952/0.03952, allocations: 8.045 MB / 299.3 MB, free: 6.805 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001237/0.001237, allocations: 63.89 kB / 413.7 MB, free: 22.3 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08019/0.08144, allocations: 51.2 MB / 464.9 MB, free: 3.066 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.00276/0.08423, allocations: 1.831 MB / 466.8 MB, free: 1.23 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.0005424/0.08478, allocations: 287.2 kB / 467.1 MB, free: 0.9492 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.93e-05/0.08487, allocations: 4 kB / 467.1 MB, free: 0.9453 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 3.972e-05/0.08492, allocations: 19.8 kB / 467.1 MB, free: 0.9258 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002397/0.08517, allocations: 35.72 kB / 467.1 MB, free: 0.8906 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002567/0.08543, allocations: 130.6 kB / 467.2 MB, free: 0.7656 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002031/0.08564, allocations: 183.3 kB / 467.4 MB, free: 0.5859 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001496/0.0858, allocations: 57.83 kB / 467.5 MB, free: 0.5312 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 8.376e-05/0.08589, allocations: 79.64 kB / 467.6 MB, free: 464 kB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001358/0.08603, allocations: 99.56 kB / 467.7 MB, free: 364 kB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 3.731e-05/0.08608, allocations: 16 kB / 467.7 MB, free: 348 kB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 3.195e-05/0.08611, allocations: 16 kB / 467.7 MB, free: 332 kB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 5.357e-05/0.08617, allocations: 43.84 kB / 467.7 MB, free: 288 kB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 7.186e-05/0.08625, allocations: 79.52 kB / 467.8 MB, free: 208 kB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001791/0.08643, allocations: 163.3 kB / 468 MB, free: 44 kB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.317e-06/0.08644, allocations: 0 / 468 MB, free: 44 kB / 334.1 MB Notification: Performance of FrontEnd: time 8.02e-07/0.08645, allocations: 0 / 468 MB, free: 44 kB / 334.1 MB Notification: Performance of Transformations before backend: time 4.539e-06/0.08646, allocations: 0 / 468 MB, free: 44 kB / 334.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.000973/0.08744, allocations: 0.5104 MB / 468.5 MB, free: 15.48 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.532e-05/0.08748, allocations: 8.031 kB / 468.5 MB, free: 15.48 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.246e-05/0.08755, allocations: 24.75 kB / 468.5 MB, free: 15.45 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002932/0.08785, allocations: 235.9 kB / 468.7 MB, free: 15.18 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.0001352/0.08799, allocations: 79.94 kB / 468.8 MB, free: 15.09 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.574e-05/0.08803, allocations: 15.94 kB / 468.8 MB, free: 15.08 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003825/0.08841, allocations: 185 kB / 469 MB, free: 14.88 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.072e-05/0.08844, allocations: 3.938 kB / 469 MB, free: 14.88 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.179e-05/0.08846, allocations: 4 kB / 469 MB, free: 14.88 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.107e-06/0.08847, allocations: 4 kB / 469 MB, free: 14.87 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003603/0.08884, allocations: 139.9 kB / 469.2 MB, free: 14.73 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008681/0.08972, allocations: 0.4922 MB / 469.6 MB, free: 14.19 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005206/0.09025, allocations: 190.6 kB / 469.8 MB, free: 14 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001887/0.09045, allocations: 76.75 kB / 469.9 MB, free: 13.92 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.307e-05/0.09048, allocations: 4 kB / 469.9 MB, free: 13.91 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.332e-05/0.09051, allocations: 34.56 kB / 469.9 MB, free: 13.87 MB / 350.1 MB Notification: Performance of pre-optimization done (n=11): time 1.482e-06/0.09052, allocations: 0 / 469.9 MB, free: 13.87 MB / 350.1 MB Notification: Performance of matching and sorting (n=11): time 0.000674/0.09119, allocations: 237.4 kB / 470.2 MB, free: 13.63 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.67e-05/0.09126, allocations: 102.8 kB / 470.3 MB, free: 13.51 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001555/0.09142, allocations: 174.3 kB / 470.5 MB, free: 13.32 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 3.511e-05/0.09146, allocations: 33.7 kB / 470.5 MB, free: 13.29 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.145e-05/0.09154, allocations: 124.2 kB / 470.6 MB, free: 13.16 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.963e-05/0.09158, allocations: 31.47 kB / 470.6 MB, free: 13.12 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.945e-05/0.09165, allocations: 37.69 kB / 470.7 MB, free: 13.08 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001136/0.09177, allocations: 326.8 kB / 471 MB, free: 12.75 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000185/0.09196, allocations: 60.91 kB / 471.1 MB, free: 12.69 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002027/0.09218, allocations: 98.39 kB / 471.1 MB, free: 12.59 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003382/0.09252, allocations: 132.8 kB / 471.3 MB, free: 12.45 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.824e-06/0.09253, allocations: 0 / 471.3 MB, free: 12.45 MB / 350.1 MB Notification: Performance of matching and sorting (n=11) (initialization): time 0.000428/0.09297, allocations: 177.9 kB / 471.5 MB, free: 12.27 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.236e-05/0.09299, allocations: 4 kB / 471.5 MB, free: 12.27 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.47e-06/0.093, allocations: 8 kB / 471.5 MB, free: 12.26 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.119e-05/0.09302, allocations: 0 / 471.5 MB, free: 12.26 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001712/0.09319, allocations: 23.97 kB / 471.5 MB, free: 12.24 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.448e-06/0.09321, allocations: 3.984 kB / 471.5 MB, free: 12.23 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002199/0.09344, allocations: 35.81 kB / 471.5 MB, free: 12.2 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.779e-05/0.09346, allocations: 4 kB / 471.5 MB, free: 12.2 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.000159/0.09363, allocations: 132 kB / 471.7 MB, free: 12.06 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0001113/0.09375, allocations: 66.48 kB / 471.7 MB, free: 11.99 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.0001836/0.09394, allocations: 88.77 kB / 471.8 MB, free: 11.9 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 9.42e-07/0.09395, allocations: 0 / 471.8 MB, free: 11.9 MB / 350.1 MB Notification: Performance of matching and sorting (n=11) (initialization_lambda0): time 0.0002577/0.09421, allocations: 137.5 kB / 471.9 MB, free: 11.76 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 7.835e-06/0.09423, allocations: 7.938 kB / 472 MB, free: 11.75 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.313e-06/0.09424, allocations: 0 / 472 MB, free: 11.75 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.046e-06/0.09425, allocations: 4 kB / 472 MB, free: 11.75 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.448e-05/0.09435, allocations: 16.02 kB / 472 MB, free: 11.73 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.126e-06/0.09436, allocations: 4 kB / 472 MB, free: 11.73 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000193/0.09456, allocations: 23.89 kB / 472 MB, free: 11.7 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.366e-05/0.09458, allocations: 7.984 kB / 472 MB, free: 11.7 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 0.0001088/0.09469, allocations: 188.3 kB / 472.2 MB, free: 11.5 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.597e-05/0.09474, allocations: 15.84 kB / 472.2 MB, free: 11.49 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.416e-05/0.09479, allocations: 9.406 kB / 472.2 MB, free: 11.46 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.719e-06/0.0948, allocations: 8 kB / 472.2 MB, free: 11.46 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.956e-06/0.09481, allocations: 4 kB / 472.2 MB, free: 11.45 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.649e-05/0.09487, allocations: 96.84 kB / 472.3 MB, free: 11.34 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.465e-05/0.09491, allocations: 4 kB / 472.3 MB, free: 11.34 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002457/0.09516, allocations: 23.97 kB / 472.3 MB, free: 11.31 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.428e-05/0.09523, allocations: 23.84 kB / 472.4 MB, free: 11.29 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.0006263/0.09586, allocations: 170.1 kB / 472.5 MB, free: 11.11 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