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.001375/0.001375, allocations: 108.5 kB / 17.21 MB, free: 6.266 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001338/0.001338, allocations: 209.7 kB / 18.14 MB, free: 5.344 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.333/1.333, allocations: 227.4 MB / 246.3 MB, free: 10.73 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001198/0.001198, allocations: 63.92 kB / 306.4 MB, free: 0.8945 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1249/0.1261, allocations: 50.53 MB / 356.9 MB, free: 14.36 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_FieldWeakening): time 0.2429/0.3691, allocations: 24.28 MB / 381.2 MB, free: 8.629 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.0179/0.387, allocations: 7.796 MB / 389 MB, free: 3.938 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.007664/0.3947, allocations: 161.5 kB / 389.1 MB, free: 3.906 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.01278/0.4076, allocations: 5.347 MB / 394.5 MB, free: 0.7773 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.008466/0.4161, allocations: 2.355 MB / 396.8 MB, free: 15.34 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.005497/0.4216, allocations: 1.731 MB / 398.6 MB, free: 14.22 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.01319/0.4348, allocations: 7.938 MB / 406.5 MB, free: 9.664 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.02346/0.4583, allocations: 12.15 MB / 418.7 MB, free: 14.91 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.006819/0.4652, allocations: 3.438 MB / 422.1 MB, free: 11.45 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.008525/0.4737, allocations: 4.328 MB / 426.4 MB, free: 7.109 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.002671/0.4764, allocations: 0.7266 MB / 427.2 MB, free: 6.383 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004527/0.481, allocations: 1.086 MB / 428.2 MB, free: 5.297 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002873/0.4838, allocations: 1.846 MB / 430.1 MB, free: 3.445 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.008232/0.4921, allocations: 3.936 MB / 434 MB, free: 15.49 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.02046/0.5126, allocations: 14.69 MB / 448.7 MB, free: 0.7617 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 9.528e-06/0.5126, allocations: 0 / 448.7 MB, free: 0.7617 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.575e-06/0.5126, allocations: 3.938 kB / 448.7 MB, free: 0.7578 MB / 350.1 MB Notification: Performance of Transformations before backend: time 0.0006213/0.5133, allocations: 0 / 448.7 MB, free: 0.7578 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.03248/0.5458, allocations: 9.237 MB / 458 MB, free: 7.434 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.938e-05/0.5459, allocations: 8.031 kB / 458 MB, free: 7.426 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.004997/0.5509, allocations: 0.9874 MB / 459 MB, free: 6.426 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02927/0.5802, allocations: 5.298 MB / 464.3 MB, free: 1.113 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01007/0.5903, allocations: 4.62 MB / 468.9 MB, free: 12.43 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004034/0.5907, allocations: 0.5097 MB / 469.4 MB, free: 11.92 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001659/0.5924, allocations: 0.6678 MB / 470.1 MB, free: 11.25 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02329/0.6157, allocations: 11.16 MB / 481.2 MB, free: 8 kB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.00015/0.6159, allocations: 11.95 kB / 481.2 MB, free: 15.99 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000709/0.6166, allocations: 280 kB / 481.5 MB, free: 15.72 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0004147/0.617, allocations: 434.4 kB / 481.9 MB, free: 15.3 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0184/0.6354, allocations: 10.7 MB / 492.6 MB, free: 4.582 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.06805/0.7035, allocations: 36.26 MB / 0.5165 GB, free: 15.33 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01321/0.7168, allocations: 11.88 MB / 0.5281 GB, free: 2.336 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.1971/0.9139, allocations: 2.841 MB / 0.5309 GB, free: 135.1 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.00075/0.9147, allocations: 250.6 kB / 0.5311 GB, free: 134.9 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001008/0.9149, allocations: 72.72 kB / 0.5312 GB, free: 134.9 MB / 446.1 MB Notification: Performance of pre-optimization done (n=365): time 9.638e-06/0.9149, allocations: 0 / 0.5312 GB, free: 134.9 MB / 446.1 MB Notification: Performance of matching and sorting (n=375): time 0.04006/0.9549, allocations: 15.71 MB / 0.5465 GB, free: 130.5 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.852e-05/0.9551, allocations: 145.3 kB / 0.5467 GB, free: 130.4 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004115/0.9592, allocations: 2.79 MB / 0.5494 GB, free: 129.3 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0004279/0.9596, allocations: 86.73 kB / 0.5495 GB, free: 129.2 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001645/0.9613, allocations: 2.885 MB / 0.5523 GB, free: 127 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001065/0.9624, allocations: 1.263 MB / 0.5535 GB, free: 126.1 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.00125/0.9636, allocations: 0.8968 MB / 0.5544 GB, free: 125.6 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 5.892e-05/0.9637, allocations: 301.1 kB / 0.5547 GB, free: 125.3 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003451/0.9671, allocations: 2.312 MB / 0.5569 GB, free: 124.5 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003809/0.971, allocations: 3.915 MB / 0.5608 GB, free: 121.5 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.007623/0.9786, allocations: 6.706 MB / 0.5673 GB, free: 117.2 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.618e-05/0.9787, allocations: 11.66 kB / 0.5673 GB, free: 117.2 MB / 446.1 MB Notification: Performance of matching and sorting (n=611) (initialization): time 0.01219/0.9909, allocations: 7.073 MB / 0.5742 GB, free: 113.6 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.855e-05/0.991, allocations: 31.94 kB / 0.5743 GB, free: 113.5 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.791e-05/0.9911, allocations: 52 kB / 0.5743 GB, free: 113.5 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003394/0.9945, allocations: 1.212 MB / 0.5755 GB, free: 112.5 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00341/0.998, allocations: 1.064 MB / 0.5765 GB, free: 111.6 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00278/1.001, allocations: 2.358 MB / 0.5788 GB, free: 109.5 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003575/1.004, allocations: 285.1 kB / 0.5791 GB, free: 109.3 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0006269/1.005, allocations: 227.6 kB / 0.5793 GB, free: 109.1 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.008612/1.014, allocations: 4.509 MB / 0.5837 GB, free: 104.6 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.004155/1.018, allocations: 3.903 MB / 0.5875 GB, free: 99.96 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.008046/1.026, allocations: 6.683 MB / 0.5941 GB, free: 92.54 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 5.293e-05/1.026, allocations: 12 kB / 0.5941 GB, free: 92.53 MB / 446.1 MB Notification: Performance of matching and sorting (n=611) (initialization_lambda0): time 0.009951/1.036, allocations: 7.026 MB / 0.6009 GB, free: 85.47 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.482e-05/1.036, allocations: 28.03 kB / 0.601 GB, free: 85.44 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.665e-05/1.036, allocations: 52 kB / 0.601 GB, free: 85.39 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003264/1.039, allocations: 1.17 MB / 0.6022 GB, free: 84.22 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003478/1.043, allocations: 1.061 MB / 0.6032 GB, free: 83.16 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00303/1.046, allocations: 2.284 MB / 0.6054 GB, free: 80.85 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003882/1.05, allocations: 283.4 kB / 0.6057 GB, free: 80.58 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005278/1.05, allocations: 224 kB / 0.6059 GB, free: 80.36 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.001203/1.052, allocations: 0.4935 MB / 0.6064 GB, free: 79.86 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001155/1.053, allocations: 347.8 kB / 0.6067 GB, free: 79.52 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.008998/1.062, allocations: 5.853 MB / 0.6124 GB, free: 73.64 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.89e-05/1.062, allocations: 36 kB / 0.6125 GB, free: 73.61 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.335e-05/1.062, allocations: 3.938 kB / 0.6125 GB, free: 73.6 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.936e-05/1.062, allocations: 19.94 kB / 0.6125 GB, free: 73.58 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02048/1.082, allocations: 12.88 MB / 0.6251 GB, free: 60.61 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.342e-05/1.082, allocations: 4 kB / 0.6251 GB, free: 60.61 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002474/1.085, allocations: 0.6672 MB / 0.6257 GB, free: 59.94 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002974/1.088, allocations: 0.9623 MB / 0.6267 GB, free: 58.97 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002893/1.088, allocations: 84.53 kB / 0.6267 GB, free: 58.89 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002386/1.09, allocations: 2.034 MB / 0.6287 GB, free: 56.83 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.404e-06/1.09, allocations: 0 / 0.6287 GB, free: 56.83 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01117/1.102, allocations: 8.475 MB / 0.637 GB, free: 48.28 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001689/1.103, allocations: 0.8355 MB / 0.6378 GB, free: 47.43 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0007579/1.104, allocations: 68 kB / 0.6379 GB, free: 47.36 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002232/1.106, allocations: 211.8 kB / 0.6381 GB, free: 47.15 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004444/1.107, allocations: 226.9 kB / 0.6383 GB, free: 46.93 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002474/1.107, allocations: 107.9 kB / 0.6384 GB, free: 46.82 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.002555/1.11, allocations: 1.871 MB / 0.6402 GB, free: 44.95 MB / 446.1 MB Notification: Performance of sort global known variables: time 1.6e-07/1.11, allocations: 0 / 0.6402 GB, free: 44.95 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.007668/1.117, allocations: 2.095 MB / 0.6423 GB, free: 42.86 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.01047/1.128, allocations: 9.184 MB / 0.6513 GB, free: 33.61 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.01285/1.141, allocations: 9.146 MB / 0.6602 GB, free: 24.48 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 6.602e-06/1.141, allocations: 2.031 kB / 0.6602 GB, free: 24.48 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.003614/1.144, allocations: 2.613 MB / 0.6627 GB, free: 21.87 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003332/1.148, allocations: 0.7585 MB / 0.6635 GB, free: 21.14 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.2573/1.405, allocations: 51.97 MB / 0.7142 GB, free: 132.1 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004576/1.41, allocations: 4.449 MB / 0.7186 GB, free: 130.5 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.006385/1.416, allocations: 2.286 MB / 0.7208 GB, free: 130.3 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002593/1.419, allocations: 2.424 MB / 0.7232 GB, free: 128.3 MB / 462.1 MB Notification: Performance of SimCode: time 1.052e-06/1.419, allocations: 0 / 0.7232 GB, free: 128.3 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1118/1.53, allocations: 104.1 MB / 0.8248 GB, free: 36.43 MB / 462.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001523/1.531, allocations: 311.8 kB / 0.8251 GB, free: 36.05 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 3.694/5.225, allocations: 4.062 kB / 0.8251 GB, free: 36.04 MB / 462.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)