Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_cpp_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_FieldWeakening.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Running command: "" <> buildModelFMU(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_FieldWeakening,fileNamePrefix="Modelica_trunk_cpp_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_SMPM_FieldWeakening",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_FieldWeakening,fileNamePrefix="Modelica_trunk_cpp_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_SMPM_FieldWeakening",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.0009086/0.0009086, allocations: 194 kB / 17.38 MB, free: 4.438 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.211/1.211, allocations: 226.5 MB / 244.7 MB, free: 8.195 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0007136/0.0007132, allocations: 96.75 kB / 296.7 MB, free: 6.887 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0001978/0.0001978, allocations: 8 kB / 356.9 MB, free: 10.77 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1797/0.1799, allocations: 51.29 MB / 408.2 MB, free: 27.68 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_FieldWeakening): time 0.01486/0.1948, allocations: 21.61 MB / 429.8 MB, free: 5.996 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.01145/0.2063, allocations: 7.249 MB / 437 MB, free: 14.74 MB / 314.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003328/0.2096, allocations: 155.6 kB / 437.2 MB, free: 14.59 MB / 314.7 MB Notification: Performance of NFTyping.typeComponents: time 0.003245/0.2129, allocations: 1.15 MB / 438.3 MB, free: 13.43 MB / 314.7 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/Magnetic/QuasiStatic/FundamentalWave/Examples/BasicMachines/SynchronousMachines/SMPM_FieldWeakening.mo:75:15-75:22:writable] Warning: 'each' used when modifying non-array element re. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/Magnetic/QuasiStatic/FundamentalWave/Examples/BasicMachines/SynchronousMachines/SMPM_FieldWeakening.mo:75:33-75:40:writable] Warning: 'each' used when modifying non-array element im. Notification: Performance of NFTyping.typeBindings: time 0.005435/0.2183, allocations: 2.122 MB / 440.4 MB, free: 11.31 MB / 314.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.002934/0.2213, allocations: 1.195 MB / 441.6 MB, free: 10.12 MB / 314.7 MB Notification: Performance of NFFlatten.flatten: time 0.01082/0.2321, allocations: 9.059 MB / 450.7 MB, free: 1.035 MB / 314.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.01883/0.251, allocations: 14.04 MB / 464.7 MB, free: 2.859 MB / 330.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.004035/0.255, allocations: 2.9 MB / 467.6 MB, free: 15.95 MB / 346.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.004138/0.2592, allocations: 3.385 MB / 471 MB, free: 12.55 MB / 346.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0008154/0.26, allocations: 440 kB / 471.5 MB, free: 12.12 MB / 346.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0019/0.2619, allocations: 0.773 MB / 472.2 MB, free: 11.35 MB / 346.7 MB Notification: Performance of NFScalarize.scalarize: time 0.001078/0.263, allocations: 1.394 MB / 473.6 MB, free: 9.949 MB / 346.7 MB Notification: Performance of NFVerifyModel.verify: time 0.003306/0.2663, allocations: 3.311 MB / 476.9 MB, free: 6.617 MB / 346.7 MB Notification: Performance of NFConvertDAE.convert: time 0.01054/0.2769, allocations: 12.6 MB / 489.5 MB, free: 9.984 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.009e-06/0.2769, allocations: 0 / 489.5 MB, free: 9.984 MB / 362.7 MB Notification: Performance of FrontEnd: time 2.255e-06/0.2769, allocations: 3.938 kB / 489.5 MB, free: 9.98 MB / 362.7 MB Notification: Performance of Transformations before backend: time 0.0003034/0.2772, allocations: 0 / 489.5 MB, free: 9.98 MB / 362.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1903 * Number of variables: 1903 Notification: Performance of Generate backend data structure: time 0.01933/0.2966, allocations: 7.723 MB / 497.3 MB, free: 2.172 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.209e-05/0.2966, allocations: 8.031 kB / 497.3 MB, free: 2.164 MB / 362.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.002024/0.2986, allocations: 0.9796 MB / 498.2 MB, free: 1.172 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02737/0.326, allocations: 5.325 MB / 0.4918 GB, free: 11.83 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00975/0.3358, allocations: 4.636 MB / 0.4963 GB, free: 7.137 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004387/0.3363, allocations: 0.5058 MB / 0.4968 GB, free: 6.629 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002231/0.3385, allocations: 0.6717 MB / 0.4974 GB, free: 5.957 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.204/0.5426, allocations: 11.1 MB / 0.5083 GB, free: 77.18 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001854/0.5428, allocations: 12 kB / 0.5083 GB, free: 77.18 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0007542/0.5436, allocations: 286.1 kB / 0.5086 GB, free: 76.96 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0003519/0.5439, allocations: 427.2 kB / 0.509 GB, free: 76.92 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01886/0.5628, allocations: 10.69 MB / 0.5194 GB, free: 72.78 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04476/0.6076, allocations: 36.39 MB / 0.555 GB, free: 40.01 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.008014/0.6157, allocations: 11.86 MB / 0.5665 GB, free: 27.04 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003259/0.619, allocations: 2.845 MB / 0.5693 GB, free: 24.19 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.000309/0.6193, allocations: 248.7 kB / 0.5696 GB, free: 23.93 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.552e-05/0.6193, allocations: 81.42 kB / 0.5696 GB, free: 23.84 MB / 378.7 MB Notification: Performance of pre-optimization done (n=365): time 4.608e-06/0.6194, allocations: 0 / 0.5696 GB, free: 23.84 MB / 378.7 MB Notification: Performance of matching and sorting (n=375): time 0.03044/0.6498, allocations: 15.93 MB / 0.5852 GB, free: 7.848 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.74e-05/0.6499, allocations: 120 kB / 0.5853 GB, free: 7.711 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002948/0.6528, allocations: 2.758 MB / 0.588 GB, free: 4.934 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001779/0.653, allocations: 89.7 kB / 0.5881 GB, free: 4.84 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001072/0.6541, allocations: 2.879 MB / 0.5909 GB, free: 1.941 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0006187/0.6547, allocations: 1.264 MB / 0.5921 GB, free: 0.6875 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002177/0.655, allocations: 96 kB / 0.5922 GB, free: 0.5938 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001738/0.6551, allocations: 0.4926 MB / 0.5927 GB, free: 96 kB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003177/0.6583, allocations: 2.293 MB / 0.5949 GB, free: 13.79 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004024/0.6624, allocations: 3.906 MB / 0.5988 GB, free: 9.148 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.007806/0.6702, allocations: 6.711 MB / 0.6053 GB, free: 1.699 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.219e-05/0.6702, allocations: 16 kB / 0.6053 GB, free: 1.684 MB / 394.7 MB Notification: Performance of matching and sorting (n=611) (initialization): time 0.01011/0.6803, allocations: 7.077 MB / 0.6122 GB, free: 10.57 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0008689/0.6812, allocations: 1.6 MB / 0.6138 GB, free: 8.254 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.627e-05/0.6813, allocations: 48 kB / 0.6138 GB, free: 8.207 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003463/0.6847, allocations: 1.266 MB / 0.6151 GB, free: 6.938 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003442/0.6882, allocations: 1.069 MB / 0.6161 GB, free: 5.867 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003154/0.6914, allocations: 2.405 MB / 0.6185 GB, free: 3.438 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002743/0.6941, allocations: 295.5 kB / 0.6188 GB, free: 3.148 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003718/0.6945, allocations: 224 kB / 0.619 GB, free: 2.93 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.004e-05/0.6945, allocations: 4 kB / 0.619 GB, free: 2.926 MB / 410.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.009145/0.7037, allocations: 6.721 MB / 0.6255 GB, free: 12.18 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.965e-05/0.7038, allocations: 63.88 kB / 0.6256 GB, free: 12.12 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0031/0.7069, allocations: 1.151 MB / 0.6267 GB, free: 10.97 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003424/0.7103, allocations: 1.069 MB / 0.6278 GB, free: 9.898 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002741/0.7131, allocations: 2.301 MB / 0.63 GB, free: 7.57 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002622/0.7157, allocations: 283.6 kB / 0.6303 GB, free: 7.293 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003846/0.7161, allocations: 228 kB / 0.6305 GB, free: 7.07 MB / 426.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 232 * Number of states: 0 () * Number of discrete variables: 1 (fieldWeakeningController.PID.I.local_reset) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (546): * Single equations (assignments): 545 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {11 55} Notification: Performance of prepare postOptimizeDAE: time 0.003821/0.7199, allocations: 2.553 MB / 0.633 GB, free: 4.508 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007008/0.7206, allocations: 343.9 kB / 0.6333 GB, free: 4.168 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.009389/0.73, allocations: 5.868 MB / 0.6391 GB, free: 14.27 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.89e-05/0.7301, allocations: 40 kB / 0.6391 GB, free: 14.23 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.006e-05/0.7301, allocations: 4 kB / 0.6391 GB, free: 14.22 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.198e-05/0.7301, allocations: 23.92 kB / 0.6391 GB, free: 14.2 MB / 442.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02002/0.7501, allocations: 12.91 MB / 0.6517 GB, free: 1.18 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.16e-05/0.7502, allocations: 0 / 0.6517 GB, free: 1.18 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00264/0.7528, allocations: 0.6748 MB / 0.6524 GB, free: 0.5039 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003153/0.756, allocations: 0.9937 MB / 0.6534 GB, free: 15.51 MB / 458.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002743/0.7563, allocations: 79.97 kB / 0.6534 GB, free: 15.43 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002683/0.759, allocations: 2.05 MB / 0.6554 GB, free: 13.35 MB / 458.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.319e-06/0.759, allocations: 3.938 kB / 0.6554 GB, free: 13.34 MB / 458.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.012/0.771, allocations: 8.494 MB / 0.6637 GB, free: 4.781 MB / 458.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001697/0.7727, allocations: 0.8402 MB / 0.6645 GB, free: 3.918 MB / 458.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006165/0.7734, allocations: 64 kB / 0.6646 GB, free: 3.855 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001998/0.7754, allocations: 227.8 kB / 0.6648 GB, free: 3.633 MB / 458.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005999/0.776, allocations: 222.8 kB / 0.665 GB, free: 3.414 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002283/0.7762, allocations: 111.9 kB / 0.6651 GB, free: 3.305 MB / 458.7 MB Notification: Performance of sorting global known variables: time 0.002955/0.7792, allocations: 1.847 MB / 0.6669 GB, free: 1.453 MB / 458.7 MB Notification: Performance of sort global known variables: time 1.41e-07/0.7792, allocations: 0 / 0.6669 GB, free: 1.453 MB / 458.7 MB Notification: Performance of remove unused functions: time 0.005795/0.785, allocations: 2.089 MB / 0.669 GB, free: 15.36 MB / 474.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * Number of states: 2 (speedSource.phi,fieldWeakeningController.PID.I.y) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (346): * Single equations (assignments): 345 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {9 50} Notification: Performance of Backend phase and start with SimCode phase: time 0.01207/0.7971, allocations: 9.213 MB / 0.678 GB, free: 6.09 MB / 474.7 MB Notification: Performance of simCode: created initialization part: time 0.1757/0.9728, allocations: 9.139 MB / 0.6869 GB, free: 169.3 MB / 474.7 MB Notification: Performance of simCode: created event and clocks part: time 8.355e-06/0.9729, allocations: 0.625 kB / 0.6869 GB, free: 169.3 MB / 474.7 MB Notification: Performance of simCode: created simulation system equations: time 0.004339/0.9772, allocations: 2.632 MB / 0.6895 GB, free: 168.5 MB / 474.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003952/0.9812, allocations: 0.7615 MB / 0.6902 GB, free: 168.3 MB / 474.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.05297/1.034, allocations: 35.82 MB / 0.7252 GB, free: 141.5 MB / 474.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003204/1.037, allocations: 4.331 MB / 0.7294 GB, free: 137.1 MB / 474.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002779/1.04, allocations: 2.452 MB / 0.7318 GB, free: 134.7 MB / 474.7 MB Notification: Performance of SimCode: time 8.62e-07/1.04, allocations: 0 / 0.7318 GB, free: 134.7 MB / 474.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 6.095/7.135, allocations: 134.6 MB / 0.8633 GB, free: 144.6 MB / 474.7 MB (rm -f Modelica_trunk_cpp_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_FieldWeakening.pipe ; mkfifo Modelica_trunk_cpp_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_FieldWeakening.pipe ; head -c 1048576 < Modelica_trunk_cpp_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_FieldWeakening.pipe >> ../files/Modelica_trunk_cpp_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_FieldWeakening.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_Modelica_trunk_cpp_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_SMPM_FieldWeakening_fmu --startTime=0 --stopTime=2.5 --timeout=50 --tolerance=1e-06 Modelica_trunk_cpp_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_SMPM_FieldWeakening.fmu > Modelica_trunk_cpp_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_FieldWeakening.pipe 2>&1)