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.001923/0.001923, allocations: 122.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.002293/0.002293, allocations: 202 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.496/1.496, allocations: 227.7 MB / 247.2 MB, free: 10.17 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.003028/0.003028, allocations: 63.89 kB / 358.6 MB, free: 13.21 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2955/0.2985, allocations: 50.54 MB / 409.1 MB, free: 1.387 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.Transformers.IMC_Transformer): time 0.01545/0.314, allocations: 12.93 MB / 422 MB, free: 4.406 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.009704/0.3238, allocations: 4.256 MB / 426.3 MB, free: 144 kB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003064/0.3269, allocations: 83.62 kB / 426.4 MB, free: 60 kB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00337/0.3303, allocations: 0.9705 MB / 427.3 MB, free: 15.08 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.005117/0.3355, allocations: 1.18 MB / 428.5 MB, free: 13.89 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001787/0.3373, allocations: 0.5228 MB / 429.1 MB, free: 13.37 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.007197/0.3445, allocations: 4.649 MB / 433.7 MB, free: 8.703 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.005035/0.3495, allocations: 3.693 MB / 437.4 MB, free: 4.941 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.004475/0.354, allocations: 2.13 MB / 439.5 MB, free: 2.816 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.004787/0.3588, allocations: 2.565 MB / 442.1 MB, free: 248 kB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001282/0.3601, allocations: 0.5508 MB / 442.6 MB, free: 15.69 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001879/0.362, allocations: 0.656 MB / 443.3 MB, free: 15.04 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001765/0.3638, allocations: 1.516 MB / 444.8 MB, free: 13.52 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.004163/0.368, allocations: 2.489 MB / 447.3 MB, free: 11.02 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01036/0.3784, allocations: 7.455 MB / 454.8 MB, free: 3.535 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.404e-06/0.3784, allocations: 0 / 454.8 MB, free: 3.535 MB / 366.1 MB Notification: Performance of FrontEnd: time 2.344e-06/0.3784, allocations: 4 kB / 454.8 MB, free: 3.531 MB / 366.1 MB Notification: Performance of Transformations before backend: time 0.0002384/0.3787, allocations: 0 / 454.8 MB, free: 3.531 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.01247/0.3911, allocations: 4.831 MB / 459.6 MB, free: 14.62 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.097e-05/0.3912, allocations: 12.03 kB / 459.6 MB, free: 14.61 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0008917/0.3921, allocations: 0.4981 MB / 460.1 MB, free: 14.11 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001758/0.3939, allocations: 0.5487 MB / 460.6 MB, free: 13.55 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004772/0.3987, allocations: 2.612 MB / 463.3 MB, free: 10.87 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002378/0.3989, allocations: 263.1 kB / 463.5 MB, free: 10.61 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005696/0.3995, allocations: 355.9 kB / 463.9 MB, free: 10.26 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.008988/0.4085, allocations: 5.025 MB / 468.9 MB, free: 5.172 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.067e-05/0.4086, allocations: 7.953 kB / 468.9 MB, free: 5.164 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003401/0.409, allocations: 148 kB / 469 MB, free: 5.02 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001987/0.4092, allocations: 183 kB / 469.2 MB, free: 4.84 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.007885/0.4171, allocations: 4.298 MB / 473.5 MB, free: 0.5352 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03111/0.4482, allocations: 14.76 MB / 488.3 MB, free: 1.445 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00588/0.4541, allocations: 4.198 MB / 492.5 MB, free: 12.95 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003879/0.458, allocations: 1.995 MB / 494.5 MB, free: 10.96 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003504/0.4584, allocations: 131.1 kB / 494.6 MB, free: 10.81 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.538e-05/0.4585, allocations: 56.94 kB / 494.7 MB, free: 10.75 MB / 414.1 MB Notification: Performance of pre-optimization done (n=198): time 4.478e-06/0.4585, allocations: 0 / 494.7 MB, free: 10.75 MB / 414.1 MB Notification: Performance of matching and sorting (n=218): time 0.02182/0.4803, allocations: 10.02 MB / 0.4928 GB, free: 0.6211 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.174e-05/0.4805, allocations: 73.41 kB / 0.4929 GB, free: 0.5352 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004519/0.485, allocations: 2.522 MB / 0.4954 GB, free: 13.99 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0003075/0.4853, allocations: 65.64 kB / 0.4954 GB, free: 13.92 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001487/0.4868, allocations: 1.662 MB / 0.4971 GB, free: 12.24 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0008078/0.4876, allocations: 0.7669 MB / 0.4978 GB, free: 11.47 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0007225/0.4883, allocations: 416.5 kB / 0.4982 GB, free: 11.05 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 0.0001305/0.4885, allocations: 305.1 kB / 0.4985 GB, free: 10.75 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00216/0.4907, allocations: 1.297 MB / 0.4998 GB, free: 9.453 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00255/0.4932, allocations: 1.775 MB / 0.5015 GB, free: 7.492 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004838/0.4981, allocations: 3.211 MB / 0.5046 GB, free: 4.098 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.278e-05/0.4981, allocations: 7.938 kB / 0.5046 GB, free: 4.09 MB / 430.1 MB Notification: Performance of matching and sorting (n=295) (initialization): time 0.007459/0.5056, allocations: 4.085 MB / 0.5086 GB, free: 15.98 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.187e-05/0.5056, allocations: 16.09 kB / 0.5086 GB, free: 15.96 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.651e-05/0.5056, allocations: 12 kB / 0.5087 GB, free: 15.95 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002885/0.5085, allocations: 0.8755 MB / 0.5095 GB, free: 15.06 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002177/0.5107, allocations: 0.5266 MB / 0.51 GB, free: 14.53 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01185/0.5226, allocations: 9.477 MB / 0.5193 GB, free: 4.637 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002461/0.5251, allocations: 119.9 kB / 0.5194 GB, free: 4.52 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002835/0.5254, allocations: 87.98 kB / 0.5195 GB, free: 4.434 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.00259/0.528, allocations: 1.231 MB / 0.5207 GB, free: 3.191 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007714/0.5288, allocations: 290.2 kB / 0.521 GB, free: 2.906 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00699/0.5358, allocations: 3.719 MB / 0.5246 GB, free: 15.16 MB / 462.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.544e-05/0.5358, allocations: 20.09 kB / 0.5246 GB, free: 15.14 MB / 462.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.499e-05/0.5359, allocations: 8 kB / 0.5246 GB, free: 15.13 MB / 462.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.592e-05/0.5359, allocations: 23.88 kB / 0.5246 GB, free: 15.11 MB / 462.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01549/0.5514, allocations: 8.014 MB / 0.5325 GB, free: 6.973 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.859e-06/0.5514, allocations: 0 / 0.5325 GB, free: 6.973 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001701/0.5532, allocations: 383.5 kB / 0.5328 GB, free: 6.598 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003189/0.5564, allocations: 0.933 MB / 0.5337 GB, free: 5.648 MB / 462.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002293/0.5566, allocations: 55.97 kB / 0.5338 GB, free: 5.594 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.2472/0.8038, allocations: 11.1 MB / 0.5446 GB, free: 119.4 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.14e-06/0.8038, allocations: 4.719 kB / 0.5446 GB, free: 119.4 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.007587/0.8114, allocations: 5.522 MB / 0.55 GB, free: 117.3 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001364/0.8128, allocations: 0.6428 MB / 0.5507 GB, free: 117 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003694/0.8132, allocations: 51.61 kB / 0.5507 GB, free: 117 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001268/0.8144, allocations: 121.3 kB / 0.5508 GB, free: 117 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004404/0.8149, allocations: 180.5 kB / 0.551 GB, free: 116.9 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001203/0.815, allocations: 57.86 kB / 0.5511 GB, free: 116.9 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.002144/0.8172, allocations: 1.739 MB / 0.5527 GB, free: 116.3 MB / 462.1 MB Notification: Performance of sort global known variables: time 1.6e-07/0.8172, allocations: 7.531 kB / 0.5528 GB, free: 116.3 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.002249/0.8194, allocations: 0.7965 MB / 0.5535 GB, free: 116.2 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.007152/0.8266, allocations: 6.214 MB / 0.5596 GB, free: 112.6 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.004894/0.8315, allocations: 3.893 MB / 0.5634 GB, free: 109.1 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 7.013e-06/0.8315, allocations: 3.938 kB / 0.5634 GB, free: 109.1 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.00299/0.8345, allocations: 2.491 MB / 0.5658 GB, free: 106.7 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003635/0.8382, allocations: 0.7794 MB / 0.5666 GB, free: 106 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04034/0.8786, allocations: 29.65 MB / 0.5956 GB, free: 75.75 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001891/0.8805, allocations: 2.774 MB / 0.5983 GB, free: 72.95 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.001855/0.8824, allocations: 0.6829 MB / 0.5989 GB, free: 72.26 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001534/0.8839, allocations: 1.413 MB / 0.6003 GB, free: 70.84 MB / 462.1 MB Notification: Performance of SimCode: time 1.052e-06/0.8839, allocations: 7.875 kB / 0.6003 GB, free: 70.84 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1202/1.004, allocations: 73.79 MB / 0.6724 GB, free: 13.78 MB / 478.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 15.25/16.25, allocations: 11.86 kB / 0.6724 GB, free: 13.77 MB / 478.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)