Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr EHPTlib_latest_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_latest_EHPTlib.ElectricDrives.ASMArelated.ControlLogic") translateModel(EHPTlib.ElectricDrives.ASMArelated.ControlLogic,tolerance=1e-06,outputFormat="empty",numberOfIntervals=10000,variableFilter="",fileNamePrefix="EHPTlib_latest_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.0007991/0.0007991, allocations: 92.23 kB / 15.06 MB, free: 1.098 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.0008174/0.0008174, allocations: 172.7 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.28/1.28, allocations: 223.3 MB / 240 MB, free: 5.434 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/EHPTlib 2.1.4-main/package.mo): time 0.1458/0.1458, allocations: 8.011 MB / 299.1 MB, free: 3.316 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002689/0.0002689, allocations: 8 kB / 361.8 MB, free: 14.28 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07893/0.07922, allocations: 52.19 MB / 414 MB, free: 10.05 MB / 350.1 MB Notification: Performance of NFInst.instantiate(EHPTlib.ElectricDrives.ASMArelated.ControlLogic): time 0.001633/0.08089, allocations: 1.499 MB / 415.5 MB, free: 8.535 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.0004504/0.08135, allocations: 263.4 kB / 415.7 MB, free: 8.277 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.294e-05/0.08144, allocations: 8 kB / 415.7 MB, free: 8.27 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 2.189e-05/0.08147, allocations: 7.922 kB / 415.7 MB, free: 8.262 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001994/0.08167, allocations: 31.78 kB / 415.8 MB, free: 8.23 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000211/0.08189, allocations: 95.25 kB / 415.9 MB, free: 8.141 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001918/0.08209, allocations: 167.3 kB / 416 MB, free: 7.977 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000108/0.08221, allocations: 49.72 kB / 416.1 MB, free: 7.93 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 6.542e-05/0.08228, allocations: 59.75 kB / 416.1 MB, free: 7.871 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001117/0.0824, allocations: 79.66 kB / 416.2 MB, free: 7.793 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 2.646e-05/0.08243, allocations: 8 kB / 416.2 MB, free: 7.785 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 2.79e-05/0.08246, allocations: 8 kB / 416.2 MB, free: 7.777 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 3.215e-05/0.0825, allocations: 31.84 kB / 416.3 MB, free: 7.746 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 3.249e-05/0.08254, allocations: 49.58 kB / 416.3 MB, free: 7.691 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001106/0.08265, allocations: 108 kB / 416.4 MB, free: 7.586 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.367e-06/0.08266, allocations: 0 / 416.4 MB, free: 7.586 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.673e-06/0.08267, allocations: 0 / 416.4 MB, free: 7.586 MB / 350.1 MB Notification: Performance of Transformations before backend: time 3.256e-06/0.08268, allocations: 0 / 416.4 MB, free: 7.586 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.0007938/0.08348, allocations: 0.4986 MB / 416.9 MB, free: 7.039 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 2.963e-05/0.08351, allocations: 8.031 kB / 416.9 MB, free: 7.031 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.009e-05/0.08357, allocations: 19.81 kB / 416.9 MB, free: 7.012 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002361/0.08381, allocations: 222.7 kB / 417.2 MB, free: 6.754 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.0001538/0.08398, allocations: 75.39 kB / 417.2 MB, free: 6.668 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.501e-05/0.08401, allocations: 12 kB / 417.2 MB, free: 6.656 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000355/0.08437, allocations: 200.1 kB / 417.4 MB, free: 6.445 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.092e-05/0.08439, allocations: 3.984 kB / 417.4 MB, free: 6.441 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.182e-05/0.08442, allocations: 11.95 kB / 417.5 MB, free: 6.43 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.143e-06/0.08443, allocations: 0 / 417.5 MB, free: 6.43 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003497/0.08479, allocations: 163.8 kB / 417.6 MB, free: 6.27 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007995/0.0856, allocations: 0.5041 MB / 418.1 MB, free: 5.715 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005006/0.08612, allocations: 222.6 kB / 418.3 MB, free: 5.488 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001881/0.08631, allocations: 84.75 kB / 418.4 MB, free: 5.402 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.376e-05/0.08635, allocations: 7.938 kB / 418.4 MB, free: 5.395 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.173e-05/0.08637, allocations: 34.56 kB / 418.5 MB, free: 5.352 MB / 350.1 MB Notification: Performance of pre-optimization done (n=11): time 1.203e-06/0.08638, allocations: 0 / 418.5 MB, free: 5.352 MB / 350.1 MB Notification: Performance of matching and sorting (n=11): time 0.0006401/0.08703, allocations: 269.3 kB / 418.7 MB, free: 5.082 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.838e-05/0.08708, allocations: 106.8 kB / 418.8 MB, free: 4.953 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.0001867/0.08728, allocations: 190.2 kB / 419 MB, free: 4.758 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.476e-05/0.08731, allocations: 29.7 kB / 419 MB, free: 4.723 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.854e-05/0.08738, allocations: 132.1 kB / 419.2 MB, free: 4.586 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.905e-05/0.08742, allocations: 31.55 kB / 419.2 MB, free: 4.555 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.152e-05/0.08744, allocations: 4 kB / 419.2 MB, free: 4.551 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 9.443e-05/0.08754, allocations: 322.8 kB / 419.5 MB, free: 4.227 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001773/0.08772, allocations: 67.95 kB / 419.6 MB, free: 4.16 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002016/0.08793, allocations: 94.53 kB / 419.7 MB, free: 4.059 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001769/0.08812, allocations: 75.89 kB / 419.8 MB, free: 3.984 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.723e-06/0.08813, allocations: 0 / 419.8 MB, free: 3.984 MB / 350.1 MB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0004027/0.08854, allocations: 197.9 kB / 419.9 MB, free: 3.785 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.074e-05/0.08859, allocations: 97 kB / 420 MB, free: 3.684 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.818e-06/0.0886, allocations: 0 / 420 MB, free: 3.684 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.216e-05/0.08861, allocations: 4 kB / 420 MB, free: 3.68 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001617/0.08878, allocations: 31.92 kB / 420.1 MB, free: 3.648 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.867e-06/0.08879, allocations: 0 / 420.1 MB, free: 3.648 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002024/0.089, allocations: 47.81 kB / 420.1 MB, free: 3.602 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.638e-05/0.08902, allocations: 4 kB / 420.1 MB, free: 3.598 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.308e-06/0.08904, allocations: 4 kB / 420.1 MB, free: 3.594 MB / 350.1 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0002221/0.08926, allocations: 111.8 kB / 420.2 MB, free: 3.484 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.342e-06/0.08927, allocations: 0 / 420.2 MB, free: 3.484 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.744e-06/0.08928, allocations: 0 / 420.2 MB, free: 3.484 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.099e-05/0.08938, allocations: 19.98 kB / 420.3 MB, free: 3.465 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.553e-06/0.08939, allocations: 0 / 420.3 MB, free: 3.465 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001609/0.08955, allocations: 27.98 kB / 420.3 MB, free: 3.438 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.128e-05/0.08957, allocations: 3.984 kB / 420.3 MB, free: 3.434 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.0001122/0.08969, allocations: 201.1 kB / 420.5 MB, free: 3.227 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.055e-05/0.08974, allocations: 19.81 kB / 420.5 MB, free: 3.207 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.221e-05/0.08978, allocations: 17.41 kB / 420.5 MB, free: 3.18 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.976e-06/0.08979, allocations: 0 / 420.5 MB, free: 3.18 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.317e-06/0.0898, allocations: 3.938 kB / 420.5 MB, free: 3.176 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.785e-06/0.08981, allocations: 0 / 420.5 MB, free: 3.176 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002294/0.09004, allocations: 249.3 kB / 420.8 MB, free: 2.883 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.405e-06/0.09005, allocations: 4 kB / 420.8 MB, free: 2.879 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001389/0.09019, allocations: 27.97 kB / 420.8 MB, free: 2.852 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.954e-06/0.09021, allocations: 4 kB / 420.8 MB, free: 2.848 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.403e-05/0.09023, allocations: 4.375 kB / 420.8 MB, free: 2.844 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.342e-06/0.09023, allocations: 0 / 420.8 MB, free: 2.844 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.52e-07/0.09024, allocations: 4 kB / 420.8 MB, free: 2.84 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004286/0.09067, allocations: 303.2 kB / 421.1 MB, free: 2.527 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.67e-05/0.09073, allocations: 92.88 kB / 421.2 MB, free: 2.418 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.068e-05/0.09077, allocations: 4 kB / 421.2 MB, free: 2.414 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002287/0.091, allocations: 39.97 kB / 421.2 MB, free: 2.375 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.371e-05/0.09106, allocations: 15.97 kB / 421.3 MB, free: 2.359 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.275e-05/0.09108, allocations: 4 kB / 421.3 MB, free: 2.355 MB / 350.1 MB Notification: Performance of sorting global known variables: time 9.012e-05/0.09117, allocations: 135.2 kB / 421.4 MB, free: 2.223 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.09118, allocations: 0 / 421.4 MB, free: 2.223 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003277/0.09151, allocations: 55.84 kB / 421.5 MB, free: 2.168 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 7.341e-05/0.09159, allocations: 99.25 kB / 421.5 MB, free: 2.062 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.1455/0.2371, allocations: 2.604 MB / 424.2 MB, free: 41.41 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 3.466e-06/0.2371, allocations: 0.5938 kB / 424.2 MB, free: 41.41 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001442/0.2386, allocations: 1.29 MB / 425.4 MB, free: 40.39 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003625/0.2389, allocations: 23.25 kB / 425.5 MB, free: 40.39 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006486/0.2396, allocations: 493.2 kB / 425.9 MB, free: 40.14 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001444/0.2398, allocations: 0.7594 MB / 426.7 MB, free: 39.44 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0001036/0.2399, allocations: 18.36 kB / 426.7 MB, free: 39.44 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.053e-05/0.2399, allocations: 18.52 kB / 426.7 MB, free: 39.43 MB / 350.1 MB Notification: Performance of SimCode: time 4.31e-07/0.2399, allocations: 0 / 426.7 MB, free: 39.43 MB / 350.1 MB Notification: Performance of Templates: time 0.007897/0.2478, allocations: 5.527 MB / 432.3 MB, free: 39.24 MB / 350.1 MB make -j1 -f EHPTlib_latest_EHPTlib.ElectricDrives.ASMArelated.ControlLogic.makefile (rm -f EHPTlib_latest_EHPTlib.ElectricDrives.ASMArelated.ControlLogic.pipe ; mkfifo EHPTlib_latest_EHPTlib.ElectricDrives.ASMArelated.ControlLogic.pipe ; head -c 1048576 < EHPTlib_latest_EHPTlib.ElectricDrives.ASMArelated.ControlLogic.pipe >> ../files/EHPTlib_latest_EHPTlib.ElectricDrives.ASMArelated.ControlLogic.sim & ./EHPTlib_latest_EHPTlib.ElectricDrives.ASMArelated.ControlLogic -abortSlowSimulation -alarm=480 -lv LOG_STATS > EHPTlib_latest_EHPTlib.ElectricDrives.ASMArelated.ControlLogic.pipe 2>&1)