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.001071/0.001071, allocations: 103.9 kB / 17.63 MB, free: 5.523 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001102/0.001102, allocations: 206.4 kB / 18.58 MB, free: 4.582 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.345/1.345, allocations: 227.4 MB / 246.8 MB, free: 10.63 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001206/0.001206, allocations: 64.09 kB / 307.1 MB, free: 0.543 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09237/0.0936, allocations: 50.54 MB / 357.6 MB, free: 14.01 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_FieldWeakening): time 0.1795/0.2732, allocations: 24.66 MB / 382.3 MB, free: 8.273 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.013/0.2862, allocations: 7.877 MB / 390.2 MB, free: 3.406 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003891/0.2902, allocations: 167.6 kB / 390.3 MB, free: 3.375 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.01175/0.302, allocations: 5.68 MB / 396 MB, free: 8 kB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.007928/0.3099, allocations: 2.56 MB / 398.6 MB, free: 14.37 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.004669/0.3146, allocations: 1.832 MB / 400.4 MB, free: 12.93 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.01003/0.3246, allocations: 7.798 MB / 408.2 MB, free: 8.297 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.01775/0.3424, allocations: 14.61 MB / 422.8 MB, free: 11.11 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.005779/0.3483, allocations: 3.942 MB / 426.7 MB, free: 7.156 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.006267/0.3545, allocations: 4.567 MB / 431.3 MB, free: 2.574 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.002266/0.3568, allocations: 1.105 MB / 432.4 MB, free: 1.469 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003637/0.3605, allocations: 1.48 MB / 433.9 MB, free: 15.99 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002016/0.3625, allocations: 2.244 MB / 436.1 MB, free: 13.74 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.005514/0.3681, allocations: 4.338 MB / 440.5 MB, free: 9.383 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01374/0.3818, allocations: 14.96 MB / 455.4 MB, free: 10.38 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.252e-06/0.3819, allocations: 0 / 455.4 MB, free: 10.38 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.423e-06/0.3819, allocations: 0 / 455.4 MB, free: 10.38 MB / 366.1 MB Notification: Performance of Transformations before backend: time 0.0002951/0.3822, allocations: 0 / 455.4 MB, free: 10.38 MB / 366.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.02742/0.4096, allocations: 9.229 MB / 464.7 MB, free: 1.066 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.976e-05/0.4097, allocations: 12.03 kB / 464.7 MB, free: 1.055 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.003151/0.4128, allocations: 0.9835 MB / 465.7 MB, free: 60 kB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.03009/0.4429, allocations: 5.302 MB / 471 MB, free: 10.74 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.009389/0.4523, allocations: 4.621 MB / 475.6 MB, free: 6.062 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004656/0.4528, allocations: 0.5058 MB / 476.1 MB, free: 5.555 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002287/0.4551, allocations: 0.6756 MB / 476.8 MB, free: 4.879 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02388/0.479, allocations: 11.16 MB / 487.9 MB, free: 9.641 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002465/0.4793, allocations: 19.91 kB / 487.9 MB, free: 9.621 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.00165/0.481, allocations: 280 kB / 488.2 MB, free: 9.348 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0004256/0.4814, allocations: 426.5 kB / 488.6 MB, free: 8.93 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02084/0.5023, allocations: 10.72 MB / 499.3 MB, free: 14.2 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0581/0.5604, allocations: 36.29 MB / 0.5231 GB, free: 8.922 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.1836/0.744, allocations: 11.88 MB / 0.5347 GB, free: 130 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.005125/0.7492, allocations: 2.851 MB / 0.5375 GB, free: 130 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003808/0.7496, allocations: 253.5 kB / 0.5377 GB, free: 129.8 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.15e-05/0.7497, allocations: 70.92 kB / 0.5378 GB, free: 129.7 MB / 446.1 MB Notification: Performance of pre-optimization done (n=365): time 5.51e-06/0.7497, allocations: 3.781 kB / 0.5378 GB, free: 129.7 MB / 446.1 MB Notification: Performance of matching and sorting (n=375): time 0.03577/0.7855, allocations: 15.82 MB / 0.5532 GB, free: 124.3 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.681e-05/0.7856, allocations: 143.2 kB / 0.5534 GB, free: 124.2 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003555/0.7891, allocations: 2.791 MB / 0.5561 GB, free: 123.1 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002621/0.7894, allocations: 85.52 kB / 0.5562 GB, free: 123 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001261/0.7907, allocations: 2.882 MB / 0.559 GB, free: 120.8 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000802/0.7915, allocations: 1.264 MB / 0.5602 GB, free: 119.9 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001125/0.7926, allocations: 0.8928 MB / 0.5611 GB, free: 119.4 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 4.023e-05/0.7927, allocations: 308.9 kB / 0.5614 GB, free: 119.1 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002995/0.7957, allocations: 2.311 MB / 0.5637 GB, free: 118.2 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00351/0.7992, allocations: 3.918 MB / 0.5675 GB, free: 115.3 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.007243/0.8065, allocations: 6.705 MB / 0.574 GB, free: 110.9 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.161e-05/0.8065, allocations: 15.34 kB / 0.574 GB, free: 110.9 MB / 446.1 MB Notification: Performance of matching and sorting (n=611) (initialization): time 0.009645/0.8162, allocations: 7.092 MB / 0.581 GB, free: 107.1 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.412e-05/0.8162, allocations: 30.97 kB / 0.581 GB, free: 107.1 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.635e-05/0.8163, allocations: 52.72 kB / 0.581 GB, free: 107.1 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003296/0.8196, allocations: 1.241 MB / 0.5823 GB, free: 106.1 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003373/0.823, allocations: 1.065 MB / 0.5833 GB, free: 105.2 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002742/0.8257, allocations: 2.359 MB / 0.5856 GB, free: 102.8 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002914/0.8287, allocations: 295.2 kB / 0.5859 GB, free: 102.5 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002955/0.829, allocations: 224 kB / 0.5861 GB, free: 102.3 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.005808/0.8348, allocations: 4.522 MB / 0.5905 GB, free: 97.73 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.003303/0.8381, allocations: 3.9 MB / 0.5943 GB, free: 93.09 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.006699/0.8448, allocations: 6.683 MB / 0.6008 GB, free: 85.66 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 2.838e-05/0.8449, allocations: 16 kB / 0.6009 GB, free: 85.65 MB / 446.1 MB Notification: Performance of matching and sorting (n=611) (initialization_lambda0): time 0.009145/0.854, allocations: 7.046 MB / 0.6077 GB, free: 78.57 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.102e-05/0.8541, allocations: 32 kB / 0.6078 GB, free: 78.54 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.532e-05/0.8541, allocations: 52 kB / 0.6078 GB, free: 78.49 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00315/0.8573, allocations: 1.189 MB / 0.609 GB, free: 77.3 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003401/0.8607, allocations: 1.069 MB / 0.61 GB, free: 76.23 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002376/0.8631, allocations: 2.285 MB / 0.6123 GB, free: 73.91 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00287/0.866, allocations: 280.7 kB / 0.6125 GB, free: 73.64 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003216/0.8663, allocations: 224 kB / 0.6127 GB, free: 73.42 MB / 446.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.0008672/0.8672, allocations: 491.7 kB / 0.6132 GB, free: 72.93 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006521/0.8679, allocations: 351.7 kB / 0.6135 GB, free: 72.59 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00844/0.8763, allocations: 5.86 MB / 0.6193 GB, free: 66.71 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.178e-05/0.8763, allocations: 39.94 kB / 0.6193 GB, free: 66.67 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.708e-06/0.8764, allocations: 0 / 0.6193 GB, free: 66.67 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.243e-05/0.8764, allocations: 23.92 kB / 0.6193 GB, free: 66.65 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01681/0.8932, allocations: 12.9 MB / 0.6319 GB, free: 53.65 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.16e-05/0.8933, allocations: 7.391 kB / 0.6319 GB, free: 53.64 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002527/0.8958, allocations: 0.6708 MB / 0.6326 GB, free: 52.97 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002898/0.8987, allocations: 0.9859 MB / 0.6336 GB, free: 51.99 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002484/0.899, allocations: 83.97 kB / 0.6336 GB, free: 51.91 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002277/0.9013, allocations: 2.049 MB / 0.6356 GB, free: 49.84 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.665e-06/0.9013, allocations: 0 / 0.6356 GB, free: 49.84 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01066/0.9119, allocations: 8.495 MB / 0.6439 GB, free: 41.27 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002055/0.914, allocations: 0.8402 MB / 0.6448 GB, free: 40.4 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0007371/0.9148, allocations: 64 kB / 0.6448 GB, free: 40.34 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002051/0.9168, allocations: 219.8 kB / 0.645 GB, free: 40.12 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004152/0.9173, allocations: 226.8 kB / 0.6452 GB, free: 39.9 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001999/0.9175, allocations: 104 kB / 0.6453 GB, free: 39.8 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.002465/0.9199, allocations: 1.871 MB / 0.6472 GB, free: 37.93 MB / 446.1 MB Notification: Performance of sort global known variables: time 2.01e-07/0.92, allocations: 0 / 0.6472 GB, free: 37.93 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.007338/0.9273, allocations: 2.097 MB / 0.6492 GB, free: 35.83 MB / 446.1 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 (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.01154/0.9389, allocations: 9.199 MB / 0.6582 GB, free: 26.57 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.02891/0.9678, allocations: 14.77 MB / 0.6726 GB, free: 11.86 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 1.21e-05/0.9679, allocations: 0 / 0.6726 GB, free: 11.86 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.004102/0.972, allocations: 2.628 MB / 0.6752 GB, free: 9.238 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003682/0.9757, allocations: 0.7937 MB / 0.676 GB, free: 8.473 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.2417/1.217, allocations: 49.09 MB / 0.7239 GB, free: 155.5 MB / 478.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.006087/1.224, allocations: 4.452 MB / 0.7283 GB, free: 153.8 MB / 478.1 MB Notification: Performance of simCode: alias equations: time 0.006848/1.23, allocations: 2.283 MB / 0.7305 GB, free: 153.7 MB / 478.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003414/1.234, allocations: 2.43 MB / 0.7329 GB, free: 151.7 MB / 478.1 MB Notification: Performance of SimCode: time 1.172e-06/1.234, allocations: 3.75 kB / 0.7329 GB, free: 151.7 MB / 478.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.135/1.369, allocations: 107.1 MB / 0.8374 GB, free: 56.39 MB / 478.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 17.92/19.29, allocations: 12.89 kB / 0.8374 GB, free: 56.38 MB / 478.1 MB (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)