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: "" <> buildModelFMU(EHPTlib.ElectricDrives.ASMArelated.ControlLogic,fileNamePrefix="EHPTlib_EHPTlib_ElectricDrives_ASMArelated_ControlLogic",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(EHPTlib.ElectricDrives.ASMArelated.ControlLogic,fileNamePrefix="EHPTlib_EHPTlib_ElectricDrives_ASMArelated_ControlLogic",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001148/0.001148, allocations: 103.4 kB / 15.33 MB, free: 0.5078 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.001131/0.001131, allocations: 190.9 kB / 16.25 MB, free: 6.621 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.308/1.308, allocations: 222.9 MB / 239.9 MB, free: 4.539 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/EHPTlib 2.1.4-main/package.mo): time 0.1692/0.1692, allocations: 8.036 MB / 298.1 MB, free: 2.469 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001205/0.001205, allocations: 59.91 kB / 360.2 MB, free: 14.6 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08426/0.08548, allocations: 51.2 MB / 411.4 MB, free: 11.37 MB / 350.1 MB Notification: Performance of NFInst.instantiate(EHPTlib.ElectricDrives.ASMArelated.ControlLogic): time 0.0029/0.08841, allocations: 1.888 MB / 413.3 MB, free: 9.457 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.0005702/0.08901, allocations: 275.4 kB / 413.6 MB, free: 9.188 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001139/0.08914, allocations: 4 kB / 413.6 MB, free: 9.184 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 5.213e-05/0.0892, allocations: 11.86 kB / 413.6 MB, free: 9.172 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002376/0.08946, allocations: 23.84 kB / 413.6 MB, free: 9.148 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002707/0.08974, allocations: 123.2 kB / 413.7 MB, free: 9.031 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002224/0.08997, allocations: 191.2 kB / 413.9 MB, free: 8.844 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001343/0.09011, allocations: 49.84 kB / 414 MB, free: 8.797 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 8.78e-05/0.0902, allocations: 75.77 kB / 414.1 MB, free: 8.723 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001373/0.09034, allocations: 95.58 kB / 414.1 MB, free: 8.629 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 3.95e-05/0.09039, allocations: 19.94 kB / 414.2 MB, free: 8.609 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 2.792e-05/0.09042, allocations: 16 kB / 414.2 MB, free: 8.594 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 4.058e-05/0.09047, allocations: 39.83 kB / 414.2 MB, free: 8.555 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 6.79e-05/0.09054, allocations: 79.56 kB / 414.3 MB, free: 8.477 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001874/0.09073, allocations: 155.7 kB / 414.5 MB, free: 8.324 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.968e-06/0.09075, allocations: 0 / 414.5 MB, free: 8.324 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.313e-06/0.09075, allocations: 0 / 414.5 MB, free: 8.324 MB / 350.1 MB Notification: Performance of Transformations before backend: time 5.25e-06/0.09076, allocations: 0 / 414.5 MB, free: 8.324 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.0009243/0.09169, allocations: 0.5143 MB / 415 MB, free: 7.762 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.793e-05/0.09174, allocations: 16.03 kB / 415 MB, free: 7.746 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.768e-05/0.09182, allocations: 46.97 kB / 415 MB, free: 7.691 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.759e-05/0.09189, allocations: 20.75 kB / 415 MB, free: 7.672 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002574/0.09215, allocations: 235.8 kB / 415.3 MB, free: 7.402 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.0001826/0.09234, allocations: 76.17 kB / 415.4 MB, free: 7.316 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.463e-05/0.09237, allocations: 15.94 kB / 415.4 MB, free: 7.301 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003653/0.09274, allocations: 190.2 kB / 415.6 MB, free: 7.102 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.476e-06/0.09276, allocations: 0 / 415.6 MB, free: 7.102 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.138e-05/0.09279, allocations: 8 kB / 415.6 MB, free: 7.094 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.739e-06/0.0928, allocations: 0 / 415.6 MB, free: 7.094 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000331/0.09313, allocations: 136.5 kB / 415.7 MB, free: 6.961 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008302/0.09397, allocations: 0.5002 MB / 416.2 MB, free: 6.41 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004565/0.09444, allocations: 186.6 kB / 416.4 MB, free: 6.219 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001708/0.09462, allocations: 88.69 kB / 416.5 MB, free: 6.129 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.248e-05/0.09465, allocations: 0 / 416.5 MB, free: 6.129 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.342e-05/0.09468, allocations: 34.56 kB / 416.5 MB, free: 6.086 MB / 350.1 MB Notification: Performance of pre-optimization done (n=11): time 1.082e-06/0.09469, allocations: 0 / 416.5 MB, free: 6.086 MB / 350.1 MB Notification: Performance of matching and sorting (n=11): time 0.0005939/0.09528, allocations: 237.4 kB / 416.7 MB, free: 5.848 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.743e-05/0.09535, allocations: 106.8 kB / 416.8 MB, free: 5.719 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.000189/0.09555, allocations: 186.2 kB / 417 MB, free: 5.527 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.469e-05/0.09558, allocations: 33.7 kB / 417 MB, free: 5.488 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.773e-05/0.09565, allocations: 127.7 kB / 417.2 MB, free: 5.359 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.089e-05/0.09569, allocations: 31.55 kB / 417.2 MB, free: 5.328 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.708e-05/0.09576, allocations: 33.7 kB / 417.2 MB, free: 5.289 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001024/0.09587, allocations: 330.8 kB / 417.6 MB, free: 4.957 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001777/0.09605, allocations: 64.81 kB / 417.6 MB, free: 4.891 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001747/0.09624, allocations: 78.53 kB / 417.7 MB, free: 4.805 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003057/0.09655, allocations: 132.8 kB / 417.8 MB, free: 4.672 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.859e-06/0.09656, allocations: 3.938 kB / 417.8 MB, free: 4.668 MB / 350.1 MB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0003898/0.09696, allocations: 185.3 kB / 418 MB, free: 4.48 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.562e-05/0.09698, allocations: 8 kB / 418 MB, free: 4.473 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.33e-06/0.097, allocations: 4 kB / 418 MB, free: 4.469 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.281e-05/0.09701, allocations: 3.984 kB / 418 MB, free: 4.465 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001587/0.09718, allocations: 19.98 kB / 418 MB, free: 4.445 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.34e-06/0.09719, allocations: 0 / 418 MB, free: 4.445 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000209/0.0974, allocations: 27.97 kB / 418.1 MB, free: 4.418 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.123e-05/0.09743, allocations: 11.98 kB / 418.1 MB, free: 4.406 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0001421/0.09758, allocations: 120.1 kB / 418.2 MB, free: 4.285 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0001135/0.0977, allocations: 78.75 kB / 418.3 MB, free: 4.199 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.0001623/0.09787, allocations: 85.36 kB / 418.4 MB, free: 4.113 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 2.054e-06/0.09788, allocations: 7.922 kB / 418.4 MB, free: 4.105 MB / 350.1 MB Notification: Performance of matching and sorting (n=11) (initialization_lambda0): time 0.0002473/0.09813, allocations: 145.3 kB / 418.5 MB, free: 3.957 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.673e-06/0.09815, allocations: 4 kB / 418.5 MB, free: 3.953 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.232e-06/0.09815, allocations: 0 / 418.5 MB, free: 3.953 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 4.097e-06/0.09816, allocations: 7.984 kB / 418.5 MB, free: 3.945 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.23e-05/0.09826, allocations: 16.02 kB / 418.5 MB, free: 3.93 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.156e-06/0.09827, allocations: 4 kB / 418.5 MB, free: 3.926 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001806/0.09846, allocations: 27.91 kB / 418.6 MB, free: 3.898 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.243e-05/0.09848, allocations: 4 kB / 418.6 MB, free: 3.895 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 9.935e-05/0.09858, allocations: 188.2 kB / 418.8 MB, free: 3.703 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.007e-05/0.09862, allocations: 11.81 kB / 418.8 MB, free: 3.691 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.548e-05/0.09868, allocations: 21.39 kB / 418.8 MB, free: 3.66 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.287e-06/0.09868, allocations: 4 kB / 418.8 MB, free: 3.656 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.118e-06/0.09869, allocations: 4 kB / 418.8 MB, free: 3.652 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.926e-06/0.0987, allocations: 0 / 418.8 MB, free: 3.652 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002269/0.09893, allocations: 245.5 kB / 419 MB, free: 3.363 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.062e-06/0.09894, allocations: 0 / 419 MB, free: 3.363 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001289/0.09907, allocations: 23.92 kB / 419.1 MB, free: 3.34 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.845e-06/0.09909, allocations: 4 kB / 419.1 MB, free: 3.336 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.061e-05/0.09911, allocations: 11.92 kB / 419.1 MB, free: 3.324 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.173e-06/0.09912, allocations: 0 / 419.1 MB, free: 3.324 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.72e-07/0.09912, allocations: 0 / 419.1 MB, free: 3.324 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004134/0.09954, allocations: 275.2 kB / 419.3 MB, free: 3.039 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.516e-05/0.09959, allocations: 92.91 kB / 419.4 MB, free: 2.93 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.223e-05/0.09963, allocations: 4 kB / 419.4 MB, free: 2.926 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002294/0.09987, allocations: 27.97 kB / 419.5 MB, free: 2.898 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.513e-05/0.09993, allocations: 19.92 kB / 419.5 MB, free: 2.879 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.597e-05/0.09995, allocations: 11.98 kB / 419.5 MB, free: 2.867 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0001004/0.1001, allocations: 127.2 kB / 419.6 MB, free: 2.742 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.1001, allocations: 0 / 419.6 MB, free: 2.742 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003226/0.1004, allocations: 63.78 kB / 419.7 MB, free: 2.68 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 0.0009/0.1013, allocations: 0.9034 MB / 420.6 MB, free: 1.75 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.1301/0.2314, allocations: 2.581 MB / 423.2 MB, free: 43.51 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 4.468e-06/0.2315, allocations: 0.8438 kB / 423.2 MB, free: 43.51 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001516/0.233, allocations: 1.273 MB / 424.4 MB, free: 42.5 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003556/0.2333, allocations: 26.28 kB / 424.5 MB, free: 42.5 MB / 350.1 MB [/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/Compiler/BackEnd/SymbolicJacobian.mo:1962:3-1962:101:writable] Error: Internal error function createFMIModelDerivativesForInitialization failed Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001673/0.235, allocations: 1.353 MB / 425.8 MB, free: 41.84 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001648/0.2352, allocations: 0.7629 MB / 426.6 MB, free: 41.14 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 8.46e-05/0.2353, allocations: 20.38 kB / 426.6 MB, free: 41.14 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.783e-05/0.2354, allocations: 90.3 kB / 426.7 MB, free: 41.13 MB / 350.1 MB Notification: Performance of SimCode: time 6.31e-07/0.2354, allocations: 3.812 kB / 426.7 MB, free: 41.13 MB / 350.1 MB [CodegenUtil.tpl:216:14-216:14:writable] Error: Template error: initial value of unknown type: 0.2036 / weBase.