Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_Inverter.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Running command: "" <> buildModelFMU(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_Inverter,fileNamePrefix="Modelica_trunk_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_SMR_Inverter",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_Inverter,fileNamePrefix="Modelica_trunk_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_SMR_Inverter",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001012/0.001012, allocations: 197.4 kB / 17.08 MB, free: 5.078 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.275/1.275, allocations: 227.2 MB / 245 MB, free: 7.574 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008223/0.0008223, allocations: 101.4 kB / 297.3 MB, free: 6.191 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002474/0.0002474, allocations: 4 kB / 358 MB, free: 9.434 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2204/0.2206, allocations: 51.48 MB / 409.5 MB, free: 26.73 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3635/0.5842, allocations: 127.3 MB / 0.5242 GB, free: 48.5 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003107/0.5845, allocations: 95.66 kB / 0.5243 GB, free: 48.5 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.2649/0.8494, allocations: 119.4 MB / 0.6408 GB, free: 6.73 MB / 426.7 MB Notification: Performance of FrontEnd: time 1.774e-06/0.8495, allocations: 0 / 0.6408 GB, free: 6.73 MB / 426.7 MB Notification: Performance of Transformations before backend: time 0.0005535/0.8501, allocations: 135.8 kB / 0.641 GB, free: 6.598 MB / 426.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1347 * Number of variables: 1347 Notification: Performance of Generate backend data structure: time 0.01813/0.8682, allocations: 5.434 MB / 0.6463 GB, free: 1.086 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.657e-05/0.8683, allocations: 12.03 kB / 0.6463 GB, free: 1.074 MB / 426.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.002963/0.8712, allocations: 0.7115 MB / 0.647 GB, free: 360 kB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006091/0.8774, allocations: 0.9612 MB / 0.6479 GB, free: 15.38 MB / 442.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01518/0.8926, allocations: 4.461 MB / 0.6523 GB, free: 10.84 MB / 442.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0005284/0.8931, allocations: 386.3 kB / 0.6527 GB, free: 10.46 MB / 442.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002375/0.8955, allocations: 0.5076 MB / 0.6532 GB, free: 9.957 MB / 442.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02082/0.9164, allocations: 6.685 MB / 0.6597 GB, free: 3.07 MB / 442.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003545/0.9168, allocations: 8.25 kB / 0.6597 GB, free: 3.062 MB / 442.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001916/0.9187, allocations: 227.9 kB / 0.6599 GB, free: 2.84 MB / 442.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002776/0.919, allocations: 234.2 kB / 0.6601 GB, free: 2.609 MB / 442.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01527/0.9343, allocations: 5.451 MB / 0.6655 GB, free: 13.14 MB / 458.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.2755/1.21, allocations: 21.2 MB / 0.6862 GB, free: 60.67 MB / 458.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.006827/1.217, allocations: 8.867 MB / 0.6948 GB, free: 54.52 MB / 458.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.008299/1.225, allocations: 5.3 MB / 0.7 GB, free: 53.45 MB / 458.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.071e-05/1.225, allocations: 60.34 kB / 0.7001 GB, free: 53.41 MB / 458.7 MB Notification: Performance of pre-optimization done (n=220): time 4.718e-06/1.225, allocations: 0 / 0.7001 GB, free: 53.41 MB / 458.7 MB Warning: The linear system: 1 : 3.0 * smrM.stator.zeroInductor.i0 = smrM.is[1] + smrM.is[2] + smrM.is[3] 2 : (-smrM.is[3]) - smrM.is[2] - smrM.is[1] = 0.0 [ -1.0 , -1.0 ; -1.0 , -1.0 ] * [ smrM.is[1] ; smrM.is[2] ] = [ smrM.is[3] + (-3.0) * smrM.stator.zeroInductor.i0 ; smrM.is[3] ] might be structurally or numerically singular for variable smrM.is[2] since U(2,2) = 0.0. It might be hard to solve. Compilation continues anyway. Notification: Performance of matching and sorting (n=271): time 0.02873/1.254, allocations: 14.54 MB / 0.7143 GB, free: 50.95 MB / 458.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.06e-05/1.254, allocations: 84.86 kB / 0.7143 GB, free: 50.88 MB / 458.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004112/1.258, allocations: 2.526 MB / 0.7168 GB, free: 50.66 MB / 458.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0003324/1.258, allocations: 72.17 kB / 0.7169 GB, free: 50.62 MB / 458.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001237/1.26, allocations: 2.327 MB / 0.7191 GB, free: 49.88 MB / 458.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005881/1.26, allocations: 0.9324 MB / 0.7201 GB, free: 49.29 MB / 458.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001559/1.26, allocations: 66.41 kB / 0.7201 GB, free: 49.29 MB / 458.7 MB Notification: Performance of setup shared object (initialization): time 0.0001492/1.261, allocations: 429.7 kB / 0.7205 GB, free: 48.98 MB / 458.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001981/1.263, allocations: 1.49 MB / 0.722 GB, free: 48.97 MB / 458.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002208/1.265, allocations: 2.354 MB / 0.7243 GB, free: 47.98 MB / 458.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002352/1.267, allocations: 1.889 MB / 0.7261 GB, free: 47.93 MB / 458.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.336e-05/1.267, allocations: 6.562 kB / 0.7261 GB, free: 47.93 MB / 458.7 MB Notification: Performance of matching and sorting (n=414) (initialization): time 0.008074/1.275, allocations: 5.342 MB / 0.7314 GB, free: 47.36 MB / 458.7 MB Notification: Performance of prepare postOptimizeDAE: time 5.087e-05/1.275, allocations: 22.17 kB / 0.7314 GB, free: 47.36 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.941e-05/1.275, allocations: 30.08 kB / 0.7314 GB, free: 47.36 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002275/1.278, allocations: 0.9756 MB / 0.7324 GB, free: 47.29 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002661/1.28, allocations: 0.7214 MB / 0.7331 GB, free: 47.29 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01239/1.293, allocations: 14.45 MB / 0.7472 GB, free: 39.43 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003411/1.296, allocations: 206.2 kB / 0.7474 GB, free: 39.43 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002434/1.296, allocations: 134.6 kB / 0.7475 GB, free: 39.43 MB / 458.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 121 * 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 (357): * Single equations (assignments): 349 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 2 * Torn equation systems: 6 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 2 {(2,100.0%),(2,100.0%)} * Non-linear Jacobian: 0 * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 6 {(6,72.2%) 22,(1,100.0%) 1,(1,100.0%) 8,(2,100.0%) 12,(1,100.0%) 5,(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.003036/1.299, allocations: 1.551 MB / 0.749 GB, free: 39.3 MB / 458.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005072/1.3, allocations: 338.5 kB / 0.7493 GB, free: 39.12 MB / 458.7 MB Warning: The linear system: 1 : 3.0 * smrM.stator.zeroInductor.i0 = smrM.is[1] + smrM.is[2] + smrM.is[3] 2 : (-smrM.is[3]) - smrM.is[2] - smrM.is[1] = 0.0 [ -1.0 , -1.0 ; -1.0 , -1.0 ] * [ smrM.is[2] ; smrM.is[1] ] = [ smrM.is[3] + (-3.0) * smrM.stator.zeroInductor.i0 ; smrM.is[3] ] might be structurally or numerically singular for variable smrM.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.006767/1.307, allocations: 4.853 MB / 0.7541 GB, free: 37.63 MB / 458.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.436e-05/1.307, allocations: 26.25 kB / 0.7541 GB, free: 37.63 MB / 458.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.315e-05/1.307, allocations: 11.56 kB / 0.7541 GB, free: 37.63 MB / 458.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.996e-05/1.307, allocations: 10.97 kB / 0.7541 GB, free: 37.63 MB / 458.7 MB Warning: The linear system: 1 : 3.0 * smrM.stator.zeroInductor.i0 = smrM.is[1] + smrM.is[2] + smrM.is[3] 2 : (-smrM.is[3]) - smrM.is[2] - smrM.is[1] = 0.0 [ -1.0 , -1.0 ; -1.0 , -1.0 ] * [ smrM.is[1] ; smrM.is[2] ] = [ smrM.is[3] + (-3.0) * smrM.stator.zeroInductor.i0 ; smrM.is[3] ] might be structurally or numerically singular for variable smrM.is[2] since U(2,2) = 0.0. It might be hard to solve. Compilation continues anyway. Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01438/1.321, allocations: 9.91 MB / 0.7638 GB, free: 33.27 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.048e-05/1.321, allocations: 2.375 kB / 0.7638 GB, free: 33.27 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001826/1.323, allocations: 464.6 kB / 0.7642 GB, free: 33.26 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002184/1.325, allocations: 1.011 MB / 0.7652 GB, free: 32.95 MB / 458.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001704/1.325, allocations: 68.7 kB / 0.7653 GB, free: 32.91 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01328/1.339, allocations: 19.07 MB / 0.7839 GB, free: 17.61 MB / 458.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.877e-06/1.339, allocations: 3.906 kB / 0.7839 GB, free: 17.61 MB / 458.7 MB Warning: The linear system: 1 : 3.0 * smrM.stator.zeroInductor.i0 = smrM.is[1] + smrM.is[2] + smrM.is[3] 2 : (-smrM.is[3]) - smrM.is[2] - smrM.is[1] = 0.0 [ -1.0 , -1.0 ; -1.0 , -1.0 ] * [ smrM.is[2] ; smrM.is[1] ] = [ smrM.is[3] + (-3.0) * smrM.stator.zeroInductor.i0 ; smrM.is[3] ] might be structurally or numerically singular for variable smrM.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.009267/1.348, allocations: 7.073 MB / 0.7908 GB, free: 14.03 MB / 458.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.00175/1.35, allocations: 0.7297 MB / 0.7915 GB, free: 13.55 MB / 458.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004545/1.35, allocations: 59.52 kB / 0.7916 GB, free: 13.52 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001649/1.352, allocations: 168.6 kB / 0.7917 GB, free: 13.48 MB / 458.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004157/1.352, allocations: 205.4 kB / 0.7919 GB, free: 13.44 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001557/1.353, allocations: 75 kB / 0.792 GB, free: 13.43 MB / 458.7 MB Notification: Performance of sorting global known variables: time 0.002533/1.355, allocations: 1.928 MB / 0.7939 GB, free: 12.69 MB / 458.7 MB Notification: Performance of sort global known variables: time 3.21e-07/1.355, allocations: 0 / 0.7939 GB, free: 12.69 MB / 458.7 MB Notification: Performance of remove unused functions: time 0.003612/1.359, allocations: 1.084 MB / 0.795 GB, free: 12.57 MB / 458.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 13 * Number of states: 13 (vfController.x,smrM.is[3],smrM.inertiaRotor.w,smrM.stator.core.Phi.re,smrM.stator.core.Phi.im,smrM.stator.zeroInductor.i0,smrE.inertiaRotor.w,smrE.idq_sr[1],smrE.idq_sr[2],smrE.idq_dr[1],smrE.idq_dr[2],loadInertiaM.phi,loadInertiaE.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 (216): * Single equations (assignments): 208 * 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: 8 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 8 {(6,75.0%) 22,(1,100.0%) 8,(2,100.0%) 12,(1,100.0%) 5,(1,100.0%) 1,(2,100.0%) 4,(1,100.0%) 1,(1,100.0%) 1} * Non-linear torn systems: 0 Warning: The linear system: 1 : 3.0 * smrM.stator.zeroInductor.i0 = smrM.is[1] + smrM.is[2] + smrM.is[3] 2 : (-smrM.is[3]) - smrM.is[2] - smrM.is[1] = 0.0 [ -1.0 , -1.0 ; -1.0 , -1.0 ] * [ smrM.is[2] ; smrM.is[1] ] = [ smrM.is[3] + (-3.0) * smrM.stator.zeroInductor.i0 ; smrM.is[3] ] might be structurally or numerically singular for variable smrM.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.01016/1.369, allocations: 8.753 MB / 0.8035 GB, free: 23.67 MB / 474.7 MB Notification: Performance of simCode: created initialization part: time 0.006485/1.375, allocations: 4.884 MB / 0.8083 GB, free: 21.36 MB / 474.7 MB Notification: Performance of simCode: created event and clocks part: time 6.823e-06/1.375, allocations: 4.125 kB / 0.8083 GB, free: 21.36 MB / 474.7 MB Notification: Performance of simCode: created simulation system equations: time 0.004166/1.38, allocations: 3.111 MB / 0.8113 GB, free: 18.95 MB / 474.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003637/1.383, allocations: 0.7863 MB / 0.8121 GB, free: 18.34 MB / 474.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.06057/1.444, allocations: 49.11 MB / 0.86 GB, free: 2.461 MB / 0.4948 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.2162/1.66, allocations: 3.516 MB / 0.8635 GB, free: 108.9 MB / 0.4948 GB Notification: Performance of simCode: alias equations: time 0.003943/1.664, allocations: 0.7879 MB / 0.8642 GB, free: 108.9 MB / 0.4948 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00312/1.667, allocations: 2.002 MB / 0.8662 GB, free: 108.9 MB / 0.4948 GB Notification: Performance of SimCode: time 9.62e-07/1.667, allocations: 5.312 kB / 0.8662 GB, free: 108.9 MB / 0.4948 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1258/1.793, allocations: 89.73 MB / 0.9538 GB, free: 93.7 MB / 0.4948 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.000155/1.793, allocations: 253.8 kB / 0.9541 GB, free: 93.39 MB / 0.4948 GB Notification: Performance of buildModelFMU: Generate platform static: time 4.609/6.402, allocations: 3.938 kB / 0.9541 GB, free: 93.39 MB / 0.4948 GB (rm -f Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_Inverter.pipe ; mkfifo Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_Inverter.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_Inverter.pipe >> ../files/Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_Inverter.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_Inverter_res.mat --tempDir=temp_Modelica_trunk_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_SMR_Inverter_fmu --startTime=0 --stopTime=1.5 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_SMR_Inverter.fmu > Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_Inverter.pipe 2>&1)