Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0-beta.om_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource.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 4.1.0-beta.om/package.mo", uses=false) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/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.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource,fileNamePrefix="Modelica_4_1_0-beta_om_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_SMPM_CurrentSource",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource,fileNamePrefix="Modelica_4_1_0-beta_om_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_SMPM_CurrentSource",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001292/0.001292, allocations: 117.2 kB / 17.79 MB, free: 5.273 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001238/0.001238, allocations: 200.6 kB / 18.74 MB, free: 4.332 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/package.mo): time 1.504/1.504, allocations: 227.7 MB / 247.2 MB, free: 10.21 MB / 206.1 MB Warning: Requested package Modelica of version trunk, but this package was already loaded with version 4.1.0. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Warning: Requested package Complex of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Warning: Requested package ModelicaServices of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Notification: Performance of FrontEnd - loaded program: time 0.001917/0.001917, allocations: 67.88 kB / 358.5 MB, free: 13.23 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2997/0.3016, allocations: 50.54 MB / 409.1 MB, free: 1.363 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource): time 0.01994/0.3217, allocations: 15.8 MB / 424.9 MB, free: 1.492 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.01173/0.3334, allocations: 5.346 MB / 430.2 MB, free: 12.12 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003555/0.337, allocations: 103.6 kB / 430.3 MB, free: 12.02 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003694/0.3408, allocations: 1.082 MB / 431.4 MB, free: 10.94 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004725/0.3455, allocations: 1.239 MB / 432.7 MB, free: 9.691 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002534/0.3481, allocations: 0.9188 MB / 433.6 MB, free: 8.773 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.005524/0.3536, allocations: 3.639 MB / 437.2 MB, free: 5.117 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.004457/0.3581, allocations: 3.325 MB / 440.5 MB, free: 1.719 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002932/0.361, allocations: 1.725 MB / 442.3 MB, free: 15.98 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003284/0.3643, allocations: 2.129 MB / 444.4 MB, free: 13.85 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.000776/0.3651, allocations: 480 kB / 444.9 MB, free: 13.38 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001579/0.3667, allocations: 0.7029 MB / 445.6 MB, free: 12.68 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001176/0.3679, allocations: 1.149 MB / 446.7 MB, free: 11.53 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002996/0.3709, allocations: 2.046 MB / 448.8 MB, free: 9.473 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.009709/0.3806, allocations: 6.322 MB / 455.1 MB, free: 3.129 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.654e-06/0.3807, allocations: 4 kB / 455.1 MB, free: 3.125 MB / 366.1 MB Notification: Performance of FrontEnd: time 2.334e-06/0.3807, allocations: 0 / 455.1 MB, free: 3.125 MB / 366.1 MB Notification: Performance of Transformations before backend: time 0.0001813/0.3809, allocations: 0 / 455.1 MB, free: 3.125 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: 826 * Number of variables: 826 Notification: Performance of Generate backend data structure: time 0.01227/0.3932, allocations: 4.366 MB / 459.4 MB, free: 14.68 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.233e-05/0.3932, allocations: 8.031 kB / 459.5 MB, free: 14.67 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0006984/0.3939, allocations: 447.3 kB / 459.9 MB, free: 14.22 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002967/0.3969, allocations: 0.6271 MB / 460.5 MB, free: 13.59 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004407/0.4013, allocations: 2.309 MB / 462.8 MB, free: 11.23 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002114/0.4016, allocations: 234.7 kB / 463.1 MB, free: 11 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005067/0.4021, allocations: 319.9 kB / 463.4 MB, free: 10.69 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.007724/0.4098, allocations: 4.051 MB / 467.4 MB, free: 6.574 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.266e-05/0.4099, allocations: 11.89 kB / 467.4 MB, free: 6.562 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003025/0.4102, allocations: 128 kB / 467.6 MB, free: 6.438 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.000185/0.4104, allocations: 150.2 kB / 467.7 MB, free: 6.289 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.006542/0.417, allocations: 3.39 MB / 471.1 MB, free: 2.891 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02251/0.4395, allocations: 13.39 MB / 484.5 MB, free: 5.023 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.005159/0.4447, allocations: 4.26 MB / 488.7 MB, free: 216 kB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001771/0.4465, allocations: 1.02 MB / 489.8 MB, free: 15.2 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.005057/0.4516, allocations: 2.863 MB / 492.6 MB, free: 12.21 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.769e-05/0.4516, allocations: 43.56 kB / 492.7 MB, free: 12.16 MB / 414.1 MB Notification: Performance of pre-optimization done (n=108): time 2.645e-06/0.4516, allocations: 0 / 492.7 MB, free: 12.16 MB / 414.1 MB Notification: Performance of matching and sorting (n=142): time 0.0127/0.4643, allocations: 6.056 MB / 498.7 MB, free: 6.012 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.83e-05/0.4644, allocations: 64.72 kB / 498.8 MB, free: 5.934 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003067/0.4675, allocations: 1.906 MB / 0.489 GB, free: 3.984 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001178/0.4676, allocations: 53.7 kB / 0.489 GB, free: 3.926 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001304/0.469, allocations: 1.556 MB / 0.4905 GB, free: 2.355 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005225/0.4695, allocations: 0.5035 MB / 0.491 GB, free: 1.848 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005485/0.47, allocations: 343.4 kB / 0.4913 GB, free: 1.504 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0002041/0.4703, allocations: 305.1 kB / 0.4916 GB, free: 1.203 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001397/0.4717, allocations: 0.7652 MB / 0.4924 GB, free: 448 kB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001841/0.4735, allocations: 1.379 MB / 0.4937 GB, free: 14.79 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003471/0.477, allocations: 2.32 MB / 0.496 GB, free: 12.21 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.317e-05/0.477, allocations: 12 kB / 0.496 GB, free: 12.2 MB / 430.1 MB Notification: Performance of matching and sorting (n=235) (initialization): time 0.00445/0.4815, allocations: 2.482 MB / 0.4984 GB, free: 9.695 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.205e-05/0.4815, allocations: 16 kB / 0.4984 GB, free: 9.68 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.729e-05/0.4815, allocations: 16 kB / 0.4985 GB, free: 9.664 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003729/0.4819, allocations: 126.5 kB / 0.4986 GB, free: 9.531 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001755/0.4837, allocations: 483.6 kB / 0.499 GB, free: 9.059 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001442/0.4851, allocations: 1.406 MB / 0.5004 GB, free: 7.508 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001602/0.4868, allocations: 115.8 kB / 0.5005 GB, free: 7.395 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001417/0.4869, allocations: 79.98 kB / 0.5006 GB, free: 7.316 MB / 430.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 87 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (232): * Single equations (assignments): 229 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 2 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 2 systems {(2,100.0%), (2,100.0%)} * Non-linear Jacobian (size): 0 systems * Without analytic Jacobian (size): 0 systems Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.001917/0.4888, allocations: 0.9904 MB / 0.5016 GB, free: 6.316 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004112/0.4893, allocations: 214.6 kB / 0.5018 GB, free: 6.105 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00363/0.4929, allocations: 1.965 MB / 0.5037 GB, free: 4.121 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.607e-05/0.4929, allocations: 16 kB / 0.5037 GB, free: 4.105 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.919e-06/0.4929, allocations: 0 / 0.5037 GB, free: 4.105 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.509e-05/0.493, allocations: 11.97 kB / 0.5037 GB, free: 4.094 MB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008212/0.5012, allocations: 5.003 MB / 0.5086 GB, free: 14.98 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.376e-06/0.5012, allocations: 4 kB / 0.5086 GB, free: 14.97 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001366/0.5026, allocations: 303.8 kB / 0.5089 GB, free: 14.68 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000296/0.5029, allocations: 98.52 kB / 0.509 GB, free: 14.57 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.285e-05/0.503, allocations: 28 kB / 0.509 GB, free: 14.54 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001271/0.5043, allocations: 1.382 MB / 0.5104 GB, free: 13.02 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.036e-05/0.5043, allocations: 7.938 kB / 0.5104 GB, free: 13.02 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004964/0.5092, allocations: 3.095 MB / 0.5134 GB, free: 9.863 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001045/0.5103, allocations: 463.6 kB / 0.5138 GB, free: 9.391 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002495/0.5106, allocations: 28 kB / 0.5139 GB, free: 9.363 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009382/0.5115, allocations: 79.89 kB / 0.5139 GB, free: 9.285 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001918/0.5117, allocations: 97.06 kB / 0.514 GB, free: 9.191 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.058e-05/0.5118, allocations: 36.06 kB / 0.5141 GB, free: 9.156 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.00211/0.5139, allocations: 1.301 MB / 0.5153 GB, free: 7.832 MB / 446.1 MB Notification: Performance of sort global known variables: time 1.6e-07/0.5139, allocations: 0 / 0.5153 GB, free: 7.832 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.001909/0.5158, allocations: 0.5312 MB / 0.5159 GB, free: 7.301 MB / 446.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 9 * Number of states: 2 (smpm.inertiaRotor.w,quadraticSpeedDependentTorque.phi) * 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 (141): * Single equations (assignments): 138 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 2 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 2 systems {(2,100.0%), (2,100.0%)} * Non-linear Jacobian (size): 0 systems * Without analytic Jacobian (size): 0 systems Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.005351/0.5212, allocations: 3.723 MB / 0.5195 GB, free: 3.516 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.003874/0.5251, allocations: 2.223 MB / 0.5217 GB, free: 1.238 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 4.368e-06/0.5251, allocations: 0.875 kB / 0.5217 GB, free: 1.238 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001734/0.5269, allocations: 1.178 MB / 0.5228 GB, free: 8 kB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002628/0.5295, allocations: 0.5264 MB / 0.5233 GB, free: 15.49 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.2857/0.8152, allocations: 20.07 MB / 0.5429 GB, free: 124.7 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001607/0.8169, allocations: 2.271 MB / 0.5452 GB, free: 123.7 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.001501/0.8184, allocations: 0.514 MB / 0.5457 GB, free: 123.7 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00132/0.8197, allocations: 1.182 MB / 0.5468 GB, free: 122.7 MB / 462.1 MB Notification: Performance of SimCode: time 1.694e-06/0.8197, allocations: 3.938 kB / 0.5468 GB, free: 122.7 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1067/0.9265, allocations: 49.9 MB / 0.5955 GB, free: 77.55 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 14.56/15.48, allocations: 6.734 kB / 0.5956 GB, free: 77.55 MB / 462.1 MB (rm -f Modelica_4.1.0-beta.om_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource.pipe ; mkfifo Modelica_4.1.0-beta.om_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource.pipe ; head -c 1048576 < Modelica_4.1.0-beta.om_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource.pipe >> ../files/Modelica_4.1.0-beta.om_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource.sim & python3 -m fmpy simulate --output-file Modelica_4.1.0-beta.om_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource_res.csv --start-time 0 --stop-time 2 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0001 Modelica_4_1_0-beta_om_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_SMPM_CurrentSource.fmu > Modelica_4.1.0-beta.om_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource.pipe 2>&1)