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.IMC_Transformer.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.IMC_Transformer,fileNamePrefix="Modelica_4_1_0-beta_om_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_InductionMachines_IMC_Transformer",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_Transformer,fileNamePrefix="Modelica_4_1_0-beta_om_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_InductionMachines_IMC_Transformer",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001642/0.001642, allocations: 117.9 kB / 17.84 MB, free: 5.102 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001919/0.001919, allocations: 199.5 kB / 18.79 MB, free: 4.156 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.545/1.545, allocations: 230.4 MB / 250 MB, free: 9.047 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: 71.81 kB / 366.9 MB, free: 7.539 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3211/0.3231, allocations: 53.31 MB / 420.2 MB, free: 8.309 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_Transformer): time 0.02182/0.3449, allocations: 17.52 MB / 437.7 MB, free: 6.719 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.01299/0.3579, allocations: 5.98 MB / 443.7 MB, free: 0.7227 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.004202/0.3621, allocations: 119.5 kB / 443.8 MB, free: 0.6055 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00578/0.3679, allocations: 1.414 MB / 445.2 MB, free: 15.18 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.007612/0.3755, allocations: 1.82 MB / 447 MB, free: 13.35 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.003937/0.3794, allocations: 1.099 MB / 448.1 MB, free: 12.25 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.01062/0.39, allocations: 6.349 MB / 454.5 MB, free: 5.879 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.007922/0.398, allocations: 3.767 MB / 458.2 MB, free: 2.023 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.007164/0.4051, allocations: 2.969 MB / 461.2 MB, free: 15.06 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.006887/0.412, allocations: 3.523 MB / 464.7 MB, free: 11.52 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.002723/0.4147, allocations: 0.7852 MB / 465.5 MB, free: 10.74 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004234/0.419, allocations: 1.089 MB / 466.6 MB, free: 9.648 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.003477/0.4224, allocations: 1.882 MB / 468.5 MB, free: 7.762 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.007631/0.4301, allocations: 3.361 MB / 471.9 MB, free: 4.387 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01681/0.4469, allocations: 10.6 MB / 482.4 MB, free: 9.754 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.446e-06/0.4469, allocations: 0 / 482.4 MB, free: 9.754 MB / 398.1 MB Notification: Performance of FrontEnd: time 2.194e-06/0.4469, allocations: 0 / 482.4 MB, free: 9.754 MB / 398.1 MB Notification: Performance of Transformations before backend: time 0.0003883/0.4473, allocations: 0 / 482.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: 1287 * Number of variables: 1287 Notification: Performance of Generate backend data structure: time 0.02241/0.4697, allocations: 6.691 MB / 489.1 MB, free: 2.973 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.109e-05/0.4697, allocations: 8.031 kB / 489.1 MB, free: 2.965 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.002395/0.4721, allocations: 0.6789 MB / 489.8 MB, free: 2.277 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006701/0.4788, allocations: 1.114 MB / 490.9 MB, free: 1.16 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.009341/0.4882, allocations: 3.714 MB / 494.7 MB, free: 13.37 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004646/0.4886, allocations: 365.7 kB / 495 MB, free: 13.01 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00187/0.4905, allocations: 480 kB / 495.5 MB, free: 12.54 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01926/0.5098, allocations: 6.877 MB / 0.4906 GB, free: 5.586 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002428/0.51, allocations: 3.953 kB / 0.4906 GB, free: 5.582 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001692/0.5117, allocations: 204 kB / 0.4908 GB, free: 5.383 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.000313/0.512, allocations: 233.8 kB / 0.491 GB, free: 5.152 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01492/0.5269, allocations: 5.945 MB / 0.4968 GB, free: 15.2 MB / 430.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04651/0.5735, allocations: 20.79 MB / 0.5171 GB, free: 9.957 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01192/0.5854, allocations: 9.76 MB / 0.5266 GB, free: 15.16 MB / 462.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.004849/0.5902, allocations: 2.302 MB / 0.5289 GB, free: 12.85 MB / 462.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01474/0.605, allocations: 6.717 MB / 0.5354 GB, free: 5.965 MB / 462.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.183e-05/0.605, allocations: 64.5 kB / 0.5355 GB, free: 5.895 MB / 462.1 MB Notification: Performance of pre-optimization done (n=219): time 4.749e-06/0.605, allocations: 4 kB / 0.5355 GB, free: 5.891 MB / 462.1 MB Notification: Performance of matching and sorting (n=226): time 0.2583/0.8633, allocations: 9.723 MB / 0.545 GB, free: 111.9 MB / 462.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.049e-05/0.8634, allocations: 81.06 kB / 0.5451 GB, free: 111.8 MB / 462.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005342/0.8687, allocations: 3.018 MB / 0.548 GB, free: 110.7 MB / 462.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0004775/0.8692, allocations: 63.05 kB / 0.5481 GB, free: 110.7 MB / 462.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001468/0.8706, allocations: 2.237 MB / 0.5503 GB, free: 109.2 MB / 462.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0006496/0.8713, allocations: 0.7963 MB / 0.5511 GB, free: 108.7 MB / 462.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0006778/0.872, allocations: 470.2 kB / 0.5515 GB, free: 108.5 MB / 462.1 MB Notification: Performance of setup shared object (initialization): time 5.092e-05/0.872, allocations: 303.5 kB / 0.5518 GB, free: 108.2 MB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001788/0.8738, allocations: 1.289 MB / 0.5531 GB, free: 107.7 MB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002072/0.8759, allocations: 1.919 MB / 0.5549 GB, free: 106.5 MB / 462.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003962/0.8798, allocations: 3.335 MB / 0.5582 GB, free: 104.6 MB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.362e-05/0.8799, allocations: 3.875 kB / 0.5582 GB, free: 104.6 MB / 462.1 MB Notification: Performance of matching and sorting (n=328) (initialization): time 0.006467/0.8863, allocations: 4.253 MB / 0.5623 GB, free: 102.8 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.665e-05/0.8864, allocations: 17.28 kB / 0.5624 GB, free: 102.8 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.29e-05/0.8864, allocations: 17.66 kB / 0.5624 GB, free: 102.8 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002239/0.8886, allocations: 0.7664 MB / 0.5631 GB, free: 102.6 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002156/0.8908, allocations: 0.5626 MB / 0.5637 GB, free: 102.5 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00853/0.8993, allocations: 10.89 MB / 0.5743 GB, free: 91.85 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002748/0.9021, allocations: 107.9 kB / 0.5744 GB, free: 91.75 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003116/0.9024, allocations: 100 kB / 0.5745 GB, free: 91.65 MB / 462.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 82 * Number of states: 0 () * Number of discrete variables: 6 (booleanStep2[3].y,booleanStep2[2].y,booleanStep2[1].y,idealCloser.control[3],idealCloser.control[2],idealCloser.control[1]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (278): * Single equations (assignments): 273 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 1 * 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): 1 system {(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,25,77.8%), (1,8,100.0%), (1,1,100.0%), (1,13,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.003032/0.9054, allocations: 1.61 MB / 0.5761 GB, free: 90.04 MB / 462.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0008968/0.9063, allocations: 335.8 kB / 0.5764 GB, free: 89.71 MB / 462.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005717/0.912, allocations: 3.885 MB / 0.5802 GB, free: 85.76 MB / 462.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.443e-05/0.912, allocations: 24 kB / 0.5802 GB, free: 85.74 MB / 462.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.447e-05/0.9121, allocations: 8 kB / 0.5802 GB, free: 85.73 MB / 462.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.547e-05/0.9121, allocations: 15.95 kB / 0.5802 GB, free: 85.71 MB / 462.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01385/0.9259, allocations: 8.539 MB / 0.5886 GB, free: 77.07 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.075e-05/0.9259, allocations: 4 kB / 0.5886 GB, free: 77.07 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00143/0.9274, allocations: 343.8 kB / 0.5889 GB, free: 76.73 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002725/0.9301, allocations: 0.9458 MB / 0.5898 GB, free: 75.77 MB / 462.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003341/0.9304, allocations: 63.97 kB / 0.5899 GB, free: 75.71 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01235/0.9428, allocations: 15.76 MB / 0.6053 GB, free: 59.16 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.947e-06/0.9428, allocations: 8.031 kB / 0.6053 GB, free: 59.15 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00845/0.9512, allocations: 5.685 MB / 0.6108 GB, free: 53.37 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002248/0.9535, allocations: 0.7097 MB / 0.6115 GB, free: 52.64 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001094/0.9546, allocations: 55.98 kB / 0.6116 GB, free: 52.59 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00211/0.9567, allocations: 103.9 kB / 0.6117 GB, free: 52.48 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0006882/0.9574, allocations: 189.7 kB / 0.6119 GB, free: 52.3 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001926/0.9576, allocations: 55.98 kB / 0.6119 GB, free: 52.24 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.003336/0.9609, allocations: 2.086 MB / 0.614 GB, free: 50.16 MB / 462.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.9609, allocations: 0 / 0.614 GB, free: 50.16 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.004636/0.9655, allocations: 0.9437 MB / 0.6149 GB, free: 49.22 MB / 462.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 9 * Number of states: 9 (aimc.inertiaRotor.w,aimc.stator.zeroInductor.i0,aimc.stator.core.Phi.re,aimc.stator.core.Phi.im,aimc.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter[3].Phi.re,aimc.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter[3].Phi.im,transformer.l1sigma.inductor[2].i,transformer.l1sigma.inductor[3].i,quadraticLoadTorque.phi) * Number of discrete variables: 6 (idealCloser.control[1],idealCloser.control[2],idealCloser.control[3],booleanStep2[1].y,booleanStep2[2].y,booleanStep2[3].y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (156): * Single equations (assignments): 150 * Array equations: 0 * 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 {(1,8,100.0%), (3,25,88.9%), (1,1,100.0%), (1,8,100.0%), (1,13,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.008778/0.9743, allocations: 6.404 MB / 0.6211 GB, free: 42.73 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.005257/0.9796, allocations: 3.795 MB / 0.6248 GB, free: 38.88 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 8.416e-06/0.9796, allocations: 0 / 0.6248 GB, free: 38.88 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.003424/0.983, allocations: 2.553 MB / 0.6273 GB, free: 36.25 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004335/0.9873, allocations: 0.9295 MB / 0.6282 GB, free: 35.34 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.05541/1.043, allocations: 33.88 MB / 0.6613 GB, free: 0.6172 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.005752/1.049, allocations: 3.438 MB / 0.6647 GB, free: 13.14 MB / 478.1 MB Notification: Performance of simCode: alias equations: time 0.003051/1.052, allocations: 0.7645 MB / 0.6654 GB, free: 12.37 MB / 478.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.004229/1.056, allocations: 1.85 MB / 0.6672 GB, free: 10.52 MB / 478.1 MB Notification: Performance of SimCode: time 2.234e-06/1.056, allocations: 0 / 0.6672 GB, free: 10.52 MB / 478.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.4294/1.485, allocations: 86.7 MB / 0.7519 GB, free: 170.9 MB / 0.5294 GB Notification: Performance of buildModelFMU: Generate platform static: time 17.08/18.57, allocations: 6.359 kB / 0.7519 GB, free: 170.9 MB / 0.5294 GB (rm -f Modelica_4.1.0-beta.om_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_Transformer.pipe ; mkfifo Modelica_4.1.0-beta.om_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_Transformer.pipe ; head -c 1048576 < Modelica_4.1.0-beta.om_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_Transformer.pipe >> ../files/Modelica_4.1.0-beta.om_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_Transformer.sim & python3 -m fmpy simulate --output-file Modelica_4.1.0-beta.om_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_Transformer_res.csv --start-time 0 --stop-time 2.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_IMC_Transformer.fmu > Modelica_4.1.0-beta.om_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_Transformer.pipe 2>&1)