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.001326/0.001326, allocations: 117.6 kB / 17.79 MB, free: 5.125 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001354/0.001354, allocations: 199.9 kB / 18.74 MB, free: 4.184 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.4/1.4, allocations: 227.4 MB / 247 MB, free: 10.42 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002706/0.002707, allocations: 63.89 kB / 358.3 MB, free: 13.31 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.276/0.2787, allocations: 50.55 MB / 408.9 MB, free: 1.449 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_FieldWeakening): time 0.02782/0.3066, allocations: 24.68 MB / 433.5 MB, free: 8.66 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.01774/0.3244, allocations: 7.878 MB / 441.4 MB, free: 0.7578 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00556/0.33, allocations: 167.5 kB / 441.6 MB, free: 0.5938 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0143/0.3443, allocations: 5.68 MB / 447.3 MB, free: 10.9 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.008997/0.3533, allocations: 2.56 MB / 449.8 MB, free: 8.328 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.005683/0.359, allocations: 1.829 MB / 451.6 MB, free: 6.504 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.01186/0.3709, allocations: 7.858 MB / 459.5 MB, free: 14.62 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0221/0.3931, allocations: 14.51 MB / 474 MB, free: 15.96 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.006944/0.4001, allocations: 3.958 MB / 478 MB, free: 12 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.008243/0.4083, allocations: 4.539 MB / 482.5 MB, free: 7.441 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 0.003267/0.4117, allocations: 1.109 MB / 483.6 MB, free: 6.332 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004828/0.4165, allocations: 1.461 MB / 485.1 MB, free: 4.871 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.003765/0.4203, allocations: 2.24 MB / 487.3 MB, free: 2.625 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.007566/0.4279, allocations: 4.334 MB / 491.7 MB, free: 14.27 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01965/0.4475, allocations: 15.09 MB / 0.4949 GB, free: 15.14 MB / 430.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.885e-06/0.4476, allocations: 0 / 0.4949 GB, free: 15.14 MB / 430.1 MB Notification: Performance of FrontEnd: time 2.194e-06/0.4476, allocations: 0 / 0.4949 GB, free: 15.14 MB / 430.1 MB Notification: Performance of Transformations before backend: time 0.0004312/0.448, allocations: 7.938 kB / 0.4949 GB, free: 15.13 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.02949/0.4775, allocations: 9.364 MB / 0.504 GB, free: 5.668 MB / 430.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.669e-05/0.4776, allocations: 12.03 kB / 0.504 GB, free: 5.656 MB / 430.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.003375/0.481, allocations: 0.9796 MB / 0.505 GB, free: 4.664 MB / 430.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02968/0.5107, allocations: 5.29 MB / 0.5102 GB, free: 15.36 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01052/0.5213, allocations: 4.771 MB / 0.5148 GB, free: 10.54 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0005281/0.5218, allocations: 0.5058 MB / 0.5153 GB, free: 10.03 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002724/0.5246, allocations: 0.6601 MB / 0.5159 GB, free: 9.367 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0252/0.5498, allocations: 11.18 MB / 0.5269 GB, free: 14.1 MB / 462.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.000195/0.55, allocations: 19.89 kB / 0.5269 GB, free: 14.08 MB / 462.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.00101/0.551, allocations: 280 kB / 0.5272 GB, free: 13.8 MB / 462.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0004573/0.5515, allocations: 434.4 kB / 0.5276 GB, free: 13.38 MB / 462.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02296/0.5745, allocations: 10.75 MB / 0.5381 GB, free: 2.613 MB / 462.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.2869/0.8614, allocations: 35.97 MB / 0.5732 GB, free: 92.55 MB / 462.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.009346/0.8708, allocations: 11.92 MB / 0.5848 GB, free: 82.19 MB / 462.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003651/0.8745, allocations: 2.85 MB / 0.5876 GB, free: 79.56 MB / 462.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003869/0.8749, allocations: 279.2 kB / 0.5879 GB, free: 79.27 MB / 462.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.452e-05/0.875, allocations: 73.44 kB / 0.588 GB, free: 79.19 MB / 462.1 MB Notification: Performance of pre-optimization done (n=365): time 6.252e-06/0.875, allocations: 0 / 0.588 GB, free: 79.19 MB / 462.1 MB Notification: Performance of matching and sorting (n=375): time 0.03427/0.9093, allocations: 15.96 MB / 0.6035 GB, free: 63.48 MB / 462.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.353e-05/0.9094, allocations: 145.7 kB / 0.6037 GB, free: 63.31 MB / 462.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003686/0.9131, allocations: 2.804 MB / 0.6064 GB, free: 60.52 MB / 462.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002381/0.9133, allocations: 87.02 kB / 0.6065 GB, free: 60.43 MB / 462.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001366/0.9147, allocations: 2.976 MB / 0.6094 GB, free: 57.86 MB / 462.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0008671/0.9156, allocations: 1.334 MB / 0.6107 GB, free: 56.54 MB / 462.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001111/0.9167, allocations: 0.9027 MB / 0.6116 GB, free: 55.63 MB / 462.1 MB Notification: Performance of setup shared object (initialization): time 5.689e-05/0.9168, allocations: 305.1 kB / 0.6119 GB, free: 55.33 MB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002797/0.9196, allocations: 2.321 MB / 0.6141 GB, free: 52.99 MB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003373/0.923, allocations: 3.92 MB / 0.618 GB, free: 48.32 MB / 462.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.006807/0.9298, allocations: 6.726 MB / 0.6245 GB, free: 40.86 MB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.346e-05/0.9298, allocations: 16 kB / 0.6246 GB, free: 40.84 MB / 462.1 MB Notification: Performance of matching and sorting (n=611) (initialization): time 0.01011/0.9399, allocations: 7.137 MB / 0.6315 GB, free: 33.68 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.355e-05/0.94, allocations: 28 kB / 0.6316 GB, free: 33.65 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.455e-05/0.9401, allocations: 48 kB / 0.6316 GB, free: 33.6 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003465/0.9435, allocations: 1.229 MB / 0.6328 GB, free: 32.37 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003977/0.9475, allocations: 1.065 MB / 0.6338 GB, free: 31.3 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003428/0.951, allocations: 2.374 MB / 0.6362 GB, free: 28.9 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00425/0.9553, allocations: 283.6 kB / 0.6364 GB, free: 28.62 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0008287/0.9561, allocations: 232 kB / 0.6367 GB, free: 28.4 MB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.008156/0.9643, allocations: 4.522 MB / 0.6411 GB, free: 23.86 MB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.004758/0.9691, allocations: 3.907 MB / 0.6449 GB, free: 19.22 MB / 462.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.008435/0.9775, allocations: 6.711 MB / 0.6514 GB, free: 11.77 MB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 5.703e-05/0.9776, allocations: 12 kB / 0.6515 GB, free: 11.76 MB / 462.1 MB Notification: Performance of matching and sorting (n=611) (initialization_lambda0): time 0.01218/0.9898, allocations: 7.083 MB / 0.6584 GB, free: 4.641 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.783e-05/0.9899, allocations: 28 kB / 0.6584 GB, free: 4.613 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.138e-05/0.99, allocations: 48 kB / 0.6584 GB, free: 4.566 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003436/0.9934, allocations: 1.186 MB / 0.6596 GB, free: 3.379 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003746/0.9972, allocations: 1.076 MB / 0.6606 GB, free: 2.301 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002639/0.9998, allocations: 2.289 MB / 0.6629 GB, free: 15.98 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003945/1.004, allocations: 271.7 kB / 0.6631 GB, free: 15.72 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000694/1.005, allocations: 232 kB / 0.6634 GB, free: 15.49 MB / 478.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.00147/1.006, allocations: 493.6 kB / 0.6638 GB, free: 15 MB / 478.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001292/1.007, allocations: 377.6 kB / 0.6642 GB, free: 14.63 MB / 478.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01196/1.019, allocations: 5.855 MB / 0.6699 GB, free: 8.742 MB / 478.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.316e-05/1.019, allocations: 43.94 kB / 0.67 GB, free: 8.699 MB / 478.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.616e-05/1.019, allocations: 0 / 0.67 GB, free: 8.699 MB / 478.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.143e-05/1.019, allocations: 19.92 kB / 0.67 GB, free: 8.68 MB / 478.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02851/1.048, allocations: 12.7 MB / 0.6824 GB, free: 11.95 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.196e-05/1.048, allocations: 8.031 kB / 0.6824 GB, free: 11.94 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003078/1.051, allocations: 0.6709 MB / 0.683 GB, free: 11.27 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003613/1.055, allocations: 0.974 MB / 0.684 GB, free: 10.29 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0005516/1.055, allocations: 91.95 kB / 0.6841 GB, free: 10.2 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003452/1.059, allocations: 2.046 MB / 0.6861 GB, free: 8.129 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.696e-06/1.059, allocations: 4 kB / 0.6861 GB, free: 8.125 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01746/1.076, allocations: 8.55 MB / 0.6944 GB, free: 15.51 MB / 0.4981 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002707/1.079, allocations: 0.8578 MB / 0.6953 GB, free: 14.63 MB / 0.4981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001167/1.08, allocations: 72 kB / 0.6953 GB, free: 14.56 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002895/1.083, allocations: 211.8 kB / 0.6955 GB, free: 14.35 MB / 0.4981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0006566/1.084, allocations: 234.7 kB / 0.6958 GB, free: 14.12 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003719/1.084, allocations: 112 kB / 0.6959 GB, free: 14.01 MB / 0.4981 GB Notification: Performance of sorting global known variables: time 0.005267/1.089, allocations: 1.867 MB / 0.6977 GB, free: 12.14 MB / 0.4981 GB Notification: Performance of sort global known variables: time 3.71e-07/1.089, allocations: 0 / 0.6977 GB, free: 12.14 MB / 0.4981 GB Notification: Performance of remove unused functions: time 0.01243/1.102, allocations: 2.09 MB / 0.6997 GB, free: 10.05 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.01846/1.12, allocations: 9.243 MB / 0.7088 GB, free: 0.7383 MB / 0.4981 GB Notification: Performance of simCode: created initialization part: time 0.02096/1.141, allocations: 9.229 MB / 0.7178 GB, free: 7.52 MB / 0.5137 GB Notification: Performance of simCode: created event and clocks part: time 1.409e-05/1.142, allocations: 384 / 0.7178 GB, free: 7.52 MB / 0.5137 GB Notification: Performance of simCode: created simulation system equations: time 0.006142/1.148, allocations: 2.647 MB / 0.7204 GB, free: 4.875 MB / 0.5137 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005943/1.154, allocations: 0.8052 MB / 0.7211 GB, free: 4.094 MB / 0.5137 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.3857/1.539, allocations: 42.7 MB / 0.7628 GB, free: 175.8 MB / 0.5294 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004385/1.544, allocations: 4.45 MB / 0.7672 GB, free: 174 MB / 0.5294 GB Notification: Performance of simCode: alias equations: time 0.005261/1.549, allocations: 2.282 MB / 0.7694 GB, free: 171.7 MB / 0.5294 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0035/1.553, allocations: 2.444 MB / 0.7718 GB, free: 169.3 MB / 0.5294 GB Notification: Performance of SimCode: time 9.21e-07/1.553, allocations: 0 / 0.7718 GB, free: 169.3 MB / 0.5294 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1523/1.705, allocations: 104.8 MB / 0.8741 GB, free: 65.1 MB / 0.5294 GB Notification: Performance of buildModelFMU: Generate platform static: time 19.65/21.35, allocations: 8.688 kB / 0.8741 GB, free: 65.09 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)