Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr EHPTlib_main_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 main/package.mo", uses=false) Using package EHPTlib with version (/home/hudson/saved_omc/libraries/.openmodelica/libraries/EHPTlib 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: translateModel(EHPTlib.ElectricDrives.ASMArelated.ControlLogic,tolerance=1e-06,outputFormat="empty",numberOfIntervals=10000,variableFilter="",fileNamePrefix="EHPTlib_main_EHPTlib.ElectricDrives.ASMArelated.ControlLogic") translateModel(EHPTlib.ElectricDrives.ASMArelated.ControlLogic,tolerance=1e-06,outputFormat="empty",numberOfIntervals=10000,variableFilter="",fileNamePrefix="EHPTlib_main_EHPTlib.ElectricDrives.ASMArelated.ControlLogic") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009268/0.0009269, allocations: 101.4 kB / 15.06 MB, free: 1.094 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.0009544/0.0009547, allocations: 177.3 kB / 15.95 MB, free: 208 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.397/1.397, allocations: 223.2 MB / 239.9 MB, free: 5.379 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/EHPTlib main/package.mo): time 0.1668/0.1668, allocations: 8.603 MB / 299.6 MB, free: 3.211 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002962/0.0002962, allocations: 8 kB / 362.4 MB, free: 13.57 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09063/0.09094, allocations: 52.32 MB / 414.7 MB, free: 9.203 MB / 350.1 MB Notification: Performance of NFInst.instantiate(EHPTlib.ElectricDrives.ASMArelated.ControlLogic): time 0.001807/0.09279, allocations: 1.495 MB / 416.2 MB, free: 7.691 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.0004694/0.09328, allocations: 263.5 kB / 416.5 MB, free: 7.434 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.621e-05/0.09336, allocations: 3.938 kB / 416.5 MB, free: 7.43 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 2.301e-05/0.09339, allocations: 7.922 kB / 416.5 MB, free: 7.422 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002178/0.09362, allocations: 31.89 kB / 416.5 MB, free: 7.391 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002216/0.09384, allocations: 91.81 kB / 416.6 MB, free: 7.301 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001733/0.09402, allocations: 119.5 kB / 416.7 MB, free: 7.184 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001287/0.09416, allocations: 41.83 kB / 416.8 MB, free: 7.145 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 7.254e-05/0.09424, allocations: 59.77 kB / 416.8 MB, free: 7.086 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001321/0.09438, allocations: 79.64 kB / 416.9 MB, free: 7.008 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 2.536e-05/0.09441, allocations: 8 kB / 416.9 MB, free: 7 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 2.431e-05/0.09444, allocations: 8 kB / 416.9 MB, free: 6.992 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 3.584e-05/0.09448, allocations: 27.89 kB / 417 MB, free: 6.965 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 4.104e-05/0.09453, allocations: 49.58 kB / 417 MB, free: 6.91 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001197/0.09465, allocations: 108 kB / 417.1 MB, free: 6.805 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.256e-06/0.09466, allocations: 4 kB / 417.1 MB, free: 6.801 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.844e-06/0.09467, allocations: 0 / 417.1 MB, free: 6.801 MB / 350.1 MB Notification: Performance of Transformations before backend: time 4.879e-06/0.09468, allocations: 0 / 417.1 MB, free: 6.801 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.0008622/0.09555, allocations: 0.4908 MB / 417.6 MB, free: 6.262 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.424e-05/0.09559, allocations: 8.031 kB / 417.6 MB, free: 6.254 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.122e-05/0.09565, allocations: 23.8 kB / 417.6 MB, free: 6.23 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002607/0.09592, allocations: 226.7 kB / 417.9 MB, free: 5.969 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.0001807/0.09611, allocations: 75.39 kB / 417.9 MB, free: 5.883 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.643e-05/0.09615, allocations: 12 kB / 417.9 MB, free: 5.871 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003685/0.09652, allocations: 196.1 kB / 418.1 MB, free: 5.664 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.945e-06/0.09654, allocations: 0 / 418.1 MB, free: 5.664 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.792e-05/0.09657, allocations: 15.89 kB / 418.2 MB, free: 5.648 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.22e-06/0.09658, allocations: 0 / 418.2 MB, free: 5.648 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003599/0.09695, allocations: 159.8 kB / 418.3 MB, free: 5.492 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008427/0.0978, allocations: 0.5041 MB / 418.8 MB, free: 4.938 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005109/0.09832, allocations: 234.5 kB / 419 MB, free: 4.699 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.057e-05/0.09835, allocations: 0 / 419 MB, free: 4.699 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.015e-05/0.09838, allocations: 30.56 kB / 419.1 MB, free: 4.66 MB / 350.1 MB Notification: Performance of pre-optimization done (n=11): time 1.022e-06/0.09838, allocations: 0 / 419.1 MB, free: 4.66 MB / 350.1 MB Notification: Performance of matching and sorting (n=11): time 0.0006644/0.09905, allocations: 342.5 kB / 419.4 MB, free: 4.301 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.084e-05/0.09911, allocations: 110.9 kB / 419.5 MB, free: 4.168 MB / 350.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/EHPTlib 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 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 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 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 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.0001864/0.09931, allocations: 190.2 kB / 419.7 MB, free: 3.973 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.546e-05/0.09934, allocations: 29.7 kB / 419.7 MB, free: 3.938 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.823e-05/0.09942, allocations: 124.1 kB / 419.9 MB, free: 3.809 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.189e-05/0.09946, allocations: 31.55 kB / 419.9 MB, free: 3.777 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.808e-06/0.09948, allocations: 0 / 419.9 MB, free: 3.777 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001011/0.09958, allocations: 330.8 kB / 420.2 MB, free: 3.445 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001777/0.09977, allocations: 71.95 kB / 420.3 MB, free: 3.375 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001872/0.09996, allocations: 94.84 kB / 420.4 MB, free: 3.273 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001746/0.1001, allocations: 76.06 kB / 420.4 MB, free: 3.199 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.144e-06/0.1002, allocations: 0 / 420.4 MB, free: 3.199 MB / 350.1 MB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0004021/0.1006, allocations: 197.5 kB / 420.6 MB, free: 3 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.211e-05/0.1006, allocations: 93 kB / 420.7 MB, free: 2.902 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.728e-06/0.1006, allocations: 0 / 420.7 MB, free: 2.902 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.204e-05/0.1007, allocations: 4 kB / 420.7 MB, free: 2.898 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000166/0.1008, allocations: 35.97 kB / 420.8 MB, free: 2.863 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.023e-06/0.1008, allocations: 3.953 kB / 420.8 MB, free: 2.859 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002121/0.1011, allocations: 47.81 kB / 420.8 MB, free: 2.812 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.696e-05/0.1011, allocations: 4 kB / 420.8 MB, free: 2.809 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 7.695e-06/0.1011, allocations: 4 kB / 420.8 MB, free: 2.805 MB / 350.1 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0002089/0.1013, allocations: 107.8 kB / 420.9 MB, free: 2.699 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.343e-06/0.1013, allocations: 4 kB / 420.9 MB, free: 2.695 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.593e-06/0.1013, allocations: 0 / 420.9 MB, free: 2.695 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.635e-05/0.1014, allocations: 15.98 kB / 420.9 MB, free: 2.68 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.523e-06/0.1014, allocations: 0 / 420.9 MB, free: 2.68 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001646/0.1016, allocations: 28.36 kB / 421 MB, free: 2.652 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.266e-05/0.1016, allocations: 7.984 kB / 421 MB, free: 2.645 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 (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 initialization (10): * Single equations (assignments): 9 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 1 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001198/0.1017, allocations: 201.1 kB / 421.2 MB, free: 2.438 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4e-05/0.1018, allocations: 19.8 kB / 421.2 MB, free: 2.418 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.265e-05/0.1018, allocations: 17.34 kB / 421.2 MB, free: 2.395 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.843e-06/0.1018, allocations: 0 / 421.2 MB, free: 2.395 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.19e-06/0.1019, allocations: 0 / 421.2 MB, free: 2.395 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.058e-06/0.1019, allocations: 7.922 kB / 421.2 MB, free: 2.387 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002272/0.1021, allocations: 257.3 kB / 421.5 MB, free: 2.086 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.162e-06/0.1021, allocations: 0 / 421.5 MB, free: 2.086 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001352/0.1022, allocations: 31.97 kB / 421.5 MB, free: 2.055 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.813e-06/0.1022, allocations: 0 / 421.5 MB, free: 2.055 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.315e-05/0.1023, allocations: 0 / 421.5 MB, free: 2.055 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.242e-06/0.1023, allocations: 4 kB / 421.5 MB, free: 2.051 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.844e-06/0.1023, allocations: 3.984 kB / 421.5 MB, free: 2.047 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004471/0.1027, allocations: 295.2 kB / 421.8 MB, free: 1.742 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.406e-05/0.1028, allocations: 92.88 kB / 421.9 MB, free: 1.633 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.109e-05/0.1028, allocations: 4 kB / 421.9 MB, free: 1.629 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002323/0.1031, allocations: 39.97 kB / 421.9 MB, free: 1.59 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.538e-05/0.1031, allocations: 15.97 kB / 422 MB, free: 1.574 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.273e-05/0.1031, allocations: 4 kB / 422 MB, free: 1.57 MB / 350.1 MB Notification: Performance of sorting global known variables: time 9.497e-05/0.1032, allocations: 135.2 kB / 422.1 MB, free: 1.438 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.1032, allocations: 0 / 422.1 MB, free: 1.438 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003164/0.1036, allocations: 55.84 kB / 422.1 MB, free: 1.383 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 8.954e-05/0.1037, allocations: 103.2 kB / 422.2 MB, free: 1.273 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.1652/0.2689, allocations: 2.603 MB / 424.8 MB, free: 40.12 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 4.528e-06/0.2689, allocations: 0 / 424.8 MB, free: 40.12 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.00146/0.2704, allocations: 1.283 MB / 426.1 MB, free: 39.11 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002794/0.2707, allocations: 24.36 kB / 426.2 MB, free: 39.11 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000672/0.2714, allocations: 483.8 kB / 426.6 MB, free: 38.86 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001599/0.2715, allocations: 0.775 MB / 427.4 MB, free: 38.16 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 7.627e-05/0.2716, allocations: 22.81 kB / 427.4 MB, free: 38.16 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.559e-05/0.2717, allocations: 17.69 kB / 427.4 MB, free: 38.16 MB / 350.1 MB Notification: Performance of SimCode: time 7.82e-07/0.2717, allocations: 0 / 427.4 MB, free: 38.16 MB / 350.1 MB Notification: Performance of Templates: time 0.009072/0.2808, allocations: 5.526 MB / 433 MB, free: 37.95 MB / 350.1 MB make -j1 -f EHPTlib_main_EHPTlib.ElectricDrives.ASMArelated.ControlLogic.makefile (rm -f EHPTlib_main_EHPTlib.ElectricDrives.ASMArelated.ControlLogic.pipe ; mkfifo EHPTlib_main_EHPTlib.ElectricDrives.ASMArelated.ControlLogic.pipe ; head -c 1048576 < EHPTlib_main_EHPTlib.ElectricDrives.ASMArelated.ControlLogic.pipe >> ../files/EHPTlib_main_EHPTlib.ElectricDrives.ASMArelated.ControlLogic.sim & ./EHPTlib_main_EHPTlib.ElectricDrives.ASMArelated.ControlLogic -abortSlowSimulation -alarm=480 -lv LOG_STATS > EHPTlib_main_EHPTlib.ElectricDrives.ASMArelated.ControlLogic.pipe 2>&1)