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 main/package.mo", uses=false) Using package EHPTlib with version (/home/hudson/saved_omc/libraries/.openmodelica/libraries/EHPTlib 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.00112/0.00112, allocations: 102.7 kB / 15.71 MB, free: 460 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.000948/0.0009481, allocations: 173 kB / 16.58 MB, free: 6.07 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.49/1.49, allocations: 223.2 MB / 240.6 MB, free: 5.309 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/EHPTlib main/package.mo): time 0.1628/0.1628, allocations: 8.615 MB / 300.3 MB, free: 3.27 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003106/0.0003107, allocations: 11.98 kB / 363.1 MB, free: 13.57 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1037/0.104, allocations: 52.32 MB / 415.5 MB, free: 9.211 MB / 350.1 MB Notification: Performance of NFInst.instantiate(EHPTlib.ElectricDrives.ASMArelated.ControlLogic): time 0.002024/0.1061, allocations: 1.507 MB / 417 MB, free: 7.688 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.0006436/0.1067, allocations: 271.4 kB / 417.2 MB, free: 7.422 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001163/0.1069, allocations: 4 kB / 417.2 MB, free: 7.418 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 3.656e-05/0.1069, allocations: 11.86 kB / 417.2 MB, free: 7.406 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000245/0.1072, allocations: 27.83 kB / 417.3 MB, free: 7.379 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002693/0.1075, allocations: 95.38 kB / 417.4 MB, free: 7.289 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002436/0.1077, allocations: 171.3 kB / 417.5 MB, free: 7.121 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001381/0.1079, allocations: 45.77 kB / 417.6 MB, free: 7.078 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 9.327e-05/0.108, allocations: 59.77 kB / 417.6 MB, free: 7.02 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001436/0.1081, allocations: 75.66 kB / 417.7 MB, free: 6.945 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 3.026e-05/0.1081, allocations: 15.94 kB / 417.7 MB, free: 6.93 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 2.431e-05/0.1082, allocations: 8 kB / 417.7 MB, free: 6.922 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 3.987e-05/0.1082, allocations: 27.89 kB / 417.8 MB, free: 6.895 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 4.135e-05/0.1083, allocations: 49.58 kB / 417.8 MB, free: 6.84 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001426/0.1084, allocations: 108 kB / 417.9 MB, free: 6.734 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.949e-06/0.1084, allocations: 0 / 417.9 MB, free: 6.734 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.292e-06/0.1084, allocations: 0 / 417.9 MB, free: 6.734 MB / 350.1 MB Notification: Performance of Transformations before backend: time 6.131e-06/0.1084, allocations: 3.938 kB / 417.9 MB, free: 6.73 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.0008836/0.1093, allocations: 0.5025 MB / 418.4 MB, free: 6.18 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.73e-05/0.1094, allocations: 8.031 kB / 418.4 MB, free: 6.172 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.883e-05/0.1095, allocations: 19.81 kB / 418.4 MB, free: 6.152 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002883/0.1097, allocations: 222.7 kB / 418.7 MB, free: 5.895 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.0001947/0.11, allocations: 79.39 kB / 418.7 MB, free: 5.805 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.712e-05/0.11, allocations: 12 kB / 418.8 MB, free: 5.793 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003796/0.1104, allocations: 192.1 kB / 418.9 MB, free: 5.59 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.265e-06/0.1104, allocations: 0 / 418.9 MB, free: 5.59 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.235e-05/0.1104, allocations: 11.95 kB / 419 MB, free: 5.578 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.839e-06/0.1104, allocations: 0 / 419 MB, free: 5.578 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003593/0.1108, allocations: 163.8 kB / 419.1 MB, free: 5.418 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008952/0.1117, allocations: 0.5002 MB / 419.6 MB, free: 4.867 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005053/0.1122, allocations: 226.6 kB / 419.8 MB, free: 4.637 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001848/0.1124, allocations: 92.75 kB / 419.9 MB, free: 4.543 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.25e-05/0.1125, allocations: 3.938 kB / 419.9 MB, free: 4.539 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.397e-05/0.1125, allocations: 30.56 kB / 420 MB, free: 4.5 MB / 350.1 MB Notification: Performance of pre-optimization done (n=11): time 1.312e-06/0.1125, allocations: 0 / 420 MB, free: 4.5 MB / 350.1 MB Notification: Performance of matching and sorting (n=11): time 0.0006422/0.1131, allocations: 269.7 kB / 420.2 MB, free: 4.23 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.758e-05/0.1132, allocations: 106.8 kB / 420.3 MB, free: 4.102 MB / 350.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/EHPTlib 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 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 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 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 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.000223/0.1134, allocations: 190.2 kB / 420.5 MB, free: 3.906 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.423e-05/0.1135, allocations: 25.7 kB / 420.5 MB, free: 3.875 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.128e-05/0.1136, allocations: 128.1 kB / 420.7 MB, free: 3.742 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.782e-05/0.1136, allocations: 31.56 kB / 420.7 MB, free: 3.711 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.408e-06/0.1136, allocations: 0 / 420.7 MB, free: 3.711 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001244/0.1138, allocations: 334.8 kB / 421 MB, free: 3.375 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001722/0.1139, allocations: 63.95 kB / 421.1 MB, free: 3.312 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001929/0.1141, allocations: 98.47 kB / 421.2 MB, free: 3.207 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001776/0.1143, allocations: 75.89 kB / 421.3 MB, free: 3.133 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.154e-06/0.1143, allocations: 4.031 kB / 421.3 MB, free: 3.129 MB / 350.1 MB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0004086/0.1147, allocations: 197.4 kB / 421.4 MB, free: 2.93 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.124e-05/0.1148, allocations: 89 kB / 421.5 MB, free: 2.836 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.267e-06/0.1148, allocations: 0 / 421.5 MB, free: 2.836 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.017e-05/0.1148, allocations: 4 kB / 421.5 MB, free: 2.832 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001534/0.115, allocations: 27.94 kB / 421.6 MB, free: 2.805 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.067e-06/0.115, allocations: 4.266 kB / 421.6 MB, free: 2.801 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002049/0.1152, allocations: 51.81 kB / 421.6 MB, free: 2.75 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.607e-05/0.1153, allocations: 0 / 421.6 MB, free: 2.75 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.791e-06/0.1153, allocations: 7.938 kB / 421.6 MB, free: 2.742 MB / 350.1 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.000219/0.1155, allocations: 111.8 kB / 421.7 MB, free: 2.633 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.844e-06/0.1155, allocations: 4 kB / 421.7 MB, free: 2.629 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.204e-06/0.1155, allocations: 0 / 421.7 MB, free: 2.629 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.707e-05/0.1156, allocations: 15.98 kB / 421.8 MB, free: 2.613 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.894e-06/0.1156, allocations: 0 / 421.8 MB, free: 2.613 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001595/0.1158, allocations: 23.98 kB / 421.8 MB, free: 2.59 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.02e-05/0.1158, allocations: 0 / 421.8 MB, free: 2.59 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.000144/0.1159, allocations: 213.1 kB / 422 MB, free: 2.371 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.426e-05/0.116, allocations: 15.81 kB / 422 MB, free: 2.355 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.255e-05/0.116, allocations: 17.34 kB / 422 MB, free: 2.332 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.134e-06/0.1161, allocations: 0 / 422 MB, free: 2.332 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.14e-06/0.1161, allocations: 0 / 422 MB, free: 2.332 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.176e-06/0.1161, allocations: 0 / 422 MB, free: 2.332 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002641/0.1163, allocations: 257.3 kB / 422.3 MB, free: 2.031 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.847e-06/0.1163, allocations: 4 kB / 422.3 MB, free: 2.027 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001356/0.1165, allocations: 31.97 kB / 422.3 MB, free: 1.996 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.675e-06/0.1165, allocations: 0 / 422.3 MB, free: 1.996 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.915e-05/0.1165, allocations: 8 kB / 422.3 MB, free: 1.988 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.503e-06/0.1165, allocations: 0 / 422.3 MB, free: 1.988 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.062e-06/0.1165, allocations: 4 kB / 422.3 MB, free: 1.984 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004448/0.117, allocations: 291.2 kB / 422.6 MB, free: 1.684 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.216e-05/0.1171, allocations: 96.86 kB / 422.7 MB, free: 1.57 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.791e-05/0.1171, allocations: 4 kB / 422.7 MB, free: 1.566 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002205/0.1173, allocations: 43.97 kB / 422.7 MB, free: 1.523 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.319e-05/0.1174, allocations: 11.97 kB / 422.8 MB, free: 1.512 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.212e-05/0.1174, allocations: 4 kB / 422.8 MB, free: 1.508 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0001119/0.1175, allocations: 131.2 kB / 422.9 MB, free: 1.379 MB / 350.1 MB Notification: Performance of sort global known variables: time 2e-07/0.1175, allocations: 0 / 422.9 MB, free: 1.379 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003281/0.1179, allocations: 63.84 kB / 423 MB, free: 1.316 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 9.965e-05/0.118, allocations: 99.23 kB / 423 MB, free: 1.211 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.1832/0.3012, allocations: 3.079 MB / 426.1 MB, free: 39.96 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 5.981e-06/0.3012, allocations: 0.5625 kB / 426.1 MB, free: 39.96 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002908/0.3041, allocations: 1.519 MB / 427.6 MB, free: 38.95 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003636/0.3045, allocations: 25.48 kB / 427.7 MB, free: 38.95 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006892/0.3052, allocations: 421.2 kB / 428.1 MB, free: 38.72 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001547/0.3054, allocations: 0.7178 MB / 428.8 MB, free: 38.03 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.359e-05/0.3054, allocations: 15.84 kB / 428.8 MB, free: 38.02 MB / 350.1 MB Notification: Performance of SimCode: time 1.012e-06/0.3055, allocations: 0 / 428.8 MB, free: 38.02 MB / 350.1 MB Notification: Performance of Templates: time 0.003786/0.3092, allocations: 1.942 MB / 430.8 MB, free: 37.96 MB / 350.1 MB make -j1 -f EHPTlib_main_EHPTlib.ElectricDrives.ASMArelated.ControlLogic.makefile make -j1 -f EHPTlib_main_EHPTlib.ElectricDrives.ASMArelated.ControlLogic.makefile clang++ NOTFOUND -Winvalid-pch -O0 -g -DNDEBUG -fPIC -std=c++11 -DBOOST_ALL_DYN_LINK -DUSE_DGESV -DUSE_LOGGER -DOMC_BUILD -DUSE_THREAD -DSUNDIALS_MAJOR_VERSION=5 -DSUNDIALS_MINOR_VERSION=4 -DPMC_USE_SUNDIALS -I"." -I"/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/bin/../include/omc/cpp/" -I. -I"." -I"." -I"/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/include/omc/c/sundials" -DMEASURETIME_PROFILEBLOCKS -DUSE_LOGGER -c -o OMCppEHPTlib_main_EHPTlib.ElectricDrives.ASMArelated.ControlLogicCalcHelperMain.o OMCppEHPTlib_main_EHPTlib.ElectricDrives.ASMArelated.ControlLogicCalcHelperMain.cpp clang: error: no such file or directory: 'NOTFOUND' make: *** [: OMCppEHPTlib_main_EHPTlib.ElectricDrives.ASMArelated.ControlLogicCalcHelperMain.o] Error 1