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.001048/0.001048, allocations: 103.4 kB / 15.33 MB, free: 0.5078 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.001114/0.001114, allocations: 190.5 kB / 16.25 MB, free: 6.617 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.284/1.284, allocations: 222.9 MB / 239.9 MB, free: 4.527 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/EHPTlib 2.1.4-main/package.mo): time 0.1515/0.1515, allocations: 8.024 MB / 298.1 MB, free: 2.449 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00115/0.00115, allocations: 63.89 kB / 360.2 MB, free: 14.56 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09239/0.09355, allocations: 51.19 MB / 411.4 MB, free: 11.33 MB / 350.1 MB Notification: Performance of NFInst.instantiate(EHPTlib.ElectricDrives.ASMArelated.ControlLogic): time 0.002781/0.09637, allocations: 1.88 MB / 413.3 MB, free: 9.43 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.0005421/0.09692, allocations: 279.3 kB / 413.6 MB, free: 9.156 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.122e-05/0.09702, allocations: 7.938 kB / 413.6 MB, free: 9.148 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 4.311e-05/0.09707, allocations: 7.922 kB / 413.6 MB, free: 9.141 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002176/0.0973, allocations: 23.84 kB / 413.6 MB, free: 9.117 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002241/0.09753, allocations: 115.4 kB / 413.7 MB, free: 9.008 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002141/0.09775, allocations: 195.3 kB / 413.9 MB, free: 8.816 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000133/0.09789, allocations: 53.83 kB / 414 MB, free: 8.766 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 7.28e-05/0.09797, allocations: 71.77 kB / 414 MB, free: 8.695 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001316/0.09811, allocations: 99.52 kB / 414.1 MB, free: 8.598 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 3.066e-05/0.09814, allocations: 16 kB / 414.2 MB, free: 8.582 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 2.615e-05/0.09818, allocations: 20 kB / 414.2 MB, free: 8.562 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 4.052e-05/0.09822, allocations: 43.83 kB / 414.2 MB, free: 8.52 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 6.974e-05/0.0983, allocations: 79.52 kB / 414.3 MB, free: 8.441 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001746/0.09848, allocations: 151.7 kB / 414.4 MB, free: 8.293 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.751e-06/0.09849, allocations: 4 kB / 414.5 MB, free: 8.289 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.824e-06/0.0985, allocations: 0 / 414.5 MB, free: 8.289 MB / 350.1 MB Notification: Performance of Transformations before backend: time 5.35e-06/0.09851, allocations: 0 / 414.5 MB, free: 8.289 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.0009323/0.09944, allocations: 0.5104 MB / 415 MB, free: 7.73 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.6e-05/0.09949, allocations: 15.97 kB / 415 MB, free: 7.715 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.95e-05/0.09957, allocations: 46.98 kB / 415 MB, free: 7.66 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.11e-05/0.09962, allocations: 20.73 kB / 415 MB, free: 7.641 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000301/0.09993, allocations: 235.9 kB / 415.3 MB, free: 7.371 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.0001532/0.1001, allocations: 72.19 kB / 415.3 MB, free: 7.289 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.402e-05/0.1001, allocations: 15.94 kB / 415.4 MB, free: 7.273 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003527/0.1005, allocations: 186.2 kB / 415.5 MB, free: 7.078 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.157e-05/0.1005, allocations: 7.938 kB / 415.6 MB, free: 7.07 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.436e-05/0.1005, allocations: 11.98 kB / 415.6 MB, free: 7.059 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.649e-06/0.1005, allocations: 0 / 415.6 MB, free: 7.059 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003482/0.1009, allocations: 140.6 kB / 415.7 MB, free: 6.922 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008174/0.1017, allocations: 496.2 kB / 416.2 MB, free: 6.387 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004767/0.1022, allocations: 202.5 kB / 416.4 MB, free: 6.18 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001787/0.1024, allocations: 80.75 kB / 416.5 MB, free: 6.098 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.504e-05/0.1024, allocations: 3.984 kB / 416.5 MB, free: 6.094 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.444e-05/0.1025, allocations: 38.56 kB / 416.5 MB, free: 6.047 MB / 350.1 MB Notification: Performance of pre-optimization done (n=11): time 1.343e-06/0.1025, allocations: 0 / 416.5 MB, free: 6.047 MB / 350.1 MB Notification: Performance of matching and sorting (n=11): time 0.00063/0.1031, allocations: 237.3 kB / 416.7 MB, free: 5.809 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.558e-05/0.1032, allocations: 106.8 kB / 416.8 MB, free: 5.68 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.0002054/0.1034, allocations: 180.3 kB / 417 MB, free: 5.496 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.475e-05/0.1034, allocations: 33.7 kB / 417 MB, free: 5.457 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.396e-05/0.1035, allocations: 131.7 kB / 417.2 MB, free: 5.324 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.11e-05/0.1035, allocations: 31.55 kB / 417.2 MB, free: 5.293 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.354e-05/0.1036, allocations: 29.7 kB / 417.2 MB, free: 5.258 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.000121/0.1037, allocations: 330.8 kB / 417.6 MB, free: 4.926 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000175/0.1039, allocations: 68.8 kB / 417.6 MB, free: 4.855 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000176/0.1041, allocations: 82.53 kB / 417.7 MB, free: 4.766 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003595/0.1045, allocations: 136.7 kB / 417.8 MB, free: 4.629 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.318e-06/0.1045, allocations: 3.938 kB / 417.8 MB, free: 4.625 MB / 350.1 MB Notification: Performance of matching and sorting (n=11) (initialization): time 0.000401/0.1049, allocations: 181.8 kB / 418 MB, free: 4.441 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.296e-05/0.1049, allocations: 4 kB / 418 MB, free: 4.438 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.471e-06/0.1049, allocations: 4 kB / 418 MB, free: 4.434 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 9.869e-06/0.1049, allocations: 4 kB / 418 MB, free: 4.43 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001589/0.1051, allocations: 27.91 kB / 418.1 MB, free: 4.402 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.583e-06/0.1051, allocations: 3.984 kB / 418.1 MB, free: 4.398 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001979/0.1053, allocations: 28.25 kB / 418.1 MB, free: 4.371 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.327e-05/0.1054, allocations: 7.984 kB / 418.1 MB, free: 4.363 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0001724/0.1055, allocations: 124.1 kB / 418.2 MB, free: 4.238 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0001057/0.1056, allocations: 70.48 kB / 418.3 MB, free: 4.16 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.0001642/0.1058, allocations: 84.77 kB / 418.4 MB, free: 4.074 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 9.92e-07/0.1058, allocations: 0 / 418.4 MB, free: 4.074 MB / 350.1 MB Notification: Performance of matching and sorting (n=11) (initialization_lambda0): time 0.000254/0.1061, allocations: 145.3 kB / 418.5 MB, free: 3.926 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.071e-06/0.1061, allocations: 4 kB / 418.5 MB, free: 3.922 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.102e-06/0.1061, allocations: 0 / 418.5 MB, free: 3.922 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.775e-06/0.1061, allocations: 4 kB / 418.5 MB, free: 3.918 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.226e-05/0.1062, allocations: 19.98 kB / 418.5 MB, free: 3.898 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.573e-06/0.1062, allocations: 4.031 kB / 418.5 MB, free: 3.895 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000178/0.1064, allocations: 23.92 kB / 418.6 MB, free: 3.871 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.362e-05/0.1064, allocations: 7.984 kB / 418.6 MB, free: 3.863 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.0001112/0.1065, allocations: 192.2 kB / 418.8 MB, free: 3.668 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.276e-05/0.1066, allocations: 11.81 kB / 418.8 MB, free: 3.656 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.581e-05/0.1066, allocations: 17.34 kB / 418.8 MB, free: 3.629 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.136e-06/0.1066, allocations: 3.984 kB / 418.8 MB, free: 3.625 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.921e-06/0.1067, allocations: 4 kB / 418.8 MB, free: 3.621 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.296e-06/0.1067, allocations: 4 kB / 418.8 MB, free: 3.617 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002645/0.1069, allocations: 245.5 kB / 419 MB, free: 3.328 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.705e-06/0.1069, allocations: 3.984 kB / 419 MB, free: 3.324 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001313/0.1071, allocations: 19.98 kB / 419.1 MB, free: 3.305 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.085e-06/0.1071, allocations: 7.938 kB / 419.1 MB, free: 3.297 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.543e-05/0.1071, allocations: 3.984 kB / 419.1 MB, free: 3.293 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.333e-06/0.1071, allocations: 0 / 419.1 MB, free: 3.293 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.31e-07/0.1071, allocations: 0 / 419.1 MB, free: 3.293 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004284/0.1076, allocations: 283.1 kB / 419.4 MB, free: 3 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.701e-05/0.1076, allocations: 88.92 kB / 419.4 MB, free: 2.895 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.96e-05/0.1076, allocations: 0 / 419.4 MB, free: 2.895 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002607/0.1079, allocations: 31.95 kB / 419.5 MB, free: 2.863 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.355e-05/0.108, allocations: 15.98 kB / 419.5 MB, free: 2.848 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.098e-05/0.108, allocations: 4 kB / 419.5 MB, free: 2.844 MB / 350.1 MB Notification: Performance of sorting global known variables: time 9.433e-05/0.1081, allocations: 139.2 kB / 419.6 MB, free: 2.707 MB / 350.1 MB Notification: Performance of sort global known variables: time 1e-07/0.1081, allocations: 0 / 419.6 MB, free: 2.707 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003178/0.1084, allocations: 59.78 kB / 419.7 MB, free: 2.648 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.0008854/0.1093, allocations: 0.9034 MB / 420.6 MB, free: 1.719 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.1701/0.2794, allocations: 2.584 MB / 423.2 MB, free: 43.54 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 4.99e-06/0.2794, allocations: 0 / 423.2 MB, free: 43.54 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.00156/0.281, allocations: 1.277 MB / 424.5 MB, free: 42.53 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003749/0.2814, allocations: 23.66 kB / 424.5 MB, free: 42.53 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.00184/0.2832, allocations: 1.351 MB / 425.8 MB, free: 41.87 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001999/0.2834, allocations: 0.7657 MB / 426.6 MB, free: 41.17 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 9.139e-05/0.2835, allocations: 17.89 kB / 426.6 MB, free: 41.17 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001122/0.2837, allocations: 88.28 kB / 426.7 MB, free: 41.16 MB / 350.1 MB Notification: Performance of SimCode: time 8.81e-07/0.2837, allocations: 0 / 426.7 MB, free: 41.16 MB / 350.1 MB [CodegenUtil.tpl:216:14-216:14:writable] Error: Template error: initial value of unknown type: 0.2036 / weBase.