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.0007404/0.0007404, allocations: 90.52 kB / 15.36 MB, free: 0.7383 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.004809/0.004809, allocations: 171.1 kB / 16.26 MB, free: 6.613 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.244/1.244, allocations: 223.3 MB / 240.3 MB, free: 5.324 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/EHPTlib 2.1.4-main/package.mo): time 0.1484/0.1484, allocations: 8.021 MB / 299.5 MB, free: 3.359 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003091/0.0003091, allocations: 8 kB / 362.4 MB, free: 13.91 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09102/0.09134, allocations: 52.18 MB / 414.6 MB, free: 9.688 MB / 350.1 MB Notification: Performance of NFInst.instantiate(EHPTlib.ElectricDrives.ASMArelated.ControlLogic): time 0.001771/0.09315, allocations: 1.538 MB / 416.1 MB, free: 8.133 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.0004769/0.09364, allocations: 271.4 kB / 416.4 MB, free: 7.867 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.2e-05/0.09373, allocations: 4 kB / 416.4 MB, free: 7.863 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 2.554e-05/0.09377, allocations: 15.86 kB / 416.4 MB, free: 7.848 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002206/0.09399, allocations: 27.84 kB / 416.4 MB, free: 7.82 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002238/0.09422, allocations: 115.3 kB / 416.5 MB, free: 7.711 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001895/0.09442, allocations: 183.3 kB / 416.7 MB, free: 7.531 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001309/0.09456, allocations: 49.84 kB / 416.8 MB, free: 7.484 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 6.635e-05/0.09463, allocations: 59.7 kB / 416.8 MB, free: 7.426 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001175/0.09475, allocations: 79.59 kB / 416.9 MB, free: 7.348 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 2.513e-05/0.09479, allocations: 7.938 kB / 416.9 MB, free: 7.34 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 2.116e-05/0.09481, allocations: 8 kB / 416.9 MB, free: 7.332 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 3.853e-05/0.09486, allocations: 47.77 kB / 417 MB, free: 7.285 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 6.713e-05/0.09493, allocations: 85.28 kB / 417 MB, free: 7.195 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001529/0.09509, allocations: 155.6 kB / 417.2 MB, free: 7.043 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.988e-06/0.0951, allocations: 0 / 417.2 MB, free: 7.043 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.633e-06/0.09511, allocations: 0 / 417.2 MB, free: 7.043 MB / 350.1 MB Notification: Performance of Transformations before backend: time 3.407e-06/0.09512, allocations: 0 / 417.2 MB, free: 7.043 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.0008112/0.09593, allocations: 0.4949 MB / 417.7 MB, free: 6.5 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.291e-05/0.09597, allocations: 8.031 kB / 417.7 MB, free: 6.492 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.998e-05/0.09603, allocations: 16.75 kB / 417.7 MB, free: 6.477 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002301/0.09626, allocations: 228 kB / 417.9 MB, free: 6.215 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.09644, allocations: 79.95 kB / 418 MB, free: 6.125 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.823e-05/0.09647, allocations: 16.12 kB / 418 MB, free: 6.109 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003686/0.09685, allocations: 192 kB / 418.2 MB, free: 5.906 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.096e-05/0.09687, allocations: 3.984 kB / 418.2 MB, free: 5.902 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.347e-05/0.0969, allocations: 8 kB / 418.2 MB, free: 5.895 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.539e-06/0.09691, allocations: 0 / 418.2 MB, free: 5.895 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003612/0.09727, allocations: 155.9 kB / 418.4 MB, free: 5.742 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008054/0.09809, allocations: 0.5079 MB / 418.9 MB, free: 5.184 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005258/0.09862, allocations: 226.5 kB / 419.1 MB, free: 4.953 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001907/0.09882, allocations: 88.84 kB / 419.2 MB, free: 4.863 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.153e-05/0.09885, allocations: 7.938 kB / 419.2 MB, free: 4.855 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.257e-05/0.09888, allocations: 34.56 kB / 419.2 MB, free: 4.812 MB / 350.1 MB Notification: Performance of pre-optimization done (n=11): time 1.322e-06/0.09889, allocations: 3.938 kB / 419.2 MB, free: 4.809 MB / 350.1 MB Notification: Performance of matching and sorting (n=11): time 0.0006567/0.09955, allocations: 265.4 kB / 419.5 MB, free: 4.543 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.025e-05/0.09961, allocations: 106.8 kB / 419.6 MB, free: 4.414 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.0001824/0.0998, allocations: 182.3 kB / 419.8 MB, free: 4.227 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.339e-05/0.09983, allocations: 29.7 kB / 419.8 MB, free: 4.191 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.764e-05/0.0999, allocations: 124.1 kB / 419.9 MB, free: 4.062 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.093e-05/0.09994, allocations: 39.53 kB / 420 MB, free: 4.023 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.27e-05/0.09998, allocations: 17.72 kB / 420 MB, free: 4 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 8.995e-05/0.1001, allocations: 322.8 kB / 420.3 MB, free: 3.676 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001854/0.1003, allocations: 71.95 kB / 420.4 MB, free: 3.605 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001922/0.1005, allocations: 98.53 kB / 420.5 MB, free: 3.5 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003464/0.1008, allocations: 156.7 kB / 420.6 MB, free: 3.344 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.894e-06/0.1008, allocations: 192 / 420.6 MB, free: 3.344 MB / 350.1 MB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0004164/0.1013, allocations: 205.3 kB / 420.8 MB, free: 3.137 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.626e-05/0.1013, allocations: 93 kB / 420.9 MB, free: 3.039 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.19e-06/0.1013, allocations: 3.984 kB / 420.9 MB, free: 3.035 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.086e-05/0.1013, allocations: 0 / 420.9 MB, free: 3.035 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001596/0.1015, allocations: 31.92 kB / 421 MB, free: 3.004 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.528e-06/0.1015, allocations: 7.984 kB / 421 MB, free: 2.996 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002088/0.1017, allocations: 39.91 kB / 421 MB, free: 2.957 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.809e-05/0.1018, allocations: 7.984 kB / 421 MB, free: 2.949 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.711e-06/0.1018, allocations: 8 kB / 421 MB, free: 2.941 MB / 350.1 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0002168/0.102, allocations: 100.3 kB / 421.1 MB, free: 2.844 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.473e-06/0.102, allocations: 4 kB / 421.1 MB, free: 2.84 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 4.118e-06/0.102, allocations: 3.938 kB / 421.1 MB, free: 2.836 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.751e-05/0.1021, allocations: 19.92 kB / 421.1 MB, free: 2.816 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.453e-06/0.1021, allocations: 0 / 421.1 MB, free: 2.816 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001668/0.1023, allocations: 31.88 kB / 421.2 MB, free: 2.785 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.323e-05/0.1023, allocations: 8 kB / 421.2 MB, free: 2.777 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.0001159/0.1024, allocations: 197.1 kB / 421.4 MB, free: 2.574 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.422e-05/0.1025, allocations: 19.83 kB / 421.4 MB, free: 2.555 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.171e-05/0.1025, allocations: 13.39 kB / 421.4 MB, free: 2.531 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.497e-06/0.1025, allocations: 4 kB / 421.4 MB, free: 2.527 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.631e-06/0.1025, allocations: 4 kB / 421.4 MB, free: 2.523 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.906e-06/0.1026, allocations: 0 / 421.4 MB, free: 2.523 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002257/0.1028, allocations: 249.4 kB / 421.7 MB, free: 2.23 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.042e-06/0.1028, allocations: 0 / 421.7 MB, free: 2.23 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001368/0.1029, allocations: 27.98 kB / 421.7 MB, free: 2.203 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.895e-06/0.1029, allocations: 7.938 kB / 421.7 MB, free: 2.195 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.44e-05/0.103, allocations: 3.984 kB / 421.7 MB, free: 2.191 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.096e-06/0.103, allocations: 3.938 kB / 421.7 MB, free: 2.188 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.31e-07/0.103, allocations: 0 / 421.7 MB, free: 2.188 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004496/0.1034, allocations: 303.2 kB / 422 MB, free: 1.875 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.29e-05/0.1035, allocations: 88.92 kB / 422.1 MB, free: 1.77 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.044e-05/0.1035, allocations: 7.922 kB / 422.1 MB, free: 1.762 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002361/0.1038, allocations: 35.97 kB / 422.1 MB, free: 1.727 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.416e-05/0.1038, allocations: 15.98 kB / 422.1 MB, free: 1.711 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.404e-05/0.1038, allocations: 11.98 kB / 422.2 MB, free: 1.699 MB / 350.1 MB Notification: Performance of sorting global known variables: time 8.884e-05/0.1039, allocations: 127.2 kB / 422.3 MB, free: 1.574 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.1039, allocations: 0 / 422.3 MB, free: 1.574 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003201/0.1043, allocations: 59.84 kB / 422.3 MB, free: 1.516 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 8.317e-05/0.1044, allocations: 103.1 kB / 422.4 MB, free: 1.406 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.1524/0.2568, allocations: 2.615 MB / 425.1 MB, free: 40.91 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 3.907e-06/0.2568, allocations: 0 / 425.1 MB, free: 40.91 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001461/0.2583, allocations: 1.288 MB / 426.3 MB, free: 39.89 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003412/0.2586, allocations: 28.44 kB / 426.4 MB, free: 39.89 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006337/0.2593, allocations: 0.489 MB / 426.9 MB, free: 39.62 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00015/0.2595, allocations: 0.7692 MB / 427.6 MB, free: 38.92 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 7.456e-05/0.2595, allocations: 15.92 kB / 427.6 MB, free: 38.92 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.757e-05/0.2596, allocations: 17.97 kB / 427.7 MB, free: 38.92 MB / 350.1 MB Notification: Performance of SimCode: time 5.71e-07/0.2596, allocations: 0 / 427.7 MB, free: 38.92 MB / 350.1 MB Notification: Performance of Templates: time 0.007755/0.2674, allocations: 5.678 MB / 433.3 MB, free: 38.73 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)