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.001416/0.001416, allocations: 105.9 kB / 17.32 MB, free: 6 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001594/0.001594, allocations: 209.8 kB / 18.27 MB, free: 5.078 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.313/1.313, allocations: 227.4 MB / 246.4 MB, free: 10.77 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001496/0.001496, allocations: 59.2 kB / 306.6 MB, free: 0.7812 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.109/0.1106, allocations: 50.54 MB / 357.1 MB, free: 14.25 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_FieldWeakening): time 0.2121/0.3227, allocations: 24.26 MB / 381.4 MB, free: 8.219 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.02429/0.347, allocations: 7.755 MB / 389.1 MB, free: 3.762 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.007159/0.3543, allocations: 160.2 kB / 389.3 MB, free: 3.73 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.01384/0.3682, allocations: 5.363 MB / 394.7 MB, free: 0.6289 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.007742/0.376, allocations: 2.325 MB / 397 MB, free: 15.21 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.004675/0.3806, allocations: 1.705 MB / 398.7 MB, free: 14.11 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.01057/0.3912, allocations: 7.844 MB / 406.5 MB, free: 9.473 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.01942/0.4107, allocations: 16.59 MB / 423.1 MB, free: 10.44 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.004914/0.4156, allocations: 3.993 MB / 427.1 MB, free: 6.434 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.005611/0.4212, allocations: 4.586 MB / 431.7 MB, free: 1.832 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001896/0.4231, allocations: 1.109 MB / 432.8 MB, free: 0.7227 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002914/0.4261, allocations: 1.472 MB / 434.3 MB, free: 15.25 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001567/0.4276, allocations: 2.248 MB / 436.5 MB, free: 13 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.004941/0.4326, allocations: 4.334 MB / 440.9 MB, free: 8.645 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01434/0.447, allocations: 14.96 MB / 455.8 MB, free: 9.645 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.114e-06/0.447, allocations: 4 kB / 455.8 MB, free: 9.641 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.814e-06/0.447, allocations: 0 / 455.8 MB, free: 9.641 MB / 366.1 MB Notification: Performance of Transformations before backend: time 0.0003772/0.4474, allocations: 0 / 455.8 MB, free: 9.641 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.02418/0.4716, allocations: 9.241 MB / 465.1 MB, free: 320 kB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.368e-05/0.4716, allocations: 8.031 kB / 465.1 MB, free: 312 kB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001433/0.4731, allocations: 0.9835 MB / 466.1 MB, free: 15.31 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02778/0.5009, allocations: 5.302 MB / 471.4 MB, free: 9.992 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.009806/0.5107, allocations: 4.613 MB / 476 MB, free: 5.32 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004977/0.5113, allocations: 0.5058 MB / 476.5 MB, free: 4.812 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00259/0.5139, allocations: 0.6717 MB / 477.2 MB, free: 4.141 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02158/0.5355, allocations: 11.16 MB / 488.3 MB, free: 8.895 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001517/0.5356, allocations: 15.89 kB / 488.3 MB, free: 8.879 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0007114/0.5364, allocations: 284 kB / 488.6 MB, free: 8.602 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.000346/0.5367, allocations: 422.5 kB / 489 MB, free: 8.188 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01635/0.5531, allocations: 10.71 MB / 499.7 MB, free: 13.46 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.05193/0.605, allocations: 36.27 MB / 0.5234 GB, free: 8.203 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.15/0.7551, allocations: 11.88 MB / 0.535 GB, free: 129 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00443/0.7595, allocations: 2.842 MB / 0.5378 GB, free: 129 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003352/0.7599, allocations: 251.2 kB / 0.5381 GB, free: 128.8 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.667e-05/0.7599, allocations: 70.28 kB / 0.5381 GB, free: 128.8 MB / 446.1 MB Notification: Performance of pre-optimization done (n=365): time 5.089e-06/0.7599, allocations: 0 / 0.5381 GB, free: 128.8 MB / 446.1 MB Notification: Performance of matching and sorting (n=375): time 0.03206/0.792, allocations: 15.71 MB / 0.5535 GB, free: 123.6 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.853e-05/0.7921, allocations: 147.9 kB / 0.5536 GB, free: 123.5 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003072/0.7952, allocations: 2.792 MB / 0.5563 GB, free: 122.4 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 0.000195/0.7954, allocations: 81.55 kB / 0.5564 GB, free: 122.4 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0009977/0.7964, allocations: 2.881 MB / 0.5592 GB, free: 120.2 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0006034/0.797, allocations: 1.268 MB / 0.5605 GB, free: 119.2 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.00106/0.7981, allocations: 0.8957 MB / 0.5613 GB, free: 118.8 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 2.946e-05/0.7981, allocations: 301.1 kB / 0.5616 GB, free: 118.5 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002744/0.8008, allocations: 2.313 MB / 0.5639 GB, free: 117.6 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003036/0.8039, allocations: 3.914 MB / 0.5677 GB, free: 114.7 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.005973/0.8099, allocations: 6.705 MB / 0.5743 GB, free: 110.3 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.843e-05/0.8099, allocations: 11.69 kB / 0.5743 GB, free: 110.3 MB / 446.1 MB Notification: Performance of matching and sorting (n=611) (initialization): time 0.008158/0.8181, allocations: 7.083 MB / 0.5812 GB, free: 106.5 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.016e-05/0.8181, allocations: 24 kB / 0.5812 GB, free: 106.5 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.612e-05/0.8181, allocations: 52 kB / 0.5813 GB, free: 106.4 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002928/0.8211, allocations: 1.231 MB / 0.5825 GB, free: 105.4 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003103/0.8242, allocations: 1.055 MB / 0.5835 GB, free: 104.6 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002408/0.8266, allocations: 2.355 MB / 0.5858 GB, free: 102.2 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002341/0.829, allocations: 283.6 kB / 0.5861 GB, free: 102 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002825/0.8293, allocations: 228.5 kB / 0.5863 GB, free: 101.7 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.004963/0.8342, allocations: 4.511 MB / 0.5907 GB, free: 97.21 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.003025/0.8373, allocations: 3.903 MB / 0.5945 GB, free: 92.56 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.005876/0.8432, allocations: 6.679 MB / 0.601 GB, free: 85.14 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 1.82e-05/0.8432, allocations: 16 kB / 0.601 GB, free: 85.13 MB / 446.1 MB Notification: Performance of matching and sorting (n=611) (initialization_lambda0): time 0.007902/0.8511, allocations: 7.033 MB / 0.6079 GB, free: 78.06 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.492e-05/0.8511, allocations: 28 kB / 0.6079 GB, free: 78.04 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.094e-05/0.8512, allocations: 52 kB / 0.608 GB, free: 77.98 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002762/0.8539, allocations: 1.182 MB / 0.6091 GB, free: 76.8 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003033/0.857, allocations: 1.065 MB / 0.6102 GB, free: 75.74 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002084/0.8591, allocations: 2.28 MB / 0.6124 GB, free: 73.44 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002361/0.8614, allocations: 275.7 kB / 0.6127 GB, free: 73.17 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000279/0.8617, allocations: 224 kB / 0.6129 GB, free: 72.95 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.0006728/0.8624, allocations: 492.4 kB / 0.6133 GB, free: 72.46 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005111/0.8629, allocations: 355.7 kB / 0.6137 GB, free: 72.11 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007459/0.8704, allocations: 5.842 MB / 0.6194 GB, free: 66.24 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.832e-05/0.8704, allocations: 43.94 kB / 0.6194 GB, free: 66.2 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.075e-06/0.8704, allocations: 0 / 0.6194 GB, free: 66.2 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.789e-05/0.8705, allocations: 23.92 kB / 0.6195 GB, free: 66.18 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01468/0.8852, allocations: 12.88 MB / 0.632 GB, free: 53.2 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.388e-06/0.8852, allocations: 3.984 kB / 0.632 GB, free: 53.2 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002339/0.8875, allocations: 0.667 MB / 0.6327 GB, free: 52.53 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002535/0.8901, allocations: 0.9703 MB / 0.6336 GB, free: 51.55 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001915/0.8903, allocations: 79.98 kB / 0.6337 GB, free: 51.48 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001997/0.8923, allocations: 2.042 MB / 0.6357 GB, free: 49.41 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.723e-06/0.8923, allocations: 0 / 0.6357 GB, free: 49.41 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0092/0.9015, allocations: 8.471 MB / 0.644 GB, free: 40.87 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001182/0.9027, allocations: 0.8286 MB / 0.6448 GB, free: 40.02 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004131/0.9031, allocations: 75.92 kB / 0.6449 GB, free: 39.95 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001641/0.9048, allocations: 215.8 kB / 0.6451 GB, free: 39.73 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003811/0.9052, allocations: 222.8 kB / 0.6453 GB, free: 39.52 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001903/0.9054, allocations: 111.5 kB / 0.6454 GB, free: 39.41 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.001834/0.9072, allocations: 1.867 MB / 0.6472 GB, free: 37.54 MB / 446.1 MB Notification: Performance of sort global known variables: time 2.01e-07/0.9072, allocations: 4 kB / 0.6472 GB, free: 37.54 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.004559/0.9118, allocations: 2.095 MB / 0.6493 GB, free: 35.45 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.009641/0.9214, allocations: 9.184 MB / 0.6582 GB, free: 26.2 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.02581/0.9472, allocations: 14.74 MB / 0.6726 GB, free: 11.5 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 5.27e-06/0.9473, allocations: 0 / 0.6726 GB, free: 11.5 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.003408/0.9507, allocations: 2.63 MB / 0.6752 GB, free: 8.883 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003146/0.9538, allocations: 0.8054 MB / 0.676 GB, free: 8.121 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.2111/1.165, allocations: 51.96 MB / 0.7267 GB, free: 152.8 MB / 478.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004191/1.169, allocations: 4.455 MB / 0.7311 GB, free: 151.2 MB / 478.1 MB Notification: Performance of simCode: alias equations: time 0.005908/1.175, allocations: 2.285 MB / 0.7333 GB, free: 151.1 MB / 478.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002605/1.178, allocations: 2.42 MB / 0.7357 GB, free: 149.1 MB / 478.1 MB Notification: Performance of SimCode: time 8.72e-07/1.178, allocations: 0 / 0.7357 GB, free: 149.1 MB / 478.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1124/1.29, allocations: 106.5 MB / 0.8397 GB, free: 54.18 MB / 478.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001493/1.29, allocations: 312.2 kB / 0.84 GB, free: 53.79 MB / 478.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 4.137/5.427, allocations: 7.219 kB / 0.84 GB, free: 53.79 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)