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: "" <> buildModelFMU(EHPTlib.ElectricDrives.ASMArelated.ControlLogic,fileNamePrefix="EHPTlib_latest_EHPTlib_ElectricDrives_ASMArelated_ControlLogic",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(EHPTlib.ElectricDrives.ASMArelated.ControlLogic,fileNamePrefix="EHPTlib_latest_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.0007941/0.0007944, allocations: 97.72 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.00488/0.00488, allocations: 169.4 kB / 16.26 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.385/1.385, allocations: 223.3 MB / 240.3 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.1716/0.1716, allocations: 8.019 MB / 299.5 MB, free: 3.387 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003096/0.0003096, allocations: 11.98 kB / 362.5 MB, free: 13.84 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08278/0.0831, allocations: 52.18 MB / 414.7 MB, free: 9.617 MB / 350.1 MB Notification: Performance of NFInst.instantiate(EHPTlib.ElectricDrives.ASMArelated.ControlLogic): time 0.001632/0.08477, allocations: 1.545 MB / 416.2 MB, free: 8.055 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.0004556/0.08524, allocations: 271.4 kB / 416.5 MB, free: 7.789 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.837e-05/0.08533, allocations: 4 kB / 416.5 MB, free: 7.785 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 2.502e-05/0.08536, allocations: 11.86 kB / 416.5 MB, free: 7.773 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002027/0.08557, allocations: 23.84 kB / 416.5 MB, free: 7.75 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002173/0.08579, allocations: 107.9 kB / 416.6 MB, free: 7.645 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001873/0.08599, allocations: 183.2 kB / 416.8 MB, free: 7.465 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001205/0.08611, allocations: 53.83 kB / 416.9 MB, free: 7.414 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 6.754e-05/0.08619, allocations: 55.78 kB / 416.9 MB, free: 7.359 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001214/0.08631, allocations: 87.52 kB / 417 MB, free: 7.273 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 2.622e-05/0.08635, allocations: 8 kB / 417 MB, free: 7.266 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 2.086e-05/0.08637, allocations: 4 kB / 417 MB, free: 7.262 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 3.288e-05/0.08641, allocations: 35.83 kB / 417.1 MB, free: 7.227 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 6.946e-05/0.08649, allocations: 89.3 kB / 417.1 MB, free: 7.133 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001432/0.08664, allocations: 147.6 kB / 417.3 MB, free: 6.988 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.136e-06/0.08665, allocations: 3.938 kB / 417.3 MB, free: 6.984 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.262e-06/0.08665, allocations: 0 / 417.3 MB, free: 6.984 MB / 350.1 MB Notification: Performance of Transformations before backend: time 6.001e-06/0.08666, allocations: 0 / 417.3 MB, free: 6.984 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.0008004/0.08747, allocations: 0.4949 MB / 417.8 MB, free: 6.441 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.135e-05/0.08751, allocations: 12.03 kB / 417.8 MB, free: 6.43 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.904e-05/0.08758, allocations: 46.97 kB / 417.8 MB, free: 6.375 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.032e-05/0.08764, allocations: 24.75 kB / 417.9 MB, free: 6.352 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002281/0.08787, allocations: 239.8 kB / 418.1 MB, free: 6.078 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.0001603/0.08804, allocations: 72.19 kB / 418.2 MB, free: 5.996 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.683e-05/0.08808, allocations: 15.94 kB / 418.2 MB, free: 5.98 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003725/0.08845, allocations: 206.2 kB / 418.4 MB, free: 5.766 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.552e-06/0.08847, allocations: 0 / 418.4 MB, free: 5.766 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.905e-05/0.08849, allocations: 4 kB / 418.4 MB, free: 5.762 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.206e-06/0.08851, allocations: 7.984 kB / 418.4 MB, free: 5.754 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003681/0.08888, allocations: 160.5 kB / 418.6 MB, free: 5.598 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007986/0.08969, allocations: 0.5119 MB / 419.1 MB, free: 5.035 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005292/0.09023, allocations: 238.4 kB / 419.3 MB, free: 4.793 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001862/0.09042, allocations: 76.81 kB / 419.4 MB, free: 4.715 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.075e-05/0.09045, allocations: 12 kB / 419.4 MB, free: 4.703 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.945e-05/0.09048, allocations: 34.5 kB / 419.4 MB, free: 4.66 MB / 350.1 MB Notification: Performance of pre-optimization done (n=11): time 1.292e-06/0.09049, allocations: 0 / 419.4 MB, free: 4.66 MB / 350.1 MB Notification: Performance of matching and sorting (n=11): time 0.0006591/0.09115, allocations: 269.6 kB / 419.7 MB, free: 4.391 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.102e-05/0.09121, allocations: 110.8 kB / 419.8 MB, free: 4.258 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.0001805/0.0914, allocations: 178.3 kB / 420 MB, free: 4.074 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.377e-05/0.09143, allocations: 29.7 kB / 420 MB, free: 4.039 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.572e-05/0.0915, allocations: 131.7 kB / 420.1 MB, free: 3.906 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.71e-05/0.09153, allocations: 31.56 kB / 420.2 MB, free: 3.875 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.147e-05/0.09157, allocations: 17.7 kB / 420.2 MB, free: 3.852 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 9.021e-05/0.09166, allocations: 326.8 kB / 420.5 MB, free: 3.523 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000184/0.09185, allocations: 71.95 kB / 420.6 MB, free: 3.453 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001995/0.09206, allocations: 102.5 kB / 420.7 MB, free: 3.344 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003492/0.09242, allocations: 148.8 kB / 420.8 MB, free: 3.195 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.139e-06/0.09243, allocations: 3.938 kB / 420.8 MB, free: 3.191 MB / 350.1 MB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0004247/0.09286, allocations: 209.3 kB / 421 MB, free: 2.98 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.012e-05/0.09291, allocations: 94.41 kB / 421.1 MB, free: 2.883 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.626e-06/0.09292, allocations: 0 / 421.1 MB, free: 2.883 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 7.985e-06/0.09293, allocations: 0 / 421.1 MB, free: 2.883 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001534/0.09309, allocations: 27.98 kB / 421.1 MB, free: 2.855 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.84e-06/0.09311, allocations: 3.984 kB / 421.1 MB, free: 2.852 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002115/0.09332, allocations: 39.97 kB / 421.2 MB, free: 2.812 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.639e-05/0.09335, allocations: 4 kB / 421.2 MB, free: 2.809 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 7.644e-06/0.09336, allocations: 11.94 kB / 421.2 MB, free: 2.797 MB / 350.1 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0002231/0.09359, allocations: 107.8 kB / 421.3 MB, free: 2.691 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.412e-06/0.0936, allocations: 0 / 421.3 MB, free: 2.691 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.056e-06/0.09361, allocations: 4 kB / 421.3 MB, free: 2.688 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.525e-05/0.0937, allocations: 12 kB / 421.3 MB, free: 2.676 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.178e-06/0.09371, allocations: 3.984 kB / 421.3 MB, free: 2.672 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00017/0.09388, allocations: 31.83 kB / 421.4 MB, free: 2.641 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.265e-05/0.0939, allocations: 8 kB / 421.4 MB, free: 2.633 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.0001168/0.09403, allocations: 205 kB / 421.6 MB, free: 2.422 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.022e-05/0.09407, allocations: 11.84 kB / 421.6 MB, free: 2.41 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.949e-05/0.09412, allocations: 13.41 kB / 421.6 MB, free: 2.387 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.333e-06/0.09412, allocations: 384 / 421.6 MB, free: 2.387 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.615e-06/0.09413, allocations: 4 kB / 421.6 MB, free: 2.383 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.765e-06/0.09414, allocations: 0 / 421.6 MB, free: 2.383 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002206/0.09436, allocations: 249.4 kB / 421.8 MB, free: 2.09 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.849e-06/0.09438, allocations: 11.88 kB / 421.8 MB, free: 2.078 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001405/0.09452, allocations: 35.97 kB / 421.9 MB, free: 2.043 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.603e-06/0.09453, allocations: 0 / 421.9 MB, free: 2.043 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.175e-05/0.09455, allocations: 0 / 421.9 MB, free: 2.043 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.133e-06/0.09456, allocations: 0 / 421.9 MB, free: 2.043 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.11e-07/0.09456, allocations: 0 / 421.9 MB, free: 2.043 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004573/0.09502, allocations: 303.2 kB / 422.2 MB, free: 1.73 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.494e-05/0.09508, allocations: 100.8 kB / 422.3 MB, free: 1.613 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.644e-05/0.09511, allocations: 0 / 422.3 MB, free: 1.613 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002384/0.09535, allocations: 39.97 kB / 422.3 MB, free: 1.574 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.593e-05/0.0954, allocations: 11.97 kB / 422.3 MB, free: 1.562 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.288e-05/0.09543, allocations: 12 kB / 422.3 MB, free: 1.551 MB / 350.1 MB Notification: Performance of sorting global known variables: time 8.886e-05/0.09552, allocations: 135.2 kB / 422.5 MB, free: 1.418 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.6e-07/0.09552, allocations: 0 / 422.5 MB, free: 1.418 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003098/0.09584, allocations: 55.84 kB / 422.5 MB, free: 1.363 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.0008847/0.09673, allocations: 0.9345 MB / 423.5 MB, free: 416 kB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.1574/0.2542, allocations: 2.607 MB / 426.1 MB, free: 39.82 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 4.268e-06/0.2542, allocations: 0 / 426.1 MB, free: 39.82 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001463/0.2557, allocations: 1.286 MB / 427.4 MB, free: 38.8 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003499/0.256, allocations: 31 kB / 427.4 MB, free: 38.8 MB / 350.1 MB [/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/Compiler/BackEnd/SymbolicJacobian.mo:1914:3-1914:101:writable] Error: Internal error function createFMIModelDerivativesForInitialization failed Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001698/0.2577, allocations: 1.404 MB / 428.8 MB, free: 38.14 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001336/0.2579, allocations: 0.7629 MB / 429.5 MB, free: 37.44 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 7.421e-05/0.258, allocations: 20.14 kB / 429.6 MB, free: 37.44 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001038/0.2581, allocations: 93.22 kB / 429.7 MB, free: 37.43 MB / 350.1 MB Notification: Performance of SimCode: time 6.72e-07/0.2581, allocations: 0 / 429.7 MB, free: 37.43 MB / 350.1 MB [CodegenUtil.tpl:198:14-198:14:writable] Error: Template error: initial value of unknown type: 0.2036 / weBase.