Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0-beta.om_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_Inverter.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.Electrical.Machines.Examples.SynchronousMachines.SMPM_Inverter,fileNamePrefix="Modelica_4_1_0-beta_om_Modelica_Electrical_Machines_Examples_SynchronousMachines_SMPM_Inverter",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_Inverter,fileNamePrefix="Modelica_4_1_0-beta_om_Modelica_Electrical_Machines_Examples_SynchronousMachines_SMPM_Inverter",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001343/0.001343, allocations: 117.6 kB / 17.79 MB, free: 5.254 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001435/0.001435, allocations: 199.9 kB / 18.74 MB, free: 4.312 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.42/1.42, allocations: 227.7 MB / 247.2 MB, free: 10.15 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.001875/0.001875, allocations: 67.89 kB / 358.5 MB, free: 13.21 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2464/0.2483, allocations: 50.53 MB / 409.1 MB, free: 1.336 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_Inverter): time 0.01215/0.2605, allocations: 10.36 MB / 419.4 MB, free: 6.938 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.006541/0.2671, allocations: 3.474 MB / 422.9 MB, free: 3.449 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00159/0.2687, allocations: 59.75 kB / 423 MB, free: 3.391 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00211/0.2709, allocations: 0.7753 MB / 423.7 MB, free: 2.613 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002796/0.2737, allocations: 0.8346 MB / 424.6 MB, free: 1.773 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001079/0.2748, allocations: 427.4 kB / 425 MB, free: 1.355 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.003616/0.2784, allocations: 2.759 MB / 427.8 MB, free: 14.58 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00291/0.2813, allocations: 2.402 MB / 430.2 MB, free: 12.11 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001961/0.2833, allocations: 1.265 MB / 431.4 MB, free: 10.84 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002401/0.2858, allocations: 1.58 MB / 433 MB, free: 9.254 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0006171/0.2864, allocations: 336 kB / 433.3 MB, free: 8.926 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001081/0.2875, allocations: 439.8 kB / 433.8 MB, free: 8.496 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001039/0.2885, allocations: 0.9466 MB / 434.7 MB, free: 7.547 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002052/0.2906, allocations: 1.505 MB / 436.2 MB, free: 6.035 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.005373/0.296, allocations: 4.41 MB / 440.6 MB, free: 1.609 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.48e-06/0.296, allocations: 0 / 440.6 MB, free: 1.609 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.684e-06/0.296, allocations: 0 / 440.6 MB, free: 1.609 MB / 350.1 MB Notification: Performance of Transformations before backend: time 0.0001122/0.2962, allocations: 4 kB / 440.6 MB, free: 1.605 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: 581 * Number of variables: 581 Notification: Performance of Generate backend data structure: time 0.007011/0.3032, allocations: 3.128 MB / 443.8 MB, free: 14.41 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.607e-05/0.3032, allocations: 12.03 kB / 443.8 MB, free: 14.4 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0004201/0.3037, allocations: 328.9 kB / 444.1 MB, free: 14.07 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008584/0.3045, allocations: 331 kB / 444.4 MB, free: 13.74 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002687/0.3072, allocations: 1.646 MB / 446.1 MB, free: 12.04 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001365/0.3074, allocations: 168.4 kB / 446.2 MB, free: 11.87 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003175/0.3077, allocations: 223.9 kB / 446.4 MB, free: 11.65 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004767/0.3125, allocations: 2.921 MB / 449.4 MB, free: 8.645 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.314e-05/0.3126, allocations: 11.92 kB / 449.4 MB, free: 8.633 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002002/0.3128, allocations: 88 kB / 449.5 MB, free: 8.547 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001205/0.3129, allocations: 112.3 kB / 449.6 MB, free: 8.434 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004209/0.3171, allocations: 2.43 MB / 452 MB, free: 5.988 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01413/0.3313, allocations: 9.042 MB / 461 MB, free: 12.67 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002405/0.3337, allocations: 1.7 MB / 462.7 MB, free: 10.85 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001753/0.3355, allocations: 0.9769 MB / 463.7 MB, free: 9.871 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002956/0.3358, allocations: 207.2 kB / 463.9 MB, free: 9.633 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.922e-05/0.3359, allocations: 47.56 kB / 464 MB, free: 9.578 MB / 382.1 MB Notification: Performance of pre-optimization done (n=105): time 4.778e-06/0.3359, allocations: 3.984 kB / 464 MB, free: 9.574 MB / 382.1 MB Notification: Performance of matching and sorting (n=122): time 0.01453/0.3504, allocations: 6.606 MB / 470.6 MB, free: 2.805 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.751e-05/0.3505, allocations: 68.34 kB / 470.6 MB, free: 2.727 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002369/0.3529, allocations: 1.562 MB / 472.2 MB, free: 1.156 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001289/0.353, allocations: 45.7 kB / 472.2 MB, free: 1.105 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0008673/0.3539, allocations: 1.142 MB / 473.4 MB, free: 15.95 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003864/0.3543, allocations: 456 kB / 473.8 MB, free: 15.5 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004318/0.3547, allocations: 275.5 kB / 474.1 MB, free: 15.22 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001101/0.3548, allocations: 305.1 kB / 474.4 MB, free: 14.92 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001229/0.3561, allocations: 0.7066 MB / 475.1 MB, free: 14.21 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00149/0.3576, allocations: 1.134 MB / 476.2 MB, free: 12.9 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002802/0.3604, allocations: 1.971 MB / 478.2 MB, free: 10.75 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.906e-06/0.3604, allocations: 4 kB / 478.2 MB, free: 10.74 MB / 398.1 MB Notification: Performance of matching and sorting (n=191) (initialization): time 0.004345/0.3648, allocations: 2.535 MB / 480.8 MB, free: 8.168 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.788e-05/0.3648, allocations: 11.94 kB / 480.8 MB, free: 8.156 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.856e-05/0.3648, allocations: 19.98 kB / 480.8 MB, free: 8.137 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001013/0.3659, allocations: 415.4 kB / 481.2 MB, free: 7.719 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001265/0.3671, allocations: 355.4 kB / 481.5 MB, free: 7.371 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007264/0.3744, allocations: 7.12 MB / 488.7 MB, free: 15.84 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001473/0.3759, allocations: 107.9 kB / 488.8 MB, free: 15.73 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001502/0.3761, allocations: 67.92 kB / 488.8 MB, free: 15.66 MB / 414.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 59 * 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 (169): * Single equations (assignments): 165 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 1 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 1 system {(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): 3 systems {(3,12,100.0%), (1,6,100.0%), (1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.001266/0.3774, allocations: 0.7213 MB / 489.6 MB, free: 14.93 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003719/0.3777, allocations: 178.9 kB / 489.7 MB, free: 14.76 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003914/0.3817, allocations: 2.206 MB / 491.9 MB, free: 12.51 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.353e-05/0.3817, allocations: 12 kB / 491.9 MB, free: 12.5 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.172e-05/0.3817, allocations: 7.938 kB / 492 MB, free: 12.49 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.728e-05/0.3817, allocations: 7.969 kB / 492 MB, free: 12.48 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0081/0.3899, allocations: 4.767 MB / 496.7 MB, free: 7.57 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.878e-06/0.3899, allocations: 4 kB / 496.7 MB, free: 7.566 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009206/0.3908, allocations: 220.1 kB / 496.9 MB, free: 7.352 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001192/0.392, allocations: 454.9 kB / 497.4 MB, free: 6.895 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001006/0.3921, allocations: 39.97 kB / 497.4 MB, free: 6.855 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008588/0.4007, allocations: 8.694 MB / 0.4943 GB, free: 13.59 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.823e-06/0.4008, allocations: 4 kB / 0.4943 GB, free: 13.59 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005274/0.4061, allocations: 3.231 MB / 0.4974 GB, free: 10.27 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000889/0.407, allocations: 411.8 kB / 0.4978 GB, free: 9.844 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000238/0.4072, allocations: 31.98 kB / 0.4978 GB, free: 9.812 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008618/0.4081, allocations: 79.91 kB / 0.4979 GB, free: 9.734 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002501/0.4084, allocations: 104.8 kB / 0.498 GB, free: 9.633 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.064e-05/0.4085, allocations: 39.98 kB / 0.4981 GB, free: 9.594 MB / 430.1 MB Notification: Performance of sorting global known variables: time 0.00158/0.41, allocations: 1.071 MB / 0.4991 GB, free: 8.527 MB / 430.1 MB Notification: Performance of sort global known variables: time 1.8e-07/0.4101, allocations: 0 / 0.4991 GB, free: 8.527 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.001608/0.4117, allocations: 492.1 kB / 0.4996 GB, free: 8.047 MB / 430.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 16 * Number of states: 7 (smpm.inertiaRotor.w,smpm.idq_sr[1],smpm.idq_sr[2],smpm.idq_rr[2],smpm.idq_dr[1],vfController.x,loadInertia.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 (107): * Single equations (assignments): 103 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 4 systems {(3,12,100.0%), (1,6,100.0%), (1,1,100.0%), (2,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.005483/0.4172, allocations: 3.862 MB / 0.5033 GB, free: 4.086 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.00398/0.4212, allocations: 2.301 MB / 0.5056 GB, free: 1.723 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 6.672e-06/0.4212, allocations: 0 / 0.5056 GB, free: 1.723 MB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002466/0.4237, allocations: 1.474 MB / 0.507 GB, free: 200 kB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00231/0.426, allocations: 497.6 kB / 0.5075 GB, free: 15.72 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02871/0.4547, allocations: 17.94 MB / 0.525 GB, free: 13.03 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001738/0.4565, allocations: 1.871 MB / 0.5268 GB, free: 11.13 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.001265/0.4578, allocations: 398.8 kB / 0.5272 GB, free: 10.73 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001267/0.4591, allocations: 0.8703 MB / 0.5281 GB, free: 9.863 MB / 462.1 MB Notification: Performance of SimCode: time 7.32e-07/0.4591, allocations: 4 kB / 0.5281 GB, free: 9.859 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2769/0.736, allocations: 45.22 MB / 0.5722 GB, free: 102 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.98/13.71, allocations: 12.3 kB / 0.5723 GB, free: 102 MB / 462.1 MB (rm -f Modelica_4.1.0-beta.om_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_Inverter.pipe ; mkfifo Modelica_4.1.0-beta.om_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_Inverter.pipe ; head -c 1048576 < Modelica_4.1.0-beta.om_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_Inverter.pipe >> ../files/Modelica_4.1.0-beta.om_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_Inverter.sim & python3 -m fmpy simulate --output-file Modelica_4.1.0-beta.om_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_Inverter_res.csv --start-time 0 --stop-time 1.5 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0001 Modelica_4_1_0-beta_om_Modelica_Electrical_Machines_Examples_SynchronousMachines_SMPM_Inverter.fmu > Modelica_4.1.0-beta.om_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_Inverter.pipe 2>&1)