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.SMEE_Generator.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.SMEE_Generator,fileNamePrefix="Modelica_4_1_0-beta_om_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_SMEE_Generator",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMEE_Generator,fileNamePrefix="Modelica_4_1_0-beta_om_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_SMEE_Generator",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001622/0.001622, allocations: 121.1 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.001917/0.001917, allocations: 204.6 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.519/1.519, allocations: 227.7 MB / 247.2 MB, free: 10.18 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.002714/0.002714, allocations: 67.89 kB / 358.6 MB, free: 13.22 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2873/0.2901, allocations: 50.54 MB / 409.1 MB, free: 1.363 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMEE_Generator): time 0.0297/0.3199, allocations: 24.75 MB / 433.9 MB, free: 8.508 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.01796/0.3379, allocations: 7.404 MB / 441.3 MB, free: 1.078 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.005492/0.3434, allocations: 143.5 kB / 441.4 MB, free: 0.9375 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.006075/0.3496, allocations: 1.595 MB / 443 MB, free: 15.33 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.008991/0.3586, allocations: 2.267 MB / 445.3 MB, free: 13.05 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00517/0.3638, allocations: 1.492 MB / 446.7 MB, free: 11.56 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.01229/0.3761, allocations: 7.255 MB / 454 MB, free: 4.277 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.01132/0.3875, allocations: 5.566 MB / 459.6 MB, free: 14.62 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.007066/0.3946, allocations: 3.208 MB / 462.8 MB, free: 11.41 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.009209/0.4039, allocations: 3.958 MB / 466.7 MB, free: 7.434 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.003429/0.4074, allocations: 0.8711 MB / 467.6 MB, free: 6.562 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.005025/0.4124, allocations: 1.296 MB / 468.9 MB, free: 5.266 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.003869/0.4163, allocations: 2.123 MB / 471 MB, free: 3.137 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.00767/0.424, allocations: 3.788 MB / 474.8 MB, free: 15.33 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.02041/0.4445, allocations: 11.55 MB / 486.4 MB, free: 3.738 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.014e-05/0.4446, allocations: 0 / 486.4 MB, free: 3.738 MB / 398.1 MB Notification: Performance of FrontEnd: time 5.31e-06/0.4446, allocations: 3.984 kB / 486.4 MB, free: 3.734 MB / 398.1 MB Notification: Performance of Transformations before backend: time 0.0004563/0.4451, allocations: 0 / 486.4 MB, free: 3.734 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: 1496 * Number of variables: 1496 Notification: Performance of Generate backend data structure: time 0.02521/0.4703, allocations: 7.626 MB / 494 MB, free: 12.02 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.241e-05/0.4703, allocations: 12.03 kB / 494 MB, free: 12 MB / 414.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.002516/0.4729, allocations: 0.7779 MB / 494.8 MB, free: 11.21 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.007692/0.4806, allocations: 1.265 MB / 496.1 MB, free: 9.945 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01217/0.4928, allocations: 4.188 MB / 0.4885 GB, free: 5.688 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0006625/0.4935, allocations: 435.8 kB / 0.4889 GB, free: 5.262 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002773/0.4963, allocations: 0.5546 MB / 0.4895 GB, free: 4.707 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02306/0.5194, allocations: 7.292 MB / 0.4966 GB, free: 13.36 MB / 430.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002984/0.5197, allocations: 11.95 kB / 0.4966 GB, free: 13.35 MB / 430.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001633/0.5214, allocations: 228 kB / 0.4968 GB, free: 13.12 MB / 430.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0003911/0.5218, allocations: 267.2 kB / 0.4971 GB, free: 12.86 MB / 430.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01545/0.5372, allocations: 6.131 MB / 0.5031 GB, free: 6.727 MB / 430.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0539/0.5912, allocations: 23.58 MB / 0.5261 GB, free: 14.48 MB / 462.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01205/0.6033, allocations: 8.975 MB / 0.5349 GB, free: 4.52 MB / 462.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.005424/0.6087, allocations: 2.476 MB / 0.5373 GB, free: 2.035 MB / 462.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.2284/0.8372, allocations: 7.539 MB / 0.5446 GB, free: 117 MB / 462.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.988e-05/0.8373, allocations: 72.28 kB / 0.5447 GB, free: 117 MB / 462.1 MB Notification: Performance of pre-optimization done (n=238): time 6.612e-06/0.8373, allocations: 0 / 0.5447 GB, free: 117 MB / 462.1 MB Notification: Performance of matching and sorting (n=282): time 0.03185/0.8691, allocations: 13.92 MB / 0.5583 GB, free: 112 MB / 462.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.087e-05/0.8692, allocations: 80.53 kB / 0.5584 GB, free: 111.9 MB / 462.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004839/0.8741, allocations: 3.458 MB / 0.5618 GB, free: 110.3 MB / 462.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0004633/0.8746, allocations: 69.7 kB / 0.5618 GB, free: 110.2 MB / 462.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.00135/0.8759, allocations: 2.767 MB / 0.5645 GB, free: 107.8 MB / 462.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0008273/0.8768, allocations: 1.017 MB / 0.5655 GB, free: 106.9 MB / 462.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0008401/0.8776, allocations: 0.6489 MB / 0.5662 GB, free: 106.2 MB / 462.1 MB Notification: Performance of setup shared object (initialization): time 4.693e-05/0.8777, allocations: 309.1 kB / 0.5664 GB, free: 105.9 MB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002148/0.8798, allocations: 1.538 MB / 0.5679 GB, free: 104.4 MB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00253/0.8824, allocations: 2.756 MB / 0.5706 GB, free: 101.1 MB / 462.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004908/0.8873, allocations: 4.605 MB / 0.5751 GB, free: 95.89 MB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.416e-05/0.8873, allocations: 12 kB / 0.5751 GB, free: 95.88 MB / 462.1 MB Notification: Performance of matching and sorting (n=472) (initialization): time 0.008404/0.8958, allocations: 5.509 MB / 0.5805 GB, free: 90.27 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.851e-05/0.8958, allocations: 20 kB / 0.5805 GB, free: 90.25 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.835e-05/0.8959, allocations: 40 kB / 0.5806 GB, free: 90.21 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001465/0.8974, allocations: 0.6934 MB / 0.5813 GB, free: 89.5 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002962/0.9003, allocations: 0.8463 MB / 0.5821 GB, free: 88.65 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00805/0.9084, allocations: 10.51 MB / 0.5924 GB, free: 77.62 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003501/0.9119, allocations: 220.5 kB / 0.5926 GB, free: 77.41 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0006345/0.9126, allocations: 172 kB / 0.5927 GB, free: 77.24 MB / 462.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 175 * 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 (427): * Single equations (assignments): 417 * Array equations: 4 * 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 {(3,12,100.0%), (1,6,100.0%), (2,13,100.0%), (1,5,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.002826/0.9155, allocations: 1.625 MB / 0.5943 GB, free: 75.6 MB / 462.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001082/0.9165, allocations: 413.4 kB / 0.5947 GB, free: 75.2 MB / 462.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0071/0.9237, allocations: 4.527 MB / 0.5991 GB, free: 70.55 MB / 462.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.228e-05/0.9237, allocations: 32 kB / 0.5992 GB, free: 70.52 MB / 462.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.808e-05/0.9238, allocations: 11.94 kB / 0.5992 GB, free: 70.5 MB / 462.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.124e-05/0.9238, allocations: 11.95 kB / 0.5992 GB, free: 70.49 MB / 462.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01515/0.939, allocations: 9.944 MB / 0.6089 GB, free: 60.38 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.884e-05/0.939, allocations: 4 kB / 0.6089 GB, free: 60.38 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00213/0.9412, allocations: 0.496 MB / 0.6094 GB, free: 59.88 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001761/0.9429, allocations: 0.7571 MB / 0.6101 GB, free: 59.11 MB / 462.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003364/0.9433, allocations: 71.97 kB / 0.6102 GB, free: 59.04 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0101/0.9534, allocations: 14.26 MB / 0.6241 GB, free: 43.98 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.041e-06/0.9534, allocations: 15.88 kB / 0.6241 GB, free: 43.96 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01063/0.9641, allocations: 6.64 MB / 0.6306 GB, free: 37.07 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002529/0.9667, allocations: 0.7872 MB / 0.6314 GB, free: 36.27 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001076/0.9678, allocations: 67.98 kB / 0.6314 GB, free: 36.2 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002484/0.9703, allocations: 155.8 kB / 0.6316 GB, free: 36.05 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000465/0.9708, allocations: 213.7 kB / 0.6318 GB, free: 35.84 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001802/0.971, allocations: 91.72 kB / 0.6319 GB, free: 35.75 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.003381/0.9744, allocations: 2.323 MB / 0.6342 GB, free: 33.45 MB / 462.1 MB Notification: Performance of sort global known variables: time 3.51e-07/0.9744, allocations: 0 / 0.6342 GB, free: 33.45 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.004612/0.979, allocations: 1.098 MB / 0.6352 GB, free: 32.35 MB / 462.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 22 * Number of states: 10 (smeeM.phiMechanical,smeeM.stator.core.Phi.re,smeeM.stator.core.Phi.im,smeeM.stator.stray.Phi.re,smeeM.stator.stray.Phi.im,smeeE.phiMechanical,smeeE.idq_sr[1],smeeE.idq_sr[2],smeeE.idq_rr[2],smeeE.idq_dr[1]) * 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 (235): * Single equations (assignments): 225 * Array equations: 4 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 6 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 6 systems {(2,13,100.0%), (1,5,100.0%), (1,8,100.0%), (3,12,100.0%), (1,6,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.01034/0.9894, allocations: 7.403 MB / 0.6425 GB, free: 24.69 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.007246/0.9967, allocations: 4.716 MB / 0.6471 GB, free: 19.86 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 1.051e-05/0.9967, allocations: 4 kB / 0.6471 GB, free: 19.86 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.004445/1.001, allocations: 2.855 MB / 0.6499 GB, free: 16.92 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004381/1.006, allocations: 0.9224 MB / 0.6508 GB, free: 16.01 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.07333/1.079, allocations: 39.3 MB / 0.6891 GB, free: 7.105 MB / 494.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00464/1.084, allocations: 3.511 MB / 0.6926 GB, free: 3.562 MB / 494.1 MB Notification: Performance of simCode: alias equations: time 0.003206/1.087, allocations: 0.8526 MB / 0.6934 GB, free: 2.703 MB / 494.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003767/1.091, allocations: 2.272 MB / 0.6956 GB, free: 440 kB / 494.1 MB Notification: Performance of SimCode: time 1.283e-06/1.091, allocations: 0 / 0.6956 GB, free: 440 kB / 494.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3989/1.49, allocations: 94.03 MB / 0.7874 GB, free: 158.3 MB / 0.5294 GB Notification: Performance of buildModelFMU: Generate platform static: time 18.55/20.04, allocations: 5.859 kB / 0.7874 GB, free: 158.3 MB / 0.5294 GB (rm -f Modelica_4.1.0-beta.om_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMEE_Generator.pipe ; mkfifo Modelica_4.1.0-beta.om_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMEE_Generator.pipe ; head -c 1048576 < Modelica_4.1.0-beta.om_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMEE_Generator.pipe >> ../files/Modelica_4.1.0-beta.om_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMEE_Generator.sim & python3 -m fmpy simulate --output-file Modelica_4.1.0-beta.om_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMEE_Generator_res.csv --start-time 0 --stop-time 30 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.001 Modelica_4_1_0-beta_om_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_SMEE_Generator.fmu > Modelica_4.1.0-beta.om_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMEE_Generator.pipe 2>&1)