Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0-beta.om_Modelica.Electrical.Machines.Examples.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.Electrical.Machines.Examples.InductionMachines.IMC_Transformer,fileNamePrefix="Modelica_4_1_0-beta_om_Modelica_Electrical_Machines_Examples_InductionMachines_IMC_Transformer",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Machines.Examples.InductionMachines.IMC_Transformer,fileNamePrefix="Modelica_4_1_0-beta_om_Modelica_Electrical_Machines_Examples_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.001773/0.001778, allocations: 118.7 kB / 17.79 MB, free: 5.254 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.002082/0.002082, allocations: 198 kB / 18.73 MB, free: 4.312 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.467/1.467, allocations: 227.7 MB / 247.2 MB, free: 10.23 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.002012/0.002012, allocations: 63.89 kB / 358.5 MB, free: 13.25 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2838/0.2858, allocations: 50.55 MB / 409.1 MB, free: 1.5 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.InductionMachines.IMC_Transformer): time 0.01548/0.3013, allocations: 12.9 MB / 422 MB, free: 4.543 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.009673/0.311, allocations: 4.252 MB / 426.2 MB, free: 288 kB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002565/0.3137, allocations: 83.62 kB / 426.3 MB, free: 204 kB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003551/0.3173, allocations: 0.9782 MB / 427.3 MB, free: 15.21 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00501/0.3223, allocations: 1.177 MB / 428.5 MB, free: 14.03 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002032/0.3244, allocations: 0.5305 MB / 429 MB, free: 13.5 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.007531/0.3319, allocations: 4.645 MB / 433.7 MB, free: 8.836 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00577/0.3377, allocations: 3.694 MB / 437.3 MB, free: 5.074 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.004293/0.342, allocations: 2.128 MB / 439.5 MB, free: 2.953 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.004554/0.3466, allocations: 2.565 MB / 442 MB, free: 388 kB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001479/0.3481, allocations: 0.5508 MB / 442.6 MB, free: 15.82 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002268/0.3504, allocations: 0.6482 MB / 443.2 MB, free: 15.18 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002247/0.3526, allocations: 1.519 MB / 444.8 MB, free: 13.66 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.004511/0.3572, allocations: 2.489 MB / 447.2 MB, free: 11.16 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.009593/0.3668, allocations: 7.459 MB / 454.7 MB, free: 3.672 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.67e-06/0.3668, allocations: 0 / 454.7 MB, free: 3.672 MB / 366.1 MB Notification: Performance of FrontEnd: time 2.324e-06/0.3668, allocations: 0 / 454.7 MB, free: 3.672 MB / 366.1 MB Notification: Performance of Transformations before backend: time 0.000244/0.3671, allocations: 0 / 454.7 MB, free: 3.672 MB / 366.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 934 * Number of variables: 934 Notification: Performance of Generate backend data structure: time 0.01184/0.3789, allocations: 4.828 MB / 459.5 MB, free: 14.77 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.528e-05/0.379, allocations: 8.031 kB / 459.5 MB, free: 14.76 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0007969/0.3798, allocations: 0.4942 MB / 460 MB, free: 14.25 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001643/0.3814, allocations: 0.5526 MB / 460.6 MB, free: 13.7 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005971/0.3874, allocations: 2.619 MB / 463.2 MB, free: 11 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002638/0.3877, allocations: 267 kB / 463.5 MB, free: 10.74 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0008616/0.3886, allocations: 347.9 kB / 463.8 MB, free: 10.4 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01107/0.3997, allocations: 5.029 MB / 468.8 MB, free: 5.309 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001143/0.3998, allocations: 3.953 kB / 468.8 MB, free: 5.305 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0005119/0.4004, allocations: 148 kB / 469 MB, free: 5.16 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001969/0.4006, allocations: 183 kB / 469.2 MB, free: 4.98 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.009125/0.4097, allocations: 4.298 MB / 473.5 MB, free: 0.6758 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02565/0.4354, allocations: 14.76 MB / 488.2 MB, free: 1.586 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.005001/0.4404, allocations: 4.194 MB / 492.4 MB, free: 13.09 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003437/0.4439, allocations: 1.987 MB / 494.4 MB, free: 11.11 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.000291/0.4442, allocations: 135.1 kB / 494.5 MB, free: 10.96 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.722e-05/0.4443, allocations: 64.91 kB / 494.6 MB, free: 10.89 MB / 414.1 MB Notification: Performance of pre-optimization done (n=198): time 8.356e-06/0.4443, allocations: 7.922 kB / 494.6 MB, free: 10.88 MB / 414.1 MB Notification: Performance of matching and sorting (n=218): time 0.02107/0.4654, allocations: 10.01 MB / 0.4928 GB, free: 0.7578 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.27e-05/0.4655, allocations: 77.34 kB / 0.4929 GB, free: 0.668 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004117/0.4696, allocations: 2.514 MB / 0.4953 GB, free: 14.13 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 0.000384/0.47, allocations: 69.64 kB / 0.4954 GB, free: 14.06 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001468/0.4715, allocations: 1.666 MB / 0.497 GB, free: 12.38 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000959/0.4725, allocations: 0.7552 MB / 0.4978 GB, free: 11.61 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0007237/0.4732, allocations: 424.4 kB / 0.4982 GB, free: 11.19 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 0.0001515/0.4734, allocations: 305.1 kB / 0.4984 GB, free: 10.89 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0021/0.4755, allocations: 1.297 MB / 0.4997 GB, free: 9.59 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002528/0.478, allocations: 1.779 MB / 0.5015 GB, free: 7.625 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004795/0.4828, allocations: 3.211 MB / 0.5046 GB, free: 4.23 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.082e-05/0.4829, allocations: 4 kB / 0.5046 GB, free: 4.227 MB / 430.1 MB Notification: Performance of matching and sorting (n=295) (initialization): time 0.007223/0.4901, allocations: 4.084 MB / 0.5086 GB, free: 120 kB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.155e-05/0.4901, allocations: 12 kB / 0.5086 GB, free: 108 kB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.311e-05/0.4902, allocations: 12 kB / 0.5086 GB, free: 96 kB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002754/0.4929, allocations: 0.8796 MB / 0.5095 GB, free: 15.2 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002125/0.4951, allocations: 0.5265 MB / 0.51 GB, free: 14.67 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01066/0.5057, allocations: 9.483 MB / 0.5192 GB, free: 4.773 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002153/0.5079, allocations: 115.9 kB / 0.5193 GB, free: 4.66 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002765/0.5082, allocations: 87.98 kB / 0.5194 GB, free: 4.574 MB / 446.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 59 * 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 (252): * Single equations (assignments): 247 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 2 * Torn equation systems: 3 * 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): 3 systems {(3,25,77.8%), (2,12,100.0%), (1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.00214/0.5104, allocations: 1.23 MB / 0.5206 GB, free: 3.336 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006474/0.511, allocations: 290.2 kB / 0.5209 GB, free: 3.051 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006393/0.5174, allocations: 3.711 MB / 0.5245 GB, free: 15.31 MB / 462.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.079e-05/0.5175, allocations: 27.94 kB / 0.5246 GB, free: 15.28 MB / 462.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.308e-05/0.5175, allocations: 8 kB / 0.5246 GB, free: 15.27 MB / 462.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.186e-05/0.5175, allocations: 11.95 kB / 0.5246 GB, free: 15.26 MB / 462.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01427/0.5318, allocations: 8.01 MB / 0.5324 GB, free: 7.129 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.483e-05/0.5319, allocations: 11.98 kB / 0.5324 GB, free: 7.117 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001665/0.5335, allocations: 379.8 kB / 0.5328 GB, free: 6.746 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003022/0.5366, allocations: 0.933 MB / 0.5337 GB, free: 5.797 MB / 462.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002246/0.5368, allocations: 55.97 kB / 0.5337 GB, free: 5.742 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.2111/0.7479, allocations: 11.1 MB / 0.5446 GB, free: 119.2 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.557e-06/0.7479, allocations: 4.547 kB / 0.5446 GB, free: 119.2 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.007215/0.7552, allocations: 5.523 MB / 0.55 GB, free: 117.1 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001269/0.7565, allocations: 0.6516 MB / 0.5506 GB, free: 116.9 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003847/0.7569, allocations: 50.97 kB / 0.5507 GB, free: 116.9 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001277/0.7582, allocations: 121 kB / 0.5508 GB, free: 116.8 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000404/0.7586, allocations: 178.7 kB / 0.5509 GB, free: 116.8 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001336/0.7587, allocations: 65.92 kB / 0.551 GB, free: 116.8 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.002023/0.7607, allocations: 1.733 MB / 0.5527 GB, free: 116.1 MB / 462.1 MB Notification: Performance of sort global known variables: time 2.5e-07/0.7608, allocations: 3.75 kB / 0.5527 GB, free: 116.1 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.002237/0.763, allocations: 0.7939 MB / 0.5535 GB, free: 116.1 MB / 462.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 12 * Number of states: 9 (aimc.inertiaRotor.w,aimc.i_0_s,aimc.idq_sr[1],aimc.idq_sr[2],aimc.idq_rr[1],aimc.idq_rr[2],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 (175): * Single equations (assignments): 170 * 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,88.9%), (2,12,100.0%), (1,1,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.007607/0.7706, allocations: 6.22 MB / 0.5596 GB, free: 112.6 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.005414/0.7761, allocations: 3.901 MB / 0.5634 GB, free: 109.1 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 8.026e-06/0.7761, allocations: 0 / 0.5634 GB, free: 109.1 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.003274/0.7794, allocations: 2.488 MB / 0.5658 GB, free: 106.8 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00354/0.783, allocations: 0.7886 MB / 0.5666 GB, free: 106 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03733/0.8203, allocations: 29.64 MB / 0.5955 GB, free: 75.81 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00185/0.8222, allocations: 2.777 MB / 0.5982 GB, free: 73 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.00186/0.8241, allocations: 0.679 MB / 0.5989 GB, free: 72.32 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001501/0.8256, allocations: 1.417 MB / 0.6003 GB, free: 70.9 MB / 462.1 MB Notification: Performance of SimCode: time 1.012e-06/0.8256, allocations: 4 kB / 0.6003 GB, free: 70.9 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1095/0.9351, allocations: 73.8 MB / 0.6723 GB, free: 13.84 MB / 478.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 15.19/16.13, allocations: 18.11 kB / 0.6724 GB, free: 13.83 MB / 478.1 MB (rm -f Modelica_4.1.0-beta.om_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_Transformer.pipe ; mkfifo Modelica_4.1.0-beta.om_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_Transformer.pipe ; head -c 1048576 < Modelica_4.1.0-beta.om_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_Transformer.pipe >> ../files/Modelica_4.1.0-beta.om_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_Transformer.sim & python3 -m fmpy simulate --output-file Modelica_4.1.0-beta.om_Modelica.Electrical.Machines.Examples.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_Electrical_Machines_Examples_InductionMachines_IMC_Transformer.fmu > Modelica_4.1.0-beta.om_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_Transformer.pipe 2>&1)