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.0008857/0.0008858, allocations: 98.27 kB / 15.36 MB, free: 0.7344 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.004996/0.004996, allocations: 170.6 kB / 16.27 MB, free: 6.652 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.268/1.268, allocations: 223.3 MB / 240.3 MB, free: 5.344 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/EHPTlib 2.1.4-main/package.mo): time 0.1268/0.1268, allocations: 8.026 MB / 299.5 MB, free: 3.371 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002732/0.0002732, allocations: 8 kB / 362.4 MB, free: 13.95 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07837/0.07866, allocations: 52.19 MB / 414.6 MB, free: 9.723 MB / 350.1 MB Notification: Performance of NFInst.instantiate(EHPTlib.ElectricDrives.ASMArelated.ControlLogic): time 0.00172/0.08039, allocations: 1.545 MB / 416.1 MB, free: 8.16 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.0004959/0.0809, allocations: 275.4 kB / 416.4 MB, free: 7.891 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.032e-05/0.08099, allocations: 4 kB / 416.4 MB, free: 7.887 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 2.583e-05/0.08102, allocations: 11.86 kB / 416.4 MB, free: 7.875 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002097/0.08124, allocations: 27.84 kB / 416.4 MB, free: 7.848 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002357/0.08148, allocations: 103.9 kB / 416.5 MB, free: 7.746 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.000205/0.08169, allocations: 187.2 kB / 416.7 MB, free: 7.562 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001291/0.08183, allocations: 49.84 kB / 416.8 MB, free: 7.516 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 7.604e-05/0.08192, allocations: 59.75 kB / 416.8 MB, free: 7.457 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001211/0.08204, allocations: 87.55 kB / 416.9 MB, free: 7.371 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 2.919e-05/0.08208, allocations: 4 kB / 416.9 MB, free: 7.367 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 2.318e-05/0.08211, allocations: 8 kB / 416.9 MB, free: 7.359 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 3.793e-05/0.08215, allocations: 39.81 kB / 417 MB, free: 7.32 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 7.298e-05/0.08223, allocations: 85.3 kB / 417 MB, free: 7.23 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001458/0.08238, allocations: 147.7 kB / 417.2 MB, free: 7.086 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.823e-06/0.08239, allocations: 0 / 417.2 MB, free: 7.086 MB / 350.1 MB Notification: Performance of FrontEnd: time 5.91e-07/0.0824, allocations: 0 / 417.2 MB, free: 7.086 MB / 350.1 MB Notification: Performance of Transformations before backend: time 4.599e-06/0.08241, allocations: 0 / 417.2 MB, free: 7.086 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.0008426/0.08325, allocations: 0.5027 MB / 417.7 MB, free: 6.535 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 2.927e-05/0.08329, allocations: 8.031 kB / 417.7 MB, free: 6.527 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.614e-05/0.08335, allocations: 16.75 kB / 417.7 MB, free: 6.512 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002341/0.08359, allocations: 232 kB / 417.9 MB, free: 6.246 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.0001563/0.08376, allocations: 75.95 kB / 418 MB, free: 6.16 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.836e-05/0.0838, allocations: 16.12 kB / 418 MB, free: 6.145 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003824/0.08419, allocations: 192.1 kB / 418.2 MB, free: 5.941 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.923e-06/0.0842, allocations: 0 / 418.2 MB, free: 5.941 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.354e-05/0.08423, allocations: 8 kB / 418.2 MB, free: 5.934 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.37e-06/0.08424, allocations: 7.984 kB / 418.2 MB, free: 5.926 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003972/0.08465, allocations: 163.9 kB / 418.4 MB, free: 5.766 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008541/0.08551, allocations: 0.5 MB / 418.9 MB, free: 5.215 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005655/0.08609, allocations: 226.6 kB / 419.1 MB, free: 4.984 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002089/0.08631, allocations: 88.81 kB / 419.2 MB, free: 4.895 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.901e-05/0.08634, allocations: 3.938 kB / 419.2 MB, free: 4.891 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.329e-05/0.08637, allocations: 38.5 kB / 419.2 MB, free: 4.844 MB / 350.1 MB Notification: Performance of pre-optimization done (n=11): time 2.655e-06/0.08637, allocations: 0 / 419.2 MB, free: 4.844 MB / 350.1 MB Notification: Performance of matching and sorting (n=11): time 0.0007005/0.08708, allocations: 269.4 kB / 419.5 MB, free: 4.574 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.999e-05/0.08714, allocations: 102.9 kB / 419.6 MB, free: 4.449 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.0001927/0.08734, allocations: 186.2 kB / 419.8 MB, free: 4.258 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.244e-05/0.08737, allocations: 29.7 kB / 419.8 MB, free: 4.223 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.756e-05/0.08744, allocations: 128.1 kB / 419.9 MB, free: 4.09 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.367e-05/0.08748, allocations: 39.53 kB / 420 MB, free: 4.051 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.582e-05/0.08752, allocations: 17.72 kB / 420 MB, free: 4.027 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 9.265e-05/0.08762, allocations: 326.8 kB / 420.3 MB, free: 3.699 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002029/0.08783, allocations: 71.89 kB / 420.4 MB, free: 3.629 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002161/0.08806, allocations: 98.52 kB / 420.5 MB, free: 3.523 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003757/0.08844, allocations: 152.8 kB / 420.6 MB, free: 3.371 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.974e-06/0.08845, allocations: 0 / 420.6 MB, free: 3.371 MB / 350.1 MB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0004631/0.08892, allocations: 205.3 kB / 420.8 MB, free: 3.164 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.351e-05/0.08898, allocations: 93 kB / 420.9 MB, free: 3.066 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.28e-06/0.08899, allocations: 0 / 420.9 MB, free: 3.066 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.128e-05/0.08901, allocations: 4 kB / 420.9 MB, free: 3.062 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001718/0.08919, allocations: 27.97 kB / 421 MB, free: 3.035 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.703e-06/0.08921, allocations: 4 kB / 421 MB, free: 3.031 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002321/0.08944, allocations: 43.91 kB / 421 MB, free: 2.988 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.846e-05/0.08947, allocations: 4 kB / 421 MB, free: 2.984 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 7.404e-06/0.08948, allocations: 6.031 kB / 421 MB, free: 2.98 MB / 350.1 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0002459/0.08973, allocations: 116.2 kB / 421.1 MB, free: 2.867 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.693e-06/0.08974, allocations: 0 / 421.1 MB, free: 2.867 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.316e-06/0.08975, allocations: 3.938 kB / 421.1 MB, free: 2.863 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.823e-05/0.08986, allocations: 15.98 kB / 421.1 MB, free: 2.848 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.643e-06/0.08987, allocations: 0 / 421.1 MB, free: 2.848 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001846/0.09006, allocations: 31.89 kB / 421.2 MB, free: 2.816 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.403e-05/0.09008, allocations: 7.984 kB / 421.2 MB, free: 2.809 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.0001259/0.09021, allocations: 201.1 kB / 421.4 MB, free: 2.602 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.489e-05/0.09026, allocations: 15.84 kB / 421.4 MB, free: 2.586 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.261e-05/0.09031, allocations: 9.406 kB / 421.4 MB, free: 2.566 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.326e-06/0.09032, allocations: 8 kB / 421.4 MB, free: 2.559 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.027e-06/0.09033, allocations: 0 / 421.4 MB, free: 2.559 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.759e-06/0.09034, allocations: 3.984 kB / 421.4 MB, free: 2.555 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002465/0.09059, allocations: 245.4 kB / 421.7 MB, free: 2.266 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.705e-06/0.0906, allocations: 0 / 421.7 MB, free: 2.266 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001484/0.09075, allocations: 35.91 kB / 421.7 MB, free: 2.23 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.226e-06/0.09077, allocations: 3.938 kB / 421.7 MB, free: 2.227 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.398e-05/0.09078, allocations: 0 / 421.7 MB, free: 2.227 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.363e-06/0.09079, allocations: 0 / 421.7 MB, free: 2.227 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.41e-07/0.0908, allocations: 4.281 kB / 421.7 MB, free: 2.223 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005026/0.0913, allocations: 299.3 kB / 422 MB, free: 1.914 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.655e-05/0.09136, allocations: 92.95 kB / 422.1 MB, free: 1.805 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.056e-05/0.0914, allocations: 7.875 kB / 422.1 MB, free: 1.797 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002592/0.09166, allocations: 43.97 kB / 422.1 MB, free: 1.754 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.163e-05/0.09172, allocations: 11.97 kB / 422.1 MB, free: 1.742 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.355e-05/0.09174, allocations: 8 kB / 422.2 MB, free: 1.734 MB / 350.1 MB Notification: Performance of sorting global known variables: time 9.999e-05/0.09185, allocations: 135.2 kB / 422.3 MB, free: 1.602 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.09185, allocations: 0 / 422.3 MB, free: 1.602 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003384/0.0922, allocations: 55.84 kB / 422.3 MB, free: 1.547 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 7.349e-05/0.09228, allocations: 99.19 kB / 422.4 MB, free: 1.441 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.1286/0.2209, allocations: 2.611 MB / 425.1 MB, free: 41.01 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 3.416e-06/0.2209, allocations: 0.9688 kB / 425.1 MB, free: 41.01 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.00153/0.2225, allocations: 1.288 MB / 426.3 MB, free: 40 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003532/0.2228, allocations: 22.17 kB / 426.4 MB, free: 40 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000633/0.2235, allocations: 0.4961 MB / 426.9 MB, free: 39.73 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001267/0.2236, allocations: 0.7661 MB / 427.6 MB, free: 39.03 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 7.896e-05/0.2237, allocations: 15.25 kB / 427.6 MB, free: 39.03 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.91e-05/0.2237, allocations: 17.55 kB / 427.7 MB, free: 39.02 MB / 350.1 MB Notification: Performance of SimCode: time 3.71e-07/0.2238, allocations: 1.938 kB / 427.7 MB, free: 39.02 MB / 350.1 MB Notification: Performance of Templates: time 0.007734/0.2315, allocations: 5.676 MB / 433.3 MB, free: 38.82 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)