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.001105/0.001105, allocations: 91.69 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.001424/0.001424, 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.348/1.348, allocations: 223.3 MB / 240 MB, free: 5.352 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/EHPTlib 2.1.4-main/package.mo): time 0.1367/0.1367, allocations: 8.02 MB / 299.1 MB, free: 3.441 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002764/0.0002765, allocations: 16 kB / 361.8 MB, free: 14.28 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07953/0.07983, allocations: 52.18 MB / 414 MB, free: 10.06 MB / 350.1 MB Notification: Performance of NFInst.instantiate(EHPTlib.ElectricDrives.ASMArelated.ControlLogic): time 0.001715/0.08157, allocations: 1.507 MB / 415.5 MB, free: 8.535 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.0004733/0.08206, allocations: 259.5 kB / 415.7 MB, free: 8.281 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.269e-05/0.08214, allocations: 7.938 kB / 415.7 MB, free: 8.273 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 2.522e-05/0.08218, allocations: 7.922 kB / 415.7 MB, free: 8.266 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001907/0.08237, allocations: 31.78 kB / 415.8 MB, free: 8.234 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000218/0.0826, allocations: 99.36 kB / 415.9 MB, free: 8.141 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.000206/0.08281, allocations: 167.3 kB / 416 MB, free: 7.977 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001099/0.08293, allocations: 45.78 kB / 416.1 MB, free: 7.934 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 7.612e-05/0.08301, allocations: 63.7 kB / 416.1 MB, free: 7.871 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000117/0.08314, allocations: 75.66 kB / 416.2 MB, free: 7.797 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 2.319e-05/0.08317, allocations: 4 kB / 416.2 MB, free: 7.793 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 2.215e-05/0.08319, allocations: 8 kB / 416.2 MB, free: 7.785 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 4.072e-05/0.08324, allocations: 39.83 kB / 416.3 MB, free: 7.746 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 3.235e-05/0.08328, allocations: 41.64 kB / 416.3 MB, free: 7.699 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001218/0.0834, allocations: 108 kB / 416.4 MB, free: 7.594 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.206e-06/0.08341, allocations: 0 / 416.4 MB, free: 7.594 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.665e-06/0.08342, allocations: 0 / 416.4 MB, free: 7.594 MB / 350.1 MB Notification: Performance of Transformations before backend: time 6.683e-06/0.08343, allocations: 3.938 kB / 416.4 MB, free: 7.59 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.0008294/0.08427, allocations: 0.5064 MB / 416.9 MB, free: 7.035 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 2.791e-05/0.0843, allocations: 8.031 kB / 416.9 MB, free: 7.027 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.904e-05/0.08436, allocations: 19.81 kB / 416.9 MB, free: 7.008 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002578/0.08462, allocations: 222.7 kB / 417.2 MB, free: 6.75 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.0001662/0.0848, allocations: 79.39 kB / 417.2 MB, free: 6.66 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.672e-05/0.08483, allocations: 12 kB / 417.3 MB, free: 6.648 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003641/0.0852, allocations: 192.1 kB / 417.4 MB, free: 6.445 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.895e-06/0.08522, allocations: 0 / 417.4 MB, free: 6.445 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.227e-05/0.08525, allocations: 15.95 kB / 417.5 MB, free: 6.43 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.128e-06/0.08526, allocations: 0 / 417.5 MB, free: 6.43 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003435/0.08561, allocations: 151.9 kB / 417.6 MB, free: 6.281 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008138/0.08643, allocations: 0.5119 MB / 418.1 MB, free: 5.719 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004973/0.08694, allocations: 218.6 kB / 418.3 MB, free: 5.496 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001836/0.08713, allocations: 92.78 kB / 418.4 MB, free: 5.402 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.311e-05/0.08716, allocations: 4 kB / 418.4 MB, free: 5.398 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.986e-05/0.08719, allocations: 34.5 kB / 418.5 MB, free: 5.355 MB / 350.1 MB Notification: Performance of pre-optimization done (n=11): time 1.252e-06/0.0872, allocations: 0 / 418.5 MB, free: 5.355 MB / 350.1 MB Notification: Performance of matching and sorting (n=11): time 0.0006404/0.08784, allocations: 269.4 kB / 418.7 MB, free: 5.086 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.054e-05/0.0879, allocations: 102.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.0001927/0.0881, allocations: 186.2 kB / 419 MB, free: 4.77 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.173e-05/0.08813, allocations: 33.7 kB / 419 MB, free: 4.73 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.091e-05/0.08822, allocations: 124.1 kB / 419.2 MB, free: 4.602 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.405e-05/0.08827, allocations: 35.53 kB / 419.2 MB, free: 4.566 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.403e-05/0.0883, allocations: 4 kB / 419.2 MB, free: 4.562 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001079/0.08841, allocations: 326.8 kB / 419.5 MB, free: 4.234 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001856/0.0886, allocations: 67.89 kB / 419.6 MB, free: 4.168 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001977/0.08881, allocations: 98.84 kB / 419.7 MB, free: 4.062 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001781/0.089, allocations: 75.98 kB / 419.8 MB, free: 3.988 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.793e-06/0.08901, allocations: 0 / 419.8 MB, free: 3.988 MB / 350.1 MB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0004126/0.08943, allocations: 201.4 kB / 419.9 MB, free: 3.785 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.753e-05/0.08948, allocations: 91.03 kB / 420 MB, free: 3.691 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.93e-06/0.08949, allocations: 3.984 kB / 420 MB, free: 3.688 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.077e-05/0.08951, allocations: 3.984 kB / 420 MB, free: 3.684 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001641/0.08968, allocations: 35.94 kB / 420.1 MB, free: 3.648 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.309e-06/0.08969, allocations: 0 / 420.1 MB, free: 3.648 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000206/0.0899, allocations: 44.09 kB / 420.1 MB, free: 3.605 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.873e-05/0.08993, allocations: 7.984 kB / 420.1 MB, free: 3.598 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.721e-06/0.08994, allocations: 4 kB / 420.1 MB, free: 3.594 MB / 350.1 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0002323/0.09018, allocations: 119.8 kB / 420.3 MB, free: 3.477 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.493e-06/0.09019, allocations: 0 / 420.3 MB, free: 3.477 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.844e-06/0.0902, allocations: 0 / 420.3 MB, free: 3.477 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.307e-05/0.09029, allocations: 15.98 kB / 420.3 MB, free: 3.461 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.673e-06/0.0903, allocations: 0 / 420.3 MB, free: 3.461 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000166/0.09047, allocations: 27.97 kB / 420.3 MB, free: 3.434 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.329e-05/0.0905, allocations: 8 kB / 420.3 MB, free: 3.426 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.0001207/0.09062, allocations: 201.1 kB / 420.5 MB, free: 3.219 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.154e-05/0.09067, allocations: 15.81 kB / 420.5 MB, free: 3.203 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.016e-05/0.09072, allocations: 13.39 kB / 420.5 MB, free: 3.18 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.266e-06/0.09072, allocations: 4 kB / 420.5 MB, free: 3.176 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.647e-06/0.09073, allocations: 0 / 420.5 MB, free: 3.176 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.905e-06/0.09074, allocations: 0 / 420.5 MB, free: 3.176 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002422/0.09099, allocations: 249.3 kB / 420.8 MB, free: 2.883 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.042e-06/0.091, allocations: 4 kB / 420.8 MB, free: 2.879 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001408/0.09114, allocations: 35.92 kB / 420.8 MB, free: 2.844 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.984e-06/0.09115, allocations: 0 / 420.8 MB, free: 2.844 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.439e-05/0.09117, allocations: 3.984 kB / 420.8 MB, free: 2.84 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.293e-06/0.09118, allocations: 0 / 420.8 MB, free: 2.84 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.02e-07/0.09118, allocations: 0 / 420.8 MB, free: 2.84 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004527/0.09164, allocations: 295.3 kB / 421.1 MB, free: 2.535 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.388e-05/0.09169, allocations: 96.88 kB / 421.2 MB, free: 2.422 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.051e-05/0.09173, allocations: 3.984 kB / 421.2 MB, free: 2.418 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002332/0.09197, allocations: 35.97 kB / 421.2 MB, free: 2.383 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.039e-05/0.09203, allocations: 15.92 kB / 421.3 MB, free: 2.367 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.436e-05/0.09205, allocations: 7.984 kB / 421.3 MB, free: 2.359 MB / 350.1 MB Notification: Performance of sorting global known variables: time 9.253e-05/0.09215, allocations: 131.2 kB / 421.4 MB, free: 2.23 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.5e-07/0.09215, allocations: 0 / 421.4 MB, free: 2.23 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003271/0.09249, allocations: 59.84 kB / 421.5 MB, free: 2.172 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.962e-05/0.09257, allocations: 99.25 kB / 421.5 MB, free: 2.066 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.1419/0.2345, allocations: 2.605 MB / 424.2 MB, free: 41.4 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 5.31e-06/0.2345, allocations: 0.9375 kB / 424.2 MB, free: 41.4 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.00144/0.236, allocations: 1.286 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.0003505/0.2363, allocations: 29.14 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.0006622/0.237, allocations: 481.7 kB / 425.9 MB, free: 40.13 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001331/0.2371, allocations: 0.7685 MB / 426.7 MB, free: 39.43 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 8.541e-05/0.2372, allocations: 17.47 kB / 426.7 MB, free: 39.43 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.838e-05/0.2373, allocations: 14.92 kB / 426.7 MB, free: 39.43 MB / 350.1 MB Notification: Performance of SimCode: time 6.11e-07/0.2373, allocations: 0 / 426.7 MB, free: 39.43 MB / 350.1 MB Notification: Performance of Templates: time 0.007573/0.2449, allocations: 5.527 MB / 432.3 MB, free: 39.24 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)