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.0009724/0.0009724, allocations: 111.3 kB / 15.23 MB, free: 0.6602 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.001025/0.001025, allocations: 189.3 kB / 16.13 MB, free: 6.656 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.22/1.22, allocations: 222.9 MB / 239.8 MB, free: 4.617 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/EHPTlib 2.1.4-main/package.mo): time 0.1416/0.1416, allocations: 8.026 MB / 298 MB, free: 2.453 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001123/0.001123, allocations: 55.91 kB / 360.1 MB, free: 14.74 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08883/0.08996, allocations: 51.19 MB / 411.2 MB, free: 11.51 MB / 350.1 MB Notification: Performance of NFInst.instantiate(EHPTlib.ElectricDrives.ASMArelated.ControlLogic): time 0.002717/0.09272, allocations: 1.888 MB / 413.1 MB, free: 9.602 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.0004826/0.09321, allocations: 275.3 kB / 413.4 MB, free: 9.332 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.331e-05/0.09331, allocations: 7.938 kB / 413.4 MB, free: 9.324 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 4.305e-05/0.09336, allocations: 11.86 kB / 413.4 MB, free: 9.312 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002239/0.09359, allocations: 27.84 kB / 413.5 MB, free: 9.285 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002261/0.09383, allocations: 111.9 kB / 413.6 MB, free: 9.176 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.00019/0.09402, allocations: 187.2 kB / 413.7 MB, free: 8.992 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001235/0.09415, allocations: 53.83 kB / 413.8 MB, free: 8.941 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 8.034e-05/0.09424, allocations: 63.77 kB / 413.9 MB, free: 8.879 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001247/0.09437, allocations: 87.59 kB / 413.9 MB, free: 8.793 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 3.241e-05/0.09441, allocations: 8 kB / 414 MB, free: 8.785 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 2.945e-05/0.09444, allocations: 12 kB / 414 MB, free: 8.773 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 4.389e-05/0.09449, allocations: 43.75 kB / 414 MB, free: 8.73 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 7.187e-05/0.09457, allocations: 71.58 kB / 414.1 MB, free: 8.66 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001595/0.09473, allocations: 151.7 kB / 414.2 MB, free: 8.512 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.819e-06/0.09475, allocations: 4 kB / 414.2 MB, free: 8.508 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.143e-06/0.09475, allocations: 0 / 414.2 MB, free: 8.508 MB / 350.1 MB Notification: Performance of Transformations before backend: time 3.247e-06/0.09476, allocations: 0 / 414.2 MB, free: 8.508 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.0008806/0.09564, allocations: 0.5104 MB / 414.7 MB, free: 7.949 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.519e-05/0.09569, allocations: 12.03 kB / 414.8 MB, free: 7.938 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.877e-05/0.09577, allocations: 46.97 kB / 414.8 MB, free: 7.883 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.804e-05/0.09583, allocations: 16.75 kB / 414.8 MB, free: 7.867 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002407/0.09607, allocations: 235.9 kB / 415 MB, free: 7.598 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.0001498/0.09623, allocations: 72.19 kB / 415.1 MB, free: 7.516 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.408e-05/0.09626, allocations: 19.94 kB / 415.1 MB, free: 7.496 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003548/0.09662, allocations: 186.2 kB / 415.3 MB, free: 7.301 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.484e-06/0.09664, allocations: 0 / 415.3 MB, free: 7.301 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.088e-05/0.09666, allocations: 4 kB / 415.3 MB, free: 7.297 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.901e-06/0.09667, allocations: 4 kB / 415.3 MB, free: 7.293 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003344/0.09701, allocations: 148.5 kB / 415.5 MB, free: 7.148 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008001/0.09782, allocations: 0.4885 MB / 416 MB, free: 6.609 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004744/0.0983, allocations: 202.5 kB / 416.2 MB, free: 6.402 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001774/0.09849, allocations: 76.75 kB / 416.2 MB, free: 6.324 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.788e-05/0.09852, allocations: 0 / 416.2 MB, free: 6.324 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.544e-05/0.09856, allocations: 42.55 kB / 416.3 MB, free: 6.273 MB / 350.1 MB Notification: Performance of pre-optimization done (n=11): time 1.072e-06/0.09856, allocations: 0 / 416.3 MB, free: 6.273 MB / 350.1 MB Notification: Performance of matching and sorting (n=11): time 0.0005953/0.09917, allocations: 229.4 kB / 416.5 MB, free: 6.043 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.044e-05/0.09922, allocations: 114.8 kB / 416.6 MB, free: 5.906 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.0001836/0.09941, allocations: 180.5 kB / 416.8 MB, free: 5.723 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.362e-05/0.09945, allocations: 37.7 kB / 416.8 MB, free: 5.68 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.302e-05/0.09952, allocations: 131.8 kB / 416.9 MB, free: 5.547 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.86e-05/0.09956, allocations: 39.47 kB / 417 MB, free: 5.508 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.371e-05/0.09963, allocations: 29.7 kB / 417 MB, free: 5.473 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 9.97e-05/0.09973, allocations: 326.8 kB / 417.3 MB, free: 5.145 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001868/0.09992, allocations: 64.81 kB / 417.4 MB, free: 5.078 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001774/0.1001, allocations: 86.52 kB / 417.5 MB, free: 4.984 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003085/0.1004, allocations: 133.1 kB / 417.6 MB, free: 4.852 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.096e-06/0.1004, allocations: 3.938 kB / 417.6 MB, free: 4.848 MB / 350.1 MB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0003829/0.1008, allocations: 189.4 kB / 417.8 MB, free: 4.656 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.898e-05/0.1009, allocations: 4 kB / 417.8 MB, free: 4.652 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.188e-06/0.1009, allocations: 0 / 417.8 MB, free: 4.652 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.194e-05/0.1009, allocations: 4 kB / 417.8 MB, free: 4.648 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001513/0.101, allocations: 23.97 kB / 417.8 MB, free: 4.625 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.57e-06/0.101, allocations: 0 / 417.8 MB, free: 4.625 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002016/0.1013, allocations: 27.97 kB / 417.9 MB, free: 4.598 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.031e-05/0.1013, allocations: 11.98 kB / 417.9 MB, free: 4.586 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0001471/0.1014, allocations: 124.1 kB / 418 MB, free: 4.461 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0001148/0.1016, allocations: 62.48 kB / 418.1 MB, free: 4.391 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.0001696/0.1017, allocations: 92.77 kB / 418.1 MB, free: 4.297 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 8.41e-07/0.1017, allocations: 0 / 418.1 MB, free: 4.297 MB / 350.1 MB Notification: Performance of matching and sorting (n=11) (initialization_lambda0): time 0.0002589/0.102, allocations: 145.4 kB / 418.3 MB, free: 4.148 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 7.604e-06/0.102, allocations: 4 kB / 418.3 MB, free: 4.145 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.212e-06/0.102, allocations: 3.938 kB / 418.3 MB, free: 4.141 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.393e-06/0.102, allocations: 0 / 418.3 MB, free: 4.141 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.224e-05/0.1021, allocations: 15.98 kB / 418.3 MB, free: 4.125 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.543e-06/0.1021, allocations: 0 / 418.3 MB, free: 4.125 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001973/0.1023, allocations: 27.92 kB / 418.3 MB, free: 4.098 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.221e-05/0.1024, allocations: 3.984 kB / 418.3 MB, free: 4.094 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.0001086/0.1025, allocations: 196.2 kB / 418.5 MB, free: 3.895 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.137e-05/0.1025, allocations: 15.81 kB / 418.5 MB, free: 3.879 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.129e-05/0.1026, allocations: 13.41 kB / 418.6 MB, free: 3.859 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.134e-06/0.1026, allocations: 0 / 418.6 MB, free: 3.859 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.669e-06/0.1026, allocations: 0 / 418.6 MB, free: 3.859 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.952e-06/0.1026, allocations: 7.984 kB / 418.6 MB, free: 3.852 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002366/0.1028, allocations: 237.5 kB / 418.8 MB, free: 3.57 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.225e-06/0.1028, allocations: 0 / 418.8 MB, free: 3.57 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001354/0.103, allocations: 35.84 kB / 418.8 MB, free: 3.535 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.743e-06/0.103, allocations: 384 / 418.8 MB, free: 3.535 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.725e-05/0.103, allocations: 11.98 kB / 418.8 MB, free: 3.523 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.282e-06/0.103, allocations: 0 / 418.8 MB, free: 3.523 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.32e-07/0.103, allocations: 0 / 418.8 MB, free: 3.523 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004289/0.1035, allocations: 279.1 kB / 419.1 MB, free: 3.234 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.318e-05/0.1035, allocations: 88.92 kB / 419.2 MB, free: 3.129 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3e-05/0.1036, allocations: 4 kB / 419.2 MB, free: 3.125 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002246/0.1038, allocations: 27.97 kB / 419.2 MB, free: 3.098 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.255e-05/0.1038, allocations: 15.91 kB / 419.3 MB, free: 3.082 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.341e-05/0.1039, allocations: 8 kB / 419.3 MB, free: 3.074 MB / 350.1 MB Notification: Performance of sorting global known variables: time 9.852e-05/0.104, allocations: 135.2 kB / 419.4 MB, free: 2.941 MB / 350.1 MB Notification: Performance of sort global known variables: time 1e-07/0.104, allocations: 0 / 419.4 MB, free: 2.941 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003174/0.1043, allocations: 63.78 kB / 419.5 MB, free: 2.879 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.0008726/0.1052, allocations: 0.9034 MB / 420.4 MB, free: 1.949 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.1389/0.2441, allocations: 2.583 MB / 422.9 MB, free: 43.6 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 3.887e-06/0.2442, allocations: 2.344 kB / 422.9 MB, free: 43.6 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001469/0.2456, allocations: 1.275 MB / 424.2 MB, free: 42.59 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003595/0.246, allocations: 22.42 kB / 424.2 MB, free: 42.59 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.001729/0.2478, allocations: 1.351 MB / 425.6 MB, free: 41.93 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001572/0.2479, allocations: 0.7657 MB / 426.4 MB, free: 41.23 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 8.425e-05/0.248, allocations: 17.16 kB / 426.4 MB, free: 41.23 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001102/0.2481, allocations: 85.5 kB / 426.5 MB, free: 41.23 MB / 350.1 MB Notification: Performance of SimCode: time 5.62e-07/0.2481, allocations: 3.812 kB / 426.5 MB, free: 41.23 MB / 350.1 MB [CodegenUtil.tpl:198:14-198:14:writable] Error: Template error: initial value of unknown type: 0.2036 / weBase.