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.001216/0.001217, 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.001217/0.001217, allocations: 196.1 kB / 16.53 MB, free: 6.664 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.269/1.269, allocations: 222.9 MB / 240.2 MB, free: 4.383 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/EHPTlib 2.1.4-main/package.mo): time 0.1334/0.1334, allocations: 8.025 MB / 298.4 MB, free: 2.391 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00125/0.001251, allocations: 59.91 kB / 360.7 MB, free: 14.2 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08284/0.0841, allocations: 51.2 MB / 411.9 MB, free: 10.96 MB / 350.1 MB Notification: Performance of NFInst.instantiate(EHPTlib.ElectricDrives.ASMArelated.ControlLogic): time 0.002861/0.08701, allocations: 1.827 MB / 413.8 MB, free: 9.109 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.0005857/0.08762, allocations: 279.3 kB / 414 MB, free: 8.836 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001092/0.08774, allocations: 4 kB / 414 MB, free: 8.832 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 4.428e-05/0.08779, allocations: 11.81 kB / 414 MB, free: 8.82 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002335/0.08805, allocations: 39.7 kB / 414.1 MB, free: 8.781 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002684/0.08832, allocations: 127.5 kB / 414.2 MB, free: 8.66 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002086/0.08854, allocations: 191.3 kB / 414.4 MB, free: 8.473 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001471/0.08869, allocations: 49.84 kB / 414.4 MB, free: 8.426 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 9.158e-05/0.08879, allocations: 75.77 kB / 414.5 MB, free: 8.352 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001336/0.08893, allocations: 95.52 kB / 414.6 MB, free: 8.258 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 3.652e-05/0.08897, allocations: 16 kB / 414.6 MB, free: 8.242 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 3.691e-05/0.08902, allocations: 16 kB / 414.6 MB, free: 8.227 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 4.766e-05/0.08907, allocations: 51.75 kB / 414.7 MB, free: 8.176 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 6.971e-05/0.08914, allocations: 67.59 kB / 414.8 MB, free: 8.109 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001798/0.08933, allocations: 163.7 kB / 414.9 MB, free: 7.949 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.101e-06/0.08934, allocations: 7.984 kB / 414.9 MB, free: 7.941 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.132e-06/0.08935, allocations: 3.938 kB / 414.9 MB, free: 7.938 MB / 350.1 MB Notification: Performance of Transformations before backend: time 4.979e-06/0.08936, allocations: 0 / 414.9 MB, free: 7.938 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.0008992/0.09026, allocations: 0.5065 MB / 415.4 MB, free: 7.383 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.717e-05/0.09031, allocations: 8.031 kB / 415.4 MB, free: 7.375 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.355e-05/0.09039, allocations: 46.97 kB / 415.5 MB, free: 7.32 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.251e-05/0.09045, allocations: 20.75 kB / 415.5 MB, free: 7.301 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002458/0.09071, allocations: 235.9 kB / 415.7 MB, free: 7.031 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.0001655/0.09088, allocations: 72.19 kB / 415.8 MB, free: 6.949 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.458e-05/0.09091, allocations: 15.94 kB / 415.8 MB, free: 6.934 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003582/0.09127, allocations: 191 kB / 416 MB, free: 6.734 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.556e-06/0.09129, allocations: 0 / 416 MB, free: 6.734 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.057e-05/0.09132, allocations: 4 kB / 416 MB, free: 6.73 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.593e-06/0.09133, allocations: 4 kB / 416 MB, free: 6.727 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003507/0.09168, allocations: 148.5 kB / 416.2 MB, free: 6.582 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008302/0.09252, allocations: 0.4885 MB / 416.7 MB, free: 6.043 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004977/0.09303, allocations: 202.5 kB / 416.9 MB, free: 5.836 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001763/0.09322, allocations: 72.75 kB / 416.9 MB, free: 5.762 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.337e-05/0.09325, allocations: 7.984 kB / 416.9 MB, free: 5.754 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.514e-05/0.09328, allocations: 38.56 kB / 417 MB, free: 5.707 MB / 350.1 MB Notification: Performance of pre-optimization done (n=11): time 1.523e-06/0.09329, allocations: 0 / 417 MB, free: 5.707 MB / 350.1 MB Notification: Performance of matching and sorting (n=11): time 0.0006525/0.09394, allocations: 237.3 kB / 417.2 MB, free: 5.469 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.329e-05/0.09402, allocations: 106.8 kB / 417.3 MB, free: 5.34 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.0001938/0.09422, allocations: 178.3 kB / 417.5 MB, free: 5.156 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.279e-05/0.09425, allocations: 29.7 kB / 417.5 MB, free: 5.121 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.816e-05/0.09432, allocations: 135.7 kB / 417.6 MB, free: 4.984 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.489e-05/0.09436, allocations: 27.56 kB / 417.7 MB, free: 4.957 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.479e-05/0.09443, allocations: 37.69 kB / 417.7 MB, free: 4.914 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001075/0.09455, allocations: 326.8 kB / 418 MB, free: 4.586 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001786/0.09473, allocations: 60.81 kB / 418.1 MB, free: 4.523 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001901/0.09493, allocations: 90.52 kB / 418.2 MB, free: 4.426 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003224/0.09526, allocations: 132.7 kB / 418.3 MB, free: 4.293 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.005e-06/0.09527, allocations: 3.938 kB / 418.3 MB, free: 4.289 MB / 350.1 MB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0004103/0.09568, allocations: 185.6 kB / 418.5 MB, free: 4.102 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.309e-05/0.09571, allocations: 6.438 kB / 418.5 MB, free: 4.098 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.93e-06/0.09572, allocations: 3.938 kB / 418.5 MB, free: 4.094 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.057e-05/0.09573, allocations: 0 / 418.5 MB, free: 4.094 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001514/0.09589, allocations: 23.97 kB / 418.5 MB, free: 4.07 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.482e-06/0.0959, allocations: 7.984 kB / 418.5 MB, free: 4.062 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002069/0.09612, allocations: 27.97 kB / 418.6 MB, free: 4.035 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.734e-05/0.09614, allocations: 8 kB / 418.6 MB, free: 4.027 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0001426/0.09629, allocations: 132 kB / 418.7 MB, free: 3.895 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0001037/0.0964, allocations: 58.98 kB / 418.7 MB, free: 3.828 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.0001779/0.09659, allocations: 92.81 kB / 418.8 MB, free: 3.734 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 8.91e-07/0.09659, allocations: 0 / 418.8 MB, free: 3.734 MB / 350.1 MB Notification: Performance of matching and sorting (n=11) (initialization_lambda0): time 0.0002505/0.09685, allocations: 145.3 kB / 419 MB, free: 3.586 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 7.224e-06/0.09687, allocations: 8.031 kB / 419 MB, free: 3.578 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.695e-06/0.09687, allocations: 3.984 kB / 419 MB, free: 3.574 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.374e-06/0.09688, allocations: 0 / 419 MB, free: 3.574 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.679e-05/0.09697, allocations: 15.98 kB / 419 MB, free: 3.559 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.552e-06/0.09698, allocations: 0 / 419 MB, free: 3.559 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001734/0.09716, allocations: 23.92 kB / 419 MB, free: 3.535 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.238e-05/0.09718, allocations: 7.984 kB / 419 MB, free: 3.527 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.0001038/0.09729, allocations: 192.2 kB / 419.2 MB, free: 3.332 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.377e-05/0.09734, allocations: 19.81 kB / 419.2 MB, free: 3.312 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.532e-05/0.09739, allocations: 13.41 kB / 419.3 MB, free: 3.289 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.713e-06/0.09739, allocations: 0 / 419.3 MB, free: 3.289 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.208e-06/0.0974, allocations: 0 / 419.3 MB, free: 3.289 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.246e-06/0.09741, allocations: 0 / 419.3 MB, free: 3.289 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002422/0.09766, allocations: 245.5 kB / 419.5 MB, free: 3 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.142e-06/0.09767, allocations: 0 / 419.5 MB, free: 3 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001324/0.0978, allocations: 31.91 kB / 419.5 MB, free: 2.969 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.769e-06/0.09782, allocations: 0 / 419.5 MB, free: 2.969 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.263e-05/0.09783, allocations: 7.938 kB / 419.5 MB, free: 2.961 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.797e-06/0.09784, allocations: 8 kB / 419.5 MB, free: 2.953 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.21e-07/0.09785, allocations: 0 / 419.5 MB, free: 2.953 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004389/0.09829, allocations: 279.2 kB / 419.8 MB, free: 2.664 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.63e-05/0.09835, allocations: 92.86 kB / 419.9 MB, free: 2.555 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.915e-05/0.09838, allocations: 4 kB / 419.9 MB, free: 2.551 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002225/0.09861, allocations: 27.97 kB / 419.9 MB, free: 2.523 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.389e-05/0.09867, allocations: 15.97 kB / 420 MB, free: 2.508 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.174e-05/0.09869, allocations: 4 kB / 420 MB, free: 2.504 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0001003/0.09879, allocations: 140.2 kB / 420.1 MB, free: 2.367 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.31e-07/0.0988, allocations: 288 / 420.1 MB, free: 2.367 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003141/0.09912, allocations: 59.78 kB / 420.2 MB, free: 2.309 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.0008968/0.1, allocations: 0.9039 MB / 421.1 MB, free: 1.379 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.1343/0.2343, allocations: 2.58 MB / 423.6 MB, free: 43.99 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 4.278e-06/0.2344, allocations: 3.938 kB / 423.6 MB, free: 43.99 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001405/0.2358, allocations: 1.274 MB / 424.9 MB, free: 42.98 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003251/0.2361, allocations: 23.56 kB / 424.9 MB, free: 42.98 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.001604/0.2377, allocations: 1.301 MB / 426.2 MB, free: 42.37 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000143/0.2379, allocations: 0.7641 MB / 427 MB, free: 41.67 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 7.236e-05/0.2379, allocations: 22.08 kB / 427 MB, free: 41.67 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.735e-05/0.238, allocations: 88.59 kB / 427.1 MB, free: 41.66 MB / 350.1 MB Notification: Performance of SimCode: time 5.11e-07/0.238, allocations: 0 / 427.1 MB, free: 41.66 MB / 350.1 MB [CodegenUtil.tpl:216:14-216:14:writable] Error: Template error: initial value of unknown type: 0.2036 / weBase.