Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0-beta.om_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_withLosses.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.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_withLosses,fileNamePrefix="Modelica_4_1_0-beta_om_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_InductionMachines_IMC_withLosses",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_withLosses,fileNamePrefix="Modelica_4_1_0-beta_om_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_InductionMachines_IMC_withLosses",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001784/0.001784, allocations: 122.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.002321/0.002321, allocations: 202 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.476/1.476, allocations: 227.7 MB / 247.2 MB, free: 10.22 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.001926/0.001926, allocations: 67.89 kB / 358.6 MB, free: 13.23 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2688/0.2708, allocations: 50.55 MB / 409.1 MB, free: 1.398 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_withLosses): time 0.02863/0.2994, allocations: 24.89 MB / 434 MB, free: 8.402 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.0187/0.3182, allocations: 8.046 MB / 442.1 MB, free: 332 kB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.005164/0.3234, allocations: 183.4 kB / 442.2 MB, free: 148 kB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.02013/0.3436, allocations: 8.369 MB / 450.6 MB, free: 7.758 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0117/0.3553, allocations: 3.019 MB / 453.6 MB, free: 4.73 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.006616/0.362, allocations: 1.83 MB / 455.5 MB, free: 2.902 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.01748/0.3795, allocations: 11.21 MB / 466.7 MB, free: 7.664 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.03957/0.4191, allocations: 23.33 MB / 490 MB, free: 168 kB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.01056/0.4297, allocations: 5.907 MB / 495.9 MB, free: 10.24 MB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.01179/0.4415, allocations: 6.479 MB / 0.4906 GB, free: 3.738 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 0.004764/0.4463, allocations: 1.715 MB / 0.4923 GB, free: 2.023 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.006605/0.4529, allocations: 2.152 MB / 0.4944 GB, free: 15.88 MB / 430.1 MB Notification: Performance of NFScalarize.scalarize: time 0.005529/0.4585, allocations: 3.398 MB / 0.4977 GB, free: 12.47 MB / 430.1 MB Notification: Performance of NFVerifyModel.verify: time 0.01158/0.4701, allocations: 6.35 MB / 0.5039 GB, free: 6.094 MB / 430.1 MB Notification: Performance of NFConvertDAE.convert: time 0.03191/0.502, allocations: 23.19 MB / 0.5266 GB, free: 14.82 MB / 462.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.124e-06/0.5021, allocations: 0 / 0.5266 GB, free: 14.82 MB / 462.1 MB Notification: Performance of FrontEnd: time 1.943e-06/0.5021, allocations: 4 kB / 0.5266 GB, free: 14.82 MB / 462.1 MB Notification: Performance of Transformations before backend: time 0.0006591/0.5028, allocations: 0 / 0.5266 GB, free: 14.82 MB / 462.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 2685 * Number of variables: 2685 Notification: Performance of Generate backend data structure: time 0.0447/0.5475, allocations: 13.64 MB / 0.5399 GB, free: 1.062 MB / 462.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.962e-05/0.5475, allocations: 8.031 kB / 0.5399 GB, free: 1.055 MB / 462.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.4281/0.9756, allocations: 1.609 MB / 0.5415 GB, free: 110.4 MB / 462.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.03545/1.011, allocations: 6.257 MB / 0.5476 GB, free: 109.8 MB / 462.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01317/1.024, allocations: 7.298 MB / 0.5547 GB, free: 105.4 MB / 462.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0006354/1.025, allocations: 0.7187 MB / 0.5554 GB, free: 105.1 MB / 462.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003998/1.029, allocations: 0.9489 MB / 0.5563 GB, free: 104.8 MB / 462.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03852/1.068, allocations: 16.2 MB / 0.5721 GB, free: 90.44 MB / 462.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0004694/1.068, allocations: 19.88 kB / 0.5722 GB, free: 90.42 MB / 462.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.003386/1.071, allocations: 399.4 kB / 0.5725 GB, free: 90.04 MB / 462.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0005597/1.072, allocations: 0.5632 MB / 0.5731 GB, free: 89.48 MB / 462.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03029/1.102, allocations: 15.16 MB / 0.5879 GB, free: 74.3 MB / 462.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.08551/1.188, allocations: 52.73 MB / 0.6394 GB, free: 21.09 MB / 462.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01706/1.205, allocations: 20.12 MB / 0.659 GB, free: 15.01 MB / 478.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.007035/1.212, allocations: 3.641 MB / 0.6626 GB, free: 11.36 MB / 478.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0007658/1.213, allocations: 294.5 kB / 0.6629 GB, free: 11.04 MB / 478.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000111/1.213, allocations: 82.06 kB / 0.663 GB, free: 10.95 MB / 478.1 MB Notification: Performance of pre-optimization done (n=447): time 1.116e-05/1.213, allocations: 0 / 0.663 GB, free: 10.95 MB / 478.1 MB Notification: Performance of matching and sorting (n=452): time 0.06061/1.274, allocations: 20.82 MB / 0.6833 GB, free: 6.234 MB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.474e-05/1.274, allocations: 98.95 kB / 0.6834 GB, free: 6.125 MB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.008542/1.282, allocations: 4.514 MB / 0.6878 GB, free: 1.59 MB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0008373/1.283, allocations: 101.7 kB / 0.6879 GB, free: 1.484 MB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.003941/1.287, allocations: 4.349 MB / 0.6921 GB, free: 13.09 MB / 0.4982 GB Notification: Performance of collectInitialBindings (initialization): time 0.002377/1.29, allocations: 1.615 MB / 0.6937 GB, free: 11.46 MB / 0.4982 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.003763/1.293, allocations: 1.212 MB / 0.6949 GB, free: 10.24 MB / 0.4982 GB Notification: Performance of setup shared object (initialization): time 0.0001251/1.293, allocations: 301.1 kB / 0.6952 GB, free: 9.945 MB / 0.4982 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.006731/1.3, allocations: 3.073 MB / 0.6982 GB, free: 6.867 MB / 0.4982 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.008272/1.308, allocations: 5.219 MB / 0.7033 GB, free: 0.6758 MB / 0.4982 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01571/1.324, allocations: 8.895 MB / 0.712 GB, free: 6.809 MB / 0.5138 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.886e-05/1.324, allocations: 20 kB / 0.712 GB, free: 6.789 MB / 0.5138 GB Notification: Performance of matching and sorting (n=794) (initialization): time 0.02317/1.348, allocations: 9.903 MB / 0.7216 GB, free: 12.87 MB / 0.5294 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001004/1.348, allocations: 38.97 kB / 0.7217 GB, free: 12.83 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001389/1.348, allocations: 71.98 kB / 0.7218 GB, free: 12.76 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.004392/1.352, allocations: 1.403 MB / 0.7231 GB, free: 11.35 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006091/1.358, allocations: 1.396 MB / 0.7245 GB, free: 9.949 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02134/1.38, allocations: 12.68 MB / 0.7369 GB, free: 12.99 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005278/1.385, allocations: 355.6 kB / 0.7372 GB, free: 12.64 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001435/1.387, allocations: 296 kB / 0.7375 GB, free: 12.36 MB / 0.545 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 313 * 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 (720): * Single equations (assignments): 717 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 1 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(1,6,100.0%), (14,54,45.9%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.008416/1.395, allocations: 3.884 MB / 0.7413 GB, free: 8.457 MB / 0.545 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001648/1.397, allocations: 480.9 kB / 0.7417 GB, free: 7.984 MB / 0.545 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.2862/1.683, allocations: 8.513 MB / 0.7501 GB, free: 184.5 MB / 0.545 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.01101/1.694, allocations: 6.274 MB / 0.7562 GB, free: 183.5 MB / 0.545 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.163e-05/1.694, allocations: 11.72 kB / 0.7562 GB, free: 183.5 MB / 0.545 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.108e-05/1.694, allocations: 26.67 kB / 0.7562 GB, free: 183.5 MB / 0.545 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02976/1.724, allocations: 17.45 MB / 0.7733 GB, free: 176.5 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.14e-05/1.724, allocations: 11.88 kB / 0.7733 GB, free: 176.5 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003127/1.727, allocations: 0.8168 MB / 0.7741 GB, free: 176.4 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.003764/1.731, allocations: 1.286 MB / 0.7753 GB, free: 176.2 MB / 0.545 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0006592/1.731, allocations: 105.7 kB / 0.7754 GB, free: 176.1 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01354/1.745, allocations: 11.57 MB / 0.7867 GB, free: 169.2 MB / 0.545 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.774e-06/1.745, allocations: 14.78 kB / 0.7867 GB, free: 169.2 MB / 0.545 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01597/1.761, allocations: 11.25 MB / 0.7977 GB, free: 160.6 MB / 0.545 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002559/1.764, allocations: 1.115 MB / 0.7988 GB, free: 159.8 MB / 0.545 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.00105/1.765, allocations: 88 kB / 0.7989 GB, free: 159.7 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002724/1.767, allocations: 230.5 kB / 0.7991 GB, free: 159.4 MB / 0.545 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0007276/1.768, allocations: 334.9 kB / 0.7994 GB, free: 159.1 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002829/1.768, allocations: 144 kB / 0.7996 GB, free: 159 MB / 0.545 GB Notification: Performance of sorting global known variables: time 0.004835/1.773, allocations: 3.115 MB / 0.8026 GB, free: 155.9 MB / 0.545 GB Notification: Performance of sort global known variables: time 3.61e-07/1.773, allocations: 3.281 kB / 0.8026 GB, free: 155.9 MB / 0.545 GB Notification: Performance of remove unused functions: time 0.0072/1.78, allocations: 1.728 MB / 0.8043 GB, free: 154.1 MB / 0.545 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 34 * Number of states: 4 (imcQS.inertiaRotor.w,imcQS.rotorCage.port_p.reference.gamma,loadInertiaQS.phi,PIQS.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 (417): * Single equations (assignments): 414 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 1 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(1,6,100.0%), (14,54,43.4%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.01688/1.797, allocations: 12.26 MB / 0.8163 GB, free: 142.1 MB / 0.545 GB Notification: Performance of simCode: created initialization part: time 0.01252/1.81, allocations: 8.003 MB / 0.8241 GB, free: 134.1 MB / 0.545 GB Notification: Performance of simCode: created event and clocks part: time 1.341e-05/1.81, allocations: 0 / 0.8241 GB, free: 134.1 MB / 0.545 GB Notification: Performance of simCode: created simulation system equations: time 0.006676/1.817, allocations: 3.949 MB / 0.828 GB, free: 130.2 MB / 0.545 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.007015/1.824, allocations: 1.059 MB / 0.829 GB, free: 129.1 MB / 0.545 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1065/1.93, allocations: 60.86 MB / 0.8884 GB, free: 65.73 MB / 0.545 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00729/1.938, allocations: 6.513 MB / 0.8948 GB, free: 59.18 MB / 0.545 GB Notification: Performance of simCode: alias equations: time 0.006931/1.945, allocations: 2.119 MB / 0.8968 GB, free: 57.05 MB / 0.545 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.006648/1.951, allocations: 3.584 MB / 0.9003 GB, free: 53.47 MB / 0.545 GB Notification: Performance of SimCode: time 1.052e-06/1.951, allocations: 4 kB / 0.9004 GB, free: 53.46 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.4651/2.416, allocations: 138.3 MB / 1.035 GB, free: 119 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate platform static: time 21.39/23.81, allocations: 4.141 kB / 1.035 GB, free: 119 MB / 0.545 GB (rm -f Modelica_4.1.0-beta.om_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_withLosses.pipe ; mkfifo Modelica_4.1.0-beta.om_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_withLosses.pipe ; head -c 1048576 < Modelica_4.1.0-beta.om_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_withLosses.pipe >> ../files/Modelica_4.1.0-beta.om_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_withLosses.sim & python3 -m fmpy simulate --output-file Modelica_4.1.0-beta.om_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_withLosses_res.csv --start-time 0 --stop-time 10 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0001 Modelica_4_1_0-beta_om_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_InductionMachines_IMC_withLosses.fmu > Modelica_4.1.0-beta.om_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_withLosses.pipe 2>&1)