Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_Inverter_MultiPhase.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.SMPM_Inverter_MultiPhase,fileNamePrefix="Modelica_3_2_3_cpp_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_SMPM_Inverter_MultiPhase",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_Inverter_MultiPhase,fileNamePrefix="Modelica_3_2_3_cpp_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_SMPM_Inverter_MultiPhase",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.001532/0.001532, allocations: 185.3 kB / 16.41 MB, free: 5.727 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.933/1.933, allocations: 205.4 MB / 222.5 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.001148/0.001148, allocations: 84.44 kB / 270.9 MB, free: 8.383 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.000392/0.0003917, allocations: 8 kB / 327.1 MB, free: 108 kB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3226/0.323, allocations: 47.57 MB / 374.6 MB, free: 45.3 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1889/0.512, allocations: 117.2 MB / 491.9 MB, free: 11.36 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003412/0.5124, allocations: 91.95 kB / 492 MB, free: 11.27 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.169/1.681, allocations: 169.3 MB / 0.6458 GB, free: 32.91 MB / 410.7 MB Notification: Performance of FrontEnd: time 2.505e-06/1.681, allocations: 0 / 0.6458 GB, free: 32.91 MB / 410.7 MB Notification: Performance of Transformations before backend: time 0.0007848/1.682, allocations: 163.7 kB / 0.6459 GB, free: 32.91 MB / 410.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1932 * Number of variables: 1932 Notification: Performance of Generate backend data structure: time 0.03184/1.714, allocations: 7.297 MB / 0.653 GB, free: 31.78 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.122e-05/1.714, allocations: 7.531 kB / 0.653 GB, free: 31.78 MB / 410.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.004143/1.718, allocations: 1.004 MB / 0.654 GB, free: 31.7 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01339/1.732, allocations: 1.612 MB / 0.6556 GB, free: 31.28 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0211/1.753, allocations: 5.984 MB / 0.6614 GB, free: 30.44 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0006813/1.753, allocations: 0.5338 MB / 0.662 GB, free: 30.42 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002856/1.756, allocations: 0.7076 MB / 0.6627 GB, free: 30.41 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03096/1.787, allocations: 9.553 MB / 0.672 GB, free: 29.64 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0004285/1.788, allocations: 10.88 kB / 0.672 GB, free: 29.64 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002429/1.79, allocations: 305 kB / 0.6723 GB, free: 29.64 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0004168/1.791, allocations: 341.4 kB / 0.6726 GB, free: 29.62 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02649/1.817, allocations: 7.8 MB / 0.6802 GB, free: 29.56 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.07818/1.895, allocations: 30.67 MB / 0.7102 GB, free: 22.3 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.02341/1.919, allocations: 16.18 MB / 0.726 GB, free: 8.148 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02081/1.94, allocations: 7.058 MB / 0.7329 GB, free: 4.391 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.619e-05/1.94, allocations: 65.67 kB / 0.7329 GB, free: 4.328 MB / 410.7 MB Notification: Performance of pre-optimization done (n=311): time 7.053e-06/1.94, allocations: 2.312 kB / 0.7329 GB, free: 4.328 MB / 410.7 MB Warning: The linear system: 1 : smpm3.is[1] + smpm3.is[2] + smpm3.is[3] = 0.0 2 : 3.0 * smpm3.stator.zeroInductor.i0 = smpm3.is[1] + smpm3.is[2] + smpm3.is[3] [ 1.0 , 1.0 ; -1.0 , -1.0 ] * [ smpm3.is[2] ; smpm3.is[1] ] = [ -smpm3.is[3] ; smpm3.is[3] + (-3.0) * smpm3.stator.zeroInductor.i0 ] might be structurally or numerically singular for variable smpm3.is[1] since U(2,2) = 0.0. It might be hard to solve. Compilation continues anyway. Notification: Performance of matching and sorting (n=349): time 0.0543/1.994, allocations: 14.55 MB / 0.7471 GB, free: 13.92 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.397e-05/1.994, allocations: 88.05 kB / 0.7472 GB, free: 13.86 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.008244/2.003, allocations: 3.203 MB / 0.7504 GB, free: 12.66 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0007337/2.003, allocations: 81.36 kB / 0.7504 GB, free: 12.58 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.003112/2.007, allocations: 2.935 MB / 0.7533 GB, free: 10.25 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001955/2.009, allocations: 1.184 MB / 0.7545 GB, free: 9.328 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005045/2.009, allocations: 83.78 kB / 0.7545 GB, free: 9.266 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.0003708/2.009, allocations: 478.4 kB / 0.755 GB, free: 8.875 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.005112/2.015, allocations: 1.714 MB / 0.7567 GB, free: 8.191 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.006413/2.021, allocations: 2.799 MB / 0.7594 GB, free: 6.168 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.006496/2.028, allocations: 2.227 MB / 0.7616 GB, free: 5.16 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.136e-05/2.028, allocations: 11.16 kB / 0.7616 GB, free: 5.16 MB / 426.7 MB Notification: Performance of matching and sorting (n=524) (initialization): time 0.01661/2.044, allocations: 5.49 MB / 0.7669 GB, free: 3.039 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 5.175e-05/2.044, allocations: 22.66 kB / 0.767 GB, free: 3.039 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.613e-05/2.044, allocations: 31.34 kB / 0.767 GB, free: 3.039 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003049/2.048, allocations: 0.7721 MB / 0.7678 GB, free: 2.789 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006923/2.054, allocations: 0.9095 MB / 0.7686 GB, free: 2.758 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01906/2.074, allocations: 10.86 MB / 0.7793 GB, free: 8.844 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005718/2.079, allocations: 192.1 kB / 0.7794 GB, free: 8.684 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001145/2.081, allocations: 175.1 kB / 0.7796 GB, free: 8.523 MB / 442.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 150 * 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 (466): * Single equations (assignments): 460 * 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: 4 * 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: 4 {(5,92.0%) 31,(1,100.0%) 1,(1,100.0%) 1,(3,77.8%) 17} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.007321/2.088, allocations: 2.177 MB / 0.7817 GB, free: 6.645 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001439/2.089, allocations: 414.9 kB / 0.7821 GB, free: 6.234 MB / 442.7 MB Warning: The linear system: 1 : smpm3.is[1] + smpm3.is[2] + smpm3.is[3] = 0.0 2 : 3.0 * smpm3.stator.zeroInductor.i0 = smpm3.is[1] + smpm3.is[2] + smpm3.is[3] [ 1.0 , 1.0 ; -1.0 , -1.0 ] * [ smpm3.is[1] ; smpm3.is[2] ] = [ -smpm3.is[3] ; smpm3.is[3] + (-3.0) * smpm3.stator.zeroInductor.i0 ] might be structurally or numerically singular for variable smpm3.is[2] since U(2,2) = 0.0. It might be hard to solve. Compilation continues anyway. Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01772/2.107, allocations: 5.282 MB / 0.7873 GB, free: 1.66 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.16e-05/2.107, allocations: 36 kB / 0.7873 GB, free: 1.625 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.368e-05/2.107, allocations: 15.95 kB / 0.7873 GB, free: 1.609 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.283e-05/2.107, allocations: 19.75 kB / 0.7873 GB, free: 1.605 MB / 442.7 MB Warning: The linear system: 1 : smpm3.is[1] + smpm3.is[2] + smpm3.is[3] = 0.0 2 : 3.0 * smpm3.stator.zeroInductor.i0 = smpm3.is[1] + smpm3.is[2] + smpm3.is[3] [ 1.0 , 1.0 ; -1.0 , -1.0 ] * [ smpm3.is[2] ; smpm3.is[1] ] = [ -smpm3.is[3] ; smpm3.is[3] + (-3.0) * smpm3.stator.zeroInductor.i0 ] might be structurally or numerically singular for variable smpm3.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.04049/2.148, allocations: 12.49 MB / 0.7996 GB, free: 7.699 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.607e-05/2.148, allocations: 4 kB / 0.7996 GB, free: 7.695 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.005127/2.153, allocations: 0.5507 MB / 0.8001 GB, free: 7.258 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.004562/2.158, allocations: 1.011 MB / 0.8011 GB, free: 6.422 MB / 458.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0006901/2.158, allocations: 83.64 kB / 0.8012 GB, free: 6.348 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.3549/2.513, allocations: 17.89 MB / 0.8186 GB, free: 69.09 MB / 458.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.675e-06/2.513, allocations: 7.156 kB / 0.8186 GB, free: 69.09 MB / 458.7 MB Warning: The linear system: 1 : smpm3.is[1] + smpm3.is[2] + smpm3.is[3] = 0.0 2 : 3.0 * smpm3.stator.zeroInductor.i0 = smpm3.is[1] + smpm3.is[2] + smpm3.is[3] [ 1.0 , 1.0 ; -1.0 , -1.0 ] * [ smpm3.is[2] ; smpm3.is[1] ] = [ -smpm3.is[3] ; smpm3.is[3] + (-3.0) * smpm3.stator.zeroInductor.i0 ] might be structurally or numerically singular for variable smpm3.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.0201/2.534, allocations: 8.045 MB / 0.8265 GB, free: 67.79 MB / 458.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.003276/2.537, allocations: 0.8914 MB / 0.8274 GB, free: 67.69 MB / 458.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001503/2.538, allocations: 78.03 kB / 0.8274 GB, free: 67.69 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.005752/2.544, allocations: 170.3 kB / 0.8276 GB, free: 67.69 MB / 458.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001352/2.546, allocations: 253.8 kB / 0.8278 GB, free: 67.68 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0005563/2.546, allocations: 99.72 kB / 0.8279 GB, free: 67.68 MB / 458.7 MB Notification: Performance of sorting global known variables: time 0.009134/2.555, allocations: 2.44 MB / 0.8303 GB, free: 67.54 MB / 458.7 MB Notification: Performance of sort global known variables: time 1.112e-06/2.555, allocations: 2.281 kB / 0.8303 GB, free: 67.54 MB / 458.7 MB Notification: Performance of remove unused functions: time 0.01128/2.567, allocations: 1.351 MB / 0.8316 GB, free: 67.54 MB / 458.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 20 * Number of states: 14 (vfController3.x,smpmM.inertiaRotor.w,smpmM.stator.core.Phi.re,smpmM.stator.core.Phi.im,smpmM.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter[2].Phi.re,smpmM.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter[2].Phi.im,smpm3.is[3],smpm3.inertiaRotor.w,smpm3.stator.core.Phi.re,smpm3.stator.core.Phi.im,smpm3.stator.zeroInductor.i0,loadInertiaM.phi,loadInertia3.phi,vfController.x) * 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 (271): * Single equations (assignments): 265 * 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: 6 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 6 {(4,93.8%) 33,(5,68.0%) 29,(1,100.0%) 1,(1,100.0%) 1,(1,100.0%) 1,(2,100.0%) 14} * Non-linear torn systems: 0 Warning: The linear system: 1 : smpm3.is[1] + smpm3.is[2] + smpm3.is[3] = 0.0 2 : 3.0 * smpm3.stator.zeroInductor.i0 = smpm3.is[1] + smpm3.is[2] + smpm3.is[3] [ 1.0 , 1.0 ; -1.0 , -1.0 ] * [ smpm3.is[2] ; smpm3.is[1] ] = [ -smpm3.is[3] ; smpm3.is[3] + (-3.0) * smpm3.stator.zeroInductor.i0 ] might be structurally or numerically singular for variable smpm3.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.02562/2.592, allocations: 10.13 MB / 0.8415 GB, free: 64.64 MB / 458.7 MB Notification: Performance of simCode: created initialization part: time 0.0147/2.607, allocations: 5.208 MB / 0.8466 GB, free: 63.88 MB / 458.7 MB Notification: Performance of simCode: created event and clocks part: time 1.382e-05/2.607, allocations: 3.875 kB / 0.8466 GB, free: 63.88 MB / 458.7 MB Notification: Performance of simCode: created simulation system equations: time 0.008895/2.616, allocations: 3.322 MB / 0.8499 GB, free: 63.11 MB / 458.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.008683/2.625, allocations: 1.036 MB / 0.8509 GB, free: 63.09 MB / 458.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1167/2.742, allocations: 62.4 MB / 0.9118 GB, free: 23.83 MB / 458.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.009466/2.751, allocations: 4.426 MB / 0.9161 GB, free: 22.27 MB / 458.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.007243/2.758, allocations: 2.771 MB / 0.9189 GB, free: 19.98 MB / 458.7 MB Notification: Performance of SimCode: time 1.393e-06/2.758, allocations: 0 / 0.9189 GB, free: 19.98 MB / 458.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 5.706/8.465, allocations: 325.1 MB / 1.236 GB, free: 111.8 MB / 0.4949 GB (rm -f Modelica_3.2.3_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_Inverter_MultiPhase.pipe ; mkfifo Modelica_3.2.3_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_Inverter_MultiPhase.pipe ; head -c 1048576 < Modelica_3.2.3_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_Inverter_MultiPhase.pipe >> ../files/Modelica_3.2.3_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_Inverter_MultiPhase.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_Inverter_MultiPhase_res.mat --tempDir=temp_Modelica_3_2_3_cpp_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_SMPM_Inverter_MultiPhase_fmu --startTime=0 --stopTime=1.5 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_cpp_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_SMPM_Inverter_MultiPhase.fmu > Modelica_3.2.3_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_Inverter_MultiPhase.pipe 2>&1)