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 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: 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.0008079/0.0008081, allocations: 84.38 kB / 15.06 MB, free: 1.09 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.0008955/0.0008954, allocations: 168.7 kB / 15.95 MB, free: 204 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.317/1.317, allocations: 223.3 MB / 240 MB, free: 5.414 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/EHPTlib 2.1.4-main/package.mo): time 0.1775/0.1775, allocations: 8.031 MB / 299.1 MB, free: 3.402 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003139/0.0003139, allocations: 8 kB / 361.8 MB, free: 14.29 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0983/0.09863, allocations: 52.18 MB / 414 MB, free: 10.07 MB / 350.1 MB Notification: Performance of NFInst.instantiate(EHPTlib.ElectricDrives.ASMArelated.ControlLogic): time 0.001701/0.1004, allocations: 1.507 MB / 415.5 MB, free: 8.543 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.0004589/0.1008, allocations: 267.4 kB / 415.7 MB, free: 8.281 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.048e-05/0.1009, allocations: 4 kB / 415.7 MB, free: 8.277 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 2.351e-05/0.101, allocations: 11.86 kB / 415.8 MB, free: 8.266 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002037/0.1012, allocations: 27.84 kB / 415.8 MB, free: 8.238 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002241/0.1014, allocations: 95.86 kB / 415.9 MB, free: 8.145 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002035/0.1016, allocations: 163.3 kB / 416 MB, free: 7.984 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001085/0.1017, allocations: 45.83 kB / 416.1 MB, free: 7.941 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 6.961e-05/0.1018, allocations: 59.7 kB / 416.1 MB, free: 7.883 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001201/0.1019, allocations: 83.64 kB / 416.2 MB, free: 7.801 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 2.488e-05/0.102, allocations: 4 kB / 416.2 MB, free: 7.797 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 2.036e-05/0.102, allocations: 12 kB / 416.2 MB, free: 7.785 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 3.521e-05/0.102, allocations: 31.84 kB / 416.3 MB, free: 7.754 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 3.453e-05/0.1021, allocations: 45.64 kB / 416.3 MB, free: 7.703 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001115/0.1022, allocations: 100 kB / 416.4 MB, free: 7.605 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.009e-06/0.1022, allocations: 4 kB / 416.4 MB, free: 7.602 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.333e-06/0.1022, allocations: 4 kB / 416.4 MB, free: 7.598 MB / 350.1 MB Notification: Performance of Transformations before backend: time 3.406e-06/0.1022, allocations: 0 / 416.4 MB, free: 7.598 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.0007875/0.103, allocations: 0.4966 MB / 416.9 MB, free: 7.055 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.061e-05/0.103, allocations: 11.97 kB / 416.9 MB, free: 7.043 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.12e-05/0.1031, allocations: 19.81 kB / 416.9 MB, free: 7.023 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002374/0.1033, allocations: 226.7 kB / 417.2 MB, free: 6.762 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.0001566/0.1035, allocations: 78.77 kB / 417.2 MB, free: 6.676 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.509e-05/0.1035, allocations: 15.98 kB / 417.3 MB, free: 6.66 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003557/0.1039, allocations: 200 kB / 417.5 MB, free: 6.449 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.927e-06/0.1039, allocations: 0 / 417.5 MB, free: 6.449 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.332e-05/0.1039, allocations: 15.89 kB / 417.5 MB, free: 6.434 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.719e-06/0.104, allocations: 0 / 417.5 MB, free: 6.434 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003448/0.1043, allocations: 155.9 kB / 417.6 MB, free: 6.281 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008383/0.1052, allocations: 0.508 MB / 418.1 MB, free: 5.723 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000506/0.1057, allocations: 226.6 kB / 418.3 MB, free: 5.492 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001766/0.1059, allocations: 80.81 kB / 418.4 MB, free: 5.41 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.546e-05/0.1059, allocations: 8 kB / 418.4 MB, free: 5.402 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.309e-05/0.1059, allocations: 30.56 kB / 418.5 MB, free: 5.363 MB / 350.1 MB Notification: Performance of pre-optimization done (n=11): time 1.423e-06/0.1059, allocations: 0 / 418.5 MB, free: 5.363 MB / 350.1 MB Notification: Performance of matching and sorting (n=11): time 0.0006632/0.1066, allocations: 273.2 kB / 418.7 MB, free: 5.09 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.584e-05/0.1067, allocations: 106.8 kB / 418.8 MB, free: 4.961 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.0001981/0.1069, allocations: 182.2 kB / 419 MB, free: 4.773 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.478e-05/0.1069, allocations: 33.7 kB / 419 MB, free: 4.734 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.647e-05/0.107, allocations: 132 kB / 419.2 MB, free: 4.598 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.694e-05/0.107, allocations: 31.55 kB / 419.2 MB, free: 4.566 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.324e-05/0.107, allocations: 4 kB / 419.2 MB, free: 4.562 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 9.021e-05/0.1071, allocations: 322.8 kB / 419.5 MB, free: 4.238 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001733/0.1073, allocations: 71.95 kB / 419.6 MB, free: 4.168 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001844/0.1075, allocations: 102.5 kB / 419.7 MB, free: 4.059 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001634/0.1077, allocations: 59.97 kB / 419.8 MB, free: 4 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.526e-06/0.1077, allocations: 4 kB / 419.8 MB, free: 3.996 MB / 350.1 MB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0003972/0.1081, allocations: 197.5 kB / 420 MB, free: 3.797 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.579e-05/0.1081, allocations: 93 kB / 420 MB, free: 3.699 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.177e-06/0.1082, allocations: 0 / 420 MB, free: 3.699 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 9.358e-06/0.1082, allocations: 0 / 420 MB, free: 3.699 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001629/0.1083, allocations: 39.86 kB / 420.1 MB, free: 3.66 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.749e-06/0.1083, allocations: 0 / 420.1 MB, free: 3.66 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000198/0.1086, allocations: 43.81 kB / 420.1 MB, free: 3.617 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.043e-05/0.1086, allocations: 8 kB / 420.1 MB, free: 3.609 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.61e-06/0.1086, allocations: 7.938 kB / 420.1 MB, free: 3.602 MB / 350.1 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0002172/0.1088, allocations: 100.2 kB / 420.2 MB, free: 3.504 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.362e-06/0.1088, allocations: 4 kB / 420.2 MB, free: 3.5 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.743e-06/0.1088, allocations: 96 / 420.2 MB, free: 3.5 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.072e-05/0.1089, allocations: 23.86 kB / 420.3 MB, free: 3.477 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.633e-06/0.1089, allocations: 0 / 420.3 MB, free: 3.477 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001556/0.1091, allocations: 23.98 kB / 420.3 MB, free: 3.453 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.398e-05/0.1091, allocations: 7.984 kB / 420.3 MB, free: 3.445 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.0001292/0.1093, allocations: 205.1 kB / 420.5 MB, free: 3.234 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.377e-05/0.1093, allocations: 15.81 kB / 420.5 MB, free: 3.219 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.508e-05/0.1094, allocations: 13.41 kB / 420.5 MB, free: 3.195 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.853e-06/0.1094, allocations: 4 kB / 420.5 MB, free: 3.191 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.797e-06/0.1094, allocations: 0 / 420.5 MB, free: 3.191 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.296e-06/0.1094, allocations: 0 / 420.5 MB, free: 3.191 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002657/0.1097, allocations: 257.3 kB / 420.8 MB, free: 2.891 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.162e-06/0.1097, allocations: 0 / 420.8 MB, free: 2.891 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001408/0.1098, allocations: 35.97 kB / 420.8 MB, free: 2.855 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.034e-06/0.1098, allocations: 0 / 420.8 MB, free: 2.855 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.51e-05/0.1098, allocations: 4 kB / 420.8 MB, free: 2.852 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.945e-06/0.1098, allocations: 0 / 420.8 MB, free: 2.852 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.32e-07/0.1099, allocations: 3.938 kB / 420.8 MB, free: 2.848 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004394/0.1103, allocations: 295.3 kB / 421.1 MB, free: 2.543 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.425e-05/0.1103, allocations: 92.88 kB / 421.2 MB, free: 2.434 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.002e-05/0.1104, allocations: 4 kB / 421.2 MB, free: 2.43 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002249/0.1106, allocations: 35.97 kB / 421.2 MB, free: 2.395 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.372e-05/0.1107, allocations: 19.97 kB / 421.3 MB, free: 2.375 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.415e-05/0.1107, allocations: 7.984 kB / 421.3 MB, free: 2.367 MB / 350.1 MB Notification: Performance of sorting global known variables: time 9.499e-05/0.1108, allocations: 135.2 kB / 421.4 MB, free: 2.234 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.1108, allocations: 0 / 421.4 MB, free: 2.234 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003351/0.1111, allocations: 59.84 kB / 421.5 MB, free: 2.176 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.66e-05/0.1112, allocations: 99.19 kB / 421.6 MB, free: 2.07 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.1671/0.2783, allocations: 2.601 MB / 424.2 MB, free: 41.09 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 4.349e-06/0.2783, allocations: 0 / 424.2 MB, free: 41.09 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001418/0.2798, allocations: 1.288 MB / 425.4 MB, free: 40.08 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003721/0.2801, allocations: 29.34 kB / 425.5 MB, free: 40.08 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006836/0.2808, allocations: 490.1 kB / 426 MB, free: 39.82 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001502/0.281, allocations: 0.7639 MB / 426.7 MB, free: 39.12 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 8.507e-05/0.2811, allocations: 15.7 kB / 426.7 MB, free: 39.12 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.815e-05/0.2811, allocations: 16.53 kB / 426.7 MB, free: 39.12 MB / 350.1 MB Notification: Performance of SimCode: time 1.122e-06/0.2812, allocations: 2.938 kB / 426.8 MB, free: 39.12 MB / 350.1 MB Notification: Performance of Templates: time 0.007838/0.289, allocations: 5.521 MB / 432.3 MB, free: 38.92 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)