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.001267/0.001267, allocations: 117.2 kB / 17.78 MB, free: 5.383 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001531/0.001531, allocations: 200.6 kB / 18.73 MB, free: 4.441 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.467/1.467, allocations: 227.4 MB / 246.9 MB, free: 10.51 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001769/0.001769, allocations: 63.89 kB / 358.2 MB, free: 13.43 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3144/0.3161, allocations: 50.55 MB / 408.8 MB, free: 1.559 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_FieldWeakening): time 0.02769/0.3439, allocations: 24.67 MB / 433.5 MB, free: 8.781 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.0184/0.3623, allocations: 7.874 MB / 441.3 MB, free: 0.8828 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.005724/0.3681, allocations: 167.5 kB / 441.5 MB, free: 0.7188 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.01383/0.382, allocations: 5.688 MB / 447.2 MB, free: 11.02 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.008618/0.3906, allocations: 2.553 MB / 449.7 MB, free: 8.453 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.005399/0.3961, allocations: 1.833 MB / 451.6 MB, free: 6.625 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.01167/0.4078, allocations: 7.862 MB / 459.4 MB, free: 14.74 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.02191/0.4297, allocations: 14.5 MB / 473.9 MB, free: 96 kB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.006921/0.4367, allocations: 3.958 MB / 477.9 MB, free: 12.12 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.008138/0.4449, allocations: 4.551 MB / 482.4 MB, free: 7.559 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 0.003133/0.448, allocations: 1.109 MB / 483.5 MB, free: 6.449 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004641/0.4527, allocations: 1.457 MB / 485 MB, free: 4.992 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.003148/0.4559, allocations: 2.244 MB / 487.2 MB, free: 2.742 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.009343/0.4652, allocations: 4.33 MB / 491.6 MB, free: 14.39 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.02042/0.4857, allocations: 15.09 MB / 0.4948 GB, free: 15.25 MB / 430.1 MB Notification: Performance of FrontEnd - DAE generated: time 9.238e-06/0.4857, allocations: 4 kB / 0.4948 GB, free: 15.25 MB / 430.1 MB Notification: Performance of FrontEnd: time 1.864e-06/0.4857, allocations: 0 / 0.4948 GB, free: 15.25 MB / 430.1 MB Notification: Performance of Transformations before backend: time 0.0004439/0.4862, allocations: 0 / 0.4948 GB, free: 15.25 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.032/0.5182, allocations: 9.36 MB / 0.5039 GB, free: 5.793 MB / 430.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.897e-05/0.5183, allocations: 8.031 kB / 0.5039 GB, free: 5.785 MB / 430.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.003834/0.5221, allocations: 0.9874 MB / 0.5049 GB, free: 4.785 MB / 430.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02962/0.5518, allocations: 5.36 MB / 0.5101 GB, free: 15.41 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01209/0.5639, allocations: 4.751 MB / 0.5148 GB, free: 10.61 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0006509/0.5646, allocations: 0.5097 MB / 0.5153 GB, free: 10.09 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003286/0.5679, allocations: 0.6679 MB / 0.5159 GB, free: 9.426 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03218/0.6001, allocations: 11.16 MB / 0.5268 GB, free: 14.18 MB / 462.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0004073/0.6006, allocations: 11.95 kB / 0.5268 GB, free: 14.16 MB / 462.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.003016/0.6036, allocations: 284 kB / 0.5271 GB, free: 13.89 MB / 462.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0005624/0.6042, allocations: 422.4 kB / 0.5275 GB, free: 13.47 MB / 462.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02601/0.6302, allocations: 10.73 MB / 0.538 GB, free: 2.73 MB / 462.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.2821/0.9123, allocations: 35.95 MB / 0.5731 GB, free: 92.94 MB / 462.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.008054/0.9204, allocations: 11.9 MB / 0.5847 GB, free: 82.59 MB / 462.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003226/0.9237, allocations: 2.854 MB / 0.5875 GB, free: 79.91 MB / 462.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.000286/0.924, allocations: 248.3 kB / 0.5877 GB, free: 79.64 MB / 462.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.787e-05/0.9241, allocations: 69.44 kB / 0.5878 GB, free: 79.57 MB / 462.1 MB Notification: Performance of pre-optimization done (n=365): time 5.33e-06/0.9241, allocations: 0 / 0.5878 GB, free: 79.57 MB / 462.1 MB Notification: Performance of matching and sorting (n=375): time 0.03083/0.9549, allocations: 15.91 MB / 0.6034 GB, free: 63.92 MB / 462.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.384e-05/0.955, allocations: 153.6 kB / 0.6035 GB, free: 63.74 MB / 462.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003578/0.9586, allocations: 2.794 MB / 0.6062 GB, free: 60.96 MB / 462.1 MB Notification: Performance of collectPreVariables (initialization): time 0.000342/0.959, allocations: 85.7 kB / 0.6063 GB, free: 60.87 MB / 462.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001604/0.9606, allocations: 2.977 MB / 0.6092 GB, free: 58.3 MB / 462.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0008968/0.9615, allocations: 1.339 MB / 0.6105 GB, free: 56.98 MB / 462.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001149/0.9626, allocations: 0.891 MB / 0.6114 GB, free: 56.08 MB / 462.1 MB Notification: Performance of setup shared object (initialization): time 5.342e-05/0.9627, allocations: 309.1 kB / 0.6117 GB, free: 55.77 MB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002769/0.9655, allocations: 2.306 MB / 0.6139 GB, free: 53.45 MB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00331/0.9688, allocations: 3.92 MB / 0.6178 GB, free: 48.78 MB / 462.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.006881/0.9757, allocations: 6.707 MB / 0.6243 GB, free: 41.34 MB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.014e-05/0.9758, allocations: 20 kB / 0.6243 GB, free: 41.32 MB / 462.1 MB Notification: Performance of matching and sorting (n=611) (initialization): time 0.01039/0.9862, allocations: 7.109 MB / 0.6313 GB, free: 34.18 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.55e-05/0.9862, allocations: 30.91 kB / 0.6313 GB, free: 34.15 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.555e-05/0.9863, allocations: 52 kB / 0.6314 GB, free: 34.1 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003218/0.9895, allocations: 1.237 MB / 0.6326 GB, free: 32.86 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004051/0.9936, allocations: 1.065 MB / 0.6336 GB, free: 31.79 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0029/0.9965, allocations: 2.355 MB / 0.6359 GB, free: 29.41 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003907/1, allocations: 291.6 kB / 0.6362 GB, free: 29.12 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000496/1.001, allocations: 228 kB / 0.6364 GB, free: 28.9 MB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.007441/1.008, allocations: 4.518 MB / 0.6408 GB, free: 24.37 MB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.004095/1.013, allocations: 3.9 MB / 0.6446 GB, free: 19.73 MB / 462.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.007491/1.02, allocations: 6.683 MB / 0.6512 GB, free: 12.31 MB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 4.582e-05/1.02, allocations: 12 kB / 0.6512 GB, free: 12.3 MB / 462.1 MB Notification: Performance of matching and sorting (n=611) (initialization_lambda0): time 0.01006/1.03, allocations: 7.066 MB / 0.6581 GB, free: 5.199 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.078e-05/1.03, allocations: 24 kB / 0.6581 GB, free: 5.176 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.054e-05/1.03, allocations: 52 kB / 0.6581 GB, free: 5.125 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00311/1.034, allocations: 1.186 MB / 0.6593 GB, free: 3.938 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003791/1.037, allocations: 1.069 MB / 0.6603 GB, free: 2.867 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002542/1.04, allocations: 2.293 MB / 0.6626 GB, free: 0.5469 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003715/1.044, allocations: 275.7 kB / 0.6628 GB, free: 284 kB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0007013/1.044, allocations: 228 kB / 0.6631 GB, free: 56 kB / 462.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.001187/1.046, allocations: 482.6 kB / 0.6635 GB, free: 15.57 MB / 478.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001079/1.047, allocations: 377.6 kB / 0.6639 GB, free: 15.2 MB / 478.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01094/1.058, allocations: 5.859 MB / 0.6696 GB, free: 9.309 MB / 478.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.001e-05/1.058, allocations: 43.94 kB / 0.6696 GB, free: 9.266 MB / 478.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.25e-05/1.058, allocations: 0 / 0.6696 GB, free: 9.266 MB / 478.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.869e-05/1.058, allocations: 19.92 kB / 0.6697 GB, free: 9.246 MB / 478.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02614/1.084, allocations: 12.67 MB / 0.682 GB, free: 12.55 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.505e-05/1.084, allocations: 0 / 0.682 GB, free: 12.55 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003139/1.087, allocations: 0.667 MB / 0.6827 GB, free: 11.88 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003446/1.091, allocations: 0.9897 MB / 0.6836 GB, free: 10.89 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0006356/1.091, allocations: 79.97 kB / 0.6837 GB, free: 10.81 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003106/1.094, allocations: 2.05 MB / 0.6857 GB, free: 8.738 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.04e-06/1.094, allocations: 4.031 kB / 0.6857 GB, free: 8.734 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01548/1.11, allocations: 8.512 MB / 0.694 GB, free: 152 kB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002469/1.112, allocations: 0.8502 MB / 0.6949 GB, free: 15.27 MB / 0.4981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0007656/1.113, allocations: 64.38 kB / 0.6949 GB, free: 15.21 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002119/1.115, allocations: 215.8 kB / 0.6951 GB, free: 15 MB / 0.4981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004963/1.116, allocations: 226.5 kB / 0.6954 GB, free: 14.78 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002355/1.116, allocations: 112 kB / 0.6955 GB, free: 14.67 MB / 0.4981 GB Notification: Performance of sorting global known variables: time 0.003403/1.119, allocations: 1.871 MB / 0.6973 GB, free: 12.8 MB / 0.4981 GB Notification: Performance of sort global known variables: time 1.61e-07/1.12, allocations: 0 / 0.6973 GB, free: 12.8 MB / 0.4981 GB Notification: Performance of remove unused functions: time 0.008808/1.128, allocations: 2.098 MB / 0.6993 GB, free: 10.7 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.01536/1.144, allocations: 9.204 MB / 0.7083 GB, free: 1.426 MB / 0.4981 GB Notification: Performance of simCode: created initialization part: time 0.01979/1.164, allocations: 9.203 MB / 0.7173 GB, free: 8.234 MB / 0.5137 GB Notification: Performance of simCode: created event and clocks part: time 1.3e-05/1.164, allocations: 0 / 0.7173 GB, free: 8.234 MB / 0.5137 GB Notification: Performance of simCode: created simulation system equations: time 0.00591/1.17, allocations: 2.629 MB / 0.7199 GB, free: 5.609 MB / 0.5137 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00533/1.175, allocations: 0.7969 MB / 0.7207 GB, free: 4.828 MB / 0.5137 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.3417/1.517, allocations: 42.8 MB / 0.7625 GB, free: 175.6 MB / 0.5294 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004066/1.521, allocations: 4.442 MB / 0.7668 GB, free: 173.9 MB / 0.5294 GB Notification: Performance of simCode: alias equations: time 0.005151/1.526, allocations: 2.288 MB / 0.769 GB, free: 172.1 MB / 0.5294 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003282/1.529, allocations: 2.425 MB / 0.7714 GB, free: 169.6 MB / 0.5294 GB Notification: Performance of SimCode: time 1.412e-06/1.529, allocations: 0 / 0.7714 GB, free: 169.6 MB / 0.5294 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1507/1.68, allocations: 105.5 MB / 0.8744 GB, free: 64.71 MB / 0.5294 GB Notification: Performance of buildModelFMU: Generate platform static: time 20.17/21.85, allocations: 8.688 kB / 0.8744 GB, free: 64.7 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)