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: "" <> buildModelFMU(EHPTlib.ElectricDrives.ASMArelated.ControlLogic,fileNamePrefix="EHPTlib_latest_EHPTlib_ElectricDrives_ASMArelated_ControlLogic",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(EHPTlib.ElectricDrives.ASMArelated.ControlLogic,fileNamePrefix="EHPTlib_latest_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.001275/0.001275, allocations: 108 kB / 15.6 MB, free: 132 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.001377/0.001377, allocations: 194.6 kB / 16.53 MB, free: 6.391 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.32/1.32, allocations: 222.9 MB / 240.2 MB, free: 4.418 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/EHPTlib 2.1.4-main/package.mo): time 0.1849/0.1849, allocations: 8.03 MB / 298.4 MB, free: 2.293 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001264/0.001265, allocations: 63.91 kB / 360.7 MB, free: 14.18 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09175/0.09304, allocations: 51.19 MB / 411.9 MB, free: 10.96 MB / 350.1 MB Notification: Performance of NFInst.instantiate(EHPTlib.ElectricDrives.ASMArelated.ControlLogic): time 0.003261/0.09633, allocations: 1.827 MB / 413.8 MB, free: 9.109 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.0006991/0.09706, allocations: 287.3 kB / 414 MB, free: 8.828 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001472/0.09723, allocations: 4 kB / 414 MB, free: 8.824 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 5.577e-05/0.09732, allocations: 15.8 kB / 414.1 MB, free: 8.809 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002673/0.09759, allocations: 31.66 kB / 414.1 MB, free: 8.777 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003033/0.0979, allocations: 127.5 kB / 414.2 MB, free: 8.656 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002522/0.09816, allocations: 191.3 kB / 414.4 MB, free: 8.469 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001494/0.09832, allocations: 53.83 kB / 414.4 MB, free: 8.418 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 9.895e-05/0.09843, allocations: 79.7 kB / 414.5 MB, free: 8.34 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001494/0.09858, allocations: 87.59 kB / 414.6 MB, free: 8.254 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 3.96e-05/0.09863, allocations: 20 kB / 414.6 MB, free: 8.234 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 3.309e-05/0.09867, allocations: 16 kB / 414.6 MB, free: 8.219 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 5.535e-05/0.09873, allocations: 51.81 kB / 414.7 MB, free: 8.168 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 7.559e-05/0.09881, allocations: 75.52 kB / 414.8 MB, free: 8.094 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002017/0.09902, allocations: 159.7 kB / 414.9 MB, free: 7.938 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.557e-06/0.09903, allocations: 0 / 414.9 MB, free: 7.938 MB / 350.1 MB Notification: Performance of FrontEnd: time 9.52e-07/0.09904, allocations: 0 / 414.9 MB, free: 7.938 MB / 350.1 MB Notification: Performance of Transformations before backend: time 6.062e-06/0.09905, allocations: 0 / 414.9 MB, free: 7.938 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.001049/0.1001, allocations: 0.5065 MB / 415.4 MB, free: 7.383 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.35e-05/0.1002, allocations: 12.02 kB / 415.4 MB, free: 7.371 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.506e-05/0.1002, allocations: 42.98 kB / 415.5 MB, free: 7.32 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.629e-05/0.1003, allocations: 20.75 kB / 415.5 MB, free: 7.301 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003306/0.1007, allocations: 239.9 kB / 415.7 MB, free: 7.027 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.0002357/0.1009, allocations: 72.19 kB / 415.8 MB, free: 6.945 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.276e-05/0.1009, allocations: 15.94 kB / 415.8 MB, free: 6.93 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004091/0.1014, allocations: 190.9 kB / 416 MB, free: 6.73 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.847e-06/0.1014, allocations: 0 / 416 MB, free: 6.73 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.512e-05/0.1014, allocations: 12 kB / 416 MB, free: 6.719 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.684e-06/0.1014, allocations: 4 kB / 416 MB, free: 6.715 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003917/0.1018, allocations: 136.6 kB / 416.2 MB, free: 6.582 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009292/0.1028, allocations: 0.4924 MB / 416.7 MB, free: 6.039 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005357/0.1033, allocations: 202.5 kB / 416.8 MB, free: 5.832 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001866/0.1035, allocations: 68.81 kB / 416.9 MB, free: 5.762 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.738e-05/0.1035, allocations: 11.94 kB / 416.9 MB, free: 5.75 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.874e-05/0.1036, allocations: 34.56 kB / 417 MB, free: 5.707 MB / 350.1 MB Notification: Performance of pre-optimization done (n=11): time 1.323e-06/0.1036, allocations: 0 / 417 MB, free: 5.707 MB / 350.1 MB Notification: Performance of matching and sorting (n=11): time 0.0006655/0.1043, allocations: 241.2 kB / 417.2 MB, free: 5.465 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.174e-05/0.1043, allocations: 106.8 kB / 417.3 MB, free: 5.336 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.0002117/0.1045, allocations: 178.3 kB / 417.5 MB, free: 5.152 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.578e-05/0.1046, allocations: 29.7 kB / 417.5 MB, free: 5.117 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.737e-05/0.1047, allocations: 131.7 kB / 417.6 MB, free: 4.984 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.64e-05/0.1047, allocations: 35.53 kB / 417.7 MB, free: 4.949 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.458e-05/0.1048, allocations: 37.8 kB / 417.7 MB, free: 4.906 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001049/0.1049, allocations: 326.8 kB / 418 MB, free: 4.578 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001891/0.1051, allocations: 68.81 kB / 418.1 MB, free: 4.508 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001967/0.1053, allocations: 90.45 kB / 418.2 MB, free: 4.41 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003436/0.1057, allocations: 132.8 kB / 418.3 MB, free: 4.277 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.45e-06/0.1057, allocations: 7.938 kB / 418.3 MB, free: 4.27 MB / 350.1 MB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0004363/0.1061, allocations: 177.4 kB / 418.5 MB, free: 4.09 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.713e-05/0.1062, allocations: 4 kB / 418.5 MB, free: 4.086 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.125e-06/0.1062, allocations: 0 / 418.5 MB, free: 4.086 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.464e-05/0.1062, allocations: 3.938 kB / 418.5 MB, free: 4.082 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001777/0.1064, allocations: 27.97 kB / 418.5 MB, free: 4.055 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.097e-06/0.1064, allocations: 4 kB / 418.5 MB, free: 4.051 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002218/0.1066, allocations: 27.97 kB / 418.6 MB, free: 4.023 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.32e-05/0.1067, allocations: 7.984 kB / 418.6 MB, free: 4.016 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0001654/0.1068, allocations: 124.1 kB / 418.7 MB, free: 3.891 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.000114/0.1069, allocations: 58.55 kB / 418.7 MB, free: 3.824 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.0001863/0.1071, allocations: 93.34 kB / 418.8 MB, free: 3.73 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 8.71e-07/0.1071, allocations: 3.938 kB / 418.8 MB, free: 3.727 MB / 350.1 MB Notification: Performance of matching and sorting (n=11) (initialization_lambda0): time 0.0002642/0.1074, allocations: 145.3 kB / 419 MB, free: 3.578 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 8.957e-06/0.1074, allocations: 8 kB / 419 MB, free: 3.57 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.533e-06/0.1074, allocations: 0 / 419 MB, free: 3.57 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.435e-06/0.1075, allocations: 0 / 419 MB, free: 3.57 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.978e-05/0.1076, allocations: 15.98 kB / 419 MB, free: 3.555 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.264e-06/0.1076, allocations: 0 / 419 MB, free: 3.555 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001856/0.1078, allocations: 23.92 kB / 419 MB, free: 3.531 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.581e-05/0.1078, allocations: 11.98 kB / 419 MB, free: 3.52 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.0001129/0.1079, allocations: 192.1 kB / 419.2 MB, free: 3.324 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.579e-05/0.1079, allocations: 15.81 kB / 419.2 MB, free: 3.309 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.869e-05/0.108, allocations: 13.41 kB / 419.3 MB, free: 3.285 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.915e-06/0.108, allocations: 0 / 419.3 MB, free: 3.285 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.634e-06/0.108, allocations: 3.984 kB / 419.3 MB, free: 3.281 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.356e-06/0.108, allocations: 0 / 419.3 MB, free: 3.281 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000268/0.1083, allocations: 249.5 kB / 419.5 MB, free: 2.988 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.503e-06/0.1083, allocations: 0 / 419.5 MB, free: 2.988 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001357/0.1085, allocations: 23.97 kB / 419.5 MB, free: 2.965 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.605e-06/0.1085, allocations: 0 / 419.5 MB, free: 2.965 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.793e-05/0.1085, allocations: 3.984 kB / 419.5 MB, free: 2.961 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.166e-06/0.1085, allocations: 8.312 kB / 419.5 MB, free: 2.953 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.253e-06/0.1085, allocations: 0 / 419.5 MB, free: 2.953 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004832/0.109, allocations: 283.1 kB / 419.8 MB, free: 2.66 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.522e-05/0.1091, allocations: 85.02 kB / 419.9 MB, free: 2.559 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.284e-05/0.1091, allocations: 7.938 kB / 419.9 MB, free: 2.551 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002349/0.1093, allocations: 31.97 kB / 419.9 MB, free: 2.52 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.181e-05/0.1094, allocations: 15.97 kB / 420 MB, free: 2.504 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.431e-05/0.1094, allocations: 4 kB / 420 MB, free: 2.5 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0001065/0.1096, allocations: 144.2 kB / 420.1 MB, free: 2.359 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.1096, allocations: 0 / 420.1 MB, free: 2.359 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003532/0.1099, allocations: 63.78 kB / 420.2 MB, free: 2.297 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.0009462/0.1109, allocations: 0.9 MB / 421.1 MB, free: 1.371 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.1683/0.2792, allocations: 2.583 MB / 423.6 MB, free: 43.09 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 5.079e-06/0.2793, allocations: 1.812 kB / 423.6 MB, free: 43.09 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001598/0.2809, allocations: 1.272 MB / 424.9 MB, free: 42.08 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004013/0.2813, allocations: 25.08 kB / 424.9 MB, free: 42.08 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.002014/0.2833, allocations: 1.304 MB / 426.2 MB, free: 41.47 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001991/0.2835, allocations: 0.7677 MB / 427 MB, free: 40.77 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 8.974e-05/0.2836, allocations: 15.38 kB / 427 MB, free: 40.77 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001186/0.2837, allocations: 85.67 kB / 427.1 MB, free: 40.77 MB / 350.1 MB Notification: Performance of SimCode: time 7.62e-07/0.2838, allocations: 0 / 427.1 MB, free: 40.77 MB / 350.1 MB [CodegenUtil.tpl:216:14-216:14:writable] Error: Template error: initial value of unknown type: 0.2036 / weBase.