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.001362/0.001362, allocations: 108 kB / 15.61 MB, free: 152 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.001203/0.001203, allocations: 194.5 kB / 16.53 MB, free: 6.699 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.496/1.496, allocations: 222.9 MB / 240.2 MB, free: 4.387 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/EHPTlib 2.1.4-main/package.mo): time 0.1685/0.1685, allocations: 8.017 MB / 298.4 MB, free: 2.387 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001411/0.001411, allocations: 59.91 kB / 360.7 MB, free: 14.15 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1097/0.1111, allocations: 51.18 MB / 411.9 MB, free: 10.93 MB / 350.1 MB Notification: Performance of NFInst.instantiate(EHPTlib.ElectricDrives.ASMArelated.ControlLogic): time 0.003624/0.1148, allocations: 1.835 MB / 413.7 MB, free: 9.074 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.000709/0.1156, allocations: 279.4 kB / 414 MB, free: 8.801 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001663/0.1158, allocations: 7.938 kB / 414 MB, free: 8.793 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 7.037e-05/0.1159, allocations: 15.8 kB / 414 MB, free: 8.777 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003248/0.1162, allocations: 31.7 kB / 414.1 MB, free: 8.746 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003471/0.1166, allocations: 127.2 kB / 414.2 MB, free: 8.625 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002999/0.1169, allocations: 199.2 kB / 414.4 MB, free: 8.43 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001877/0.1171, allocations: 49.84 kB / 414.4 MB, free: 8.383 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001347/0.1172, allocations: 67.77 kB / 414.5 MB, free: 8.316 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001695/0.1174, allocations: 95.58 kB / 414.6 MB, free: 8.223 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 4.939e-05/0.1174, allocations: 20 kB / 414.6 MB, free: 8.203 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 3.815e-05/0.1175, allocations: 19.94 kB / 414.6 MB, free: 8.184 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 5.917e-05/0.1175, allocations: 43.83 kB / 414.7 MB, free: 8.141 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001083/0.1177, allocations: 75.58 kB / 414.8 MB, free: 8.066 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002271/0.1179, allocations: 159.7 kB / 414.9 MB, free: 7.91 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.04e-06/0.1179, allocations: 0 / 414.9 MB, free: 7.91 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.694e-06/0.1179, allocations: 4 kB / 414.9 MB, free: 7.906 MB / 350.1 MB Notification: Performance of Transformations before backend: time 7.424e-06/0.1179, 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.001183/0.1191, allocations: 0.5083 MB / 415.4 MB, free: 7.352 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.001e-05/0.1192, allocations: 12.03 kB / 415.4 MB, free: 7.34 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.153e-05/0.1193, allocations: 46.97 kB / 415.5 MB, free: 7.285 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.895e-05/0.1193, allocations: 16.75 kB / 415.5 MB, free: 7.27 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000332/0.1197, allocations: 239.9 kB / 415.7 MB, free: 6.996 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.000293/0.12, allocations: 76.19 kB / 415.8 MB, free: 6.91 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.122e-05/0.12, allocations: 19.94 kB / 415.8 MB, free: 6.891 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004743/0.1205, allocations: 190.9 kB / 416 MB, free: 6.691 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.142e-05/0.1205, allocations: 0 / 416 MB, free: 6.691 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.482e-05/0.1206, allocations: 4 kB / 416 MB, free: 6.688 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.769e-06/0.1206, allocations: 8 kB / 416 MB, free: 6.68 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003803/0.121, allocations: 140.5 kB / 416.2 MB, free: 6.543 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000953/0.1219, allocations: 0.4885 MB / 416.7 MB, free: 6.004 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00052/0.1225, allocations: 194.6 kB / 416.8 MB, free: 5.805 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002049/0.1227, allocations: 84.69 kB / 416.9 MB, free: 5.719 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.576e-05/0.1227, allocations: 3.984 kB / 416.9 MB, free: 5.715 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.928e-05/0.1227, allocations: 38.56 kB / 417 MB, free: 5.668 MB / 350.1 MB Notification: Performance of pre-optimization done (n=11): time 1.613e-06/0.1227, allocations: 0 / 417 MB, free: 5.668 MB / 350.1 MB Notification: Performance of matching and sorting (n=11): time 0.0007508/0.1235, allocations: 233.6 kB / 417.2 MB, free: 5.434 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.726e-05/0.1236, allocations: 110.8 kB / 417.3 MB, free: 5.301 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.0002222/0.1238, allocations: 184.5 kB / 417.5 MB, free: 5.113 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.95e-05/0.1239, allocations: 29.7 kB / 417.5 MB, free: 5.078 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.015e-05/0.124, allocations: 131.7 kB / 417.6 MB, free: 4.945 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.486e-05/0.124, allocations: 35.55 kB / 417.7 MB, free: 4.91 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.062e-05/0.1241, allocations: 33.69 kB / 417.7 MB, free: 4.871 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001435/0.1242, allocations: 322.8 kB / 418 MB, free: 4.547 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001962/0.1244, allocations: 72.81 kB / 418.1 MB, free: 4.473 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001987/0.1246, allocations: 86.45 kB / 418.2 MB, free: 4.379 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003574/0.125, allocations: 132.8 kB / 418.3 MB, free: 4.246 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.188e-06/0.125, allocations: 3.938 kB / 418.3 MB, free: 4.242 MB / 350.1 MB Notification: Performance of matching and sorting (n=11) (initialization): time 0.000463/0.1255, allocations: 181.3 kB / 418.5 MB, free: 4.059 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.598e-05/0.1255, allocations: 4 kB / 418.5 MB, free: 4.055 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.192e-06/0.1255, allocations: 0 / 418.5 MB, free: 4.055 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.869e-05/0.1255, allocations: 4 kB / 418.5 MB, free: 4.051 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001643/0.1257, allocations: 23.98 kB / 418.5 MB, free: 4.027 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.748e-06/0.1257, allocations: 3.984 kB / 418.5 MB, free: 4.023 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002151/0.126, allocations: 27.97 kB / 418.6 MB, free: 3.996 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.879e-05/0.126, allocations: 4 kB / 418.6 MB, free: 3.992 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0001639/0.1261, allocations: 128.1 kB / 418.7 MB, free: 3.863 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.000117/0.1263, allocations: 66.48 kB / 418.7 MB, free: 3.789 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.0001794/0.1265, allocations: 92.8 kB / 418.8 MB, free: 3.695 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 1.273e-06/0.1265, allocations: 0 / 418.8 MB, free: 3.695 MB / 350.1 MB Notification: Performance of matching and sorting (n=11) (initialization_lambda0): time 0.000279/0.1268, allocations: 137.4 kB / 419 MB, free: 3.555 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 9.908e-06/0.1268, allocations: 7.938 kB / 419 MB, free: 3.547 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.124e-06/0.1268, allocations: 0 / 419 MB, free: 3.547 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.875e-06/0.1268, allocations: 0 / 419 MB, free: 3.547 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001021/0.1269, allocations: 15.98 kB / 419 MB, free: 3.531 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.063e-06/0.1269, allocations: 0 / 419 MB, free: 3.531 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001885/0.1271, allocations: 31.91 kB / 419 MB, free: 3.5 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.408e-05/0.1271, allocations: 8 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.0001222/0.1273, allocations: 184.2 kB / 419.2 MB, free: 3.305 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.874e-05/0.1273, allocations: 19.8 kB / 419.2 MB, free: 3.285 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.245e-05/0.1274, allocations: 17.41 kB / 419.2 MB, free: 3.258 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.735e-06/0.1274, allocations: 0 / 419.2 MB, free: 3.258 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.619e-06/0.1274, allocations: 480 / 419.3 MB, free: 3.258 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.697e-06/0.1274, allocations: 4 kB / 419.3 MB, free: 3.254 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004011/0.1278, allocations: 245.5 kB / 419.5 MB, free: 2.965 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.314e-06/0.1278, allocations: 4 kB / 419.5 MB, free: 2.961 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001364/0.128, allocations: 27.91 kB / 419.5 MB, free: 2.934 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.968e-06/0.128, allocations: 3.938 kB / 419.5 MB, free: 2.93 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.867e-05/0.128, allocations: 11.94 kB / 419.5 MB, free: 2.918 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.903e-06/0.128, allocations: 0 / 419.5 MB, free: 2.918 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.31e-07/0.128, allocations: 0 / 419.5 MB, free: 2.918 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004705/0.1285, allocations: 279.4 kB / 419.8 MB, free: 2.629 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.803e-05/0.1285, allocations: 92.91 kB / 419.9 MB, free: 2.52 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.787e-05/0.1286, allocations: 4 kB / 419.9 MB, free: 2.516 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002535/0.1288, allocations: 23.97 kB / 419.9 MB, free: 2.492 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.572e-05/0.1289, allocations: 15.92 kB / 419.9 MB, free: 2.477 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.281e-05/0.1289, allocations: 7.984 kB / 420 MB, free: 2.469 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0001185/0.1291, allocations: 144.2 kB / 420.1 MB, free: 2.328 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.8e-07/0.1291, allocations: 0 / 420.1 MB, free: 2.328 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003462/0.1294, allocations: 63.78 kB / 420.2 MB, free: 2.266 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.001001/0.1304, allocations: 0.9039 MB / 421.1 MB, free: 1.336 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.1692/0.2996, allocations: 2.579 MB / 423.6 MB, free: 43.18 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 5.269e-06/0.2997, allocations: 0.9375 kB / 423.6 MB, free: 43.18 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001482/0.3011, allocations: 1.273 MB / 424.9 MB, free: 42.17 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003659/0.3015, allocations: 25.48 kB / 424.9 MB, free: 42.17 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.001761/0.3033, allocations: 1.305 MB / 426.2 MB, free: 41.56 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001551/0.3035, allocations: 0.7607 MB / 427 MB, free: 40.86 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 7.917e-05/0.3035, allocations: 18.34 kB / 427 MB, free: 40.86 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.723e-05/0.3036, allocations: 92.64 kB / 427.1 MB, free: 40.86 MB / 350.1 MB Notification: Performance of SimCode: time 1.322e-06/0.3037, allocations: 0 / 427.1 MB, free: 40.86 MB / 350.1 MB [CodegenUtil.tpl:216:14-216:14:writable] Error: Template error: initial value of unknown type: 0.2036 / weBase.