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.InductionMachines.ComparisonPolyphase.IMC_DOL_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.InductionMachines.ComparisonPolyphase.IMC_DOL_Polyphase,fileNamePrefix="Modelica_4_1_0-beta_om_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_InductionMachines_ComparisonPolyphase_IMC_DOL_Polyphase",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.InductionMachines.ComparisonPolyphase.IMC_DOL_Polyphase,fileNamePrefix="Modelica_4_1_0-beta_om_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_InductionMachines_ComparisonPolyphase_IMC_DOL_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.001533/0.001533, 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.00148/0.00148, allocations: 201.2 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.441/1.441, allocations: 227.7 MB / 247.2 MB, free: 10.17 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.001934/0.001934, allocations: 68.12 kB / 358.6 MB, free: 13.2 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2668/0.2688, allocations: 50.54 MB / 409.1 MB, free: 1.355 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.InductionMachines.ComparisonPolyphase.IMC_DOL_Polyphase): time 0.0289/0.2977, allocations: 25.38 MB / 434.5 MB, free: 7.867 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.01603/0.3138, allocations: 6.939 MB / 441.4 MB, free: 0.9062 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.005904/0.3198, allocations: 167.4 kB / 441.6 MB, free: 0.7422 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.005989/0.3258, allocations: 1.661 MB / 443.3 MB, free: 15.07 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.009432/0.3353, allocations: 2.256 MB / 445.5 MB, free: 12.8 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.005064/0.3404, allocations: 1.482 MB / 447 MB, free: 11.32 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.01397/0.3544, allocations: 10.06 MB / 457.1 MB, free: 1.227 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0122/0.3666, allocations: 9.052 MB / 466.1 MB, free: 8.062 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.008204/0.3749, allocations: 4.712 MB / 470.8 MB, free: 3.336 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.01114/0.386, allocations: 5.648 MB / 476.5 MB, free: 13.67 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 0.004024/0.3901, allocations: 1.312 MB / 477.8 MB, free: 12.36 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.005809/0.3959, allocations: 1.531 MB / 479.3 MB, free: 10.82 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.004629/0.4006, allocations: 2.961 MB / 482.3 MB, free: 7.855 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.01097/0.4116, allocations: 5.481 MB / 487.8 MB, free: 2.352 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.02433/0.436, allocations: 17.23 MB / 0.4931 GB, free: 1.066 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.374e-06/0.436, allocations: 0 / 0.4931 GB, free: 1.066 MB / 414.1 MB Notification: Performance of FrontEnd: time 1.903e-06/0.436, allocations: 0 / 0.4931 GB, free: 1.066 MB / 414.1 MB Notification: Performance of Transformations before backend: time 0.0005519/0.4366, allocations: 0 / 0.4931 GB, free: 1.066 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: 2135 * Number of variables: 2135 Notification: Performance of Generate backend data structure: time 0.03815/0.4748, allocations: 10.97 MB / 0.5039 GB, free: 5.977 MB / 430.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.011e-05/0.4748, allocations: 12.03 kB / 0.5039 GB, free: 5.965 MB / 430.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.004403/0.4793, allocations: 1.099 MB / 0.5049 GB, free: 4.855 MB / 430.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01294/0.4922, allocations: 2.118 MB / 0.507 GB, free: 2.73 MB / 430.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.014/0.5063, allocations: 6.055 MB / 0.5129 GB, free: 12.61 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0007361/0.507, allocations: 0.5979 MB / 0.5135 GB, free: 12.01 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003009/0.5101, allocations: 0.785 MB / 0.5143 GB, free: 11.22 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02692/0.537, allocations: 11.35 MB / 0.5254 GB, free: 15.76 MB / 462.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002051/0.5373, allocations: 7.953 kB / 0.5254 GB, free: 15.75 MB / 462.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001283/0.5385, allocations: 335.9 kB / 0.5257 GB, free: 15.43 MB / 462.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0003768/0.5389, allocations: 376.2 kB / 0.526 GB, free: 15.05 MB / 462.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0218/0.5607, allocations: 9.921 MB / 0.5357 GB, free: 5.109 MB / 462.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.4739/1.035, allocations: 34.35 MB / 0.5693 GB, free: 94.7 MB / 462.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01834/1.053, allocations: 21.08 MB / 0.5899 GB, free: 74.44 MB / 462.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.007712/1.061, allocations: 4.432 MB / 0.5942 GB, free: 70.03 MB / 462.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01887/1.08, allocations: 10.65 MB / 0.6046 GB, free: 59.36 MB / 462.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.777e-05/1.08, allocations: 65.08 kB / 0.6047 GB, free: 59.29 MB / 462.1 MB Notification: Performance of pre-optimization done (n=319): time 6.101e-06/1.08, allocations: 4 kB / 0.6047 GB, free: 59.29 MB / 462.1 MB Notification: Performance of matching and sorting (n=325): time 0.03462/1.114, allocations: 15.9 MB / 0.6202 GB, free: 43.36 MB / 462.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.538e-05/1.115, allocations: 93.91 kB / 0.6203 GB, free: 43.25 MB / 462.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00784/1.122, allocations: 4.588 MB / 0.6248 GB, free: 38.68 MB / 462.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0005818/1.123, allocations: 85.64 kB / 0.6248 GB, free: 38.59 MB / 462.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002286/1.125, allocations: 3.702 MB / 0.6285 GB, free: 35.36 MB / 462.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001136/1.127, allocations: 1.149 MB / 0.6296 GB, free: 34.27 MB / 462.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001711/1.128, allocations: 0.7086 MB / 0.6303 GB, free: 33.55 MB / 462.1 MB Notification: Performance of setup shared object (initialization): time 4.021e-05/1.128, allocations: 301.1 kB / 0.6306 GB, free: 33.26 MB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002898/1.131, allocations: 1.885 MB / 0.6324 GB, free: 31.37 MB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003323/1.135, allocations: 2.987 MB / 0.6353 GB, free: 27.93 MB / 462.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00641/1.141, allocations: 5.115 MB / 0.6403 GB, free: 22.32 MB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.837e-05/1.141, allocations: 8 kB / 0.6403 GB, free: 22.32 MB / 462.1 MB Notification: Performance of matching and sorting (n=502) (initialization): time 0.01275/1.154, allocations: 6.453 MB / 0.6466 GB, free: 15.79 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.647e-05/1.154, allocations: 20.78 kB / 0.6466 GB, free: 15.77 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.366e-05/1.154, allocations: 32 kB / 0.6467 GB, free: 15.73 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002716/1.157, allocations: 1.03 MB / 0.6477 GB, free: 14.68 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003418/1.16, allocations: 0.8189 MB / 0.6485 GB, free: 13.86 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01617/1.176, allocations: 17.9 MB / 0.666 GB, free: 10.99 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004002/1.18, allocations: 175.8 kB / 0.6661 GB, free: 10.82 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0008646/1.181, allocations: 172 kB / 0.6663 GB, free: 10.65 MB / 478.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 150 * Number of states: 0 () * Number of discrete variables: 8 (idealCloser3.control[3],idealCloser3.control[2],idealCloser3.control[1],idealCloserM.control[5],idealCloserM.control[4],idealCloserM.control[3],idealCloserM.control[2],idealCloserM.control[1]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (434): * Single equations (assignments): 425 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 2 * Torn equation systems: 7 * 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): 7 systems {(1,8,100.0%), (1,1,100.0%), (3,23,100.0%), (1,1,100.0%), (1,2,100.0%), (1,2,100.0%), (4,24,93.8%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.006233/1.188, allocations: 2.606 MB / 0.6688 GB, free: 8.035 MB / 478.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001701/1.189, allocations: 0.4891 MB / 0.6693 GB, free: 7.543 MB / 478.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01342/1.203, allocations: 6 MB / 0.6752 GB, free: 1.426 MB / 478.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.04e-05/1.203, allocations: 28 kB / 0.6752 GB, free: 1.398 MB / 478.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.269e-05/1.203, allocations: 20 kB / 0.6752 GB, free: 1.379 MB / 478.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.656e-05/1.203, allocations: 23.88 kB / 0.6752 GB, free: 1.355 MB / 478.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02971/1.233, allocations: 13.2 MB / 0.6881 GB, free: 3.949 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.44e-05/1.233, allocations: 7.938 kB / 0.6881 GB, free: 3.941 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001981/1.235, allocations: 379.9 kB / 0.6885 GB, free: 3.57 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.00522/1.24, allocations: 1.622 MB / 0.6901 GB, free: 1.926 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0007242/1.241, allocations: 91.95 kB / 0.6902 GB, free: 1.836 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.03654/1.277, allocations: 27.91 MB / 0.7174 GB, free: 4.672 MB / 0.5138 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.082e-05/1.277, allocations: 15.88 kB / 0.7174 GB, free: 4.656 MB / 0.5138 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01707/1.294, allocations: 8.586 MB / 0.7258 GB, free: 11.86 MB / 0.5294 GB Notification: Performance of postOpt removeConstants (simulation): time 0.003008/1.297, allocations: 1.013 MB / 0.7268 GB, free: 10.83 MB / 0.5294 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001462/1.299, allocations: 83.92 kB / 0.7269 GB, free: 10.75 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003192/1.302, allocations: 159.9 kB / 0.7271 GB, free: 10.59 MB / 0.5294 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001175/1.303, allocations: 325.8 kB / 0.7274 GB, free: 10.27 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0004523/1.304, allocations: 95.97 kB / 0.7275 GB, free: 10.18 MB / 0.5294 GB Notification: Performance of sorting global known variables: time 0.007438/1.311, allocations: 3.14 MB / 0.7305 GB, free: 7.039 MB / 0.5294 GB Notification: Performance of sort global known variables: time 9.52e-07/1.311, allocations: 0 / 0.7305 GB, free: 7.039 MB / 0.5294 GB Notification: Performance of remove unused functions: time 0.008836/1.32, allocations: 1.473 MB / 0.732 GB, free: 5.566 MB / 0.5294 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 17 * Number of states: 12 (aimcM.inertiaRotor.w,aimcM.stator.core.Phi.re,aimcM.stator.core.Phi.im,aimcM.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter[5].Phi.re,aimcM.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter[5].Phi.im,quadraticLoadTorqueM.phi,aimc3.inertiaRotor.w,aimc3.stator.core.Phi.re,aimc3.stator.core.Phi.im,aimc3.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter[3].Phi.re,aimc3.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter[3].Phi.im,quadraticLoadTorque3.phi) * Number of discrete variables: 8 (idealCloserM.control[1],idealCloserM.control[2],idealCloserM.control[3],idealCloserM.control[4],idealCloserM.control[5],idealCloser3.control[1],idealCloser3.control[2],idealCloser3.control[3]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (194): * Single equations (assignments): 185 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 9 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 9 systems {(1,1,100.0%), (1,8,100.0%), (1,8,100.0%), (1,13,100.0%), (2,12,100.0%), (1,1,100.0%), (6,46,88.9%), (3,23,100.0%), (2,12,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.01867/1.339, allocations: 9.299 MB / 0.741 GB, free: 12.05 MB / 0.545 GB Notification: Performance of simCode: created initialization part: time 0.0112/1.35, allocations: 5.874 MB / 0.7468 GB, free: 6.023 MB / 0.545 GB Notification: Performance of simCode: created event and clocks part: time 1.177e-05/1.35, allocations: 4.188 kB / 0.7468 GB, free: 6.02 MB / 0.545 GB Notification: Performance of simCode: created simulation system equations: time 0.008324/1.358, allocations: 4.234 MB / 0.7509 GB, free: 1.664 MB / 0.545 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.009338/1.368, allocations: 1.321 MB / 0.7522 GB, free: 376 kB / 0.545 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.3427/1.711, allocations: 51.73 MB / 0.8027 GB, free: 165 MB / 0.545 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.007574/1.718, allocations: 5.154 MB / 0.8078 GB, free: 159.8 MB / 0.545 GB Notification: Performance of simCode: alias equations: time 0.003834/1.722, allocations: 1.031 MB / 0.8088 GB, free: 158.8 MB / 0.545 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.004599/1.727, allocations: 3.092 MB / 0.8118 GB, free: 155.7 MB / 0.545 GB Notification: Performance of SimCode: time 1.723e-06/1.727, allocations: 0 / 0.8118 GB, free: 155.7 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2206/1.947, allocations: 131.6 MB / 0.9403 GB, free: 25.09 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate platform static: time 21.17/23.12, allocations: 14.62 kB / 0.9403 GB, free: 25.07 MB / 0.545 GB (rm -f Modelica_4.1.0-beta.om_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.InductionMachines.ComparisonPolyphase.IMC_DOL_Polyphase.pipe ; mkfifo Modelica_4.1.0-beta.om_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.InductionMachines.ComparisonPolyphase.IMC_DOL_Polyphase.pipe ; head -c 1048576 < Modelica_4.1.0-beta.om_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.InductionMachines.ComparisonPolyphase.IMC_DOL_Polyphase.pipe >> ../files/Modelica_4.1.0-beta.om_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.InductionMachines.ComparisonPolyphase.IMC_DOL_Polyphase.sim & python3 -m fmpy simulate --output-file Modelica_4.1.0-beta.om_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.InductionMachines.ComparisonPolyphase.IMC_DOL_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_InductionMachines_ComparisonPolyphase_IMC_DOL_Polyphase.fmu > Modelica_4.1.0-beta.om_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.InductionMachines.ComparisonPolyphase.IMC_DOL_Polyphase.pipe 2>&1)