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.0008557/0.0008561, allocations: 97.86 kB / 17 MB, free: 6.418 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.0009348/0.0009349, allocations: 191.8 kB / 17.9 MB, free: 5.938 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.375/1.375, allocations: 227.4 MB / 246 MB, free: 11.98 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.000247/0.0002471, allocations: 4 kB / 306.8 MB, free: 1.461 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1165/0.1167, allocations: 51.49 MB / 358.3 MB, free: 13.97 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_FieldWeakening): time 0.2298/0.3465, allocations: 21.52 MB / 379.9 MB, free: 9.105 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.01636/0.363, allocations: 7.251 MB / 387.1 MB, free: 6.418 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.005503/0.3685, allocations: 151.3 kB / 387.3 MB, free: 6.391 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.004353/0.3729, allocations: 1.145 MB / 388.4 MB, free: 5.836 MB / 302.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/Magnetic/QuasiStatic/FundamentalWave/Examples/BasicMachines/SynchronousMachines/SMPM_FieldWeakening.mo:75:15-75:22:writable] Warning: 'each' used when modifying non-array element re. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/Magnetic/QuasiStatic/FundamentalWave/Examples/BasicMachines/SynchronousMachines/SMPM_FieldWeakening.mo:75:33-75:40:writable] Warning: 'each' used when modifying non-array element im. Notification: Performance of NFTyping.typeBindings: time 0.007352/0.3803, allocations: 2.108 MB / 390.5 MB, free: 4.547 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.003999/0.3843, allocations: 1.201 MB / 391.7 MB, free: 3.832 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.01233/0.3966, allocations: 8.983 MB / 400.7 MB, free: 15.45 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.01987/0.4166, allocations: 12.06 MB / 412.8 MB, free: 6.152 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.005391/0.422, allocations: 2.912 MB / 415.7 MB, free: 3.23 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.005755/0.4278, allocations: 3.393 MB / 419.1 MB, free: 15.82 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001347/0.4291, allocations: 440 kB / 419.5 MB, free: 15.39 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003292/0.4324, allocations: 0.773 MB / 420.3 MB, free: 14.62 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001591/0.434, allocations: 1.397 MB / 421.7 MB, free: 13.21 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.00267/0.4367, allocations: 1.451 MB / 423.1 MB, free: 11.75 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01336/0.4501, allocations: 12.61 MB / 435.7 MB, free: 15.1 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.862e-06/0.4502, allocations: 0 / 435.7 MB, free: 15.1 MB / 350.1 MB Notification: Performance of FrontEnd: time 3.526e-06/0.4502, allocations: 0 / 435.7 MB, free: 15.1 MB / 350.1 MB Notification: Performance of Transformations before backend: time 0.0004244/0.4506, allocations: 0 / 435.7 MB, free: 15.1 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.02124/0.4719, allocations: 7.786 MB / 443.5 MB, free: 7.234 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.673e-05/0.4719, allocations: 8.031 kB / 443.5 MB, free: 7.227 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.003225/0.4752, allocations: 0.9834 MB / 444.5 MB, free: 6.23 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02763/0.5028, allocations: 5.328 MB / 449.8 MB, free: 0.8867 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.008441/0.5113, allocations: 4.552 MB / 454.4 MB, free: 12.27 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003822/0.5117, allocations: 0.5097 MB / 454.9 MB, free: 11.77 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001847/0.5136, allocations: 0.6678 MB / 455.6 MB, free: 11.1 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0269/0.5405, allocations: 11.13 MB / 466.7 MB, free: 15.88 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002269/0.5407, allocations: 7.906 kB / 466.7 MB, free: 15.88 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001604/0.5423, allocations: 284 kB / 467 MB, free: 15.6 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0004375/0.5428, allocations: 426.4 kB / 467.4 MB, free: 15.18 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02558/0.5684, allocations: 10.69 MB / 478.1 MB, free: 4.484 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.06453/0.633, allocations: 36.37 MB / 0.5024 GB, free: 15.14 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01163/0.6446, allocations: 11.88 MB / 0.514 GB, free: 2.145 MB / 430.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.004956/0.6496, allocations: 2.849 MB / 0.5168 GB, free: 15.29 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0004308/0.6501, allocations: 249 kB / 0.517 GB, free: 15.01 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.061e-05/0.6502, allocations: 77.42 kB / 0.5171 GB, free: 14.93 MB / 446.1 MB Notification: Performance of pre-optimization done (n=365): time 4.99e-06/0.6502, allocations: 0 / 0.5171 GB, free: 14.93 MB / 446.1 MB Notification: Performance of matching and sorting (n=375): time 0.2871/0.9373, allocations: 17.5 MB / 0.5342 GB, free: 132 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001046/0.9375, allocations: 148 kB / 0.5343 GB, free: 131.9 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005715/0.9432, allocations: 2.768 MB / 0.537 GB, free: 131.6 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0006908/0.9439, allocations: 87.58 kB / 0.5371 GB, free: 131.5 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002215/0.9461, allocations: 2.877 MB / 0.5399 GB, free: 129.8 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001354/0.9475, allocations: 1.27 MB / 0.5411 GB, free: 128.8 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002503/0.9477, allocations: 97.59 kB / 0.5412 GB, free: 128.7 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 0.0003223/0.9481, allocations: 0.4907 MB / 0.5417 GB, free: 128.3 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004152/0.9522, allocations: 2.289 MB / 0.5439 GB, free: 127.4 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004868/0.9571, allocations: 3.921 MB / 0.5478 GB, free: 124.6 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004683/0.9618, allocations: 3.108 MB / 0.5508 GB, free: 123.2 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.48e-05/0.9619, allocations: 19.53 kB / 0.5508 GB, free: 123.2 MB / 446.1 MB Notification: Performance of matching and sorting (n=611) (initialization): time 0.01055/0.9724, allocations: 7.077 MB / 0.5577 GB, free: 120.4 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0009278/0.9734, allocations: 1.596 MB / 0.5593 GB, free: 118.1 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.693e-05/0.9734, allocations: 51.28 kB / 0.5593 GB, free: 118.1 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00337/0.9768, allocations: 1.268 MB / 0.5606 GB, free: 117.9 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003783/0.9806, allocations: 1.071 MB / 0.5616 GB, free: 117.8 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002997/0.9836, allocations: 2.393 MB / 0.564 GB, free: 116.6 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003691/0.9873, allocations: 298.9 kB / 0.5643 GB, free: 116.5 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004219/0.9878, allocations: 230.4 kB / 0.5645 GB, free: 116.5 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.355e-05/0.9878, allocations: 3.844 kB / 0.5645 GB, free: 116.5 MB / 446.1 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.009395/0.9972, allocations: 6.72 MB / 0.571 GB, free: 113.7 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001424/0.9974, allocations: 50.88 kB / 0.5711 GB, free: 113.7 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003004/1, allocations: 1.157 MB / 0.5722 GB, free: 113.5 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003736/1.004, allocations: 1.068 MB / 0.5733 GB, free: 113.4 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002472/1.007, allocations: 2.309 MB / 0.5755 GB, free: 112.2 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003481/1.01, allocations: 280 kB / 0.5758 GB, free: 112 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005611/1.011, allocations: 233.4 kB / 0.576 GB, free: 111.8 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 (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 {11 55} Notification: Performance of prepare postOptimizeDAE: time 0.004575/1.015, allocations: 2.552 MB / 0.5785 GB, free: 109.6 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.00092/1.016, allocations: 343.9 kB / 0.5788 GB, free: 109.3 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.008616/1.025, allocations: 5.883 MB / 0.5846 GB, free: 103.9 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.716e-05/1.025, allocations: 43.98 kB / 0.5846 GB, free: 103.9 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.324e-05/1.025, allocations: 0 / 0.5846 GB, free: 103.9 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.993e-05/1.025, allocations: 19.92 kB / 0.5846 GB, free: 103.9 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0179/1.043, allocations: 12.91 MB / 0.5972 GB, free: 90.86 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.054e-05/1.043, allocations: 0 / 0.5972 GB, free: 90.86 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0023/1.045, allocations: 0.6749 MB / 0.5979 GB, free: 90.18 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002585/1.048, allocations: 0.978 MB / 0.5989 GB, free: 89.2 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002974/1.048, allocations: 83.97 kB / 0.5989 GB, free: 89.12 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002203/1.05, allocations: 2.061 MB / 0.6009 GB, free: 87.03 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.976e-06/1.05, allocations: 0 / 0.6009 GB, free: 87.03 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01066/1.061, allocations: 8.498 MB / 0.6092 GB, free: 78.46 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001826/1.063, allocations: 0.8441 MB / 0.6101 GB, free: 77.6 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004975/1.063, allocations: 64 kB / 0.6101 GB, free: 77.54 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001619/1.065, allocations: 235.7 kB / 0.6104 GB, free: 77.3 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003365/1.065, allocations: 229 kB / 0.6106 GB, free: 77.08 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001955/1.066, allocations: 99.98 kB / 0.6107 GB, free: 76.98 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.0025/1.068, allocations: 1.85 MB / 0.6125 GB, free: 75.13 MB / 446.1 MB Notification: Performance of sort global known variables: time 4.01e-07/1.068, allocations: 0 / 0.6125 GB, free: 75.13 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.006433/1.075, allocations: 2.097 MB / 0.6145 GB, free: 73.04 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 (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.01095/1.086, allocations: 9.204 MB / 0.6235 GB, free: 63.77 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.01375/1.099, allocations: 9.127 MB / 0.6324 GB, free: 54.65 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 9.738e-06/1.099, allocations: 4.062 kB / 0.6324 GB, free: 54.64 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.003935/1.103, allocations: 2.622 MB / 0.635 GB, free: 52.02 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003686/1.107, allocations: 0.7687 MB / 0.6357 GB, free: 51.28 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.06093/1.168, allocations: 36.09 MB / 0.671 GB, free: 13.31 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003413/1.171, allocations: 4.447 MB / 0.6753 GB, free: 8.836 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.006058/1.178, allocations: 2.283 MB / 0.6776 GB, free: 6.543 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002948/1.181, allocations: 2.427 MB / 0.6799 GB, free: 4.117 MB / 446.1 MB Notification: Performance of SimCode: time 1.152e-06/1.181, allocations: 0 / 0.6799 GB, free: 4.117 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3629/1.543, allocations: 101.4 MB / 0.7789 GB, free: 81.62 MB / 462.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001861/1.544, allocations: 284.1 kB / 0.7792 GB, free: 81.27 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 4.587/6.131, allocations: 1.75 kB / 0.7792 GB, free: 81.27 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)