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.0009318/0.0009318, allocations: 91.77 kB / 17.35 MB, free: 6.375 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001023/0.001023, allocations: 197.9 kB / 18.28 MB, free: 5.5 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.273/1.273, allocations: 227.7 MB / 246.8 MB, free: 11.39 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002241/0.0002241, allocations: 8 kB / 307.9 MB, free: 0.6797 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09202/0.09225, allocations: 51.53 MB / 359.4 MB, free: 13.14 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_FieldWeakening): time 0.1861/0.2784, allocations: 23.2 MB / 382.6 MB, free: 8.172 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.0111/0.2895, allocations: 7.718 MB / 390.3 MB, free: 4.082 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002751/0.2923, allocations: 154.7 kB / 390.5 MB, free: 4.051 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003295/0.2956, allocations: 1.442 MB / 391.9 MB, free: 3.391 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.005766/0.3014, allocations: 2.34 MB / 394.2 MB, free: 1.953 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.003073/0.3045, allocations: 1.525 MB / 395.8 MB, free: 0.9688 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.008766/0.3133, allocations: 7.921 MB / 403.7 MB, free: 12.89 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.01912/0.3324, allocations: 14.33 MB / 418 MB, free: 0.8555 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003836/0.3363, allocations: 2.837 MB / 420.9 MB, free: 14 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003555/0.3398, allocations: 3.536 MB / 424.4 MB, free: 10.45 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0006127/0.3404, allocations: 440 kB / 424.8 MB, free: 10.02 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001726/0.3422, allocations: 0.7847 MB / 425.6 MB, free: 9.238 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001134/0.3433, allocations: 1.428 MB / 427 MB, free: 7.805 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.003231/0.3466, allocations: 3.453 MB / 430.5 MB, free: 4.328 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01208/0.3587, allocations: 14.13 MB / 444.6 MB, free: 6.148 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.128e-06/0.3587, allocations: 0 / 444.6 MB, free: 6.148 MB / 350.1 MB Notification: Performance of FrontEnd: time 3.176e-06/0.3587, allocations: 0 / 444.6 MB, free: 6.148 MB / 350.1 MB Notification: Performance of Transformations before backend: time 0.0002524/0.3589, allocations: 3.938 kB / 444.6 MB, free: 6.145 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: 1903 * Number of variables: 1903 Notification: Performance of Generate backend data structure: time 0.01908/0.378, allocations: 7.712 MB / 452.3 MB, free: 14.35 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.808e-05/0.3781, allocations: 12.02 kB / 452.4 MB, free: 14.34 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.002184/0.3803, allocations: 0.9836 MB / 453.3 MB, free: 13.34 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02735/0.4076, allocations: 5.326 MB / 458.7 MB, free: 8 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.009554/0.4172, allocations: 4.625 MB / 463.3 MB, free: 3.316 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0005762/0.4178, allocations: 0.5136 MB / 463.8 MB, free: 2.801 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002499/0.4204, allocations: 0.6756 MB / 464.5 MB, free: 2.125 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02651/0.4469, allocations: 11.18 MB / 475.7 MB, free: 6.867 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002583/0.4472, allocations: 11.89 kB / 475.7 MB, free: 6.855 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001568/0.4488, allocations: 280 kB / 475.9 MB, free: 6.582 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.000432/0.4492, allocations: 430.5 kB / 476.4 MB, free: 6.16 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02006/0.4693, allocations: 10.74 MB / 487.1 MB, free: 11.41 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.05519/0.5245, allocations: 36.38 MB / 0.5112 GB, free: 6.035 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01101/0.5355, allocations: 11.92 MB / 0.5228 GB, free: 9 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.004195/0.5398, allocations: 2.856 MB / 0.5256 GB, free: 6.141 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003748/0.5402, allocations: 252.9 kB / 0.5259 GB, free: 5.855 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.551e-05/0.5402, allocations: 69.44 kB / 0.5259 GB, free: 5.777 MB / 446.1 MB Notification: Performance of pre-optimization done (n=365): time 5.511e-06/0.5403, allocations: 0 / 0.5259 GB, free: 5.777 MB / 446.1 MB Notification: Performance of matching and sorting (n=375): time 0.1993/0.7396, allocations: 15.98 MB / 0.5416 GB, free: 129.9 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.264e-05/0.7397, allocations: 143.3 kB / 0.5417 GB, free: 129.8 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003974/0.7437, allocations: 2.791 MB / 0.5444 GB, free: 128.7 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002277/0.7439, allocations: 86.7 kB / 0.5445 GB, free: 128.6 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001566/0.7455, allocations: 2.886 MB / 0.5473 GB, free: 126.4 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0008308/0.7463, allocations: 1.268 MB / 0.5486 GB, free: 125.5 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004442/0.7468, allocations: 376 kB / 0.5489 GB, free: 125.3 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 3.867e-05/0.7468, allocations: 301.1 kB / 0.5492 GB, free: 125 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003109/0.7499, allocations: 2.313 MB / 0.5515 GB, free: 124.1 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003592/0.7535, allocations: 3.936 MB / 0.5553 GB, free: 121.2 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0065/0.76, allocations: 6.741 MB / 0.5619 GB, free: 116.9 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.016e-05/0.7601, allocations: 11.53 kB / 0.5619 GB, free: 116.9 MB / 446.1 MB Notification: Performance of matching and sorting (n=611) (initialization): time 0.008657/0.7688, allocations: 7.128 MB / 0.5689 GB, free: 114.1 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0004553/0.7692, allocations: 1.598 MB / 0.5704 GB, free: 111.9 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.93e-05/0.7693, allocations: 54.38 kB / 0.5705 GB, free: 111.9 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002944/0.7722, allocations: 1.231 MB / 0.5717 GB, free: 111.6 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00311/0.7753, allocations: 1.079 MB / 0.5727 GB, free: 111.5 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002529/0.7779, allocations: 2.388 MB / 0.5751 GB, free: 110.3 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002761/0.7807, allocations: 297.2 kB / 0.5753 GB, free: 110.2 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002761/0.7809, allocations: 232.2 kB / 0.5756 GB, free: 110.2 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 8.436e-06/0.781, allocations: 3.688 kB / 0.5756 GB, free: 110.2 MB / 446.1 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.007732/0.7887, allocations: 6.766 MB / 0.5822 GB, free: 105.2 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.447e-05/0.7888, allocations: 52 kB / 0.5822 GB, free: 105.2 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002756/0.7916, allocations: 1.143 MB / 0.5833 GB, free: 104.3 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003574/0.7951, allocations: 1.071 MB / 0.5844 GB, free: 103.4 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002447/0.7976, allocations: 2.304 MB / 0.5866 GB, free: 101.2 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003322/0.8009, allocations: 279.7 kB / 0.5869 GB, free: 101 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004919/0.8014, allocations: 228 kB / 0.5871 GB, free: 100.7 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.004087/0.8055, allocations: 2.55 MB / 0.5896 GB, free: 98.17 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0008524/0.8064, allocations: 347.8 kB / 0.5899 GB, free: 97.82 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.009756/0.8162, allocations: 5.893 MB / 0.5957 GB, free: 91.91 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.404e-05/0.8162, allocations: 36 kB / 0.5957 GB, free: 91.87 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.075e-05/0.8162, allocations: 4 kB / 0.5957 GB, free: 91.87 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.322e-05/0.8163, allocations: 19.92 kB / 0.5958 GB, free: 91.85 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01573/0.832, allocations: 12.94 MB / 0.6084 GB, free: 78.81 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.957e-06/0.832, allocations: 0 / 0.6084 GB, free: 78.81 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00231/0.8344, allocations: 0.6789 MB / 0.6091 GB, free: 78.13 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002549/0.8369, allocations: 0.9858 MB / 0.61 GB, free: 77.14 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001738/0.8371, allocations: 79.98 kB / 0.6101 GB, free: 77.06 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002164/0.8393, allocations: 2.065 MB / 0.6121 GB, free: 74.97 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.354e-06/0.8393, allocations: 4 kB / 0.6121 GB, free: 74.97 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.009724/0.849, allocations: 8.542 MB / 0.6205 GB, free: 66.36 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001359/0.8504, allocations: 0.8324 MB / 0.6213 GB, free: 65.5 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003635/0.8508, allocations: 68 kB / 0.6213 GB, free: 65.43 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001747/0.8525, allocations: 231.8 kB / 0.6216 GB, free: 65.21 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003594/0.8529, allocations: 218.8 kB / 0.6218 GB, free: 64.99 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001753/0.8531, allocations: 104 kB / 0.6219 GB, free: 64.89 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.002186/0.8553, allocations: 1.871 MB / 0.6237 GB, free: 63.02 MB / 446.1 MB Notification: Performance of sort global known variables: time 1.9e-07/0.8553, allocations: 0 / 0.6237 GB, free: 63.02 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.00529/0.8606, allocations: 2.095 MB / 0.6257 GB, free: 60.93 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.01021/0.8708, allocations: 9.265 MB / 0.6348 GB, free: 51.6 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.01236/0.8832, allocations: 9.164 MB / 0.6437 GB, free: 42.45 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 5.39e-06/0.8832, allocations: 0 / 0.6437 GB, free: 42.45 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.003493/0.8867, allocations: 2.64 MB / 0.6463 GB, free: 39.82 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003791/0.8905, allocations: 0.7532 MB / 0.647 GB, free: 39.09 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.06875/0.9593, allocations: 52.21 MB / 0.698 GB, free: 14.56 MB / 478.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004095/0.9634, allocations: 4.443 MB / 0.7024 GB, free: 10.09 MB / 478.1 MB Notification: Performance of simCode: alias equations: time 0.006/0.9694, allocations: 2.279 MB / 0.7046 GB, free: 7.801 MB / 478.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00294/0.9724, allocations: 2.425 MB / 0.707 GB, free: 5.375 MB / 478.1 MB Notification: Performance of SimCode: time 7.62e-07/0.9724, allocations: 0 / 0.707 GB, free: 5.375 MB / 478.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2966/1.269, allocations: 102.8 MB / 0.8073 GB, free: 83.26 MB / 478.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001775/1.269, allocations: 302.3 kB / 0.8076 GB, free: 82.88 MB / 478.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 3.716/4.985, allocations: 0 / 0.8076 GB, free: 82.88 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)