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: translateModel(EHPTlib.ElectricDrives.ASMArelated.ControlLogic,tolerance=1e-06,outputFormat="empty",numberOfIntervals=10000,variableFilter="",fileNamePrefix="EHPTlib_EHPTlib.ElectricDrives.ASMArelated.ControlLogic") translateModel(EHPTlib.ElectricDrives.ASMArelated.ControlLogic,tolerance=1e-06,outputFormat="empty",numberOfIntervals=10000,variableFilter="",fileNamePrefix="EHPTlib_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.001119/0.001125, allocations: 98.27 kB / 15.36 MB, free: 0.7305 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.001542/0.001542, allocations: 173.4 kB / 16.27 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.46/1.46, allocations: 223.3 MB / 240.3 MB, free: 5.34 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/EHPTlib 2.1.4-main/package.mo): time 0.1524/0.1524, allocations: 8.925 MB / 300.4 MB, free: 3 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003034/0.0003035, allocations: 8 kB / 363.6 MB, free: 12.77 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1024/0.1027, allocations: 52.49 MB / 416 MB, free: 8.238 MB / 350.1 MB Notification: Performance of NFInst.instantiate(EHPTlib.ElectricDrives.ASMArelated.ControlLogic): time 0.002167/0.1049, allocations: 1.541 MB / 417.6 MB, free: 6.68 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.0006649/0.1056, allocations: 267.4 kB / 417.8 MB, free: 6.418 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000113/0.1057, allocations: 3.938 kB / 417.9 MB, free: 6.414 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 3.522e-05/0.1058, allocations: 7.922 kB / 417.9 MB, free: 6.406 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002642/0.106, allocations: 35.84 kB / 417.9 MB, free: 6.371 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002823/0.1063, allocations: 111.4 kB / 418 MB, free: 6.266 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002523/0.1066, allocations: 179.5 kB / 418.2 MB, free: 6.09 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001623/0.1067, allocations: 49.84 kB / 418.2 MB, free: 6.043 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001098/0.1069, allocations: 63.75 kB / 418.3 MB, free: 5.98 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001582/0.107, allocations: 79.55 kB / 418.4 MB, free: 5.902 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 3.555e-05/0.1071, allocations: 8 kB / 418.4 MB, free: 5.895 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 2.542e-05/0.1071, allocations: 8 kB / 418.4 MB, free: 5.887 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 4.868e-05/0.1072, allocations: 31.83 kB / 418.4 MB, free: 5.855 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001057/0.1073, allocations: 101.2 kB / 418.5 MB, free: 5.75 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000201/0.1075, allocations: 143.7 kB / 418.7 MB, free: 5.609 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.969e-06/0.1075, allocations: 0 / 418.7 MB, free: 5.609 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.623e-06/0.1075, allocations: 0 / 418.7 MB, free: 5.609 MB / 350.1 MB Notification: Performance of Transformations before backend: time 6.322e-06/0.1075, allocations: 0 / 418.7 MB, free: 5.609 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.001082/0.1086, allocations: 0.4949 MB / 419.1 MB, free: 5.066 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.926e-05/0.1087, allocations: 15.97 kB / 419.2 MB, free: 5.051 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.303e-05/0.1087, allocations: 20.75 kB / 419.2 MB, free: 5.031 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003001/0.109, allocations: 228 kB / 419.4 MB, free: 4.77 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.00019/0.1092, allocations: 75.95 kB / 419.5 MB, free: 4.684 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.253e-05/0.1093, allocations: 16.12 kB / 419.5 MB, free: 4.668 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004304/0.1097, allocations: 196.1 kB / 419.7 MB, free: 4.461 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.956e-06/0.1097, allocations: 0 / 419.7 MB, free: 4.461 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.117e-05/0.1098, allocations: 4 kB / 419.7 MB, free: 4.457 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.526e-06/0.1098, allocations: 4 kB / 419.7 MB, free: 4.453 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003996/0.1102, allocations: 163.8 kB / 419.9 MB, free: 4.293 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009337/0.1111, allocations: 0.5118 MB / 420.4 MB, free: 3.73 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006498/0.1118, allocations: 222.6 kB / 420.6 MB, free: 3.504 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002113/0.112, allocations: 80.81 kB / 420.7 MB, free: 3.422 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.985e-05/0.112, allocations: 7.938 kB / 420.7 MB, free: 3.414 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.126e-05/0.1121, allocations: 42.55 kB / 420.7 MB, free: 3.363 MB / 350.1 MB Notification: Performance of pre-optimization done (n=11): time 3.246e-06/0.1121, allocations: 0 / 420.7 MB, free: 3.363 MB / 350.1 MB Notification: Performance of matching and sorting (n=11): time 0.0007289/0.1128, allocations: 261.4 kB / 421 MB, free: 3.102 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.501e-05/0.1129, allocations: 110.7 kB / 421.1 MB, free: 2.969 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.0002319/0.1132, allocations: 190.3 kB / 421.3 MB, free: 2.773 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.902e-05/0.1132, allocations: 29.7 kB / 421.3 MB, free: 2.738 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.931e-05/0.1133, allocations: 124.1 kB / 421.4 MB, free: 2.609 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.46e-05/0.1133, allocations: 31.55 kB / 421.4 MB, free: 2.578 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.913e-05/0.1134, allocations: 17.72 kB / 421.5 MB, free: 2.555 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001409/0.1135, allocations: 322.8 kB / 421.8 MB, free: 2.23 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002307/0.1138, allocations: 75.95 kB / 421.9 MB, free: 2.156 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002172/0.114, allocations: 98.52 kB / 421.9 MB, free: 2.051 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000379/0.1144, allocations: 148.8 kB / 422.1 MB, free: 1.902 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.054e-06/0.1144, allocations: 0 / 422.1 MB, free: 1.902 MB / 350.1 MB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0004676/0.1148, allocations: 209.3 kB / 422.3 MB, free: 1.691 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.563e-05/0.1149, allocations: 93 kB / 422.4 MB, free: 1.594 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.819e-06/0.1149, allocations: 0 / 422.4 MB, free: 1.594 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.493e-05/0.115, allocations: 4 kB / 422.4 MB, free: 1.59 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000167/0.1151, allocations: 31.97 kB / 422.4 MB, free: 1.559 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.5e-06/0.1151, allocations: 0 / 422.4 MB, free: 1.559 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002208/0.1154, allocations: 39.91 kB / 422.5 MB, free: 1.52 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.925e-05/0.1154, allocations: 8.266 kB / 422.5 MB, free: 1.512 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.963e-06/0.1154, allocations: 6.344 kB / 422.5 MB, free: 1.508 MB / 350.1 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0002447/0.1157, allocations: 116.1 kB / 422.6 MB, free: 1.395 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.663e-06/0.1157, allocations: 0 / 422.6 MB, free: 1.395 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 8.947e-06/0.1157, allocations: 3.938 kB / 422.6 MB, free: 1.391 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001191/0.1158, allocations: 15.98 kB / 422.6 MB, free: 1.375 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.435e-06/0.1158, allocations: 0 / 422.6 MB, free: 1.375 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001829/0.116, allocations: 35.89 kB / 422.6 MB, free: 1.34 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.631e-05/0.116, allocations: 7.984 kB / 422.7 MB, free: 1.332 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.0001717/0.1162, allocations: 197.1 kB / 422.8 MB, free: 1.129 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.487e-05/0.1163, allocations: 19.83 kB / 422.9 MB, free: 1.109 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.262e-05/0.1163, allocations: 21.39 kB / 422.9 MB, free: 1.082 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.953e-06/0.1163, allocations: 0 / 422.9 MB, free: 1.082 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.289e-06/0.1164, allocations: 0 / 422.9 MB, free: 1.082 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.086e-06/0.1164, allocations: 0 / 422.9 MB, free: 1.082 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002934/0.1167, allocations: 249.4 kB / 423.1 MB, free: 0.7891 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.403e-06/0.1167, allocations: 4 kB / 423.1 MB, free: 0.7852 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001411/0.1168, allocations: 27.97 kB / 423.2 MB, free: 0.7578 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.608e-06/0.1168, allocations: 3.938 kB / 423.2 MB, free: 0.7539 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.727e-05/0.1169, allocations: 3.984 kB / 423.2 MB, free: 0.75 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.674e-06/0.1169, allocations: 4 kB / 423.2 MB, free: 0.7461 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.473e-06/0.1169, allocations: 0 / 423.2 MB, free: 0.7461 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005355/0.1174, allocations: 291.3 kB / 423.5 MB, free: 456 kB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.752e-05/0.1175, allocations: 96.86 kB / 423.6 MB, free: 340 kB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.532e-05/0.1175, allocations: 11.94 kB / 423.6 MB, free: 328 kB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002578/0.1178, allocations: 35.97 kB / 423.6 MB, free: 292 kB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.031e-05/0.1179, allocations: 15.97 kB / 423.6 MB, free: 276 kB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.489e-05/0.1179, allocations: 7.984 kB / 423.6 MB, free: 268 kB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0001232/0.118, allocations: 135.2 kB / 423.8 MB, free: 132 kB / 350.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.118, allocations: 0 / 423.8 MB, free: 132 kB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003483/0.1184, allocations: 55.84 kB / 423.8 MB, free: 76 kB / 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.1609/0.2793, allocations: 103.2 kB / 423.9 MB, free: 40.95 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.003322/0.2827, allocations: 2.615 MB / 426.5 MB, free: 38.93 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 3.166e-06/0.2827, allocations: 0 / 426.5 MB, free: 38.93 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001523/0.2842, allocations: 1.284 MB / 427.8 MB, free: 37.91 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003694/0.2846, allocations: 23.58 kB / 427.8 MB, free: 37.91 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006912/0.2853, allocations: 0.4895 MB / 428.3 MB, free: 37.64 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001788/0.2855, allocations: 0.7676 MB / 429.1 MB, free: 36.95 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0001034/0.2856, allocations: 14.12 kB / 429.1 MB, free: 36.95 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.274e-05/0.2857, allocations: 19.31 kB / 429.1 MB, free: 36.94 MB / 350.1 MB Notification: Performance of SimCode: time 8.92e-07/0.2857, allocations: 3.719 kB / 429.1 MB, free: 36.94 MB / 350.1 MB Notification: Performance of Templates: time 0.009006/0.2947, allocations: 5.667 MB / 434.8 MB, free: 36.73 MB / 350.1 MB make -j1 -f EHPTlib_EHPTlib.ElectricDrives.ASMArelated.ControlLogic.makefile (rm -f EHPTlib_EHPTlib.ElectricDrives.ASMArelated.ControlLogic.pipe ; mkfifo EHPTlib_EHPTlib.ElectricDrives.ASMArelated.ControlLogic.pipe ; head -c 1048576 < EHPTlib_EHPTlib.ElectricDrives.ASMArelated.ControlLogic.pipe >> ../files/EHPTlib_EHPTlib.ElectricDrives.ASMArelated.ControlLogic.sim & ./EHPTlib_EHPTlib.ElectricDrives.ASMArelated.ControlLogic -abortSlowSimulation -alarm=480 -lv LOG_STATS > EHPTlib_EHPTlib.ElectricDrives.ASMArelated.ControlLogic.pipe 2>&1)