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.0009989/0.0009989, allocations: 111.3 kB / 15.23 MB, free: 0.6406 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.001126/0.001126, allocations: 195.1 kB / 16.14 MB, free: 6.688 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.287/1.287, allocations: 222.9 MB / 239.8 MB, free: 4.613 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/EHPTlib 2.1.4-main/package.mo): time 0.1589/0.1589, allocations: 8.019 MB / 298 MB, free: 2.41 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001184/0.001184, allocations: 63.89 kB / 360.1 MB, free: 14.73 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08876/0.08996, allocations: 51.2 MB / 411.3 MB, free: 11.5 MB / 350.1 MB Notification: Performance of NFInst.instantiate(EHPTlib.ElectricDrives.ASMArelated.ControlLogic): time 0.003115/0.09312, allocations: 1.888 MB / 413.1 MB, free: 9.594 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.0004967/0.09364, allocations: 279.3 kB / 413.4 MB, free: 9.32 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.657e-05/0.09374, allocations: 0 / 413.4 MB, free: 9.32 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 4.602e-05/0.09382, allocations: 11.86 kB / 413.4 MB, free: 9.309 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002183/0.09404, allocations: 23.86 kB / 413.4 MB, free: 9.285 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002193/0.09427, allocations: 111.8 kB / 413.6 MB, free: 9.176 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002032/0.09448, allocations: 183.3 kB / 413.7 MB, free: 8.996 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001309/0.09462, allocations: 57.77 kB / 413.8 MB, free: 8.941 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 6.964e-05/0.09469, allocations: 67.7 kB / 413.9 MB, free: 8.875 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001889/0.09489, allocations: 91.58 kB / 413.9 MB, free: 8.785 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 3.473e-05/0.09493, allocations: 12 kB / 414 MB, free: 8.773 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 2.693e-05/0.09496, allocations: 8 kB / 414 MB, free: 8.766 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 4.197e-05/0.09501, allocations: 39.83 kB / 414 MB, free: 8.727 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 6.955e-05/0.09508, allocations: 71.58 kB / 414.1 MB, free: 8.656 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001569/0.09525, allocations: 155.6 kB / 414.2 MB, free: 8.504 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.477e-06/0.09526, allocations: 0 / 414.2 MB, free: 8.504 MB / 350.1 MB Notification: Performance of FrontEnd: time 6.21e-07/0.09526, allocations: 0 / 414.2 MB, free: 8.504 MB / 350.1 MB Notification: Performance of Transformations before backend: time 4.057e-06/0.09527, allocations: 4 kB / 414.2 MB, free: 8.5 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.0009763/0.09625, allocations: 0.5105 MB / 414.7 MB, free: 7.941 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.404e-05/0.09629, allocations: 8.031 kB / 414.7 MB, free: 7.934 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.088e-05/0.09637, allocations: 42.98 kB / 414.8 MB, free: 7.883 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.9e-05/0.09642, allocations: 24.73 kB / 414.8 MB, free: 7.859 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002352/0.09666, allocations: 231.9 kB / 415 MB, free: 7.594 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.0001676/0.09684, allocations: 76.19 kB / 415.1 MB, free: 7.508 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.402e-05/0.09687, allocations: 15.94 kB / 415.1 MB, free: 7.492 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003582/0.09723, allocations: 194.2 kB / 415.3 MB, free: 7.289 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.316e-06/0.09725, allocations: 0 / 415.3 MB, free: 7.289 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.21e-05/0.09728, allocations: 8 kB / 415.3 MB, free: 7.281 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.132e-06/0.09729, allocations: 0 / 415.3 MB, free: 7.281 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003329/0.09763, allocations: 144.5 kB / 415.5 MB, free: 7.141 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008377/0.09847, allocations: 0.4924 MB / 416 MB, free: 6.598 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004803/0.09896, allocations: 206.5 kB / 416.2 MB, free: 6.387 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001714/0.09915, allocations: 76.81 kB / 416.2 MB, free: 6.309 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.117e-05/0.09917, allocations: 3.984 kB / 416.2 MB, free: 6.305 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.225e-05/0.0992, allocations: 34.56 kB / 416.3 MB, free: 6.262 MB / 350.1 MB Notification: Performance of pre-optimization done (n=11): time 1.253e-06/0.09921, allocations: 0 / 416.3 MB, free: 6.262 MB / 350.1 MB Notification: Performance of matching and sorting (n=11): time 0.0006173/0.09983, allocations: 241.3 kB / 416.5 MB, free: 6.02 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.54e-05/0.09989, allocations: 102.8 kB / 416.6 MB, free: 5.895 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.0002915/0.1002, allocations: 186.3 kB / 416.8 MB, free: 5.703 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.277e-05/0.1002, allocations: 25.7 kB / 416.8 MB, free: 5.672 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.401e-05/0.1003, allocations: 131.7 kB / 416.9 MB, free: 5.539 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.224e-05/0.1003, allocations: 35.55 kB / 417 MB, free: 5.504 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.626e-05/0.1004, allocations: 41.64 kB / 417 MB, free: 5.457 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.000166/0.1006, allocations: 318.8 kB / 417.3 MB, free: 5.137 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001741/0.1008, allocations: 72.8 kB / 417.4 MB, free: 5.062 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001799/0.1009, allocations: 90.56 kB / 417.5 MB, free: 4.965 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003015/0.1013, allocations: 124.7 kB / 417.6 MB, free: 4.84 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.056e-06/0.1013, allocations: 3.938 kB / 417.6 MB, free: 4.836 MB / 350.1 MB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0003774/0.1017, allocations: 177.4 kB / 417.8 MB, free: 4.656 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.214e-05/0.1017, allocations: 12.03 kB / 417.8 MB, free: 4.645 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.727e-06/0.1017, allocations: 0 / 417.8 MB, free: 4.645 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.211e-05/0.1017, allocations: 0 / 417.8 MB, free: 4.645 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001516/0.1019, allocations: 23.97 kB / 417.8 MB, free: 4.621 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.06e-06/0.1019, allocations: 0 / 417.8 MB, free: 4.621 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001985/0.1021, allocations: 27.97 kB / 417.9 MB, free: 4.594 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.008e-05/0.1021, allocations: 11.92 kB / 417.9 MB, free: 4.582 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.000171/0.1023, allocations: 128.1 kB / 418 MB, free: 4.453 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0001223/0.1024, allocations: 70.98 kB / 418.1 MB, free: 4.375 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.0001696/0.1026, allocations: 84.88 kB / 418.1 MB, free: 4.289 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 9.72e-07/0.1026, allocations: 0 / 418.1 MB, free: 4.289 MB / 350.1 MB Notification: Performance of matching and sorting (n=11) (initialization_lambda0): time 0.0002625/0.1029, allocations: 145.3 kB / 418.3 MB, free: 4.141 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 7.424e-06/0.1029, allocations: 6.031 kB / 418.3 MB, free: 4.137 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.725e-06/0.1029, allocations: 4 kB / 418.3 MB, free: 4.133 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.433e-06/0.1029, allocations: 32 / 418.3 MB, free: 4.133 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.147e-05/0.103, allocations: 15.98 kB / 418.3 MB, free: 4.117 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.563e-06/0.103, allocations: 4 kB / 418.3 MB, free: 4.113 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001736/0.1032, allocations: 19.92 kB / 418.3 MB, free: 4.094 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.576e-05/0.1032, allocations: 11.98 kB / 418.3 MB, free: 4.082 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.0001106/0.1033, allocations: 188.2 kB / 418.5 MB, free: 3.891 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.521e-05/0.1034, allocations: 15.81 kB / 418.5 MB, free: 3.875 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.249e-05/0.1034, allocations: 17.34 kB / 418.6 MB, free: 3.852 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.188e-06/0.1034, allocations: 11.98 kB / 418.6 MB, free: 3.84 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.428e-06/0.1034, allocations: 0 / 418.6 MB, free: 3.84 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.766e-06/0.1034, allocations: 0 / 418.6 MB, free: 3.84 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002698/0.1037, allocations: 245.5 kB / 418.8 MB, free: 3.551 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.272e-06/0.1037, allocations: 3.938 kB / 418.8 MB, free: 3.547 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001386/0.1039, allocations: 27.97 kB / 418.8 MB, free: 3.52 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.813e-06/0.1039, allocations: 0 / 418.8 MB, free: 3.52 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.78e-05/0.1039, allocations: 7.984 kB / 418.9 MB, free: 3.512 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.794e-06/0.1039, allocations: 0 / 418.9 MB, free: 3.512 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.41e-07/0.1039, allocations: 0 / 418.9 MB, free: 3.512 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004346/0.1044, allocations: 279.5 kB / 419.1 MB, free: 3.223 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.168e-05/0.1044, allocations: 88.92 kB / 419.2 MB, free: 3.117 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.482e-05/0.1045, allocations: 8 kB / 419.2 MB, free: 3.109 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002265/0.1047, allocations: 31.95 kB / 419.3 MB, free: 3.078 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.038e-05/0.1048, allocations: 12.08 kB / 419.3 MB, free: 3.066 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.434e-05/0.1048, allocations: 11.92 kB / 419.3 MB, free: 3.055 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0001019/0.1049, allocations: 131.2 kB / 419.4 MB, free: 2.926 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.1049, allocations: 0 / 419.4 MB, free: 2.926 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003212/0.1052, allocations: 63.78 kB / 419.5 MB, free: 2.863 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.0009878/0.1062, allocations: 0.8995 MB / 420.4 MB, free: 1.938 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.1538/0.26, allocations: 2.581 MB / 422.9 MB, free: 43.59 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 5.22e-06/0.2601, allocations: 2.344 kB / 422.9 MB, free: 43.59 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001491/0.2616, allocations: 1.272 MB / 424.2 MB, free: 42.58 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003764/0.262, allocations: 24.19 kB / 424.2 MB, free: 42.58 MB / 350.1 MB [/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/Compiler/BackEnd/SymbolicJacobian.mo:1941:3-1941:101:writable] Error: Internal error function createFMIModelDerivativesForInitialization failed Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001734/0.2637, allocations: 1.349 MB / 425.6 MB, free: 41.92 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001659/0.2639, allocations: 0.7639 MB / 426.4 MB, free: 41.22 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 8.546e-05/0.264, allocations: 20.11 kB / 426.4 MB, free: 41.22 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001154/0.2641, allocations: 89.84 kB / 426.5 MB, free: 41.21 MB / 350.1 MB Notification: Performance of SimCode: time 7.72e-07/0.2641, allocations: 0 / 426.5 MB, free: 41.21 MB / 350.1 MB [CodegenUtil.tpl:198:14-198:14:writable] Error: Template error: initial value of unknown type: 0.2036 / weBase.