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.001423/0.001423, allocations: 121.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.001532/0.001532, 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.491/1.491, 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.002334/0.002334, allocations: 68.12 kB / 358.5 MB, free: 13.26 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2966/0.2989, allocations: 50.55 MB / 409.1 MB, free: 1.508 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_Transformer): time 0.02128/0.3203, allocations: 17.44 MB / 426.5 MB, free: 15.98 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.01293/0.3333, allocations: 5.945 MB / 432.5 MB, free: 10.02 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.004511/0.3378, allocations: 115.6 kB / 432.6 MB, free: 9.91 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.004862/0.3427, allocations: 1.351 MB / 433.9 MB, free: 8.551 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00677/0.3496, allocations: 1.769 MB / 435.7 MB, free: 6.773 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.003606/0.3532, allocations: 1.086 MB / 436.8 MB, free: 5.688 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.009734/0.3629, allocations: 6.337 MB / 443.1 MB, free: 15.33 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.008737/0.3717, allocations: 5.387 MB / 448.5 MB, free: 9.852 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.006166/0.378, allocations: 2.961 MB / 451.5 MB, free: 6.895 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.007174/0.3852, allocations: 3.468 MB / 454.9 MB, free: 3.414 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.002392/0.3876, allocations: 0.7891 MB / 455.7 MB, free: 2.625 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003746/0.3913, allocations: 1.082 MB / 456.8 MB, free: 1.543 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002824/0.3942, allocations: 1.866 MB / 458.7 MB, free: 15.67 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.006557/0.4008, allocations: 3.353 MB / 462 MB, free: 12.3 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01562/0.4164, allocations: 10.59 MB / 472.6 MB, free: 1.676 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.031e-06/0.4165, allocations: 4 kB / 472.6 MB, free: 1.672 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.734e-06/0.4165, allocations: 4 kB / 472.6 MB, free: 1.668 MB / 382.1 MB Notification: Performance of Transformations before backend: time 0.0003429/0.4168, allocations: 0 / 472.6 MB, free: 1.668 MB / 382.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.02078/0.4376, allocations: 6.699 MB / 479.3 MB, free: 10.88 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.25e-05/0.4377, allocations: 8.031 kB / 479.3 MB, free: 10.87 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001911/0.4396, allocations: 0.675 MB / 480 MB, free: 10.19 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005917/0.4456, allocations: 1.102 MB / 481.1 MB, free: 9.082 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.008839/0.4544, allocations: 3.714 MB / 484.8 MB, free: 5.293 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003749/0.4548, allocations: 361.7 kB / 485.2 MB, free: 4.938 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001591/0.4564, allocations: 484 kB / 485.7 MB, free: 4.465 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01564/0.4721, allocations: 6.885 MB / 492.5 MB, free: 13.5 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001686/0.4723, allocations: 3.953 kB / 492.5 MB, free: 13.5 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001032/0.4733, allocations: 200 kB / 492.7 MB, free: 13.3 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.000291/0.4736, allocations: 237.8 kB / 493 MB, free: 13.07 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0136/0.4872, allocations: 5.953 MB / 498.9 MB, free: 7.102 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04587/0.5332, allocations: 20.79 MB / 0.5075 GB, free: 1.863 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01354/0.5467, allocations: 9.986 MB / 0.5173 GB, free: 6.848 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.005244/0.552, allocations: 2.474 MB / 0.5197 GB, free: 4.367 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01614/0.5682, allocations: 6.744 MB / 0.5263 GB, free: 13.45 MB / 462.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 8.17e-05/0.5683, allocations: 56.56 kB / 0.5263 GB, free: 13.39 MB / 462.1 MB Notification: Performance of pre-optimization done (n=219): time 6.052e-06/0.5683, allocations: 0 / 0.5263 GB, free: 13.39 MB / 462.1 MB Notification: Performance of matching and sorting (n=226): time 0.02279/0.5911, allocations: 9.757 MB / 0.5359 GB, free: 3.426 MB / 462.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.548e-05/0.5913, allocations: 85.39 kB / 0.5359 GB, free: 3.328 MB / 462.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006572/0.5978, allocations: 3.014 MB / 0.5389 GB, free: 308 kB / 462.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0004585/0.5983, allocations: 69.7 kB / 0.539 GB, free: 232 kB / 462.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.2339/0.8323, allocations: 2.227 MB / 0.5411 GB, free: 121.3 MB / 462.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001142/0.8335, allocations: 0.7939 MB / 0.5419 GB, free: 120.9 MB / 462.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001983/0.8355, allocations: 469.2 kB / 0.5424 GB, free: 120.6 MB / 462.1 MB Notification: Performance of setup shared object (initialization): time 5.976e-05/0.8356, allocations: 310.3 kB / 0.5427 GB, free: 120.3 MB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002857/0.8384, allocations: 1.29 MB / 0.5439 GB, free: 119.9 MB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002677/0.8411, allocations: 1.917 MB / 0.5458 GB, free: 118.7 MB / 462.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004305/0.8455, allocations: 3.349 MB / 0.5491 GB, free: 116.8 MB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.208e-05/0.8455, allocations: 7.875 kB / 0.5491 GB, free: 116.8 MB / 462.1 MB Notification: Performance of matching and sorting (n=328) (initialization): time 0.006703/0.8522, allocations: 4.263 MB / 0.5532 GB, free: 115 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.016e-05/0.8523, allocations: 10.5 kB / 0.5532 GB, free: 115 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.112e-05/0.8523, allocations: 19.06 kB / 0.5533 GB, free: 115 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002315/0.8546, allocations: 0.7745 MB / 0.554 GB, free: 114.7 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002169/0.8568, allocations: 0.567 MB / 0.5546 GB, free: 114.7 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008688/0.8655, allocations: 10.88 MB / 0.5652 GB, free: 106.3 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002415/0.868, allocations: 102.2 kB / 0.5653 GB, free: 106.2 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002753/0.8683, allocations: 107.2 kB / 0.5654 GB, free: 106.2 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.002623/0.8709, allocations: 1.622 MB / 0.567 GB, free: 104.8 MB / 462.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007197/0.8716, allocations: 333.9 kB / 0.5673 GB, free: 104.4 MB / 462.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005528/0.8772, allocations: 3.905 MB / 0.5711 GB, free: 100.6 MB / 462.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.497e-05/0.8772, allocations: 30.52 kB / 0.5711 GB, free: 100.5 MB / 462.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.42e-05/0.8772, allocations: 8.875 kB / 0.5711 GB, free: 100.5 MB / 462.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.969e-05/0.8772, allocations: 15.95 kB / 0.5712 GB, free: 100.5 MB / 462.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01141/0.8887, allocations: 8.567 MB / 0.5795 GB, free: 91.86 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.013e-05/0.8887, allocations: 4 kB / 0.5795 GB, free: 91.85 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001393/0.8901, allocations: 347.8 kB / 0.5799 GB, free: 91.51 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002728/0.8928, allocations: 0.9416 MB / 0.5808 GB, free: 90.55 MB / 462.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002048/0.8931, allocations: 60.98 kB / 0.5808 GB, free: 90.49 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01156/0.9046, allocations: 15.76 MB / 0.5962 GB, free: 73.93 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.807e-06/0.9047, allocations: 12.12 kB / 0.5962 GB, free: 73.92 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.007622/0.9123, allocations: 5.716 MB / 0.6018 GB, free: 68.11 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001438/0.9138, allocations: 0.7137 MB / 0.6025 GB, free: 67.38 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005077/0.9143, allocations: 48 kB / 0.6026 GB, free: 67.33 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00146/0.9158, allocations: 113.1 kB / 0.6027 GB, free: 67.22 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000465/0.9163, allocations: 181.7 kB / 0.6028 GB, free: 67.04 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001386/0.9164, allocations: 63.98 kB / 0.6029 GB, free: 66.98 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.002656/0.9191, allocations: 2.079 MB / 0.6049 GB, free: 64.9 MB / 462.1 MB Notification: Performance of sort global known variables: time 2.6e-07/0.9191, allocations: 7.938 kB / 0.6049 GB, free: 64.89 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.002882/0.922, allocations: 0.9452 MB / 0.6059 GB, free: 63.95 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.007764/0.9297, allocations: 6.431 MB / 0.6121 GB, free: 57.43 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.005263/0.935, allocations: 3.91 MB / 0.616 GB, free: 53.46 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 7.083e-06/0.9351, allocations: 0 / 0.616 GB, free: 53.46 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.003441/0.9385, allocations: 2.662 MB / 0.6186 GB, free: 50.73 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004218/0.9428, allocations: 0.9242 MB / 0.6195 GB, free: 49.82 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04938/0.9922, allocations: 33.86 MB / 0.6525 GB, free: 15.12 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004498/0.9967, allocations: 3.442 MB / 0.6559 GB, free: 11.64 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.002951/0.9997, allocations: 0.7645 MB / 0.6566 GB, free: 10.87 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002895/1.003, allocations: 1.847 MB / 0.6584 GB, free: 9.023 MB / 462.1 MB Notification: Performance of SimCode: time 1.012e-06/1.003, allocations: 0 / 0.6584 GB, free: 9.023 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1832/1.186, allocations: 85.69 MB / 0.7421 GB, free: 4.16 MB / 0.5294 GB Notification: Performance of buildModelFMU: Generate platform static: time 16.61/17.8, allocations: 8.719 kB / 0.7421 GB, free: 4.152 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)