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.001265/0.001265, allocations: 97.2 kB / 16.99 MB, free: 5.941 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.002047/0.002047, allocations: 203.9 kB / 17.9 MB, free: 5.594 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.323/1.323, allocations: 227.3 MB / 245.9 MB, free: 10.32 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.000251/0.0002512, allocations: 8 kB / 306.7 MB, free: 1.246 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1072/0.1075, allocations: 51.5 MB / 358.2 MB, free: 13.74 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_FieldWeakening): time 0.2485/0.356, allocations: 19.86 MB / 378.1 MB, free: 9.34 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.0173/0.3734, allocations: 7.423 MB / 385.5 MB, free: 7.086 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.006306/0.3797, allocations: 143.8 kB / 385.7 MB, free: 7.059 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.006547/0.3863, allocations: 1.444 MB / 387.1 MB, free: 6.371 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01124/0.3976, allocations: 2.575 MB / 389.7 MB, free: 4.707 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.005628/0.4032, allocations: 1.404 MB / 391.1 MB, free: 3.871 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.01357/0.4168, allocations: 6.619 MB / 397.7 MB, free: 0.75 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.02334/0.4402, allocations: 11.93 MB / 409.6 MB, free: 8.941 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.006249/0.4465, allocations: 2.679 MB / 412.3 MB, free: 6.254 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.006462/0.453, allocations: 3.062 MB / 415.4 MB, free: 3.18 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.00169/0.4547, allocations: 436 kB / 415.8 MB, free: 2.754 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003644/0.4584, allocations: 0.7261 MB / 416.5 MB, free: 2.027 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001696/0.4601, allocations: 1.347 MB / 417.9 MB, free: 0.6758 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002669/0.4628, allocations: 1.455 MB / 419.3 MB, free: 15.21 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01462/0.4774, allocations: 12.56 MB / 431.9 MB, free: 2.609 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.639e-06/0.4775, allocations: 0 / 431.9 MB, free: 2.609 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.733e-06/0.4775, allocations: 0 / 431.9 MB, free: 2.609 MB / 334.1 MB Notification: Performance of Transformations before backend: time 0.0004248/0.4779, allocations: 0 / 431.9 MB, free: 2.609 MB / 334.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.02164/0.4996, allocations: 7.751 MB / 439.6 MB, free: 10.77 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.635e-05/0.4996, allocations: 12.03 kB / 439.7 MB, free: 10.76 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.003461/0.5031, allocations: 0.9794 MB / 440.6 MB, free: 9.766 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02765/0.5307, allocations: 5.227 MB / 445.9 MB, free: 4.523 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01109/0.5419, allocations: 4.564 MB / 450.4 MB, free: 15.9 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004856/0.5424, allocations: 0.5057 MB / 450.9 MB, free: 15.39 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002735/0.5451, allocations: 0.6717 MB / 451.6 MB, free: 14.72 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02545/0.5706, allocations: 11.06 MB / 462.7 MB, free: 3.578 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002472/0.5709, allocations: 11.89 kB / 462.7 MB, free: 3.566 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001862/0.5727, allocations: 280 kB / 463 MB, free: 3.293 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0004696/0.5732, allocations: 430.4 kB / 463.4 MB, free: 2.871 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02309/0.5963, allocations: 10.69 MB / 474.1 MB, free: 8.172 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.06323/0.6596, allocations: 36.34 MB / 0.4984 GB, free: 2.848 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01246/0.6721, allocations: 11.87 MB / 0.51 GB, free: 5.863 MB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0004888/0.6726, allocations: 244.9 kB / 0.5103 GB, free: 5.59 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.979e-05/0.6727, allocations: 77.44 kB / 0.5103 GB, free: 5.504 MB / 430.1 MB Notification: Performance of pre-optimization done (n=365): time 5.711e-06/0.6727, allocations: 0 / 0.5103 GB, free: 5.504 MB / 430.1 MB Notification: Performance of matching and sorting (n=375): time 0.03449/0.7072, allocations: 15.46 MB / 0.5254 GB, free: 5.949 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.177e-05/0.7073, allocations: 149.7 kB / 0.5256 GB, free: 5.777 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003828/0.7111, allocations: 2.738 MB / 0.5282 GB, free: 3.02 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0004129/0.7116, allocations: 89.7 kB / 0.5283 GB, free: 2.926 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.00171/0.7133, allocations: 2.881 MB / 0.5311 GB, free: 8 kB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.2375/0.9508, allocations: 1.266 MB / 0.5324 GB, free: 132.5 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003817/0.9513, allocations: 95.94 kB / 0.5325 GB, free: 132.5 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 0.0003527/0.9516, allocations: 0.489 MB / 0.533 GB, free: 132.2 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004877/0.9565, allocations: 2.306 MB / 0.5352 GB, free: 132.2 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005426/0.9619, allocations: 3.898 MB / 0.539 GB, free: 129.7 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.005981/0.968, allocations: 3.12 MB / 0.5421 GB, free: 128.4 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001124/0.9681, allocations: 14.03 kB / 0.5421 GB, free: 128.4 MB / 446.1 MB Notification: Performance of matching and sorting (n=611) (initialization): time 0.0169/0.985, allocations: 7.065 MB / 0.549 GB, free: 125.5 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.004838/0.9899, allocations: 21.04 MB / 0.5695 GB, free: 103.2 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002174/0.9902, allocations: 50.06 kB / 0.5696 GB, free: 103.2 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.004168/0.9943, allocations: 1.145 MB / 0.5707 GB, free: 103 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005034/0.9994, allocations: 1.093 MB / 0.5717 GB, free: 102.9 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003096/1.003, allocations: 2.247 MB / 0.5739 GB, free: 101.7 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004139/1.007, allocations: 302.5 kB / 0.5742 GB, free: 101.6 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0008235/1.008, allocations: 225.4 kB / 0.5744 GB, free: 101.5 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.637e-05/1.008, allocations: 3.969 kB / 0.5744 GB, free: 101.5 MB / 446.1 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.01085/1.018, allocations: 6.715 MB / 0.581 GB, free: 98.81 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002059/1.019, allocations: 54.59 kB / 0.5811 GB, free: 98.81 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002864/1.022, allocations: 1.076 MB / 0.5821 GB, free: 98.61 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004121/1.026, allocations: 1.093 MB / 0.5832 GB, free: 98.5 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002465/1.028, allocations: 2.157 MB / 0.5853 GB, free: 97.33 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003966/1.032, allocations: 269.8 kB / 0.5855 GB, free: 97.25 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0009483/1.033, allocations: 235.8 kB / 0.5858 GB, free: 97.21 MB / 446.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 230 * 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 (554): * Single equations (assignments): 553 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {9 49} Notification: Performance of prepare postOptimizeDAE: time 0.005947/1.039, allocations: 2.548 MB / 0.5883 GB, free: 95.86 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001422/1.04, allocations: 354.6 kB / 0.5886 GB, free: 95.69 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01156/1.052, allocations: 5.88 MB / 0.5943 GB, free: 91.56 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.853e-05/1.052, allocations: 40 kB / 0.5944 GB, free: 91.52 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.339e-05/1.052, allocations: 0 / 0.5944 GB, free: 91.52 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.972e-05/1.052, allocations: 18.7 kB / 0.5944 GB, free: 91.52 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02626/1.079, allocations: 12.63 MB / 0.6067 GB, free: 79.87 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.648e-05/1.079, allocations: 0 / 0.6067 GB, free: 79.87 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002926/1.082, allocations: 0.6748 MB / 0.6074 GB, free: 79.2 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.00302/1.085, allocations: 0.9862 MB / 0.6083 GB, free: 78.21 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0006484/1.085, allocations: 75.97 kB / 0.6084 GB, free: 78.14 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002413/1.088, allocations: 2.026 MB / 0.6104 GB, free: 76.08 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.918e-06/1.088, allocations: 7.953 kB / 0.6104 GB, free: 76.07 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.014/1.102, allocations: 8.684 MB / 0.6189 GB, free: 67.31 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.00258/1.104, allocations: 0.8481 MB / 0.6197 GB, free: 66.44 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001168/1.106, allocations: 60 kB / 0.6198 GB, free: 66.38 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002641/1.108, allocations: 231.8 kB / 0.62 GB, free: 66.15 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005855/1.109, allocations: 218.8 kB / 0.6202 GB, free: 65.94 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003959/1.109, allocations: 104 kB / 0.6203 GB, free: 65.84 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.004164/1.113, allocations: 1.832 MB / 0.6221 GB, free: 64 MB / 446.1 MB Notification: Performance of sort global known variables: time 5.41e-07/1.113, allocations: 0 / 0.6221 GB, free: 64 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.01208/1.125, allocations: 2.093 MB / 0.6241 GB, free: 61.91 MB / 446.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * 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 (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {9 50} Notification: Performance of Backend phase and start with SimCode phase: time 0.01533/1.141, allocations: 9.52 MB / 0.6334 GB, free: 52.32 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.01743/1.158, allocations: 9.104 MB / 0.6423 GB, free: 43.22 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 1.562e-05/1.158, allocations: 0 / 0.6423 GB, free: 43.22 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.005365/1.164, allocations: 2.617 MB / 0.6449 GB, free: 40.61 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004453/1.168, allocations: 0.701 MB / 0.6456 GB, free: 39.94 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.3028/1.471, allocations: 70.26 MB / 0.7142 GB, free: 140.8 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.007268/1.478, allocations: 4.555 MB / 0.7186 GB, free: 139.1 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.007123/1.486, allocations: 2.31 MB / 0.7209 GB, free: 139 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00411/1.49, allocations: 2.421 MB / 0.7232 GB, free: 137 MB / 462.1 MB Notification: Performance of SimCode: time 1.212e-06/1.49, allocations: 0 / 0.7232 GB, free: 137 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3291/1.819, allocations: 100.5 MB / 0.8214 GB, free: 44.03 MB / 462.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002065/1.819, allocations: 287.6 kB / 0.8216 GB, free: 43.66 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 4.194/6.013, allocations: 3.938 kB / 0.8216 GB, free: 43.66 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/linux/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)