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.ComparisonPolyphase.SMPM_Inverter_Polyphase.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.ComparisonPolyphase.SMPM_Inverter_Polyphase,fileNamePrefix="Modelica_4_1_0-beta_om_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_ComparisonPolyphase_SMPM_Inverter_Polyphase",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.ComparisonPolyphase.SMPM_Inverter_Polyphase,fileNamePrefix="Modelica_4_1_0-beta_om_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_ComparisonPolyphase_SMPM_Inverter_Polyphase",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001319/0.001319, allocations: 117.6 kB / 17.78 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.001382/0.001382, allocations: 200.7 kB / 18.73 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.459/1.459, allocations: 227.7 MB / 247.2 MB, free: 10.19 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.002164/0.002164, allocations: 67.88 kB / 358.6 MB, free: 13.19 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3115/0.3136, allocations: 50.54 MB / 409.1 MB, free: 1.375 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.ComparisonPolyphase.SMPM_Inverter_Polyphase): time 0.03573/0.3494, allocations: 27.13 MB / 436.2 MB, free: 6.137 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.02028/0.3698, allocations: 7.514 MB / 443.8 MB, free: 14.6 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.006568/0.3764, allocations: 175.4 kB / 443.9 MB, free: 14.43 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.006821/0.3833, allocations: 1.777 MB / 445.7 MB, free: 12.64 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0107/0.394, allocations: 2.333 MB / 448 MB, free: 10.29 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.006581/0.4007, allocations: 1.558 MB / 449.6 MB, free: 8.734 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.01581/0.4165, allocations: 8.743 MB / 458.3 MB, free: 15.95 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.01641/0.433, allocations: 7.433 MB / 465.8 MB, free: 8.43 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.009581/0.4426, allocations: 4.062 MB / 469.8 MB, free: 4.355 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.01128/0.4539, allocations: 4.932 MB / 474.8 MB, free: 15.41 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 0.004894/0.4589, allocations: 1.137 MB / 475.9 MB, free: 14.27 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.006793/0.4657, allocations: 1.371 MB / 477.3 MB, free: 12.9 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.005482/0.4713, allocations: 2.548 MB / 479.8 MB, free: 10.34 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.01251/0.4838, allocations: 4.792 MB / 484.6 MB, free: 5.531 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.02643/0.5103, allocations: 14.96 MB / 499.6 MB, free: 6.516 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.584e-06/0.5104, allocations: 0 / 499.6 MB, free: 6.516 MB / 414.1 MB Notification: Performance of FrontEnd: time 2.495e-06/0.5104, allocations: 0 / 499.6 MB, free: 6.516 MB / 414.1 MB Notification: Performance of Transformations before backend: time 0.0005588/0.511, allocations: 0 / 499.6 MB, free: 6.516 MB / 414.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1932 * Number of variables: 1932 Notification: Performance of Generate backend data structure: time 0.03274/0.5437, allocations: 9.62 MB / 0.4973 GB, free: 12.79 MB / 430.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.48e-05/0.5438, allocations: 8.031 kB / 0.4973 GB, free: 12.78 MB / 430.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.003834/0.5476, allocations: 0.9882 MB / 0.4982 GB, free: 11.78 MB / 430.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0115/0.5592, allocations: 1.752 MB / 0.4999 GB, free: 10.02 MB / 430.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01383/0.5731, allocations: 5.177 MB / 0.505 GB, free: 4.773 MB / 430.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000732/0.5738, allocations: 0.5303 MB / 0.5055 GB, free: 4.242 MB / 430.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003223/0.5771, allocations: 0.7108 MB / 0.5062 GB, free: 3.531 MB / 430.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03079/0.6079, allocations: 9.801 MB / 0.5158 GB, free: 9.652 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003924/0.6084, allocations: 15.88 kB / 0.5158 GB, free: 9.637 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.00274/0.6111, allocations: 296 kB / 0.5161 GB, free: 9.348 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0004845/0.6116, allocations: 354.6 kB / 0.5164 GB, free: 9 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02374/0.6354, allocations: 8.33 MB / 0.5246 GB, free: 0.6602 MB / 446.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.5258/1.161, allocations: 30.58 MB / 0.5544 GB, free: 101 MB / 462.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01437/1.176, allocations: 17.25 MB / 0.5713 GB, free: 86 MB / 462.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.007125/1.183, allocations: 3.784 MB / 0.575 GB, free: 84.74 MB / 462.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01682/1.2, allocations: 9.312 MB / 0.5841 GB, free: 78.32 MB / 462.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.623e-05/1.2, allocations: 63.81 kB / 0.5841 GB, free: 78.26 MB / 462.1 MB Notification: Performance of pre-optimization done (n=281): time 4.909e-06/1.2, allocations: 0 / 0.5841 GB, free: 78.26 MB / 462.1 MB Notification: Performance of matching and sorting (n=289): time 0.02568/1.226, allocations: 12.51 MB / 0.5963 GB, free: 68.98 MB / 462.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.166e-05/1.226, allocations: 81.69 kB / 0.5964 GB, free: 68.88 MB / 462.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005828/1.231, allocations: 3.821 MB / 0.6001 GB, free: 65.07 MB / 462.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0005227/1.232, allocations: 77.7 kB / 0.6002 GB, free: 64.98 MB / 462.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.00186/1.234, allocations: 3.343 MB / 0.6035 GB, free: 62.07 MB / 462.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001078/1.235, allocations: 1.036 MB / 0.6045 GB, free: 61.05 MB / 462.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.00106/1.236, allocations: 0.6572 MB / 0.6051 GB, free: 60.39 MB / 462.1 MB Notification: Performance of setup shared object (initialization): time 4.4e-05/1.236, allocations: 301.1 kB / 0.6054 GB, free: 60.09 MB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002305/1.238, allocations: 1.538 MB / 0.6069 GB, free: 58.55 MB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002758/1.241, allocations: 2.687 MB / 0.6095 GB, free: 55.37 MB / 462.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.005573/1.247, allocations: 4.514 MB / 0.614 GB, free: 50.32 MB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.117e-05/1.247, allocations: 12 kB / 0.614 GB, free: 50.31 MB / 462.1 MB Notification: Performance of matching and sorting (n=476) (initialization): time 0.00921/1.256, allocations: 5.378 MB / 0.6192 GB, free: 44.86 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.856e-05/1.256, allocations: 20.75 kB / 0.6192 GB, free: 44.84 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.36e-05/1.256, allocations: 36 kB / 0.6193 GB, free: 44.8 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001363/1.258, allocations: 0.5709 MB / 0.6198 GB, free: 44.21 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003346/1.261, allocations: 0.8541 MB / 0.6207 GB, free: 43.36 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007179/1.268, allocations: 9.468 MB / 0.6299 GB, free: 33.33 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00392/1.272, allocations: 171.9 kB / 0.6301 GB, free: 33.16 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0007686/1.273, allocations: 172 kB / 0.6302 GB, free: 33 MB / 462.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 162 * 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 (446): * Single equations (assignments): 440 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 2 * Torn equation systems: 4 * 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): 4 systems {(1,1,100.0%), (1,8,100.0%), (1,1,100.0%), (3,16,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.004047/1.277, allocations: 2.148 MB / 0.6323 GB, free: 30.84 MB / 462.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001079/1.278, allocations: 433.2 kB / 0.6327 GB, free: 30.41 MB / 462.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.008475/1.287, allocations: 4.8 MB / 0.6374 GB, free: 25.5 MB / 462.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.504e-05/1.287, allocations: 31.94 kB / 0.6375 GB, free: 25.46 MB / 462.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.521e-05/1.287, allocations: 19.94 kB / 0.6375 GB, free: 25.45 MB / 462.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.274e-05/1.287, allocations: 15.94 kB / 0.6375 GB, free: 25.43 MB / 462.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01762/1.304, allocations: 11.03 MB / 0.6483 GB, free: 14.24 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.232e-05/1.304, allocations: 4 kB / 0.6483 GB, free: 14.24 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001787/1.306, allocations: 439.8 kB / 0.6487 GB, free: 13.81 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002386/1.309, allocations: 1.05 MB / 0.6497 GB, free: 12.74 MB / 462.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003402/1.309, allocations: 75.97 kB / 0.6498 GB, free: 12.66 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01802/1.327, allocations: 18.96 MB / 0.6683 GB, free: 8.742 MB / 478.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.682e-06/1.327, allocations: 7.938 kB / 0.6683 GB, free: 8.734 MB / 478.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01381/1.341, allocations: 6.89 MB / 0.675 GB, free: 1.629 MB / 478.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002618/1.344, allocations: 0.8577 MB / 0.6759 GB, free: 0.75 MB / 478.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001163/1.345, allocations: 67.98 kB / 0.6759 GB, free: 0.6836 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003976/1.349, allocations: 131.9 kB / 0.6761 GB, free: 0.5547 MB / 478.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0009919/1.35, allocations: 225.8 kB / 0.6763 GB, free: 340 kB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0005279/1.35, allocations: 91.91 kB / 0.6764 GB, free: 248 kB / 478.1 MB Notification: Performance of sorting global known variables: time 0.006092/1.356, allocations: 2.58 MB / 0.6789 GB, free: 13.65 MB / 494.1 MB Notification: Performance of sort global known variables: time 1.273e-06/1.357, allocations: 0 / 0.6789 GB, free: 13.65 MB / 494.1 MB Notification: Performance of remove unused functions: time 0.00601/1.363, allocations: 1.242 MB / 0.6801 GB, free: 12.41 MB / 494.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 18 * Number of states: 14 (vfController3.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,smpm3.inertiaRotor.w,smpm3.stator.core.Phi.re,smpm3.stator.core.Phi.im,smpm3.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter[2].Phi.re,smpm3.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter[2].Phi.im,loadInertiaM.phi,loadInertia3.phi,vfController.x) * 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 (217): * Single equations (assignments): 210 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 7 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 7 systems {(1,8,100.0%), (4,33,93.8%), (1,1,100.0%), (1,1,100.0%), (1,8,100.0%), (2,13,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.01415/1.377, allocations: 7.567 MB / 0.6875 GB, free: 4.621 MB / 494.1 MB Notification: Performance of simCode: created initialization part: time 0.009438/1.386, allocations: 4.554 MB / 0.6919 GB, free: 15.95 MB / 0.4982 GB Notification: Performance of simCode: created event and clocks part: time 1.674e-05/1.386, allocations: 4 kB / 0.692 GB, free: 15.95 MB / 0.4982 GB Notification: Performance of simCode: created simulation system equations: time 0.006314/1.393, allocations: 3.082 MB / 0.695 GB, free: 12.77 MB / 0.4982 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.007243/1.4, allocations: 1.179 MB / 0.6961 GB, free: 11.62 MB / 0.4982 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.3405/1.74, allocations: 43.27 MB / 0.7384 GB, free: 182.1 MB / 0.5294 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.005911/1.746, allocations: 4.413 MB / 0.7427 GB, free: 181.3 MB / 0.5294 GB Notification: Performance of simCode: alias equations: time 0.003171/1.75, allocations: 0.9029 MB / 0.7436 GB, free: 181.2 MB / 0.5294 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003375/1.753, allocations: 2.782 MB / 0.7463 GB, free: 180.3 MB / 0.5294 GB Notification: Performance of SimCode: time 1.102e-06/1.753, allocations: 3.875 kB / 0.7463 GB, free: 180.3 MB / 0.5294 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1801/1.933, allocations: 110.8 MB / 0.8545 GB, free: 82.92 MB / 0.5294 GB Notification: Performance of buildModelFMU: Generate platform static: time 19.89/21.82, allocations: 10.17 kB / 0.8545 GB, free: 82.91 MB / 0.5294 GB (rm -f Modelica_4.1.0-beta.om_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.ComparisonPolyphase.SMPM_Inverter_Polyphase.pipe ; mkfifo Modelica_4.1.0-beta.om_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.ComparisonPolyphase.SMPM_Inverter_Polyphase.pipe ; head -c 1048576 < Modelica_4.1.0-beta.om_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.ComparisonPolyphase.SMPM_Inverter_Polyphase.pipe >> ../files/Modelica_4.1.0-beta.om_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.ComparisonPolyphase.SMPM_Inverter_Polyphase.sim & python3 -m fmpy simulate --output-file Modelica_4.1.0-beta.om_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.ComparisonPolyphase.SMPM_Inverter_Polyphase_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_ComparisonPolyphase_SMPM_Inverter_Polyphase.fmu > Modelica_4.1.0-beta.om_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.ComparisonPolyphase.SMPM_Inverter_Polyphase.pipe 2>&1)