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.001269/0.001269, allocations: 118.2 kB / 17.79 MB, free: 5.277 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001304/0.001304, allocations: 202 kB / 18.74 MB, free: 4.332 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.347/1.347, allocations: 227.4 MB / 246.9 MB, free: 10.46 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001319/0.001319, allocations: 55.91 kB / 358.2 MB, free: 13.4 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.254/0.2554, allocations: 50.55 MB / 408.8 MB, free: 1.543 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_FieldWeakening): time 0.02531/0.2807, allocations: 24.68 MB / 433.5 MB, free: 8.758 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.01496/0.2957, allocations: 7.867 MB / 441.3 MB, free: 0.8672 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.005215/0.301, allocations: 171.5 kB / 441.5 MB, free: 0.6992 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.01411/0.3152, allocations: 5.747 MB / 447.3 MB, free: 10.94 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.008225/0.3234, allocations: 2.603 MB / 449.9 MB, free: 8.324 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.004901/0.3283, allocations: 1.844 MB / 451.7 MB, free: 6.484 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.009925/0.3383, allocations: 7.85 MB / 459.5 MB, free: 14.61 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0189/0.3572, allocations: 14.51 MB / 474.1 MB, free: 15.96 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.006686/0.3639, allocations: 3.974 MB / 478 MB, free: 11.97 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.007076/0.3711, allocations: 4.551 MB / 482.6 MB, free: 7.406 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 0.002846/0.3739, allocations: 1.109 MB / 483.7 MB, free: 6.297 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004013/0.378, allocations: 1.457 MB / 485.1 MB, free: 4.84 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.00309/0.3811, allocations: 2.24 MB / 487.4 MB, free: 2.594 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.007051/0.3882, allocations: 4.33 MB / 491.7 MB, free: 14.25 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01701/0.4052, allocations: 15.09 MB / 0.4949 GB, free: 15.11 MB / 430.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.095e-06/0.4052, allocations: 0 / 0.4949 GB, free: 15.11 MB / 430.1 MB Notification: Performance of FrontEnd: time 2.224e-06/0.4053, allocations: 0 / 0.4949 GB, free: 15.11 MB / 430.1 MB Notification: Performance of Transformations before backend: time 0.000383/0.4056, allocations: 0 / 0.4949 GB, free: 15.11 MB / 430.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.02683/0.4325, allocations: 9.372 MB / 0.5041 GB, free: 5.641 MB / 430.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.745e-05/0.4325, allocations: 12.03 kB / 0.5041 GB, free: 5.629 MB / 430.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.002738/0.4353, allocations: 0.9796 MB / 0.505 GB, free: 4.637 MB / 430.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02953/0.4648, allocations: 5.368 MB / 0.5103 GB, free: 15.25 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01106/0.4759, allocations: 4.751 MB / 0.5149 GB, free: 10.45 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004923/0.4765, allocations: 0.5058 MB / 0.5154 GB, free: 9.938 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002791/0.4793, allocations: 0.6678 MB / 0.5161 GB, free: 9.27 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02675/0.506, allocations: 11.16 MB / 0.527 GB, free: 14.02 MB / 462.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003098/0.5064, allocations: 11.95 kB / 0.527 GB, free: 14.01 MB / 462.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002124/0.5085, allocations: 284 kB / 0.5273 GB, free: 13.73 MB / 462.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0004923/0.509, allocations: 430.4 kB / 0.5277 GB, free: 13.31 MB / 462.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02189/0.5309, allocations: 10.73 MB / 0.5381 GB, free: 2.574 MB / 462.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.2439/0.7749, allocations: 35.95 MB / 0.5732 GB, free: 92.77 MB / 462.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.009206/0.7842, allocations: 11.9 MB / 0.5849 GB, free: 82.43 MB / 462.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003821/0.788, allocations: 2.851 MB / 0.5876 GB, free: 79.71 MB / 462.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003739/0.7885, allocations: 248.1 kB / 0.5879 GB, free: 79.45 MB / 462.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.028e-05/0.7885, allocations: 77.38 kB / 0.588 GB, free: 79.36 MB / 462.1 MB Notification: Performance of pre-optimization done (n=365): time 6.342e-06/0.7885, allocations: 0 / 0.588 GB, free: 79.36 MB / 462.1 MB Notification: Performance of matching and sorting (n=375): time 0.03429/0.8228, allocations: 15.91 MB / 0.6035 GB, free: 63.7 MB / 462.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.755e-05/0.8229, allocations: 149.7 kB / 0.6036 GB, free: 63.53 MB / 462.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003893/0.8268, allocations: 2.79 MB / 0.6064 GB, free: 60.75 MB / 462.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0004266/0.8273, allocations: 85.7 kB / 0.6064 GB, free: 60.66 MB / 462.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.00126/0.8285, allocations: 2.982 MB / 0.6094 GB, free: 58.09 MB / 462.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0009664/0.8295, allocations: 1.33 MB / 0.6107 GB, free: 56.77 MB / 462.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001603/0.8311, allocations: 0.891 MB / 0.6115 GB, free: 55.87 MB / 462.1 MB Notification: Performance of setup shared object (initialization): time 3.975e-05/0.8312, allocations: 309 kB / 0.6118 GB, free: 55.57 MB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003171/0.8344, allocations: 2.322 MB / 0.6141 GB, free: 53.23 MB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003725/0.8381, allocations: 3.909 MB / 0.6179 GB, free: 48.57 MB / 462.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.007253/0.8454, allocations: 6.711 MB / 0.6245 GB, free: 41.12 MB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.814e-05/0.8454, allocations: 16 kB / 0.6245 GB, free: 41.11 MB / 462.1 MB Notification: Performance of matching and sorting (n=611) (initialization): time 0.0101/0.8555, allocations: 7.106 MB / 0.6314 GB, free: 33.97 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.597e-05/0.8556, allocations: 35.94 kB / 0.6314 GB, free: 33.94 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.806e-05/0.8557, allocations: 51.98 kB / 0.6315 GB, free: 33.89 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003382/0.8591, allocations: 1.229 MB / 0.6327 GB, free: 32.66 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003708/0.8628, allocations: 1.061 MB / 0.6337 GB, free: 31.59 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002885/0.8657, allocations: 2.365 MB / 0.636 GB, free: 29.2 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003271/0.869, allocations: 287.6 kB / 0.6363 GB, free: 28.92 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0006361/0.8697, allocations: 224.6 kB / 0.6365 GB, free: 28.7 MB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.00639/0.8761, allocations: 4.522 MB / 0.6409 GB, free: 24.17 MB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.003896/0.88, allocations: 3.9 MB / 0.6448 GB, free: 19.53 MB / 462.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.007365/0.8874, allocations: 6.683 MB / 0.6513 GB, free: 12.11 MB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 3.954e-05/0.8875, allocations: 16 kB / 0.6513 GB, free: 12.09 MB / 462.1 MB Notification: Performance of matching and sorting (n=611) (initialization_lambda0): time 0.01081/0.8983, allocations: 7.063 MB / 0.6582 GB, free: 4.996 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.99e-05/0.8984, allocations: 32.16 kB / 0.6582 GB, free: 4.965 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.085e-05/0.8984, allocations: 55.94 kB / 0.6583 GB, free: 4.91 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00328/0.9017, allocations: 1.182 MB / 0.6594 GB, free: 3.727 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003711/0.9055, allocations: 1.057 MB / 0.6605 GB, free: 2.668 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002557/0.908, allocations: 2.304 MB / 0.6627 GB, free: 348 kB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003273/0.9113, allocations: 279.7 kB / 0.663 GB, free: 68 kB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0007056/0.9121, allocations: 224 kB / 0.6632 GB, free: 15.85 MB / 478.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.001351/0.9134, allocations: 494 kB / 0.6637 GB, free: 15.36 MB / 478.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001074/0.9145, allocations: 369.6 kB / 0.664 GB, free: 15 MB / 478.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01101/0.9255, allocations: 5.851 MB / 0.6697 GB, free: 9.109 MB / 478.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.374e-05/0.9256, allocations: 39.94 kB / 0.6698 GB, free: 9.07 MB / 478.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.419e-05/0.9256, allocations: 4 kB / 0.6698 GB, free: 9.066 MB / 478.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.595e-05/0.9257, allocations: 19.92 kB / 0.6698 GB, free: 9.047 MB / 478.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0252/0.9509, allocations: 12.66 MB / 0.6822 GB, free: 12.36 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.626e-05/0.9509, allocations: 7.984 kB / 0.6822 GB, free: 12.35 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002857/0.9538, allocations: 0.6672 MB / 0.6828 GB, free: 11.68 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003341/0.9572, allocations: 0.9857 MB / 0.6838 GB, free: 10.69 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003878/0.9576, allocations: 83.91 kB / 0.6839 GB, free: 10.61 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002881/0.9605, allocations: 2.042 MB / 0.6858 GB, free: 8.539 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.379e-06/0.9605, allocations: 3.984 kB / 0.6859 GB, free: 8.535 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01391/0.9744, allocations: 8.522 MB / 0.6942 GB, free: 15.94 MB / 0.4981 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002297/0.9767, allocations: 0.8461 MB / 0.695 GB, free: 15.07 MB / 0.4981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0008613/0.9776, allocations: 68 kB / 0.6951 GB, free: 15.01 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002368/0.98, allocations: 215.8 kB / 0.6953 GB, free: 14.8 MB / 0.4981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005195/0.9805, allocations: 230.8 kB / 0.6955 GB, free: 14.57 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003035/0.9808, allocations: 104 kB / 0.6956 GB, free: 14.47 MB / 0.4981 GB Notification: Performance of sorting global known variables: time 0.003615/0.9845, allocations: 1.875 MB / 0.6974 GB, free: 12.59 MB / 0.4981 GB Notification: Performance of sort global known variables: time 2.6e-07/0.9845, allocations: 0 / 0.6974 GB, free: 12.59 MB / 0.4981 GB Notification: Performance of remove unused functions: time 0.007809/0.9923, allocations: 2.086 MB / 0.6995 GB, free: 10.5 MB / 0.4981 GB 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.01504/1.007, allocations: 9.219 MB / 0.7085 GB, free: 1.215 MB / 0.4981 GB Notification: Performance of simCode: created initialization part: time 0.01766/1.025, allocations: 9.197 MB / 0.7174 GB, free: 8.027 MB / 0.5138 GB Notification: Performance of simCode: created event and clocks part: time 8.466e-06/1.025, allocations: 384 / 0.7174 GB, free: 8.027 MB / 0.5138 GB Notification: Performance of simCode: created simulation system equations: time 0.005331/1.03, allocations: 2.636 MB / 0.72 GB, free: 5.395 MB / 0.5138 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005019/1.036, allocations: 0.795 MB / 0.7208 GB, free: 4.617 MB / 0.5138 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.2588/1.294, allocations: 42.8 MB / 0.7626 GB, free: 175.5 MB / 0.5294 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003647/1.298, allocations: 4.443 MB / 0.7669 GB, free: 173.8 MB / 0.5294 GB Notification: Performance of simCode: alias equations: time 0.005141/1.303, allocations: 2.29 MB / 0.7692 GB, free: 171.7 MB / 0.5294 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002904/1.306, allocations: 2.428 MB / 0.7715 GB, free: 169.2 MB / 0.5294 GB Notification: Performance of SimCode: time 1.432e-06/1.306, allocations: 0 / 0.7715 GB, free: 169.2 MB / 0.5294 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1322/1.438, allocations: 105.5 MB / 0.8745 GB, free: 64.29 MB / 0.5294 GB Notification: Performance of buildModelFMU: Generate platform static: time 18.68/20.12, allocations: 18.97 kB / 0.8746 GB, free: 64.27 MB / 0.5294 GB (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 & python3 -m fmpy simulate --output-file Modelica_trunk_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_FieldWeakening_res.csv --start-time 0 --stop-time 2.5 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0001 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)