Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0-beta.om_Modelica.Electrical.Machines.Examples.Transformers.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.Transformers.IMC_Transformer,fileNamePrefix="Modelica_4_1_0-beta_om_Modelica_Electrical_Machines_Examples_Transformers_IMC_Transformer",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Machines.Examples.Transformers.IMC_Transformer,fileNamePrefix="Modelica_4_1_0-beta_om_Modelica_Electrical_Machines_Examples_Transformers_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.001704/0.001704, allocations: 118 kB / 17.83 MB, free: 5.262 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.0016/0.0016, allocations: 199.4 kB / 18.78 MB, free: 4.316 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.523/1.523, allocations: 230.4 MB / 250 MB, free: 9.066 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.001909/0.001909, allocations: 71.81 kB / 366.9 MB, free: 7.504 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3117/0.3136, allocations: 53.3 MB / 420.2 MB, free: 8.289 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.Transformers.IMC_Transformer): time 0.01623/0.3298, allocations: 12.98 MB / 433.2 MB, free: 11.25 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.009113/0.339, allocations: 4.275 MB / 437.5 MB, free: 6.969 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002688/0.3416, allocations: 79.69 kB / 437.5 MB, free: 6.891 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002833/0.3445, allocations: 1.021 MB / 438.6 MB, free: 5.863 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004396/0.3489, allocations: 1.235 MB / 439.8 MB, free: 4.621 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001532/0.3504, allocations: 0.5304 MB / 440.3 MB, free: 4.09 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.00602/0.3564, allocations: 4.653 MB / 445 MB, free: 15.42 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003686/0.3601, allocations: 2.694 MB / 447.7 MB, free: 12.66 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.004217/0.3643, allocations: 2.146 MB / 449.8 MB, free: 10.52 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.004545/0.3689, allocations: 2.623 MB / 452.4 MB, free: 7.883 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001254/0.3701, allocations: 0.5508 MB / 453 MB, free: 7.332 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001812/0.3719, allocations: 0.66 MB / 453.7 MB, free: 6.672 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001769/0.3737, allocations: 1.535 MB / 455.2 MB, free: 5.133 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.004226/0.3779, allocations: 2.489 MB / 457.7 MB, free: 2.633 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.009826/0.3878, allocations: 7.459 MB / 465.1 MB, free: 11.15 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.344e-06/0.3878, allocations: 0 / 465.1 MB, free: 11.15 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.764e-06/0.3878, allocations: 0 / 465.1 MB, free: 11.15 MB / 382.1 MB Notification: Performance of Transformations before backend: time 0.0002325/0.388, allocations: 0 / 465.1 MB, free: 11.15 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: 934 * Number of variables: 934 Notification: Performance of Generate backend data structure: time 0.01333/0.4013, allocations: 4.837 MB / 470 MB, free: 6.238 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.231e-05/0.4014, allocations: 8.031 kB / 470 MB, free: 6.23 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0009303/0.4023, allocations: 0.502 MB / 470.5 MB, free: 5.719 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001868/0.4042, allocations: 0.5487 MB / 471 MB, free: 5.168 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005615/0.4098, allocations: 2.6 MB / 473.6 MB, free: 2.492 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002502/0.41, allocations: 267 kB / 473.9 MB, free: 2.23 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0007643/0.4108, allocations: 351.9 kB / 474.2 MB, free: 1.887 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01077/0.4216, allocations: 5.032 MB / 479.3 MB, free: 12.79 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.218e-05/0.4217, allocations: 11.95 kB / 479.3 MB, free: 12.78 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003821/0.4221, allocations: 144 kB / 479.4 MB, free: 12.64 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002075/0.4223, allocations: 183 kB / 479.6 MB, free: 12.46 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.008769/0.431, allocations: 4.298 MB / 483.9 MB, free: 8.152 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02875/0.4598, allocations: 14.76 MB / 498.7 MB, free: 9.059 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00507/0.4648, allocations: 4.057 MB / 0.4909 GB, free: 4.703 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003419/0.4683, allocations: 1.873 MB / 0.4928 GB, free: 2.832 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003186/0.4686, allocations: 139.1 kB / 0.4929 GB, free: 2.676 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.849e-05/0.4686, allocations: 56.56 kB / 0.493 GB, free: 2.613 MB / 414.1 MB Notification: Performance of pre-optimization done (n=198): time 3.326e-06/0.4686, allocations: 0 / 0.493 GB, free: 2.613 MB / 414.1 MB Notification: Performance of matching and sorting (n=218): time 0.02181/0.4905, allocations: 9.989 MB / 0.5027 GB, free: 8.516 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.802e-05/0.4905, allocations: 85.39 kB / 0.5028 GB, free: 8.418 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004504/0.4951, allocations: 2.514 MB / 0.5052 GB, free: 5.883 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0003977/0.4955, allocations: 61.7 kB / 0.5053 GB, free: 5.816 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001494/0.4969, allocations: 1.662 MB / 0.5069 GB, free: 4.137 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001045/0.498, allocations: 0.763 MB / 0.5077 GB, free: 3.367 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0007592/0.4987, allocations: 420.5 kB / 0.5081 GB, free: 2.949 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 0.0001414/0.4989, allocations: 301.1 kB / 0.5084 GB, free: 2.652 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002225/0.5011, allocations: 1.304 MB / 0.5096 GB, free: 1.344 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002624/0.5037, allocations: 1.771 MB / 0.5114 GB, free: 15.39 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.005082/0.5088, allocations: 3.215 MB / 0.5145 GB, free: 11.99 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.263e-05/0.5088, allocations: 15.88 kB / 0.5145 GB, free: 11.97 MB / 446.1 MB Notification: Performance of matching and sorting (n=295) (initialization): time 0.007601/0.5164, allocations: 4.069 MB / 0.5185 GB, free: 7.879 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.309e-05/0.5165, allocations: 8 kB / 0.5185 GB, free: 7.871 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.288e-05/0.5165, allocations: 16 kB / 0.5185 GB, free: 7.855 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002812/0.5193, allocations: 0.8825 MB / 0.5194 GB, free: 6.961 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002216/0.5215, allocations: 0.5265 MB / 0.5199 GB, free: 6.434 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01161/0.5332, allocations: 9.475 MB / 0.5291 GB, free: 12.54 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002319/0.5355, allocations: 123.9 kB / 0.5293 GB, free: 12.42 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002685/0.5357, allocations: 80 kB / 0.5293 GB, free: 12.34 MB / 462.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.002497/0.5382, allocations: 1.219 MB / 0.5305 GB, free: 11.11 MB / 462.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007599/0.539, allocations: 294.1 kB / 0.5308 GB, free: 10.82 MB / 462.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007048/0.546, allocations: 3.703 MB / 0.5344 GB, free: 7.09 MB / 462.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.611e-05/0.5461, allocations: 20 kB / 0.5344 GB, free: 7.07 MB / 462.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.709e-05/0.5461, allocations: 12 kB / 0.5345 GB, free: 7.059 MB / 462.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.101e-05/0.5461, allocations: 11.91 kB / 0.5345 GB, free: 7.047 MB / 462.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.2711/0.8172, allocations: 7.993 MB / 0.5423 GB, free: 113.4 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.545e-05/0.8172, allocations: 1.656 kB / 0.5423 GB, free: 113.4 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001922/0.8192, allocations: 387 kB / 0.5426 GB, free: 113.4 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.00308/0.8222, allocations: 0.9259 MB / 0.5435 GB, free: 113.3 MB / 462.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003279/0.8226, allocations: 56.92 kB / 0.5436 GB, free: 113.3 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.009574/0.8321, allocations: 11.11 MB / 0.5544 GB, free: 106 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.839e-06/0.8321, allocations: 3.938 kB / 0.5545 GB, free: 106 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.007715/0.8399, allocations: 5.512 MB / 0.5598 GB, free: 103.9 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001728/0.8416, allocations: 0.6463 MB / 0.5605 GB, free: 103.6 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0007128/0.8423, allocations: 51.56 kB / 0.5605 GB, free: 103.6 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001488/0.8438, allocations: 115.2 kB / 0.5606 GB, free: 103.6 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005319/0.8443, allocations: 185.4 kB / 0.5608 GB, free: 103.5 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001379/0.8445, allocations: 55.58 kB / 0.5609 GB, free: 103.5 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.002293/0.8467, allocations: 1.741 MB / 0.5626 GB, free: 102.9 MB / 462.1 MB Notification: Performance of sort global known variables: time 8e-08/0.8467, allocations: 0 / 0.5626 GB, free: 102.9 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.002677/0.8494, allocations: 0.7915 MB / 0.5633 GB, free: 102.8 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.007289/0.8567, allocations: 6.204 MB / 0.5694 GB, free: 97.96 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.005004/0.8617, allocations: 3.761 MB / 0.5731 GB, free: 94.15 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 6.512e-06/0.8617, allocations: 0.625 kB / 0.5731 GB, free: 94.15 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.003079/0.8648, allocations: 2.393 MB / 0.5754 GB, free: 91.71 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003524/0.8683, allocations: 0.7934 MB / 0.5762 GB, free: 90.93 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04002/0.9083, allocations: 29.66 MB / 0.6051 GB, free: 60.62 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001994/0.9103, allocations: 2.777 MB / 0.6078 GB, free: 57.82 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.001851/0.9122, allocations: 0.6751 MB / 0.6085 GB, free: 57.14 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001453/0.9136, allocations: 1.417 MB / 0.6099 GB, free: 55.72 MB / 462.1 MB Notification: Performance of SimCode: time 1.162e-06/0.9136, allocations: 0 / 0.6099 GB, free: 55.72 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1282/1.042, allocations: 74.63 MB / 0.6828 GB, free: 13.82 MB / 494.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 15.27/16.31, allocations: 7.156 kB / 0.6828 GB, free: 13.82 MB / 494.1 MB (rm -f Modelica_4.1.0-beta.om_Modelica.Electrical.Machines.Examples.Transformers.IMC_Transformer.pipe ; mkfifo Modelica_4.1.0-beta.om_Modelica.Electrical.Machines.Examples.Transformers.IMC_Transformer.pipe ; head -c 1048576 < Modelica_4.1.0-beta.om_Modelica.Electrical.Machines.Examples.Transformers.IMC_Transformer.pipe >> ../files/Modelica_4.1.0-beta.om_Modelica.Electrical.Machines.Examples.Transformers.IMC_Transformer.sim & python3 -m fmpy simulate --output-file Modelica_4.1.0-beta.om_Modelica.Electrical.Machines.Examples.Transformers.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_Transformers_IMC_Transformer.fmu > Modelica_4.1.0-beta.om_Modelica.Electrical.Machines.Examples.Transformers.IMC_Transformer.pipe 2>&1)