Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_Inverter.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) 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 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_Inverter,fileNamePrefix="Modelica_3_2_3_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_AIMC_Inverter",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_Inverter,fileNamePrefix="Modelica_3_2_3_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_AIMC_Inverter",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001044/0.001044, allocations: 181.1 kB / 17.01 MB, free: 5.125 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.361/1.361, allocations: 205.4 MB / 223.1 MB, free: 9.133 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0008478/0.000848, allocations: 89.16 kB / 271.5 MB, free: 8.383 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002708/0.000271, allocations: 11.98 kB / 328.3 MB, free: 15.45 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2081/0.2084, allocations: 47.57 MB / 375.9 MB, free: 45.65 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1102/0.3186, allocations: 108.1 MB / 484 MB, free: 4.48 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002272/0.3189, allocations: 87.95 kB / 484.1 MB, free: 4.395 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.3205/0.6394, allocations: 79.45 MB / 0.5504 GB, free: 66.25 MB / 378.7 MB Notification: Performance of FrontEnd: time 1.934e-06/0.6394, allocations: 0 / 0.5504 GB, free: 66.25 MB / 378.7 MB Notification: Performance of Transformations before backend: time 0.0002076/0.6396, allocations: 79.86 kB / 0.5504 GB, free: 66.18 MB / 378.7 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.008304/0.6479, allocations: 3.458 MB / 0.5538 GB, free: 62.65 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.65e-05/0.648, allocations: 8.031 kB / 0.5538 GB, free: 62.64 MB / 378.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0009768/0.649, allocations: 455 kB / 0.5543 GB, free: 62.18 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00346/0.6525, allocations: 0.7257 MB / 0.555 GB, free: 61.45 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.007026/0.6595, allocations: 3.323 MB / 0.5582 GB, free: 58.07 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001395/0.6597, allocations: 234.3 kB / 0.5584 GB, free: 57.84 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005599/0.6602, allocations: 307.9 kB / 0.5587 GB, free: 57.54 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.006371/0.6666, allocations: 4.147 MB / 0.5628 GB, free: 53.27 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.304e-05/0.6667, allocations: 3.938 kB / 0.5628 GB, free: 53.27 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000271/0.667, allocations: 128 kB / 0.5629 GB, free: 53.14 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001081/0.6671, allocations: 146.3 kB / 0.563 GB, free: 53 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.005642/0.6727, allocations: 3.41 MB / 0.5664 GB, free: 49.58 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01795/0.6907, allocations: 13.24 MB / 0.5793 GB, free: 36.01 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004737/0.6955, allocations: 6.909 MB / 0.586 GB, free: 28.21 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.004601/0.7001, allocations: 3.218 MB / 0.5892 GB, free: 24.91 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.548e-05/0.7002, allocations: 55.81 kB / 0.5892 GB, free: 24.84 MB / 378.7 MB Notification: Performance of pre-optimization done (n=131): time 3.607e-06/0.7002, allocations: 0 / 0.5892 GB, free: 24.84 MB / 378.7 MB Warning: The linear system: 1 : 3.0 * aimc.stator.zeroInductor.i0 = aimc.is[1] + aimc.is[2] + aimc.is[3] 2 : aimc.is[1] + aimc.is[2] + aimc.is[3] = 0.0 [ -1.0 , -1.0 ; 1.0 , 1.0 ] * [ aimc.is[1] ; aimc.is[2] ] = [ aimc.is[3] + (-3.0) * aimc.stator.zeroInductor.i0 ; -aimc.is[3] ] might be structurally or numerically singular for variable aimc.is[2] since U(2,2) = 0.0. It might be hard to solve. Compilation continues anyway. Notification: Performance of matching and sorting (n=161): time 0.01236/0.7126, allocations: 7.354 MB / 0.5964 GB, free: 17.29 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.938e-05/0.7126, allocations: 68.72 kB / 0.5965 GB, free: 17.21 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001881/0.7145, allocations: 1.47 MB / 0.5979 GB, free: 15.74 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001419/0.7147, allocations: 53.7 kB / 0.598 GB, free: 15.68 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005736/0.7152, allocations: 1.384 MB / 0.5993 GB, free: 14.28 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002988/0.7155, allocations: 0.5468 MB / 0.5999 GB, free: 13.72 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.038e-05/0.7156, allocations: 40 kB / 0.5999 GB, free: 13.68 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 9.007e-05/0.7157, allocations: 369.9 kB / 0.6003 GB, free: 13.32 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001099/0.7168, allocations: 0.816 MB / 0.6011 GB, free: 12.5 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00119/0.718, allocations: 1.263 MB / 0.6023 GB, free: 11.05 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001235/0.7193, allocations: 1.044 MB / 0.6033 GB, free: 10.01 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.783e-06/0.7193, allocations: 7.953 kB / 0.6033 GB, free: 10 MB / 378.7 MB Notification: Performance of matching and sorting (n=234) (initialization): time 0.003946/0.7232, allocations: 2.877 MB / 0.6061 GB, free: 7.102 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.616e-05/0.7233, allocations: 15.94 kB / 0.6061 GB, free: 7.086 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.016e-05/0.7233, allocations: 15.98 kB / 0.6062 GB, free: 7.07 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001326/0.7247, allocations: 0.5871 MB / 0.6067 GB, free: 6.473 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001355/0.726, allocations: 375.5 kB / 0.6071 GB, free: 6.105 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008282/0.7343, allocations: 8.764 MB / 0.6156 GB, free: 12.94 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001726/0.7361, allocations: 91.98 kB / 0.6157 GB, free: 12.85 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003721/0.7365, allocations: 72 kB / 0.6158 GB, free: 12.78 MB / 394.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 61 * 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 (186): * Single equations (assignments): 182 * 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 {(4,93.8%) 30,(1,100.0%) 1,(1,100.0%) 13} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.002817/0.7393, allocations: 1.035 MB / 0.6168 GB, free: 11.73 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006528/0.74, allocations: 189.7 kB / 0.617 GB, free: 11.55 MB / 394.7 MB Warning: The linear system: 1 : 3.0 * aimc.stator.zeroInductor.i0 = aimc.is[1] + aimc.is[2] + aimc.is[3] 2 : aimc.is[1] + aimc.is[2] + aimc.is[3] = 0.0 [ -1.0 , -1.0 ; 1.0 , 1.0 ] * [ aimc.is[2] ; aimc.is[1] ] = [ aimc.is[3] + (-3.0) * aimc.stator.zeroInductor.i0 ; -aimc.is[3] ] might be structurally or numerically singular for variable aimc.is[1] since U(2,2) = 0.0. It might be hard to solve. Compilation continues anyway. Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005536/0.7455, allocations: 2.701 MB / 0.6196 GB, free: 8.781 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.549e-05/0.7456, allocations: 16 kB / 0.6196 GB, free: 8.766 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.035e-05/0.7456, allocations: 12 kB / 0.6197 GB, free: 8.754 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.606e-05/0.7456, allocations: 11.91 kB / 0.6197 GB, free: 8.742 MB / 394.7 MB Warning: The linear system: 1 : 3.0 * aimc.stator.zeroInductor.i0 = aimc.is[1] + aimc.is[2] + aimc.is[3] 2 : aimc.is[1] + aimc.is[2] + aimc.is[3] = 0.0 [ -1.0 , -1.0 ; 1.0 , 1.0 ] * [ aimc.is[2] ; aimc.is[1] ] = [ aimc.is[3] + (-3.0) * aimc.stator.zeroInductor.i0 ; -aimc.is[3] ] might be structurally or numerically singular for variable aimc.is[1] since U(2,2) = 0.0. It might be hard to solve. Compilation continues anyway. Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01151/0.7571, allocations: 5.815 MB / 0.6253 GB, free: 2.797 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.047e-05/0.7572, allocations: 8.141 kB / 0.6254 GB, free: 2.789 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001135/0.7583, allocations: 251.6 kB / 0.6256 GB, free: 2.543 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001432/0.7597, allocations: 0.5658 MB / 0.6261 GB, free: 1.965 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001352/0.7599, allocations: 39.98 kB / 0.6262 GB, free: 1.926 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01007/0.77, allocations: 9.999 MB / 0.6359 GB, free: 7.387 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.017e-06/0.77, allocations: 3.938 kB / 0.636 GB, free: 7.383 MB / 410.7 MB Warning: The linear system: 1 : 3.0 * aimc.stator.zeroInductor.i0 = aimc.is[1] + aimc.is[2] + aimc.is[3] 2 : aimc.is[1] + aimc.is[2] + aimc.is[3] = 0.0 [ -1.0 , -1.0 ; 1.0 , 1.0 ] * [ aimc.is[2] ; aimc.is[1] ] = [ aimc.is[3] + (-3.0) * aimc.stator.zeroInductor.i0 ; -aimc.is[3] ] might be structurally or numerically singular for variable aimc.is[1] since U(2,2) = 0.0. It might be hard to solve. Compilation continues anyway. Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006034/0.7761, allocations: 3.907 MB / 0.6398 GB, free: 3.344 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001152/0.7772, allocations: 466.6 kB / 0.6402 GB, free: 2.867 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004366/0.7777, allocations: 32 kB / 0.6402 GB, free: 2.836 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001196/0.7789, allocations: 83.94 kB / 0.6403 GB, free: 2.754 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002934/0.7792, allocations: 129 kB / 0.6404 GB, free: 2.629 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001135/0.7793, allocations: 47.98 kB / 0.6405 GB, free: 2.582 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.002038/0.7814, allocations: 1.13 MB / 0.6416 GB, free: 1.457 MB / 410.7 MB Notification: Performance of sort global known variables: time 1.7e-07/0.7814, allocations: 0 / 0.6416 GB, free: 1.457 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.002536/0.7839, allocations: 0.6446 MB / 0.6422 GB, free: 0.8125 MB / 410.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 7 * Number of states: 7 (aimc.is[3],aimc.inertiaRotor.phi,aimc.stator.core.Phi.re,aimc.stator.core.Phi.im,aimc.stator.zeroInductor.i0,vfController.x,loadInertia.w) * 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 (117): * Single equations (assignments): 113 * 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: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 4 {(5,72.0%) 29,(1,100.0%) 12,(1,100.0%) 1,(1,100.0%) 1} * Non-linear torn systems: 0 Warning: The linear system: 1 : 3.0 * aimc.stator.zeroInductor.i0 = aimc.is[1] + aimc.is[2] + aimc.is[3] 2 : aimc.is[1] + aimc.is[2] + aimc.is[3] = 0.0 [ -1.0 , -1.0 ; 1.0 , 1.0 ] * [ aimc.is[2] ; aimc.is[1] ] = [ aimc.is[3] + (-3.0) * aimc.stator.zeroInductor.i0 ; -aimc.is[3] ] might be structurally or numerically singular for variable aimc.is[1] since U(2,2) = 0.0. It might be hard to solve. Compilation continues anyway. Notification: Performance of Backend phase and start with SimCode phase: time 0.1826/0.9665, allocations: 5.1 MB / 0.6472 GB, free: 92.76 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.003679/0.9702, allocations: 2.739 MB / 0.6499 GB, free: 92.27 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 5.561e-06/0.9703, allocations: 0 / 0.6499 GB, free: 92.27 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002171/0.9725, allocations: 1.743 MB / 0.6516 GB, free: 91.78 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00209/0.9746, allocations: 476.7 kB / 0.652 GB, free: 91.77 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02891/1.003, allocations: 25.92 MB / 0.6773 GB, free: 76.88 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001783/1.005, allocations: 2.399 MB / 0.6797 GB, free: 76.11 MB / 410.7 MB Notification: Performance of simCode: alias equations: time 0.00146/1.007, allocations: 415.4 kB / 0.6801 GB, free: 76.05 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00113/1.008, allocations: 1.114 MB / 0.6812 GB, free: 76.04 MB / 410.7 MB Notification: Performance of SimCode: time 8.51e-07/1.008, allocations: 3.562 kB / 0.6812 GB, free: 76.04 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.07419/1.082, allocations: 54.09 MB / 0.734 GB, free: 46.04 MB / 410.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001607/1.082, allocations: 227.8 kB / 0.7342 GB, free: 45.8 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 3.084/4.166, allocations: 3.938 kB / 0.7342 GB, free: 45.79 MB / 410.7 MB (rm -f Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_Inverter.pipe ; mkfifo Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_Inverter.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_Inverter.pipe >> ../files/Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_Inverter.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_Inverter_res.mat --tempDir=temp_Modelica_3_2_3_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_AIMC_Inverter_fmu --startTime=0 --stopTime=1.5 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_AIMC_Inverter.fmu > Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_Inverter.pipe 2>&1)