Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.2_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_Inverter.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.2+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.2+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.2+maint.om/package.mo) Using package Modelica with version 3.2.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+maint.om/package.mo) Using package Complex with version 3.2.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.2+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.2_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.2_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_Inverter") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.2+maint.om/package.mo): time 0.0009677/0.0009675, allocations: 187.8 kB / 8.353 MB, free: 0.707 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+maint.om/package.mo): time 1.255/1.255, allocations: 194.3 MB / 203.1 MB, free: 9.32 MB / 171.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.2+maint.om/package.mo): time 0.001683/0.001683, allocations: 122.7 kB / 248.1 MB, free: 6.336 MB / 203.1 MB Notification: Performance of FrontEnd - loaded program: time 1.688e-05/1.69e-05, allocations: 4 kB / 298.1 MB, free: 8.227 MB / 251.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09043/0.09047, allocations: 44.49 MB / 342.6 MB, free: 11.63 MB / 299.1 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3246/0.4151, allocations: 102.4 MB / 445 MB, free: 9.863 MB / 331.1 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001935/0.4154, allocations: 85.02 kB / 445.1 MB, free: 9.82 MB / 331.1 MB Notification: Performance of FrontEnd - DAE generated: time 0.1856/0.601, allocations: 78.43 MB / 0.5112 GB, free: 1.988 MB / 395.1 MB Notification: Performance of FrontEnd: time 2.374e-06/0.601, allocations: 0 / 0.5112 GB, free: 1.988 MB / 395.1 MB Notification: Performance of Transformations before backend: time 0.000317/0.6014, allocations: 79.92 kB / 0.5113 GB, free: 1.91 MB / 395.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.2245/0.8259, allocations: 3.148 MB / 0.5144 GB, free: 67.03 MB / 395.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.83e-05/0.826, allocations: 14.55 kB / 0.5144 GB, free: 67.03 MB / 395.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004364/0.8304, allocations: 0.723 MB / 0.5151 GB, free: 66.85 MB / 395.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.007742/0.8381, allocations: 3.263 MB / 0.5183 GB, free: 66.52 MB / 395.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001608/0.8383, allocations: 100.2 kB / 0.5184 GB, free: 66.52 MB / 395.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0008877/0.8392, allocations: 186 kB / 0.5185 GB, free: 66.52 MB / 395.1 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.005653/0.8449, allocations: 3.104 MB / 0.5216 GB, free: 66.5 MB / 395.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00588/0.8508, allocations: 3.607 MB / 0.5251 GB, free: 66.15 MB / 395.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.316e-05/0.8509, allocations: 3.812 kB / 0.5251 GB, free: 66.15 MB / 395.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002491/0.8512, allocations: 2.969 kB / 0.5251 GB, free: 66.15 MB / 395.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001254/0.8513, allocations: 141.7 kB / 0.5252 GB, free: 66.14 MB / 395.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01863/0.8699, allocations: 12.64 MB / 0.5376 GB, free: 63.87 MB / 395.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004776/0.8748, allocations: 6.74 MB / 0.5442 GB, free: 58.68 MB / 395.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001727/0.8765, allocations: 1.269 MB / 0.5454 GB, free: 58.66 MB / 395.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.006327/0.8829, allocations: 3.598 MB / 0.5489 GB, free: 57.96 MB / 395.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.627e-05/0.8829, allocations: 48.88 kB / 0.549 GB, free: 57.92 MB / 395.1 MB Notification: Performance of pre-optimization done (n=117): time 4.709e-06/0.8829, allocations: 1.031 kB / 0.549 GB, free: 57.92 MB / 395.1 MB Notification: Performance of matching and sorting (n=120): time 0.007468/0.8904, allocations: 3.997 MB / 0.5529 GB, free: 56.8 MB / 395.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.719e-05/0.8905, allocations: 63.97 kB / 0.5529 GB, free: 56.74 MB / 395.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002193/0.8927, allocations: 1.202 MB / 0.5541 GB, free: 56.57 MB / 395.1 MB Notification: Performance of collectPreVariables (initialization): time 9.026e-05/0.8928, allocations: 30.2 kB / 0.5541 GB, free: 56.54 MB / 395.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0009427/0.8937, allocations: 1.413 MB / 0.5555 GB, free: 55.82 MB / 395.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002689/0.894, allocations: 405.2 kB / 0.5559 GB, free: 55.56 MB / 395.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.393e-05/0.8941, allocations: 4.656 kB / 0.5559 GB, free: 55.56 MB / 395.1 MB Notification: Performance of setup shared object (initialization): time 0.0001044/0.8942, allocations: 364.8 kB / 0.5563 GB, free: 55.26 MB / 395.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007819/0.895, allocations: 0.56 MB / 0.5568 GB, free: 55.05 MB / 395.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009586/0.8959, allocations: 1.019 MB / 0.5578 GB, free: 54.24 MB / 395.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001519/0.8975, allocations: 0.9014 MB / 0.5587 GB, free: 53.9 MB / 395.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.044e-05/0.8975, allocations: 7.625 kB / 0.5587 GB, free: 53.9 MB / 395.1 MB Notification: Performance of matching and sorting (n=198) (initialization): time 0.003609/0.9011, allocations: 2.163 MB / 0.5608 GB, free: 53.05 MB / 395.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.773e-05/0.9011, allocations: 14.28 kB / 0.5608 GB, free: 53.05 MB / 395.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.36e-05/0.9012, allocations: 14.75 kB / 0.5608 GB, free: 53.05 MB / 395.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006489/0.9018, allocations: 267.4 kB / 0.5611 GB, free: 52.95 MB / 395.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00128/0.9031, allocations: 350.5 kB / 0.5614 GB, free: 52.94 MB / 395.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00403/0.9072, allocations: 5.459 MB / 0.5667 GB, free: 48.31 MB / 395.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001231/0.9084, allocations: 57.91 kB / 0.5668 GB, free: 48.31 MB / 395.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001152/0.9085, allocations: 64.59 kB / 0.5669 GB, free: 48.3 MB / 395.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 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (178): * Single equations (assignments): 174 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 1 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 1 {(2,100.0%)} * Non-linear Jacobian: 0 * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 3 {(1,100.0%) 1,(1,100.0%) 5,(1,100.0%) 13} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0002379/0.9088, allocations: 147.7 kB / 0.567 GB, free: 48.18 MB / 395.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002424/0.909, allocations: 167.4 kB / 0.5672 GB, free: 48.09 MB / 395.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003482/0.9125, allocations: 2.037 MB / 0.5691 GB, free: 47.15 MB / 395.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.164e-05/0.9126, allocations: 15.91 kB / 0.5692 GB, free: 47.15 MB / 395.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.257e-06/0.9126, allocations: 5.844 kB / 0.5692 GB, free: 47.15 MB / 395.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.349e-05/0.9126, allocations: 11.11 kB / 0.5692 GB, free: 47.15 MB / 395.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006629/0.9192, allocations: 4.295 MB / 0.5734 GB, free: 45.13 MB / 395.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.456e-06/0.9193, allocations: 3.875 kB / 0.5734 GB, free: 45.13 MB / 395.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006788/0.92, allocations: 169.4 kB / 0.5735 GB, free: 45.12 MB / 395.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0009416/0.9209, allocations: 435.2 kB / 0.574 GB, free: 44.98 MB / 395.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001073/0.921, allocations: 18.02 kB / 0.574 GB, free: 44.97 MB / 395.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007094/0.9281, allocations: 9.673 MB / 0.5834 GB, free: 36.92 MB / 395.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.22e-06/0.9282, allocations: 3.906 kB / 0.5834 GB, free: 36.92 MB / 395.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003909/0.9321, allocations: 2.973 MB / 0.5863 GB, free: 35.34 MB / 395.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006855/0.9328, allocations: 383.8 kB / 0.5867 GB, free: 35.07 MB / 395.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002261/0.933, allocations: 11.88 kB / 0.5867 GB, free: 35.07 MB / 395.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007655/0.9338, allocations: 49.77 kB / 0.5868 GB, free: 35.07 MB / 395.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001964/0.934, allocations: 98.89 kB / 0.5868 GB, free: 35.05 MB / 395.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.738e-05/0.9341, allocations: 34.69 kB / 0.5869 GB, free: 35.04 MB / 395.1 MB Notification: Performance of sorting global known variables: time 0.001212/0.9353, allocations: 0.9036 MB / 0.5878 GB, free: 34.64 MB / 395.1 MB Notification: Performance of sort global known variables: time 3.01e-07/0.9353, allocations: 3.625 kB / 0.5878 GB, free: 34.64 MB / 395.1 MB Notification: Performance of remove unused functions: time 0.002365/0.9377, allocations: 0.5052 MB / 0.5883 GB, free: 34.62 MB / 395.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 8 * Number of states: 7 (aimc.inertiaRotor.phi,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.w) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (84): * Single equations (assignments): 79 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 5 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 5 {(1,100.0%) 5,(1,100.0%) 1,(1,100.0%) 13,(1,100.0%) 8,(2,100.0%) 12} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0004587/0.9382, allocations: 331.3 kB / 0.5886 GB, free: 34.49 MB / 395.1 MB Notification: Performance of simCode: created initialization part: time 0.002239/0.9404, allocations: 1.869 MB / 0.5904 GB, free: 33.54 MB / 395.1 MB Notification: Performance of simCode: created event and clocks part: time 4.719e-06/0.9404, allocations: 2.188 kB / 0.5904 GB, free: 33.54 MB / 395.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001626/0.9421, allocations: 1.416 MB / 0.5918 GB, free: 32.63 MB / 395.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00168/0.9438, allocations: 346.5 kB / 0.5921 GB, free: 32.54 MB / 395.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006802/0.9506, allocations: 4.321 MB / 0.5963 GB, free: 30.61 MB / 395.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001516/0.9521, allocations: 2.328 MB / 0.5986 GB, free: 29.54 MB / 395.1 MB Notification: Performance of simCode: alias equations: time 0.001296/0.9534, allocations: 355.6 kB / 0.5989 GB, free: 29.49 MB / 395.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002576/0.9537, allocations: 110.1 kB / 0.5991 GB, free: 29.48 MB / 395.1 MB Notification: Performance of SimCode: time 6.91e-07/0.9537, allocations: 0 / 0.5991 GB, free: 29.48 MB / 395.1 MB Notification: Performance of Templates: time 0.03288/0.9866, allocations: 21.49 MB / 0.62 GB, free: 28.11 MB / 395.1 MB make -j1 -f Modelica_3.2.2_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_Inverter.makefile (rm -f Modelica_3.2.2_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_Inverter.pipe ; mkfifo Modelica_3.2.2_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_Inverter.pipe ; head -c 1048576 < Modelica_3.2.2_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_Inverter.pipe >> ../files/Modelica_3.2.2_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_Inverter.sim & ./Modelica_3.2.2_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_Inverter -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.2.2_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_Inverter.pipe 2>&1)