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_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.Magnetic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_Inverter,fileNamePrefix="Modelica_4_1_0-beta_om_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_InductionMachines_IMC_Inverter",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_Inverter,fileNamePrefix="Modelica_4_1_0-beta_om_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_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.001662/0.001662, allocations: 117.4 kB / 17.84 MB, free: 5.09 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001987/0.001987, allocations: 208.5 kB / 18.79 MB, free: 4.141 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: 230.4 MB / 250 MB, free: 9.141 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.001945/0.001945, allocations: 71.83 kB / 366.9 MB, free: 7.516 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2998/0.3017, allocations: 53.31 MB / 420.2 MB, free: 8.262 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_Inverter): time 0.01671/0.3184, allocations: 13.5 MB / 433.7 MB, free: 10.7 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.009947/0.3284, allocations: 4.513 MB / 438.2 MB, free: 6.172 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002751/0.3311, allocations: 83.69 kB / 438.3 MB, free: 6.09 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003587/0.3347, allocations: 1.044 MB / 439.3 MB, free: 5.043 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00547/0.3402, allocations: 1.282 MB / 440.6 MB, free: 3.754 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002999/0.3432, allocations: 0.8988 MB / 441.5 MB, free: 2.855 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.006405/0.3496, allocations: 3.929 MB / 445.4 MB, free: 14.92 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.004386/0.354, allocations: 2.253 MB / 447.7 MB, free: 12.59 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003408/0.3574, allocations: 1.862 MB / 449.6 MB, free: 10.72 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003948/0.3613, allocations: 2.215 MB / 451.8 MB, free: 8.5 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001385/0.3627, allocations: 0.5 MB / 452.3 MB, free: 8 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002335/0.365, allocations: 0.7185 MB / 453 MB, free: 7.281 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.00162/0.3667, allocations: 1.106 MB / 454.1 MB, free: 6.172 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.003482/0.3701, allocations: 2.081 MB / 456.2 MB, free: 4.082 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00832/0.3785, allocations: 6.654 MB / 462.8 MB, free: 13.41 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.43e-06/0.3785, allocations: 4 kB / 462.8 MB, free: 13.4 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.303e-06/0.3785, allocations: 0 / 462.8 MB, free: 13.4 MB / 382.1 MB Notification: Performance of Transformations before backend: time 0.0001693/0.3786, allocations: 0 / 462.8 MB, free: 13.4 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: 822 * Number of variables: 822 Notification: Performance of Generate backend data structure: time 0.01306/0.3917, allocations: 4.428 MB / 467.3 MB, free: 8.898 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.852e-05/0.3918, allocations: 8.031 kB / 467.3 MB, free: 8.891 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0008373/0.3926, allocations: 447.2 kB / 467.7 MB, free: 8.441 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004432/0.397, allocations: 0.8339 MB / 468.5 MB, free: 7.605 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005041/0.4021, allocations: 2.405 MB / 470.9 MB, free: 5.145 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002301/0.4023, allocations: 238.2 kB / 471.2 MB, free: 4.91 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0008071/0.4031, allocations: 311.9 kB / 471.5 MB, free: 4.605 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.009042/0.4121, allocations: 4.223 MB / 475.7 MB, free: 340 kB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.9e-05/0.4122, allocations: 4 kB / 475.7 MB, free: 336 kB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004227/0.4127, allocations: 135.9 kB / 475.8 MB, free: 200 kB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001647/0.4128, allocations: 150.3 kB / 476 MB, free: 48 kB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.008584/0.4214, allocations: 3.605 MB / 479.6 MB, free: 12.43 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02555/0.4469, allocations: 13.14 MB / 492.7 MB, free: 14.95 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.008607/0.4556, allocations: 7.042 MB / 499.8 MB, free: 6.949 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003567/0.4591, allocations: 1.512 MB / 0.4895 GB, free: 5.441 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.00819/0.4673, allocations: 4.194 MB / 0.4936 GB, free: 1.094 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.382e-05/0.4674, allocations: 51.56 kB / 0.4937 GB, free: 1.031 MB / 414.1 MB Notification: Performance of pre-optimization done (n=120): time 4.399e-06/0.4674, allocations: 0 / 0.4937 GB, free: 1.031 MB / 414.1 MB Notification: Performance of matching and sorting (n=123): time 0.01264/0.48, allocations: 5.592 MB / 0.4991 GB, free: 11.25 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.001e-05/0.4801, allocations: 68.41 kB / 0.4992 GB, free: 11.17 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003032/0.4831, allocations: 1.719 MB / 0.5009 GB, free: 9.445 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001259/0.4832, allocations: 49.7 kB / 0.5009 GB, free: 9.391 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001207/0.4844, allocations: 1.446 MB / 0.5023 GB, free: 7.93 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004325/0.4849, allocations: 456.1 kB / 0.5028 GB, free: 7.48 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004813/0.4854, allocations: 283.5 kB / 0.503 GB, free: 7.199 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 0.0002158/0.4856, allocations: 309.1 kB / 0.5033 GB, free: 6.895 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001279/0.4868, allocations: 0.652 MB / 0.504 GB, free: 6.242 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00162/0.4885, allocations: 1.129 MB / 0.5051 GB, free: 4.914 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00295/0.4914, allocations: 1.898 MB / 0.5069 GB, free: 2.816 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.033e-05/0.4914, allocations: 4 kB / 0.5069 GB, free: 2.812 MB / 430.1 MB Notification: Performance of matching and sorting (n=200) (initialization): time 0.004499/0.4959, allocations: 2.402 MB / 0.5093 GB, free: 380 kB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.144e-05/0.496, allocations: 12 kB / 0.5093 GB, free: 368 kB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.963e-05/0.496, allocations: 12 kB / 0.5093 GB, free: 356 kB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008696/0.4969, allocations: 315.5 kB / 0.5096 GB, free: 28 kB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001384/0.4982, allocations: 343.4 kB / 0.5099 GB, free: 15.69 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007492/0.5057, allocations: 6.63 MB / 0.5164 GB, free: 8.641 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001582/0.5073, allocations: 79.86 kB / 0.5165 GB, free: 8.562 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001643/0.5075, allocations: 71.92 kB / 0.5166 GB, free: 8.492 MB / 446.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 65 * 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 (177): * Single equations (assignments): 173 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 1 * 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): 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): 3 systems {(1,1,100.0%), (1,8,100.0%), (1,13,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.002087/0.5096, allocations: 1.001 MB / 0.5175 GB, free: 7.48 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000432/0.51, allocations: 190.8 kB / 0.5177 GB, free: 7.293 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004309/0.5143, allocations: 2.19 MB / 0.5199 GB, free: 5.039 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.555e-05/0.5143, allocations: 16 kB / 0.5199 GB, free: 5.023 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.474e-05/0.5143, allocations: 8 kB / 0.5199 GB, free: 5.016 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.538e-05/0.5144, allocations: 3.984 kB / 0.5199 GB, free: 5.012 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.009615/0.524, allocations: 4.929 MB / 0.5247 GB, free: 15.94 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.437e-06/0.524, allocations: 3.938 kB / 0.5247 GB, free: 15.94 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007742/0.5248, allocations: 168 kB / 0.5249 GB, free: 15.77 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001398/0.5262, allocations: 0.4949 MB / 0.5253 GB, free: 15.26 MB / 462.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001249/0.5263, allocations: 35.98 kB / 0.5254 GB, free: 15.23 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01306/0.5393, allocations: 11.48 MB / 0.5366 GB, free: 3.047 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.466e-06/0.5393, allocations: 0 / 0.5366 GB, free: 3.047 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.3158/0.8552, allocations: 3.086 MB / 0.5396 GB, free: 113.8 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001281/0.8564, allocations: 417.8 kB / 0.54 GB, free: 113.8 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004959/0.8569, allocations: 36.81 kB / 0.54 GB, free: 113.8 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001156/0.8581, allocations: 70.98 kB / 0.5401 GB, free: 113.8 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003615/0.8585, allocations: 93.58 kB / 0.5402 GB, free: 113.8 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001179/0.8586, allocations: 35.75 kB / 0.5402 GB, free: 113.8 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.002455/0.861, allocations: 1.184 MB / 0.5414 GB, free: 113.6 MB / 462.1 MB Notification: Performance of sort global known variables: time 1e-07/0.861, allocations: 2.781 kB / 0.5414 GB, free: 113.6 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.002485/0.8635, allocations: 0.5473 MB / 0.5419 GB, free: 113.6 MB / 462.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 7 * Number of states: 7 (aimc.inertiaRotor.w,aimc.stator.core.Phi.re,aimc.stator.core.Phi.im,aimc.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter[3].Phi.re,aimc.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter[3].Phi.im,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 (83): * Single equations (assignments): 78 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 5 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 5 systems {(1,8,100.0%), (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.00667/0.8702, allocations: 3.697 MB / 0.5455 GB, free: 112.3 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.00482/0.875, allocations: 2.064 MB / 0.5475 GB, free: 111.2 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 6.663e-06/0.875, allocations: 7.219 kB / 0.5475 GB, free: 111.2 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.003103/0.8781, allocations: 1.5 MB / 0.549 GB, free: 110.3 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003789/0.8819, allocations: 0.5198 MB / 0.5495 GB, free: 110.2 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04025/0.9222, allocations: 19.31 MB / 0.5684 GB, free: 96.6 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002801/0.925, allocations: 2.286 MB / 0.5706 GB, free: 94.47 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.002001/0.927, allocations: 383.8 kB / 0.571 GB, free: 94.09 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001827/0.9288, allocations: 1.108 MB / 0.5721 GB, free: 92.99 MB / 462.1 MB Notification: Performance of SimCode: time 1.353e-06/0.9288, allocations: 0 / 0.5721 GB, free: 92.99 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.116/1.045, allocations: 51.46 MB / 0.6223 GB, free: 42.09 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 13.31/14.36, allocations: 7.438 kB / 0.6223 GB, free: 42.09 MB / 462.1 MB (rm -f Modelica_4.1.0-beta.om_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_Inverter.pipe ; mkfifo Modelica_4.1.0-beta.om_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_Inverter.pipe ; head -c 1048576 < Modelica_4.1.0-beta.om_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_Inverter.pipe >> ../files/Modelica_4.1.0-beta.om_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_Inverter.sim & python3 -m fmpy simulate --output-file Modelica_4.1.0-beta.om_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.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_Magnetic_FundamentalWave_Examples_BasicMachines_InductionMachines_IMC_Inverter.fmu > Modelica_4.1.0-beta.om_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_Inverter.pipe 2>&1)