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: "" <> buildModelFMU(EHPTlib.ElectricDrives.ASMArelated.ControlLogic,fileNamePrefix="EHPTlib_EHPTlib_ElectricDrives_ASMArelated_ControlLogic",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(EHPTlib.ElectricDrives.ASMArelated.ControlLogic,fileNamePrefix="EHPTlib_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.001151/0.001151, 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.001199/0.001199, allocations: 193.3 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.357/1.357, allocations: 222.9 MB / 240.2 MB, free: 4.273 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/EHPTlib 2.1.4-main/package.mo): time 0.1585/0.1585, allocations: 8.022 MB / 298.4 MB, free: 2.426 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001907/0.001907, allocations: 63.89 kB / 360.7 MB, free: 14.16 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1079/0.1098, allocations: 51.19 MB / 411.9 MB, free: 10.93 MB / 350.1 MB Notification: Performance of NFInst.instantiate(EHPTlib.ElectricDrives.ASMArelated.ControlLogic): time 0.003456/0.1133, allocations: 1.823 MB / 413.8 MB, free: 9.082 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.0007341/0.1141, allocations: 287.3 kB / 414 MB, free: 8.801 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001392/0.1143, allocations: 4 kB / 414 MB, free: 8.797 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 6.792e-05/0.1143, allocations: 15.8 kB / 414.1 MB, free: 8.781 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003051/0.1147, allocations: 35.72 kB / 414.1 MB, free: 8.746 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003463/0.115, allocations: 119.8 kB / 414.2 MB, free: 8.629 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002987/0.1153, allocations: 195.3 kB / 414.4 MB, free: 8.438 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000176/0.1155, allocations: 57.45 kB / 414.4 MB, free: 8.387 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001265/0.1157, allocations: 71.77 kB / 414.5 MB, free: 8.316 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001664/0.1158, allocations: 91.53 kB / 414.6 MB, free: 8.227 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 5.042e-05/0.1159, allocations: 20 kB / 414.6 MB, free: 8.207 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 3.846e-05/0.1159, allocations: 16 kB / 414.6 MB, free: 8.191 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 5.687e-05/0.116, allocations: 47.81 kB / 414.7 MB, free: 8.145 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001034/0.1161, allocations: 75.58 kB / 414.8 MB, free: 8.07 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000204/0.1163, allocations: 163.6 kB / 414.9 MB, free: 7.91 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.878e-06/0.1163, allocations: 4 kB / 414.9 MB, free: 7.906 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.483e-06/0.1163, allocations: 0 / 414.9 MB, free: 7.906 MB / 350.1 MB Notification: Performance of Transformations before backend: time 7.604e-06/0.1163, allocations: 0 / 414.9 MB, free: 7.906 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.001046/0.1174, allocations: 0.5026 MB / 415.4 MB, free: 7.355 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.276e-05/0.1174, allocations: 12.03 kB / 415.4 MB, free: 7.344 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.682e-05/0.1175, allocations: 46.98 kB / 415.5 MB, free: 7.289 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.237e-05/0.1176, allocations: 16.75 kB / 415.5 MB, free: 7.273 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002767/0.1179, allocations: 235.9 kB / 415.7 MB, free: 7.004 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.0002048/0.1181, allocations: 76.19 kB / 415.8 MB, free: 6.918 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.59e-05/0.1181, allocations: 15.94 kB / 415.8 MB, free: 6.902 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003909/0.1185, allocations: 187 kB / 416 MB, free: 6.707 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.688e-06/0.1186, allocations: 0 / 416 MB, free: 6.707 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.275e-05/0.1186, allocations: 8 kB / 416 MB, free: 6.699 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.073e-06/0.1186, allocations: 4 kB / 416 MB, free: 6.695 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003648/0.119, allocations: 140.5 kB / 416.2 MB, free: 6.559 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009206/0.1199, allocations: 0.4885 MB / 416.6 MB, free: 6.02 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005312/0.1204, allocations: 202.5 kB / 416.8 MB, free: 5.812 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002018/0.1207, allocations: 80.81 kB / 416.9 MB, free: 5.73 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.565e-05/0.1207, allocations: 3.938 kB / 416.9 MB, free: 5.727 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.82e-05/0.1207, allocations: 38.56 kB / 417 MB, free: 5.68 MB / 350.1 MB Notification: Performance of pre-optimization done (n=11): time 1.593e-06/0.1207, allocations: 0 / 417 MB, free: 5.68 MB / 350.1 MB Notification: Performance of matching and sorting (n=11): time 0.0006917/0.1214, allocations: 237.3 kB / 417.2 MB, free: 5.441 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.702e-05/0.1215, allocations: 102.8 kB / 417.3 MB, free: 5.316 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.0002125/0.1217, allocations: 182.4 kB / 417.5 MB, free: 5.129 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.601e-05/0.1218, allocations: 33.64 kB / 417.5 MB, free: 5.09 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.409e-05/0.1219, allocations: 135.7 kB / 417.6 MB, free: 4.953 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.241e-05/0.1219, allocations: 35.55 kB / 417.7 MB, free: 4.918 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.124e-05/0.122, allocations: 33.7 kB / 417.7 MB, free: 4.879 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001218/0.1221, allocations: 318.8 kB / 418 MB, free: 4.559 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001987/0.1223, allocations: 72.81 kB / 418.1 MB, free: 4.484 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001955/0.1225, allocations: 82.52 kB / 418.2 MB, free: 4.395 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003481/0.1229, allocations: 136.7 kB / 418.3 MB, free: 4.258 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.426e-06/0.1229, allocations: 3.938 kB / 418.3 MB, free: 4.254 MB / 350.1 MB Notification: Performance of matching and sorting (n=11) (initialization): time 0.000448/0.1233, allocations: 181.8 kB / 418.5 MB, free: 4.07 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.443e-05/0.1234, allocations: 4 kB / 418.5 MB, free: 4.066 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.949e-06/0.1234, allocations: 4 kB / 418.5 MB, free: 4.062 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.234e-05/0.1234, allocations: 0 / 418.5 MB, free: 4.062 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000169/0.1236, allocations: 27.97 kB / 418.5 MB, free: 4.035 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.847e-06/0.1236, allocations: 3.938 kB / 418.5 MB, free: 4.031 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002132/0.1238, allocations: 31.95 kB / 418.6 MB, free: 4 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.348e-05/0.1238, allocations: 7.984 kB / 418.6 MB, free: 3.992 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0001628/0.124, allocations: 128.1 kB / 418.7 MB, free: 3.863 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0001167/0.1241, allocations: 66.55 kB / 418.8 MB, free: 3.789 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.0001793/0.1243, allocations: 88.8 kB / 418.8 MB, free: 3.699 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 9.62e-07/0.1243, allocations: 0 / 418.8 MB, free: 3.699 MB / 350.1 MB Notification: Performance of matching and sorting (n=11) (initialization_lambda0): time 0.0002885/0.1246, allocations: 145.3 kB / 419 MB, free: 3.551 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 8.416e-06/0.1246, allocations: 4 kB / 419 MB, free: 3.547 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.964e-06/0.1246, allocations: 0 / 419 MB, free: 3.547 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 4.829e-06/0.1246, allocations: 4 kB / 419 MB, free: 3.543 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.154e-05/0.1247, allocations: 11.98 kB / 419 MB, free: 3.531 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.254e-06/0.1248, allocations: 0 / 419 MB, free: 3.531 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001874/0.1249, allocations: 31.92 kB / 419 MB, free: 3.5 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.56e-05/0.125, allocations: 7.984 kB / 419 MB, free: 3.492 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.0001356/0.1251, allocations: 188.2 kB / 419.2 MB, free: 3.301 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.613e-05/0.1252, allocations: 11.81 kB / 419.2 MB, free: 3.289 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.414e-05/0.1252, allocations: 17.41 kB / 419.3 MB, free: 3.262 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.414e-06/0.1252, allocations: 0 / 419.3 MB, free: 3.262 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.578e-06/0.1252, allocations: 7.984 kB / 419.3 MB, free: 3.254 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.857e-06/0.1253, allocations: 3.938 kB / 419.3 MB, free: 3.25 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002775/0.1255, allocations: 237.5 kB / 419.5 MB, free: 2.969 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.433e-06/0.1255, allocations: 4.375 kB / 419.5 MB, free: 2.965 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000135/0.1257, allocations: 23.97 kB / 419.5 MB, free: 2.941 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.851e-06/0.1257, allocations: 4 kB / 419.5 MB, free: 2.938 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.124e-05/0.1257, allocations: 11.98 kB / 419.5 MB, free: 2.926 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.433e-06/0.1257, allocations: 7.875 kB / 419.5 MB, free: 2.918 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.62e-07/0.1257, allocations: 0 / 419.5 MB, free: 2.918 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004757/0.1262, allocations: 279.1 kB / 419.8 MB, free: 2.629 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.964e-05/0.1263, allocations: 88.92 kB / 419.9 MB, free: 2.523 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.441e-05/0.1263, allocations: 4 kB / 419.9 MB, free: 2.52 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002296/0.1266, allocations: 23.97 kB / 419.9 MB, free: 2.496 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.327e-05/0.1266, allocations: 19.97 kB / 420 MB, free: 2.477 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.084e-05/0.1267, allocations: 0 / 420 MB, free: 2.477 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0001073/0.1268, allocations: 148.2 kB / 420.1 MB, free: 2.332 MB / 350.1 MB Notification: Performance of sort global known variables: time 1e-07/0.1268, allocations: 0 / 420.1 MB, free: 2.332 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003575/0.1271, allocations: 63.78 kB / 420.2 MB, free: 2.27 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.001027/0.1282, allocations: 0.9 MB / 421.1 MB, free: 1.344 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.1663/0.2944, allocations: 2.579 MB / 423.6 MB, free: 43.02 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 4.999e-06/0.2945, allocations: 0 / 423.6 MB, free: 43.02 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001446/0.2959, allocations: 1.272 MB / 424.9 MB, free: 42.01 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003474/0.2963, allocations: 26.16 kB / 424.9 MB, free: 42.01 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.00168/0.298, allocations: 1.31 MB / 426.2 MB, free: 41.41 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001376/0.2981, allocations: 0.767 MB / 427 MB, free: 40.71 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 7.603e-05/0.2982, allocations: 17.59 kB / 427 MB, free: 40.71 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.093e-05/0.2983, allocations: 87.23 kB / 427.1 MB, free: 40.7 MB / 350.1 MB Notification: Performance of SimCode: time 7.62e-07/0.2983, allocations: 5.25 kB / 427.1 MB, free: 40.7 MB / 350.1 MB [CodegenUtil.tpl:216:14-216:14:writable] Error: Template error: initial value of unknown type: 0.2036 / weBase.