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_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.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Inverter,fileNamePrefix="Modelica_4_1_0-beta_om_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_SMPM_Inverter",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Inverter,fileNamePrefix="Modelica_4_1_0-beta_om_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_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.001787/0.001787, allocations: 121.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.002112/0.002112, allocations: 204.7 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.487/1.487, allocations: 227.7 MB / 247.2 MB, free: 10.24 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.002171/0.002171, allocations: 67.89 kB / 358.6 MB, free: 13.24 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3231/0.3253, allocations: 50.53 MB / 409.1 MB, free: 1.387 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Inverter): time 0.02657/0.3519, allocations: 22.39 MB / 431.5 MB, free: 10.9 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.01501/0.367, allocations: 6.654 MB / 438.1 MB, free: 4.227 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.005137/0.3721, allocations: 143.4 kB / 438.3 MB, free: 4.086 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.005191/0.3774, allocations: 1.506 MB / 439.8 MB, free: 2.57 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.009858/0.3873, allocations: 2.038 MB / 441.8 MB, free: 0.5195 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.005797/0.3931, allocations: 1.333 MB / 443.1 MB, free: 15.19 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.01272/0.4058, allocations: 6.562 MB / 449.7 MB, free: 8.59 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.01177/0.4177, allocations: 5.602 MB / 455.3 MB, free: 2.906 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.006963/0.4247, allocations: 2.998 MB / 458.3 MB, free: 15.9 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.008241/0.4329, allocations: 3.686 MB / 462 MB, free: 12.2 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.003369/0.4363, allocations: 0.8164 MB / 462.8 MB, free: 11.38 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004934/0.4413, allocations: 1.121 MB / 463.9 MB, free: 10.26 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.004102/0.4454, allocations: 2.03 MB / 466 MB, free: 8.227 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.008971/0.4544, allocations: 3.547 MB / 469.5 MB, free: 4.664 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.02002/0.4745, allocations: 10.86 MB / 480.4 MB, free: 9.762 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.268e-06/0.4745, allocations: 7.938 kB / 480.4 MB, free: 9.754 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.272e-06/0.4745, allocations: 0 / 480.4 MB, free: 9.754 MB / 398.1 MB Notification: Performance of Transformations before backend: time 0.0004467/0.475, allocations: 0 / 480.4 MB, free: 9.754 MB / 398.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1413 * Number of variables: 1413 Notification: Performance of Generate backend data structure: time 0.02525/0.5002, allocations: 7.11 MB / 487.5 MB, free: 2.555 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.277e-05/0.5003, allocations: 8.031 kB / 487.5 MB, free: 2.547 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.002713/0.503, allocations: 0.7445 MB / 488.2 MB, free: 1.793 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005641/0.5087, allocations: 1.078 MB / 489.3 MB, free: 0.7109 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.009246/0.5179, allocations: 3.791 MB / 493.1 MB, free: 12.85 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004159/0.5184, allocations: 406.9 kB / 493.5 MB, free: 12.45 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001451/0.5198, allocations: 0.5273 MB / 494 MB, free: 11.92 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01594/0.5358, allocations: 7.067 MB / 0.4894 GB, free: 4.781 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001294/0.536, allocations: 7.953 kB / 0.4894 GB, free: 4.773 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0005602/0.5365, allocations: 227.9 kB / 0.4896 GB, free: 4.551 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002992/0.5368, allocations: 258.6 kB / 0.4898 GB, free: 4.297 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01278/0.5496, allocations: 5.952 MB / 0.4956 GB, free: 14.34 MB / 430.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04514/0.5948, allocations: 22.39 MB / 0.5175 GB, free: 7.344 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01061/0.6054, allocations: 8.565 MB / 0.5259 GB, free: 13.84 MB / 462.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00475/0.6102, allocations: 2.273 MB / 0.5281 GB, free: 11.55 MB / 462.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01219/0.6224, allocations: 6.452 MB / 0.5344 GB, free: 4.906 MB / 462.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.306e-05/0.6225, allocations: 64.5 kB / 0.5345 GB, free: 4.832 MB / 462.1 MB Notification: Performance of pre-optimization done (n=220): time 4.469e-06/0.6226, allocations: 0 / 0.5345 GB, free: 4.832 MB / 462.1 MB Notification: Performance of matching and sorting (n=240): time 0.2751/0.8977, allocations: 11.18 MB / 0.5454 GB, free: 118.6 MB / 462.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.235e-05/0.8978, allocations: 77.12 kB / 0.5455 GB, free: 118.5 MB / 462.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004511/0.9023, allocations: 3.176 MB / 0.5486 GB, free: 117.4 MB / 462.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0003299/0.9026, allocations: 65.52 kB / 0.5486 GB, free: 117.3 MB / 462.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001362/0.904, allocations: 2.582 MB / 0.5511 GB, free: 115.6 MB / 462.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0006944/0.9047, allocations: 0.8662 MB / 0.552 GB, free: 115.1 MB / 462.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0007677/0.9055, allocations: 0.5636 MB / 0.5525 GB, free: 114.8 MB / 462.1 MB Notification: Performance of setup shared object (initialization): time 4.321e-05/0.9055, allocations: 301.1 kB / 0.5528 GB, free: 114.5 MB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001919/0.9074, allocations: 1.336 MB / 0.5541 GB, free: 114 MB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00233/0.9098, allocations: 2.341 MB / 0.5564 GB, free: 112.3 MB / 462.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004328/0.9141, allocations: 3.922 MB / 0.5602 GB, free: 109.7 MB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.736e-05/0.9142, allocations: 7.75 kB / 0.5603 GB, free: 109.7 MB / 462.1 MB Notification: Performance of matching and sorting (n=406) (initialization): time 0.006996/0.9212, allocations: 4.756 MB / 0.5649 GB, free: 107 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.292e-05/0.9212, allocations: 20.03 kB / 0.5649 GB, free: 107 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.198e-05/0.9213, allocations: 32 kB / 0.565 GB, free: 107 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001082/0.9224, allocations: 0.5425 MB / 0.5655 GB, free: 106.5 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00239/0.9248, allocations: 0.7426 MB / 0.5662 GB, free: 105.9 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006903/0.9317, allocations: 10.45 MB / 0.5764 GB, free: 94.99 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002975/0.9347, allocations: 196.2 kB / 0.5766 GB, free: 94.8 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003697/0.9351, allocations: 144 kB / 0.5767 GB, free: 94.66 MB / 462.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 144 * 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 (377): * Single equations (assignments): 370 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 2 * Torn equation systems: 5 * 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): 5 systems {(3,12,100.0%), (1,6,100.0%), (1,1,100.0%), (1,1,100.0%), (1,5,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.002772/0.9379, allocations: 1.569 MB / 0.5783 GB, free: 93.09 MB / 462.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0009028/0.9388, allocations: 361.7 kB / 0.5786 GB, free: 92.73 MB / 462.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00588/0.9447, allocations: 4.092 MB / 0.5826 GB, free: 88.55 MB / 462.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.399e-05/0.9447, allocations: 23.17 kB / 0.5826 GB, free: 88.53 MB / 462.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.224e-05/0.9447, allocations: 12 kB / 0.5826 GB, free: 88.52 MB / 462.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.163e-05/0.9447, allocations: 12.05 kB / 0.5827 GB, free: 88.5 MB / 462.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01287/0.9576, allocations: 8.994 MB / 0.5914 GB, free: 79.37 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.069e-05/0.9577, allocations: 4.594 kB / 0.5914 GB, free: 79.36 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001604/0.9593, allocations: 414.2 kB / 0.5918 GB, free: 78.96 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.00172/0.961, allocations: 0.7487 MB / 0.5926 GB, free: 78.19 MB / 462.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001671/0.9612, allocations: 73.98 kB / 0.5926 GB, free: 78.12 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01119/0.9724, allocations: 16.9 MB / 0.6091 GB, free: 60.13 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.42e-06/0.9724, allocations: 11.84 kB / 0.6092 GB, free: 60.12 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.008289/0.9807, allocations: 5.896 MB / 0.6149 GB, free: 54.07 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001843/0.9826, allocations: 0.7133 MB / 0.6156 GB, free: 53.34 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0007971/0.9834, allocations: 63.98 kB / 0.6157 GB, free: 53.27 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001659/0.9851, allocations: 136.8 kB / 0.6158 GB, free: 53.14 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004114/0.9855, allocations: 181.6 kB / 0.616 GB, free: 52.96 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001306/0.9857, allocations: 67.98 kB / 0.616 GB, free: 52.9 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.00285/0.9885, allocations: 2.139 MB / 0.6181 GB, free: 50.77 MB / 462.1 MB Notification: Performance of sort global known variables: time 9.72e-07/0.9885, allocations: 0 / 0.6181 GB, free: 50.77 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.003737/0.9923, allocations: 1.004 MB / 0.6191 GB, free: 49.77 MB / 462.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 20 * Number of states: 13 (vfController.x,smpmM.inertiaRotor.w,smpmM.stator.core.Phi.re,smpmM.stator.core.Phi.im,smpmM.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter[2].Phi.re,smpmM.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter[2].Phi.im,smpmE.inertiaRotor.w,smpmE.idq_sr[1],smpmE.idq_sr[2],smpmE.idq_rr[2],smpmE.idq_dr[1],loadInertiaM.phi,loadInertiaE.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 (198): * Single equations (assignments): 190 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 8 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 8 systems {(1,5,100.0%), (3,12,100.0%), (1,6,100.0%), (1,1,100.0%), (2,1,100.0%), (1,1,100.0%), (1,8,100.0%), (2,13,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.008175/1, allocations: 6.602 MB / 0.6256 GB, free: 43 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.00772/1.008, allocations: 4.171 MB / 0.6296 GB, free: 38.73 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 8.366e-06/1.008, allocations: 448 / 0.6296 GB, free: 38.73 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.005222/1.014, allocations: 2.784 MB / 0.6323 GB, free: 35.85 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005498/1.019, allocations: 0.9738 MB / 0.6333 GB, free: 34.9 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.073/1.092, allocations: 35.69 MB / 0.6682 GB, free: 13.78 MB / 478.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00739/1.099, allocations: 3.416 MB / 0.6715 GB, free: 10.33 MB / 478.1 MB Notification: Performance of simCode: alias equations: time 0.00466/1.104, allocations: 0.8035 MB / 0.6723 GB, free: 9.523 MB / 478.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.004984/1.109, allocations: 2.116 MB / 0.6743 GB, free: 7.406 MB / 478.1 MB Notification: Performance of SimCode: time 1.192e-06/1.109, allocations: 0 / 0.6743 GB, free: 7.406 MB / 478.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.4343/1.544, allocations: 88.44 MB / 0.7607 GB, free: 181.4 MB / 0.5294 GB Notification: Performance of buildModelFMU: Generate platform static: time 17.77/19.31, allocations: 17.98 kB / 0.7607 GB, free: 181.4 MB / 0.5294 GB (rm -f Modelica_4.1.0-beta.om_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Inverter.pipe ; mkfifo Modelica_4.1.0-beta.om_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Inverter.pipe ; head -c 1048576 < Modelica_4.1.0-beta.om_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Inverter.pipe >> ../files/Modelica_4.1.0-beta.om_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Inverter.sim & python3 -m fmpy simulate --output-file Modelica_4.1.0-beta.om_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.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_Magnetic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_SMPM_Inverter.fmu > Modelica_4.1.0-beta.om_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Inverter.pipe 2>&1)