Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.1_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_Inverter.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: translateModel(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_Inverter,tolerance=1e-06,outputFormat="empty",numberOfIntervals=30000,variableFilter="",fileNamePrefix="Modelica_3.2.1_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_Inverter") translateModel(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_Inverter,tolerance=1e-06,outputFormat="empty",numberOfIntervals=30000,variableFilter="",fileNamePrefix="Modelica_3.2.1_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_Inverter") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.008356/0.008356, allocations: 100.6 kB / 15.73 MB, free: 6.012 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001866/0.001867, allocations: 197.2 kB / 16.67 MB, free: 5.934 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.379/1.379, allocations: 205.1 MB / 222.6 MB, free: 4.496 MB / 174.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001208/0.001208, allocations: 45.16 kB / 326.6 MB, free: 14.26 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0955/0.09672, allocations: 46.63 MB / 373.2 MB, free: 1.297 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_Inverter): time 0.01398/0.1107, allocations: 12.76 MB / 385.9 MB, free: 4.473 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.007767/0.1185, allocations: 4.283 MB / 390.2 MB, free: 180 kB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001471/0.1201, allocations: 63.75 kB / 390.3 MB, free: 116 kB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002325/0.1224, allocations: 0.9668 MB / 391.3 MB, free: 15.14 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003098/0.1255, allocations: 1.258 MB / 392.5 MB, free: 13.88 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001925/0.1275, allocations: 0.8651 MB / 393.4 MB, free: 13.01 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.004122/0.1316, allocations: 3.88 MB / 397.3 MB, free: 9.113 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003378/0.135, allocations: 3.177 MB / 400.4 MB, free: 5.863 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002313/0.1373, allocations: 1.823 MB / 402.3 MB, free: 4.035 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002316/0.1397, allocations: 2.067 MB / 404.3 MB, free: 1.961 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0006/0.1403, allocations: 0.4961 MB / 404.8 MB, free: 1.465 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001163/0.1414, allocations: 0.6951 MB / 405.5 MB, free: 0.7695 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000936/0.1424, allocations: 1.106 MB / 406.6 MB, free: 15.66 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.00206/0.1445, allocations: 2.077 MB / 408.7 MB, free: 13.57 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.007135/0.1516, allocations: 6.578 MB / 415.3 MB, free: 6.977 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.839e-06/0.1517, allocations: 4 kB / 415.3 MB, free: 6.973 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.933e-06/0.1517, allocations: 0 / 415.3 MB, free: 6.973 MB / 350.1 MB Notification: Performance of Transformations before backend: time 0.0001438/0.1518, allocations: 3.938 kB / 415.3 MB, free: 6.969 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: 822 * Number of variables: 822 Notification: Performance of Generate backend data structure: time 0.01207/0.1639, allocations: 4.308 MB / 419.6 MB, free: 2.59 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.78e-05/0.1639, allocations: 8.031 kB / 419.6 MB, free: 2.582 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004273/0.1682, allocations: 0.8008 MB / 420.4 MB, free: 1.777 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00391/0.1721, allocations: 2.247 MB / 422.7 MB, free: 15.47 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001672/0.1723, allocations: 230.4 kB / 422.9 MB, free: 15.24 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005206/0.1729, allocations: 315.8 kB / 423.2 MB, free: 14.94 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.006839/0.1797, allocations: 4.219 MB / 427.4 MB, free: 10.67 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.821e-05/0.1798, allocations: 3.906 kB / 427.4 MB, free: 10.66 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003021/0.1801, allocations: 136 kB / 427.5 MB, free: 10.53 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001332/0.1802, allocations: 146.3 kB / 427.7 MB, free: 10.39 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.006008/0.1863, allocations: 3.601 MB / 431.3 MB, free: 6.777 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01857/0.2049, allocations: 13.01 MB / 444.3 MB, free: 9.434 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00667/0.2116, allocations: 6.896 MB / 451.2 MB, free: 1.637 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002218/0.2138, allocations: 1.351 MB / 452.5 MB, free: 284 kB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.2224/0.4363, allocations: 3.698 MB / 456.2 MB, free: 67.45 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.044e-05/0.4364, allocations: 48.84 kB / 456.3 MB, free: 67.4 MB / 382.1 MB Notification: Performance of pre-optimization done (n=119): time 3.938e-06/0.4364, allocations: 0 / 456.3 MB, free: 67.4 MB / 382.1 MB Notification: Performance of matching and sorting (n=122): time 0.01166/0.448, allocations: 5.359 MB / 461.7 MB, free: 64.7 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.037e-05/0.4481, allocations: 67.97 kB / 461.7 MB, free: 64.63 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003013/0.4512, allocations: 1.707 MB / 463.4 MB, free: 63.96 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 9.652e-05/0.4513, allocations: 47.11 kB / 463.5 MB, free: 63.91 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0008326/0.4521, allocations: 1.4 MB / 464.9 MB, free: 62.85 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002816/0.4524, allocations: 432.5 kB / 465.3 MB, free: 62.52 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004362/0.4528, allocations: 284.7 kB / 465.6 MB, free: 62.38 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 4.535e-05/0.4529, allocations: 301.1 kB / 465.9 MB, free: 62.09 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001079/0.454, allocations: 0.6422 MB / 466.5 MB, free: 61.84 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001477/0.4555, allocations: 1.111 MB / 467.6 MB, free: 61.01 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002643/0.4581, allocations: 1.878 MB / 469.5 MB, free: 59.79 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.408e-05/0.4582, allocations: 9.188 kB / 469.5 MB, free: 59.79 MB / 382.1 MB Notification: Performance of matching and sorting (n=200) (initialization): time 0.004079/0.4622, allocations: 2.32 MB / 471.8 MB, free: 58.72 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.068e-05/0.4623, allocations: 12.53 kB / 471.8 MB, free: 58.72 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.741e-05/0.4623, allocations: 14.53 kB / 471.9 MB, free: 58.72 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006685/0.463, allocations: 265.7 kB / 472.1 MB, free: 58.62 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001193/0.4642, allocations: 354.9 kB / 472.5 MB, free: 58.59 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004156/0.4684, allocations: 6.206 MB / 478.7 MB, free: 53.21 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001566/0.47, allocations: 73.86 kB / 478.7 MB, free: 53.18 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001053/0.4701, allocations: 75.14 kB / 478.8 MB, free: 53.16 MB / 382.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 66 * 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 (180): * Single equations (assignments): 176 * 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,5,100.0%), (1,13,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.001732/0.4718, allocations: 0.9894 MB / 479.8 MB, free: 52.6 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003938/0.4722, allocations: 187.4 kB / 480 MB, free: 52.5 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003319/0.4755, allocations: 2.123 MB / 482.1 MB, free: 51.36 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.051e-05/0.4756, allocations: 15.86 kB / 482.1 MB, free: 51.35 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.103e-05/0.4756, allocations: 7.875 kB / 482.1 MB, free: 51.35 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.089e-05/0.4756, allocations: 7.984 kB / 482.1 MB, free: 51.34 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006937/0.4825, allocations: 4.812 MB / 486.9 MB, free: 48.17 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.743e-06/0.4826, allocations: 3.938 kB / 487 MB, free: 48.17 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007067/0.4833, allocations: 165.5 kB / 487.1 MB, free: 48.1 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001015/0.4843, allocations: 454.3 kB / 487.6 MB, free: 47.64 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.672e-05/0.4844, allocations: 35.98 kB / 487.6 MB, free: 47.61 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007795/0.4922, allocations: 11.02 MB / 498.6 MB, free: 35.95 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.394e-06/0.4922, allocations: 4.094 kB / 498.6 MB, free: 35.95 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004122/0.4964, allocations: 2.991 MB / 0.4899 GB, free: 32.86 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0008833/0.4973, allocations: 406.8 kB / 0.4902 GB, free: 32.45 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002059/0.4975, allocations: 30.62 kB / 0.4903 GB, free: 32.42 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008288/0.4983, allocations: 67.94 kB / 0.4903 GB, free: 32.35 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002214/0.4985, allocations: 104.7 kB / 0.4904 GB, free: 32.25 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.129e-05/0.4986, allocations: 39.98 kB / 0.4905 GB, free: 32.21 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.001396/0.5, allocations: 1.17 MB / 0.4916 GB, free: 31.05 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.8e-07/0.5, allocations: 0 / 0.4916 GB, free: 31.05 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.001902/0.5019, allocations: 0.5416 MB / 0.4921 GB, free: 30.51 MB / 382.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 8 * 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 (86): * Single equations (assignments): 81 * 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,5,100.0%), (1,1,100.0%), (1,13,100.0%), (1,8,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.0002759/0.5022, allocations: 159 kB / 0.4923 GB, free: 30.34 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.002728/0.505, allocations: 2.073 MB / 0.4943 GB, free: 28.22 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 3.727e-06/0.505, allocations: 0 / 0.4943 GB, free: 28.22 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001819/0.5068, allocations: 1.531 MB / 0.4958 GB, free: 26.63 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001936/0.5088, allocations: 0.5097 MB / 0.4963 GB, free: 26.14 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007899/0.5167, allocations: 5.458 MB / 0.5016 GB, free: 20.65 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001465/0.5182, allocations: 2.287 MB / 0.5039 GB, free: 18.33 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.001156/0.5193, allocations: 383.8 kB / 0.5042 GB, free: 17.95 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002701/0.5196, allocations: 123.4 kB / 0.5044 GB, free: 17.83 MB / 382.1 MB Notification: Performance of SimCode: time 1.734e-06/0.5196, allocations: 0 / 0.5044 GB, free: 17.83 MB / 382.1 MB Notification: Performance of Templates: time 0.04327/0.5629, allocations: 27.99 MB / 0.5317 GB, free: 5.816 MB / 398.1 MB make -j1 -f Modelica_3.2.1_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_Inverter.makefile (rm -f Modelica_3.2.1_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_Inverter.pipe ; mkfifo Modelica_3.2.1_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_Inverter.pipe ; head -c 1048576 < Modelica_3.2.1_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_Inverter.pipe >> ../files/Modelica_3.2.1_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_Inverter.sim & ./Modelica_3.2.1_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_Inverter -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.2.1_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_Inverter.pipe 2>&1)