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_Inverter.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_Inverter,fileNamePrefix="Modelica_4_1_0-beta_om_Modelica_Electrical_Machines_Examples_InductionMachines_IMC_Inverter",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Machines.Examples.InductionMachines.IMC_Inverter,fileNamePrefix="Modelica_4_1_0-beta_om_Modelica_Electrical_Machines_Examples_InductionMachines_IMC_Inverter",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001366/0.001366, allocations: 118.2 kB / 17.78 MB, free: 5.258 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001427/0.001427, allocations: 205.2 kB / 18.74 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.36/1.36, allocations: 227.7 MB / 247.2 MB, free: 10.15 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.00191/0.00191, allocations: 67.89 kB / 358.5 MB, free: 13.23 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2689/0.2708, allocations: 50.54 MB / 409.1 MB, free: 1.344 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.InductionMachines.IMC_Inverter): time 0.01081/0.2817, allocations: 8.881 MB / 418 MB, free: 8.426 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.005544/0.2873, allocations: 2.878 MB / 420.8 MB, free: 5.539 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001042/0.2884, allocations: 43.81 kB / 420.9 MB, free: 5.496 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001563/0.29, allocations: 0.6123 MB / 421.5 MB, free: 4.883 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002162/0.2921, allocations: 0.7105 MB / 422.2 MB, free: 4.168 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007582/0.2929, allocations: 323.5 kB / 422.5 MB, free: 3.852 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.002674/0.2956, allocations: 2.232 MB / 424.8 MB, free: 1.613 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002069/0.2977, allocations: 1.746 MB / 426.5 MB, free: 15.82 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001609/0.2993, allocations: 1.024 MB / 427.5 MB, free: 14.79 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001871/0.3012, allocations: 1.281 MB / 428.8 MB, free: 13.5 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0004263/0.3016, allocations: 268 kB / 429.1 MB, free: 13.24 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0007726/0.3024, allocations: 371.8 kB / 429.4 MB, free: 12.88 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0007712/0.3032, allocations: 0.7558 MB / 430.2 MB, free: 12.12 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001419/0.3046, allocations: 1.21 MB / 431.4 MB, free: 10.91 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.004207/0.3088, allocations: 3.546 MB / 434.9 MB, free: 7.348 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.819e-06/0.3089, allocations: 4 kB / 434.9 MB, free: 7.344 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.003e-06/0.3089, allocations: 0 / 434.9 MB, free: 7.344 MB / 350.1 MB Notification: Performance of Transformations before backend: time 7.339e-05/0.309, allocations: 0 / 434.9 MB, free: 7.344 MB / 350.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 468 * Number of variables: 468 Notification: Performance of Generate backend data structure: time 0.005552/0.3145, allocations: 2.553 MB / 437.5 MB, free: 4.73 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.44e-05/0.3146, allocations: 8.031 kB / 437.5 MB, free: 4.723 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0003879/0.315, allocations: 274 kB / 437.8 MB, free: 4.445 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007341/0.3157, allocations: 263.4 kB / 438 MB, free: 4.188 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002272/0.318, allocations: 1.31 MB / 439.3 MB, free: 2.82 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001093/0.3181, allocations: 139.7 kB / 439.5 MB, free: 2.684 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002873/0.3184, allocations: 179.9 kB / 439.7 MB, free: 2.508 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004147/0.3226, allocations: 2.374 MB / 442 MB, free: 100 kB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.412e-05/0.3227, allocations: 7.891 kB / 442 MB, free: 92 kB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000165/0.3228, allocations: 75.98 kB / 442.1 MB, free: 16 kB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001205/0.323, allocations: 91.5 kB / 442.2 MB, free: 15.93 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003558/0.3265, allocations: 1.962 MB / 444.2 MB, free: 13.96 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01182/0.3384, allocations: 7.088 MB / 451.2 MB, free: 6.676 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001919/0.3403, allocations: 1.277 MB / 452.5 MB, free: 5.336 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001597/0.342, allocations: 0.8542 MB / 453.4 MB, free: 4.48 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002467/0.3422, allocations: 122.1 kB / 453.5 MB, free: 4.34 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.671e-05/0.3423, allocations: 47.5 kB / 453.5 MB, free: 4.285 MB / 366.1 MB Notification: Performance of pre-optimization done (n=87): time 3.055e-06/0.3423, allocations: 0 / 453.5 MB, free: 4.285 MB / 366.1 MB Notification: Performance of matching and sorting (n=104): time 0.01377/0.356, allocations: 6.128 MB / 459.7 MB, free: 14.01 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.793e-05/0.3561, allocations: 72.41 kB / 459.7 MB, free: 13.92 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00191/0.3581, allocations: 1.211 MB / 461 MB, free: 12.7 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 9.394e-05/0.3582, allocations: 45.7 kB / 461 MB, free: 12.65 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000691/0.3589, allocations: 0.8908 MB / 461.9 MB, free: 11.75 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003226/0.3592, allocations: 380.8 kB / 462.3 MB, free: 11.37 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003531/0.3596, allocations: 222.9 kB / 462.5 MB, free: 11.15 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001717/0.3597, allocations: 353.9 kB / 462.8 MB, free: 10.8 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001023/0.3608, allocations: 0.6155 MB / 463.4 MB, free: 10.18 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001247/0.362, allocations: 0.9188 MB / 464.4 MB, free: 9.137 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002359/0.3644, allocations: 1.643 MB / 466 MB, free: 7.367 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.823e-06/0.3644, allocations: 4 kB / 466 MB, free: 7.363 MB / 382.1 MB Notification: Performance of matching and sorting (n=154) (initialization): time 0.003949/0.3684, allocations: 2.232 MB / 468.2 MB, free: 5.09 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.914e-05/0.3684, allocations: 15.98 kB / 468.3 MB, free: 5.074 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.059e-05/0.3684, allocations: 15.98 kB / 468.3 MB, free: 5.059 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001141/0.3696, allocations: 475.9 kB / 468.7 MB, free: 4.578 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009907/0.3706, allocations: 271.6 kB / 469 MB, free: 4.312 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007325/0.3779, allocations: 7.014 MB / 476 MB, free: 12.88 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001244/0.3792, allocations: 79.91 kB / 476.1 MB, free: 12.8 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001035/0.3793, allocations: 48 kB / 476.1 MB, free: 12.75 MB / 398.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 41 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (132): * Single equations (assignments): 127 * 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 {(2,12,100.0%), (1,6,100.0%), (1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.001099/0.3804, allocations: 0.6028 MB / 476.7 MB, free: 12.14 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002852/0.3807, allocations: 143 kB / 476.9 MB, free: 12 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003632/0.3844, allocations: 2.035 MB / 478.9 MB, free: 9.922 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.039e-05/0.3844, allocations: 8 kB / 478.9 MB, free: 9.914 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.686e-06/0.3844, allocations: 8 kB / 478.9 MB, free: 9.906 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.441e-05/0.3844, allocations: 11.95 kB / 478.9 MB, free: 9.895 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007075/0.3915, allocations: 4.211 MB / 483.2 MB, free: 5.547 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.058e-05/0.3916, allocations: 8.406 kB / 483.2 MB, free: 5.539 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007388/0.3923, allocations: 183.7 kB / 483.3 MB, free: 5.359 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001361/0.3937, allocations: 0.5154 MB / 483.9 MB, free: 4.828 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.972e-05/0.3938, allocations: 27.98 kB / 483.9 MB, free: 4.801 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008322/0.4021, allocations: 8.635 MB / 492.5 MB, free: 11.61 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.013e-06/0.4021, allocations: 7.938 kB / 492.5 MB, free: 11.6 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004798/0.407, allocations: 2.946 MB / 495.5 MB, free: 8.559 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007303/0.4077, allocations: 360 kB / 495.8 MB, free: 8.188 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001963/0.4079, allocations: 35.92 kB / 495.9 MB, free: 8.152 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007452/0.4087, allocations: 71.92 kB / 495.9 MB, free: 8.082 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002428/0.4089, allocations: 92.75 kB / 496 MB, free: 7.992 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.82e-05/0.409, allocations: 28 kB / 496 MB, free: 7.965 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.00129/0.4103, allocations: 0.85 MB / 496.9 MB, free: 7.109 MB / 414.1 MB Notification: Performance of sort global known variables: time 1.5e-07/0.4103, allocations: 0 / 496.9 MB, free: 7.109 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.001457/0.4118, allocations: 411.9 kB / 497.3 MB, free: 6.707 MB / 414.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 16 * Number of states: 7 (aimc.inertiaRotor.w,aimc.idq_sr[1],aimc.idq_sr[2],aimc.idq_rr[1],aimc.idq_rr[2],vfController.x,loadInertia.phi) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (88): * Single equations (assignments): 83 * 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 {(2,12,100.0%), (1,6,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.005456/0.4173, allocations: 3.562 MB / 0.4891 GB, free: 3.039 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.003647/0.4209, allocations: 2.169 MB / 0.4912 GB, free: 0.7891 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 6.211e-06/0.421, allocations: 0.6875 kB / 0.4912 GB, free: 0.7891 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002489/0.4235, allocations: 1.495 MB / 0.4927 GB, free: 15.22 MB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002008/0.4255, allocations: 383.4 kB / 0.4931 GB, free: 14.86 MB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02459/0.4501, allocations: 15.14 MB / 0.5078 GB, free: 15.13 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001483/0.4516, allocations: 1.634 MB / 0.5094 GB, free: 13.46 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.0009457/0.4526, allocations: 303.7 kB / 0.5097 GB, free: 13.16 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0009392/0.4536, allocations: 0.6867 MB / 0.5104 GB, free: 12.47 MB / 446.1 MB Notification: Performance of SimCode: time 5.41e-07/0.4536, allocations: 0 / 0.5104 GB, free: 12.47 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2776/0.7311, allocations: 37.41 MB / 0.5469 GB, free: 128.8 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.31/13.04, allocations: 10.08 kB / 0.547 GB, free: 128.8 MB / 462.1 MB (rm -f Modelica_4.1.0-beta.om_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_Inverter.pipe ; mkfifo Modelica_4.1.0-beta.om_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_Inverter.pipe ; head -c 1048576 < Modelica_4.1.0-beta.om_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_Inverter.pipe >> ../files/Modelica_4.1.0-beta.om_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_Inverter.sim & python3 -m fmpy simulate --output-file Modelica_4.1.0-beta.om_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_Inverter_res.csv --start-time 0 --stop-time 1.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_Inverter.fmu > Modelica_4.1.0-beta.om_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_Inverter.pipe 2>&1)