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.0007939/0.0007939, allocations: 91.84 kB / 15.36 MB, free: 0.7383 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.005186/0.005186, allocations: 170.5 kB / 16.26 MB, free: 6.676 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.296/1.296, allocations: 223.3 MB / 240.3 MB, free: 5.324 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/EHPTlib 2.1.4-main/package.mo): time 0.1394/0.1394, allocations: 8.021 MB / 299.5 MB, free: 3.367 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003147/0.0003147, allocations: 8 kB / 362.5 MB, free: 13.82 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0924/0.09273, allocations: 52.19 MB / 414.7 MB, free: 9.586 MB / 350.1 MB Notification: Performance of NFInst.instantiate(EHPTlib.ElectricDrives.ASMArelated.ControlLogic): time 0.001712/0.09447, allocations: 1.542 MB / 416.2 MB, free: 8.027 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.000487/0.09497, allocations: 275.3 kB / 416.5 MB, free: 7.758 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.239e-05/0.09507, allocations: 4 kB / 416.5 MB, free: 7.754 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 2.551e-05/0.0951, allocations: 11.88 kB / 416.5 MB, free: 7.742 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000198/0.09531, allocations: 27.83 kB / 416.5 MB, free: 7.715 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002125/0.09553, allocations: 103.6 kB / 416.6 MB, free: 7.617 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001911/0.09572, allocations: 187.3 kB / 416.8 MB, free: 7.434 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001165/0.09585, allocations: 45.84 kB / 416.9 MB, free: 7.391 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 7.169e-05/0.09593, allocations: 63.7 kB / 416.9 MB, free: 7.328 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001309/0.09606, allocations: 83.58 kB / 417 MB, free: 7.246 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 2.525e-05/0.0961, allocations: 8 kB / 417 MB, free: 7.238 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 2.122e-05/0.09613, allocations: 12 kB / 417 MB, free: 7.227 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 3.767e-05/0.09617, allocations: 35.78 kB / 417.1 MB, free: 7.191 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 7.552e-05/0.09625, allocations: 89.28 kB / 417.2 MB, free: 7.098 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001412/0.0964, allocations: 143.6 kB / 417.3 MB, free: 6.957 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.986e-06/0.09641, allocations: 4 kB / 417.3 MB, free: 6.953 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.203e-06/0.09641, allocations: 0 / 417.3 MB, free: 6.953 MB / 350.1 MB Notification: Performance of Transformations before backend: time 3.536e-06/0.09643, allocations: 0 / 417.3 MB, free: 6.953 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.0008281/0.09726, allocations: 0.5027 MB / 417.8 MB, free: 6.402 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.862e-05/0.0973, allocations: 8.031 kB / 417.8 MB, free: 6.395 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.907e-05/0.09738, allocations: 46.97 kB / 417.9 MB, free: 6.34 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.732e-05/0.09743, allocations: 20.75 kB / 417.9 MB, free: 6.32 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000226/0.09766, allocations: 235.8 kB / 418.1 MB, free: 6.051 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.0001541/0.09783, allocations: 76.19 kB / 418.2 MB, free: 5.965 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.587e-05/0.09786, allocations: 15.94 kB / 418.2 MB, free: 5.949 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003852/0.09825, allocations: 202.2 kB / 418.4 MB, free: 5.738 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.025e-06/0.09827, allocations: 0 / 418.4 MB, free: 5.738 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.458e-05/0.0983, allocations: 8 kB / 418.4 MB, free: 5.73 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.023e-06/0.09832, allocations: 4 kB / 418.4 MB, free: 5.727 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000374/0.0987, allocations: 152.6 kB / 418.6 MB, free: 5.578 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008472/0.09955, allocations: 0.5197 MB / 419.1 MB, free: 5.008 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005312/0.1001, allocations: 222.6 kB / 419.3 MB, free: 4.781 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001926/0.1003, allocations: 92.75 kB / 419.4 MB, free: 4.688 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.41e-05/0.1003, allocations: 11.92 kB / 419.4 MB, free: 4.676 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2e-05/0.1004, allocations: 30.56 kB / 419.4 MB, free: 4.637 MB / 350.1 MB Notification: Performance of pre-optimization done (n=11): time 1.373e-06/0.1004, allocations: 0 / 419.4 MB, free: 4.637 MB / 350.1 MB Notification: Performance of matching and sorting (n=11): time 0.0006833/0.1011, allocations: 269.4 kB / 419.7 MB, free: 4.367 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.415e-05/0.1011, allocations: 102.8 kB / 419.8 MB, free: 4.242 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.0001897/0.1013, allocations: 186.3 kB / 420 MB, free: 4.051 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.378e-05/0.1013, allocations: 25.7 kB / 420 MB, free: 4.02 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.603e-05/0.1014, allocations: 135.7 kB / 420.1 MB, free: 3.883 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.454e-05/0.1015, allocations: 31.55 kB / 420.2 MB, free: 3.852 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.381e-05/0.1015, allocations: 17.72 kB / 420.2 MB, free: 3.828 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001136/0.1016, allocations: 330.8 kB / 420.5 MB, free: 3.496 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002174/0.1018, allocations: 71.95 kB / 420.6 MB, free: 3.426 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002025/0.1021, allocations: 94.53 kB / 420.7 MB, free: 3.324 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003461/0.1024, allocations: 148.8 kB / 420.8 MB, free: 3.176 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.007e-06/0.1024, allocations: 3.938 kB / 420.8 MB, free: 3.172 MB / 350.1 MB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0004484/0.1029, allocations: 205.3 kB / 421 MB, free: 2.965 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.134e-05/0.1029, allocations: 93.44 kB / 421.1 MB, free: 2.867 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.378e-06/0.1029, allocations: 0 / 421.1 MB, free: 2.867 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.262e-05/0.103, allocations: 7.984 kB / 421.1 MB, free: 2.859 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001676/0.1031, allocations: 27.98 kB / 421.1 MB, free: 2.832 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.298e-06/0.1032, allocations: 0 / 421.1 MB, free: 2.832 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002105/0.1034, allocations: 35.97 kB / 421.2 MB, free: 2.797 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.788e-05/0.1034, allocations: 11.97 kB / 421.2 MB, free: 2.785 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.022e-06/0.1034, allocations: 7.938 kB / 421.2 MB, free: 2.777 MB / 350.1 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0002312/0.1036, allocations: 111.8 kB / 421.3 MB, free: 2.668 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.212e-06/0.1037, allocations: 0 / 421.3 MB, free: 2.668 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.543e-06/0.1037, allocations: 384 / 421.3 MB, free: 2.668 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.552e-05/0.1037, allocations: 15.98 kB / 421.3 MB, free: 2.652 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.513e-06/0.1038, allocations: 0 / 421.3 MB, free: 2.652 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001934/0.104, allocations: 43.81 kB / 421.4 MB, free: 2.609 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.09e-05/0.104, allocations: 7.938 kB / 421.4 MB, free: 2.602 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.0001253/0.1041, allocations: 193.1 kB / 421.6 MB, free: 2.402 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.351e-05/0.1042, allocations: 15.84 kB / 421.6 MB, free: 2.387 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.65e-05/0.1042, allocations: 25.38 kB / 421.6 MB, free: 2.352 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.914e-06/0.1042, allocations: 3.938 kB / 421.6 MB, free: 2.348 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.801e-06/0.1042, allocations: 8 kB / 421.6 MB, free: 2.34 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.206e-06/0.1042, allocations: 0 / 421.6 MB, free: 2.34 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00024/0.1045, allocations: 249.4 kB / 421.9 MB, free: 2.047 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.354e-06/0.1045, allocations: 3.938 kB / 421.9 MB, free: 2.043 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001345/0.1046, allocations: 23.98 kB / 421.9 MB, free: 2.02 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.653e-06/0.1046, allocations: 0 / 421.9 MB, free: 2.02 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.642e-05/0.1047, allocations: 11.98 kB / 421.9 MB, free: 2.008 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.333e-06/0.1047, allocations: 0 / 421.9 MB, free: 2.008 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.21e-07/0.1047, allocations: 0 / 421.9 MB, free: 2.008 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004973/0.1052, allocations: 299.2 kB / 422.2 MB, free: 1.699 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.874e-05/0.1052, allocations: 100.8 kB / 422.3 MB, free: 1.582 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.883e-05/0.1053, allocations: 4 kB / 422.3 MB, free: 1.578 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002371/0.1055, allocations: 35.97 kB / 422.3 MB, free: 1.543 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.429e-05/0.1056, allocations: 15.98 kB / 422.3 MB, free: 1.527 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.231e-05/0.1056, allocations: 3.984 kB / 422.3 MB, free: 1.523 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0001009/0.1057, allocations: 135.2 kB / 422.5 MB, free: 1.391 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.41e-07/0.1057, allocations: 0 / 422.5 MB, free: 1.391 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003198/0.106, allocations: 59.84 kB / 422.5 MB, free: 1.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.0009625/0.107, allocations: 0.9269 MB / 423.5 MB, free: 388 kB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.1509/0.2579, allocations: 2.602 MB / 426.1 MB, free: 39.24 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 3.677e-06/0.2579, allocations: 1.688 kB / 426.1 MB, free: 39.24 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001549/0.2594, allocations: 1.296 MB / 427.4 MB, free: 38.23 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003472/0.2598, allocations: 26.33 kB / 427.4 MB, free: 38.23 MB / 350.1 MB [/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/Compiler/BackEnd/SymbolicJacobian.mo:1914:3-1914:101:writable] Error: Internal error function createFMIModelDerivativesForInitialization failed Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001763/0.2616, allocations: 1.402 MB / 428.8 MB, free: 37.56 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001483/0.2617, allocations: 0.763 MB / 429.6 MB, free: 36.86 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 7.842e-05/0.2618, allocations: 23.23 kB / 429.6 MB, free: 36.86 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.564e-05/0.2619, allocations: 87.09 kB / 429.7 MB, free: 36.85 MB / 350.1 MB Notification: Performance of SimCode: time 5.61e-07/0.2619, allocations: 0 / 429.7 MB, free: 36.85 MB / 350.1 MB [CodegenUtil.tpl:198:14-198:14:writable] Error: Template error: initial value of unknown type: 0.2036 / weBase.