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.001405/0.001405, allocations: 122.2 kB / 17.79 MB, free: 5.266 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001415/0.001415, allocations: 206 kB / 18.74 MB, free: 4.324 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.503/1.503, allocations: 227.7 MB / 247.2 MB, free: 10.25 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.002124/0.002124, allocations: 59.91 kB / 358.5 MB, free: 13.27 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3137/0.3159, allocations: 50.54 MB / 409.1 MB, free: 1.391 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_Inverter): time 0.01758/0.3335, allocations: 13.44 MB / 422.5 MB, free: 3.887 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.009708/0.3433, allocations: 4.497 MB / 427 MB, free: 15.38 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002711/0.346, allocations: 79.69 kB / 427.1 MB, free: 15.3 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00351/0.3496, allocations: 1.001 MB / 428.1 MB, free: 14.29 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004946/0.3546, allocations: 1.246 MB / 429.3 MB, free: 13.04 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00266/0.3573, allocations: 0.8893 MB / 430.2 MB, free: 12.15 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.006074/0.3634, allocations: 3.918 MB / 434.1 MB, free: 8.223 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0047/0.3681, allocations: 3.228 MB / 437.4 MB, free: 4.918 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003424/0.3716, allocations: 1.842 MB / 439.2 MB, free: 3.07 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.004/0.3756, allocations: 2.195 MB / 441.4 MB, free: 0.8672 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001187/0.3769, allocations: 0.4961 MB / 441.9 MB, free: 380 kB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0024/0.3793, allocations: 0.7185 MB / 442.6 MB, free: 15.65 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001723/0.381, allocations: 1.103 MB / 443.7 MB, free: 14.55 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.003926/0.385, allocations: 2.085 MB / 445.8 MB, free: 12.45 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.009994/0.395, allocations: 6.646 MB / 452.4 MB, free: 5.785 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.323e-06/0.3951, allocations: 8 kB / 452.5 MB, free: 5.777 MB / 366.1 MB Notification: Performance of FrontEnd: time 2.184e-06/0.3951, allocations: 0 / 452.5 MB, free: 5.777 MB / 366.1 MB Notification: Performance of Transformations before backend: time 0.0001835/0.3953, allocations: 0 / 452.5 MB, free: 5.777 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: 822 * Number of variables: 822 Notification: Performance of Generate backend data structure: time 0.01317/0.4085, allocations: 4.421 MB / 456.9 MB, free: 1.281 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.752e-05/0.4085, allocations: 12.03 kB / 456.9 MB, free: 1.27 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001191/0.4097, allocations: 451.2 kB / 457.3 MB, free: 0.8164 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00482/0.4146, allocations: 0.8184 MB / 458.1 MB, free: 15.99 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006078/0.4207, allocations: 2.416 MB / 460.6 MB, free: 13.52 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002653/0.421, allocations: 234.2 kB / 460.8 MB, free: 13.29 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001068/0.422, allocations: 308 kB / 461.1 MB, free: 12.99 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00981/0.4319, allocations: 4.227 MB / 465.3 MB, free: 8.715 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.445e-05/0.432, allocations: 4 kB / 465.3 MB, free: 8.711 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004046/0.4324, allocations: 128 kB / 465.4 MB, free: 8.586 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001845/0.4326, allocations: 150.3 kB / 465.6 MB, free: 8.438 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0081/0.4407, allocations: 3.609 MB / 469.2 MB, free: 4.82 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02523/0.466, allocations: 13.14 MB / 482.3 MB, free: 7.332 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.008102/0.4741, allocations: 7.182 MB / 489.5 MB, free: 15.2 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003639/0.4778, allocations: 1.617 MB / 491.1 MB, free: 13.58 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.008766/0.4866, allocations: 4.198 MB / 495.3 MB, free: 9.23 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.315e-05/0.4867, allocations: 47.56 kB / 495.4 MB, free: 9.172 MB / 414.1 MB Notification: Performance of pre-optimization done (n=120): time 3.186e-06/0.4867, allocations: 0 / 495.4 MB, free: 9.172 MB / 414.1 MB Notification: Performance of matching and sorting (n=123): time 0.01383/0.5006, allocations: 5.608 MB / 0.4893 GB, free: 3.371 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.211e-05/0.5007, allocations: 64.41 kB / 0.4893 GB, free: 3.297 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003399/0.5041, allocations: 1.719 MB / 0.491 GB, free: 1.574 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002784/0.5044, allocations: 49.7 kB / 0.491 GB, free: 1.52 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001293/0.5057, allocations: 1.446 MB / 0.4925 GB, free: 60 kB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0006266/0.5064, allocations: 456.3 kB / 0.4929 GB, free: 15.61 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005674/0.5069, allocations: 283.5 kB / 0.4932 GB, free: 15.32 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 0.0001344/0.5071, allocations: 309.1 kB / 0.4935 GB, free: 15.02 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001444/0.5086, allocations: 0.6559 MB / 0.4941 GB, free: 14.36 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001617/0.5102, allocations: 1.121 MB / 0.4952 GB, free: 13.04 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003063/0.5133, allocations: 1.902 MB / 0.497 GB, free: 10.94 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.289e-05/0.5133, allocations: 4 kB / 0.497 GB, free: 10.94 MB / 430.1 MB Notification: Performance of matching and sorting (n=200) (initialization): time 0.004616/0.5179, allocations: 2.41 MB / 0.4994 GB, free: 8.492 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.213e-05/0.518, allocations: 14.81 kB / 0.4994 GB, free: 8.48 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.626e-05/0.518, allocations: 16 kB / 0.4994 GB, free: 8.465 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008678/0.5189, allocations: 319.4 kB / 0.4997 GB, free: 8.141 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001316/0.5202, allocations: 351.4 kB / 0.5001 GB, free: 7.797 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007021/0.5273, allocations: 6.63 MB / 0.5065 GB, free: 0.7461 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001408/0.5287, allocations: 75.91 kB / 0.5066 GB, free: 0.6719 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001641/0.5289, allocations: 68 kB / 0.5067 GB, free: 0.6055 MB / 430.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.001817/0.5307, allocations: 1.005 MB / 0.5077 GB, free: 15.59 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003993/0.5311, allocations: 194.8 kB / 0.5079 GB, free: 15.4 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004298/0.5354, allocations: 2.202 MB / 0.51 GB, free: 13.13 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.573e-05/0.5355, allocations: 12 kB / 0.51 GB, free: 13.12 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.039e-05/0.5355, allocations: 12 kB / 0.51 GB, free: 13.11 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.714e-05/0.5355, allocations: 7.969 kB / 0.51 GB, free: 13.1 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.009171/0.5447, allocations: 4.948 MB / 0.5149 GB, free: 8.016 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.015e-05/0.5447, allocations: 0 / 0.5149 GB, free: 8.016 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008406/0.5456, allocations: 175.9 kB / 0.515 GB, free: 7.844 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.00151/0.5471, allocations: 492 kB / 0.5155 GB, free: 7.348 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.00015/0.5473, allocations: 43.92 kB / 0.5155 GB, free: 7.305 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0135/0.5608, allocations: 11.46 MB / 0.5267 GB, free: 11.14 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.643e-06/0.5609, allocations: 4.359 kB / 0.5267 GB, free: 11.14 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006129/0.567, allocations: 3.109 MB / 0.5298 GB, free: 7.938 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001203/0.5682, allocations: 423.7 kB / 0.5302 GB, free: 7.504 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003099/0.5686, allocations: 28 kB / 0.5302 GB, free: 7.477 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009434/0.5695, allocations: 75.81 kB / 0.5303 GB, free: 7.402 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003373/0.5699, allocations: 96.8 kB / 0.5304 GB, free: 7.309 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.974e-05/0.57, allocations: 35.98 kB / 0.5304 GB, free: 7.273 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.002217/0.5722, allocations: 1.186 MB / 0.5316 GB, free: 6.094 MB / 462.1 MB Notification: Performance of sort global known variables: time 2.91e-07/0.5722, allocations: 0 / 0.5316 GB, free: 6.094 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.002481/0.5747, allocations: 0.5507 MB / 0.5321 GB, free: 5.543 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.00632/0.5811, allocations: 3.716 MB / 0.5357 GB, free: 1.73 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.2332/0.8143, allocations: 2.13 MB / 0.5378 GB, free: 126.1 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 7.975e-06/0.8144, allocations: 1.875 kB / 0.5378 GB, free: 126.1 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.003054/0.8174, allocations: 1.563 MB / 0.5393 GB, free: 125.5 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002836/0.8203, allocations: 0.5161 MB / 0.5398 GB, free: 125.5 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02984/0.8502, allocations: 19.3 MB / 0.5587 GB, free: 114 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001982/0.8522, allocations: 2.291 MB / 0.5609 GB, free: 111.8 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.001508/0.8537, allocations: 383.8 kB / 0.5613 GB, free: 111.4 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001371/0.8551, allocations: 1.109 MB / 0.5624 GB, free: 110.3 MB / 462.1 MB Notification: Performance of SimCode: time 9.12e-07/0.8551, allocations: 0 / 0.5624 GB, free: 110.3 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.09396/0.9491, allocations: 50.9 MB / 0.6121 GB, free: 59.99 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 13.37/14.32, allocations: 11.73 kB / 0.6121 GB, free: 59.98 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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.1.0-beta.om_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_Inverter_res.mat --tempDir=temp_Modelica_4_1_0-beta_om_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_InductionMachines_IMC_Inverter_fmu --startTime=0 --stopTime=1.5 --timeout=50 --tolerance=1e-06 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)