Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_FieldWeakening.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) 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) 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) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: "" <> buildModelFMU(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_FieldWeakening,fileNamePrefix="Modelica_trunk_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_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/ModelicaServices trunk/package.mo): time 0.001538/0.001538, allocations: 118.8 kB / 17.79 MB, free: 5.285 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001904/0.001904, allocations: 201.2 kB / 18.73 MB, free: 4.34 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.383/1.383, allocations: 227.4 MB / 246.9 MB, free: 10.48 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00125/0.00125, allocations: 60.14 kB / 358.2 MB, free: 13.41 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2382/0.2395, allocations: 50.54 MB / 408.8 MB, free: 1.684 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_FieldWeakening): time 0.0262/0.2657, allocations: 24.67 MB / 433.5 MB, free: 8.898 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.01466/0.2804, allocations: 7.876 MB / 441.3 MB, free: 1 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.004146/0.2846, allocations: 171.5 kB / 441.5 MB, free: 0.832 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.01282/0.2975, allocations: 5.688 MB / 447.2 MB, free: 11.13 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.007978/0.3055, allocations: 2.549 MB / 449.7 MB, free: 8.57 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.005189/0.3107, allocations: 1.838 MB / 451.6 MB, free: 6.734 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.009777/0.3205, allocations: 7.857 MB / 459.4 MB, free: 14.85 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.02084/0.3413, allocations: 14.5 MB / 473.9 MB, free: 212 kB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.005877/0.3473, allocations: 3.974 MB / 477.9 MB, free: 12.22 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00666/0.3539, allocations: 4.547 MB / 482.5 MB, free: 7.66 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 0.002682/0.3567, allocations: 1.109 MB / 483.6 MB, free: 6.551 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003777/0.3605, allocations: 1.461 MB / 485 MB, free: 5.09 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002993/0.3635, allocations: 2.24 MB / 487.3 MB, free: 2.844 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.006397/0.3699, allocations: 4.326 MB / 491.6 MB, free: 14.5 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01561/0.3855, allocations: 15.06 MB / 0.4948 GB, free: 15.39 MB / 430.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.72e-06/0.3856, allocations: 0 / 0.4948 GB, free: 15.39 MB / 430.1 MB Notification: Performance of FrontEnd: time 1.573e-06/0.3856, allocations: 0 / 0.4948 GB, free: 15.39 MB / 430.1 MB Notification: Performance of Transformations before backend: time 0.0003498/0.3859, allocations: 0 / 0.4948 GB, free: 15.39 MB / 430.1 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.02646/0.4124, allocations: 9.194 MB / 0.5038 GB, free: 6.117 MB / 430.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.644e-05/0.4125, allocations: 12.03 kB / 0.5038 GB, free: 6.105 MB / 430.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.00305/0.4155, allocations: 0.9796 MB / 0.5047 GB, free: 5.113 MB / 430.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.03014/0.4457, allocations: 5.333 MB / 0.5099 GB, free: 15.77 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0113/0.457, allocations: 4.738 MB / 0.5146 GB, free: 10.97 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0005248/0.4576, allocations: 0.5096 MB / 0.5151 GB, free: 10.46 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002426/0.46, allocations: 0.6678 MB / 0.5157 GB, free: 9.789 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02741/0.4874, allocations: 11.16 MB / 0.5266 GB, free: 14.54 MB / 462.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002831/0.4877, allocations: 15.83 kB / 0.5266 GB, free: 14.53 MB / 462.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001889/0.4896, allocations: 284 kB / 0.5269 GB, free: 14.25 MB / 462.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0004573/0.4901, allocations: 430.4 kB / 0.5273 GB, free: 13.83 MB / 462.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02181/0.5119, allocations: 10.72 MB / 0.5378 GB, free: 3.094 MB / 462.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.2681/0.7801, allocations: 35.85 MB / 0.5728 GB, free: 93.46 MB / 462.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.009444/0.7896, allocations: 11.9 MB / 0.5844 GB, free: 83.12 MB / 462.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003788/0.7934, allocations: 2.849 MB / 0.5872 GB, free: 80.45 MB / 462.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.000408/0.7938, allocations: 247.7 kB / 0.5874 GB, free: 80.19 MB / 462.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.122e-05/0.7939, allocations: 69.44 kB / 0.5875 GB, free: 80.11 MB / 462.1 MB Notification: Performance of pre-optimization done (n=365): time 5.289e-06/0.7939, allocations: 0 / 0.5875 GB, free: 80.11 MB / 462.1 MB Notification: Performance of matching and sorting (n=375): time 0.03729/0.8312, allocations: 15.82 MB / 0.6029 GB, free: 64.29 MB / 462.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.66e-05/0.8313, allocations: 145.7 kB / 0.6031 GB, free: 64.12 MB / 462.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003897/0.8352, allocations: 2.793 MB / 0.6058 GB, free: 61.31 MB / 462.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0004948/0.8357, allocations: 85.7 kB / 0.6059 GB, free: 61.22 MB / 462.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001197/0.8369, allocations: 2.883 MB / 0.6087 GB, free: 58.32 MB / 462.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0009909/0.8379, allocations: 1.273 MB / 0.6099 GB, free: 57.05 MB / 462.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001587/0.8395, allocations: 0.8944 MB / 0.6108 GB, free: 56.15 MB / 462.1 MB Notification: Performance of setup shared object (initialization): time 3.377e-05/0.8396, allocations: 301.1 kB / 0.6111 GB, free: 55.85 MB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003175/0.8428, allocations: 2.31 MB / 0.6134 GB, free: 53.52 MB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003969/0.8467, allocations: 3.92 MB / 0.6172 GB, free: 48.86 MB / 462.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.007647/0.8544, allocations: 6.707 MB / 0.6237 GB, free: 41.41 MB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.058e-05/0.8545, allocations: 16 kB / 0.6238 GB, free: 41.39 MB / 462.1 MB Notification: Performance of matching and sorting (n=611) (initialization): time 0.01082/0.8653, allocations: 7.089 MB / 0.6307 GB, free: 34.27 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.33e-05/0.8654, allocations: 27.94 kB / 0.6307 GB, free: 34.25 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.225e-05/0.8655, allocations: 56.03 kB / 0.6308 GB, free: 34.19 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003386/0.8688, allocations: 1.225 MB / 0.632 GB, free: 32.96 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003657/0.8725, allocations: 1.065 MB / 0.633 GB, free: 31.89 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002915/0.8755, allocations: 2.359 MB / 0.6353 GB, free: 29.51 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003601/0.8791, allocations: 287.5 kB / 0.6356 GB, free: 29.23 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0006736/0.8798, allocations: 228 kB / 0.6358 GB, free: 29 MB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.006321/0.8861, allocations: 4.518 MB / 0.6402 GB, free: 24.47 MB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.003881/0.89, allocations: 3.903 MB / 0.644 GB, free: 19.83 MB / 462.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.007336/0.8974, allocations: 6.687 MB / 0.6505 GB, free: 12.41 MB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 3.821e-05/0.8974, allocations: 12 kB / 0.6506 GB, free: 12.39 MB / 462.1 MB Notification: Performance of matching and sorting (n=611) (initialization_lambda0): time 0.01044/0.9079, allocations: 7.037 MB / 0.6574 GB, free: 5.32 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.206e-05/0.9079, allocations: 28.66 kB / 0.6575 GB, free: 5.293 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.272e-05/0.908, allocations: 52 kB / 0.6575 GB, free: 5.242 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00334/0.9114, allocations: 1.197 MB / 0.6587 GB, free: 4.047 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003776/0.9152, allocations: 1.061 MB / 0.6597 GB, free: 2.984 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002598/0.9178, allocations: 2.292 MB / 0.6619 GB, free: 0.6641 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003314/0.9211, allocations: 275.7 kB / 0.6622 GB, free: 404 kB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0006707/0.9218, allocations: 228.1 kB / 0.6624 GB, free: 176 kB / 462.1 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 (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(11,55)} Notification: Performance of prepare postOptimizeDAE: time 0.001349/0.9232, allocations: 0.4898 MB / 0.6629 GB, free: 15.68 MB / 478.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001074/0.9242, allocations: 351.7 kB / 0.6632 GB, free: 15.33 MB / 478.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01103/0.9353, allocations: 5.855 MB / 0.669 GB, free: 9.438 MB / 478.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.416e-05/0.9354, allocations: 43.94 kB / 0.669 GB, free: 9.395 MB / 478.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.424e-05/0.9354, allocations: 0 / 0.669 GB, free: 9.395 MB / 478.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.249e-05/0.9354, allocations: 15.94 kB / 0.669 GB, free: 9.379 MB / 478.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02536/0.9608, allocations: 12.67 MB / 0.6814 GB, free: 12.68 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.854e-05/0.9609, allocations: 0 / 0.6814 GB, free: 12.68 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002906/0.9638, allocations: 0.6671 MB / 0.682 GB, free: 12.02 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003331/0.9671, allocations: 0.9818 MB / 0.683 GB, free: 11.03 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0004852/0.9676, allocations: 75.98 kB / 0.6831 GB, free: 10.96 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00293/0.9706, allocations: 2.057 MB / 0.6851 GB, free: 8.875 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.505e-06/0.9706, allocations: 0 / 0.6851 GB, free: 8.875 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01446/0.9851, allocations: 8.494 MB / 0.6934 GB, free: 316 kB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002899/0.988, allocations: 0.8414 MB / 0.6942 GB, free: 15.44 MB / 0.4981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.00119/0.9892, allocations: 68 kB / 0.6943 GB, free: 15.38 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002686/0.9919, allocations: 207.8 kB / 0.6945 GB, free: 15.17 MB / 0.4981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000701/0.9926, allocations: 226.8 kB / 0.6947 GB, free: 14.95 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0004109/0.9931, allocations: 112 kB / 0.6948 GB, free: 14.84 MB / 0.4981 GB Notification: Performance of sorting global known variables: time 0.003796/0.9969, allocations: 1.871 MB / 0.6966 GB, free: 12.96 MB / 0.4981 GB Notification: Performance of sort global known variables: time 2.71e-07/0.9969, allocations: 0 / 0.6966 GB, free: 12.96 MB / 0.4981 GB Notification: Performance of remove unused functions: time 0.008169/1.005, allocations: 2.089 MB / 0.6986 GB, free: 10.88 MB / 0.4981 GB 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 (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(9,50)} Notification: Performance of Backend phase and start with SimCode phase: time 0.01566/1.021, allocations: 9.2 MB / 0.7076 GB, free: 1.613 MB / 0.4981 GB Notification: Performance of simCode: created initialization part: time 0.01738/1.038, allocations: 9.196 MB / 0.7166 GB, free: 8.43 MB / 0.5137 GB Notification: Performance of simCode: created event and clocks part: time 9.047e-06/1.038, allocations: 4 kB / 0.7166 GB, free: 8.426 MB / 0.5137 GB Notification: Performance of simCode: created simulation system equations: time 0.005175/1.043, allocations: 2.634 MB / 0.7192 GB, free: 5.797 MB / 0.5137 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004886/1.048, allocations: 0.8017 MB / 0.72 GB, free: 5.023 MB / 0.5137 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.272/1.32, allocations: 42.6 MB / 0.7616 GB, free: 175.3 MB / 0.5294 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003439/1.324, allocations: 4.445 MB / 0.7659 GB, free: 173.7 MB / 0.5294 GB Notification: Performance of simCode: alias equations: time 0.005151/1.329, allocations: 2.28 MB / 0.7681 GB, free: 172.1 MB / 0.5294 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003028/1.332, allocations: 2.425 MB / 0.7705 GB, free: 169.7 MB / 0.5294 GB Notification: Performance of SimCode: time 9.42e-07/1.332, allocations: 4 kB / 0.7705 GB, free: 169.7 MB / 0.5294 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1305/1.463, allocations: 106.4 MB / 0.8744 GB, free: 63.86 MB / 0.5294 GB Notification: Performance of buildModelFMU: Generate platform static: time 19.94/21.4, allocations: 12.69 kB / 0.8744 GB, free: 63.84 MB / 0.5294 GB (rm -f Modelica_trunk_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_FieldWeakening.pipe ; mkfifo Modelica_trunk_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_FieldWeakening.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_FieldWeakening.pipe >> ../files/Modelica_trunk_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_FieldWeakening.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_Modelica_trunk_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_SMPM_FieldWeakening_fmu --startTime=0 --stopTime=2.5 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_SMPM_FieldWeakening.fmu > Modelica_trunk_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_FieldWeakening.pipe 2>&1)