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: "" <> buildModelFMU(EHPTlib.ElectricDrives.ASMArelated.ControlLogic,fileNamePrefix="EHPTlib_main_EHPTlib_ElectricDrives_ASMArelated_ControlLogic",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(EHPTlib.ElectricDrives.ASMArelated.ControlLogic,fileNamePrefix="EHPTlib_main_EHPTlib_ElectricDrives_ASMArelated_ControlLogic",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009456/0.0009456, allocations: 108 kB / 15.59 MB, free: 184 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0009362/0.0009364, allocations: 196.4 kB / 16.51 MB, free: 6.719 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.3/1.3, allocations: 222.9 MB / 240.2 MB, free: 4.398 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/EHPTlib 2.1.4-main/package.mo): time 0.1247/0.1247, allocations: 8.027 MB / 298.4 MB, free: 2.383 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001048/0.001048, allocations: 63.91 kB / 360.7 MB, free: 14.21 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09277/0.09384, allocations: 51.19 MB / 411.9 MB, free: 10.98 MB / 350.1 MB Notification: Performance of NFInst.instantiate(EHPTlib.ElectricDrives.ASMArelated.ControlLogic): time 0.002791/0.09667, allocations: 1.823 MB / 413.7 MB, free: 9.137 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.0005262/0.09721, allocations: 275.3 kB / 413.9 MB, free: 8.867 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.152e-05/0.0973, allocations: 8 kB / 414 MB, free: 8.859 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 4.09e-05/0.09735, allocations: 19.73 kB / 414 MB, free: 8.84 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002075/0.09757, allocations: 31.72 kB / 414 MB, free: 8.809 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002326/0.09781, allocations: 123.2 kB / 414.1 MB, free: 8.691 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002366/0.09806, allocations: 191.3 kB / 414.3 MB, free: 8.504 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001379/0.0982, allocations: 49.84 kB / 414.4 MB, free: 8.457 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 8.257e-05/0.09829, allocations: 83.69 kB / 414.4 MB, free: 8.375 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001212/0.09842, allocations: 91.53 kB / 414.5 MB, free: 8.285 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 3.55e-05/0.09846, allocations: 16 kB / 414.5 MB, free: 8.27 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 3.048e-05/0.0985, allocations: 20 kB / 414.6 MB, free: 8.25 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 4.937e-05/0.09855, allocations: 55.75 kB / 414.6 MB, free: 8.195 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 7.62e-05/0.09863, allocations: 75.58 kB / 414.7 MB, free: 8.121 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001589/0.0988, allocations: 155.7 kB / 414.8 MB, free: 7.969 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.709e-06/0.09881, allocations: 0 / 414.8 MB, free: 7.969 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.172e-06/0.09881, allocations: 0 / 414.8 MB, free: 7.969 MB / 350.1 MB Notification: Performance of Transformations before backend: time 5.219e-06/0.09882, allocations: 0 / 414.8 MB, free: 7.969 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.0009085/0.09974, allocations: 0.5065 MB / 415.4 MB, free: 7.414 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.335e-05/0.09978, allocations: 8.031 kB / 415.4 MB, free: 7.406 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.722e-05/0.09985, allocations: 54.91 kB / 415.4 MB, free: 7.344 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.612e-05/0.0999, allocations: 16.75 kB / 415.4 MB, free: 7.328 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002642/0.1002, allocations: 231.9 kB / 415.7 MB, free: 7.062 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.0001492/0.1003, allocations: 76.19 kB / 415.7 MB, free: 6.977 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.773e-05/0.1004, allocations: 19.88 kB / 415.8 MB, free: 6.957 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003501/0.1007, allocations: 187 kB / 415.9 MB, free: 6.762 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.546e-06/0.1007, allocations: 0 / 415.9 MB, free: 6.762 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.847e-05/0.1008, allocations: 4 kB / 415.9 MB, free: 6.758 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.935e-06/0.1008, allocations: 8 kB / 415.9 MB, free: 6.75 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000323/0.1011, allocations: 140.6 kB / 416.1 MB, free: 6.613 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008213/0.1019, allocations: 0.4924 MB / 416.6 MB, free: 6.07 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004598/0.1024, allocations: 206.5 kB / 416.8 MB, free: 5.859 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001668/0.1026, allocations: 68.81 kB / 416.8 MB, free: 5.789 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.132e-05/0.1026, allocations: 4 kB / 416.9 MB, free: 5.785 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.144e-05/0.1026, allocations: 46.44 kB / 416.9 MB, free: 5.73 MB / 350.1 MB Notification: Performance of pre-optimization done (n=11): time 1.142e-06/0.1026, allocations: 0 / 416.9 MB, free: 5.73 MB / 350.1 MB Notification: Performance of matching and sorting (n=11): time 0.0005965/0.1032, allocations: 237.3 kB / 417.1 MB, free: 5.492 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.707e-05/0.1033, allocations: 106.8 kB / 417.2 MB, free: 5.363 MB / 350.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.0001792/0.1035, allocations: 180.3 kB / 417.4 MB, free: 5.18 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 3.01e-05/0.1035, allocations: 29.7 kB / 417.4 MB, free: 5.145 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.461e-05/0.1036, allocations: 135.7 kB / 417.6 MB, free: 5.008 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.757e-05/0.1036, allocations: 31.56 kB / 417.6 MB, free: 4.977 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.013e-05/0.1037, allocations: 33.69 kB / 417.6 MB, free: 4.938 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001044/0.1038, allocations: 326.8 kB / 418 MB, free: 4.609 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001796/0.104, allocations: 72.75 kB / 418 MB, free: 4.535 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000182/0.1042, allocations: 86.61 kB / 418.1 MB, free: 4.441 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002902/0.1045, allocations: 132.8 kB / 418.2 MB, free: 4.309 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.026e-06/0.1045, allocations: 7.875 kB / 418.2 MB, free: 4.301 MB / 350.1 MB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0003739/0.1049, allocations: 181.3 kB / 418.4 MB, free: 4.117 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.143e-05/0.1049, allocations: 4 kB / 418.4 MB, free: 4.113 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.717e-06/0.1049, allocations: 0 / 418.4 MB, free: 4.113 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.306e-05/0.1049, allocations: 0 / 418.4 MB, free: 4.113 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001614/0.1051, allocations: 35.97 kB / 418.5 MB, free: 4.078 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.009e-06/0.1051, allocations: 0 / 418.5 MB, free: 4.078 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002004/0.1053, allocations: 27.97 kB / 418.5 MB, free: 4.051 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.793e-05/0.1053, allocations: 4 kB / 418.5 MB, free: 4.047 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0001422/0.1055, allocations: 128.1 kB / 418.6 MB, free: 3.918 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 9.694e-05/0.1056, allocations: 58.55 kB / 418.7 MB, free: 3.852 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.0001721/0.1058, allocations: 97.28 kB / 418.8 MB, free: 3.754 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 9.22e-07/0.1058, allocations: 0 / 418.8 MB, free: 3.754 MB / 350.1 MB Notification: Performance of matching and sorting (n=11) (initialization_lambda0): time 0.0002376/0.106, allocations: 145.3 kB / 418.9 MB, free: 3.605 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.651e-06/0.106, allocations: 4 kB / 418.9 MB, free: 3.602 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.102e-06/0.106, allocations: 0 / 418.9 MB, free: 3.602 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.472e-06/0.106, allocations: 0 / 418.9 MB, free: 3.602 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.364e-05/0.1061, allocations: 23.92 kB / 418.9 MB, free: 3.578 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.382e-06/0.1061, allocations: 0 / 418.9 MB, free: 3.578 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001717/0.1063, allocations: 19.92 kB / 419 MB, free: 3.559 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.151e-05/0.1063, allocations: 11.98 kB / 419 MB, free: 3.547 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.154e-05/0.1064, allocations: 192.2 kB / 419.2 MB, free: 3.352 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.855e-05/0.1065, allocations: 15.81 kB / 419.2 MB, free: 3.336 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.091e-05/0.1065, allocations: 13.41 kB / 419.2 MB, free: 3.312 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.623e-06/0.1065, allocations: 0 / 419.2 MB, free: 3.312 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.997e-06/0.1066, allocations: 0 / 419.2 MB, free: 3.312 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.489e-06/0.1066, allocations: 3.984 kB / 419.2 MB, free: 3.309 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000235/0.1068, allocations: 245.5 kB / 419.4 MB, free: 3.02 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.82e-07/0.1068, allocations: 0 / 419.4 MB, free: 3.02 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001321/0.107, allocations: 27.97 kB / 419.5 MB, free: 2.992 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.523e-06/0.107, allocations: 0 / 419.5 MB, free: 2.992 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.623e-05/0.107, allocations: 4 kB / 419.5 MB, free: 2.988 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.458e-06/0.107, allocations: 3.984 kB / 419.5 MB, free: 2.984 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.91e-07/0.107, allocations: 7.875 kB / 419.5 MB, free: 2.977 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004065/0.1074, allocations: 279.2 kB / 419.7 MB, free: 2.688 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.317e-05/0.1075, allocations: 88.92 kB / 419.8 MB, free: 2.582 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.496e-05/0.1075, allocations: 0 / 419.8 MB, free: 2.582 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002217/0.1077, allocations: 28.34 kB / 419.9 MB, free: 2.555 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.715e-05/0.1078, allocations: 15.97 kB / 419.9 MB, free: 2.539 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.29e-05/0.1078, allocations: 4 kB / 419.9 MB, free: 2.535 MB / 350.1 MB Notification: Performance of sorting global known variables: time 9.034e-05/0.1079, allocations: 140.2 kB / 420 MB, free: 2.398 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.1079, allocations: 7.938 kB / 420 MB, free: 2.391 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003223/0.1082, allocations: 59.78 kB / 420.1 MB, free: 2.332 MB / 350.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 3 (tauToDW.tauIsMax,toWeakening.y,toMaxSpeed.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (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 Backend phase and start with SimCode phase: time 0.0008665/0.1091, allocations: 0.9117 MB / 421 MB, free: 1.395 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.1574/0.2665, allocations: 2.576 MB / 423.6 MB, free: 43.45 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 3.808e-06/0.2665, allocations: 1.406 kB / 423.6 MB, free: 43.45 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001436/0.268, allocations: 1.272 MB / 424.8 MB, free: 42.43 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003551/0.2683, allocations: 33.25 kB / 424.9 MB, free: 42.43 MB / 350.1 MB [/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/Compiler/BackEnd/SymbolicJacobian.mo:1962:3-1962:101:writable] Error: Internal error function createFMIModelDerivativesForInitialization failed Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001615/0.27, allocations: 1.297 MB / 426.2 MB, free: 41.83 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001508/0.2701, allocations: 0.7673 MB / 426.9 MB, free: 41.13 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 7.651e-05/0.2702, allocations: 15.92 kB / 427 MB, free: 41.13 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.755e-05/0.2703, allocations: 91.38 kB / 427 MB, free: 41.12 MB / 350.1 MB Notification: Performance of SimCode: time 6.31e-07/0.2703, allocations: 0 / 427 MB, free: 41.12 MB / 350.1 MB [CodegenUtil.tpl:216:14-216:14:writable] Error: Template error: initial value of unknown type: 0.2036 / weBase.