Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_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_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_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.001087/0.001087, allocations: 181.2 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.319/1.319, allocations: 205.4 MB / 223.1 MB, free: 9.129 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.0009323/0.0009324, allocations: 100 kB / 271.5 MB, free: 8.363 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.00023/0.0002299, allocations: 4 kB / 328.3 MB, free: 15.43 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2074/0.2077, allocations: 47.57 MB / 375.9 MB, free: 45.64 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1329/0.3406, allocations: 117.2 MB / 493.1 MB, free: 11.36 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002989/0.341, allocations: 95.95 kB / 493.2 MB, free: 11.27 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.7471/1.088, allocations: 169.3 MB / 0.647 GB, free: 32.88 MB / 410.7 MB Notification: Performance of FrontEnd: time 1.733e-06/1.088, allocations: 0 / 0.647 GB, free: 32.88 MB / 410.7 MB Notification: Performance of Transformations before backend: time 0.0007408/1.089, allocations: 168.6 kB / 0.6472 GB, free: 32.88 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.01983/1.109, allocations: 7.29 MB / 0.6543 GB, free: 31.75 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.841e-05/1.109, allocations: 7.875 kB / 0.6543 GB, free: 31.75 MB / 410.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.003108/1.112, allocations: 1.007 MB / 0.6553 GB, free: 31.66 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.008652/1.121, allocations: 1.608 MB / 0.6568 GB, free: 31.25 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01486/1.135, allocations: 5.983 MB / 0.6627 GB, free: 30.4 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0005748/1.136, allocations: 0.5383 MB / 0.6632 GB, free: 30.39 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002838/1.139, allocations: 0.7125 MB / 0.6639 GB, free: 30.38 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02376/1.163, allocations: 9.545 MB / 0.6732 GB, free: 29.6 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003291/1.163, allocations: 6.906 kB / 0.6732 GB, free: 29.6 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001848/1.165, allocations: 304.6 kB / 0.6735 GB, free: 29.6 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0003233/1.165, allocations: 342.9 kB / 0.6739 GB, free: 29.59 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02022/1.185, allocations: 7.802 MB / 0.6815 GB, free: 29.52 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.05621/1.242, allocations: 30.67 MB / 0.7114 GB, free: 22.34 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01438/1.256, allocations: 16.19 MB / 0.7272 GB, free: 8.18 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01539/1.272, allocations: 7.055 MB / 0.7341 GB, free: 4.426 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.265e-05/1.272, allocations: 76.08 kB / 0.7342 GB, free: 4.359 MB / 410.7 MB Notification: Performance of pre-optimization done (n=311): time 5.591e-06/1.272, allocations: 0 / 0.7342 GB, free: 4.359 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.03138/1.303, allocations: 14.48 MB / 0.7483 GB, free: 13.69 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.874e-05/1.303, allocations: 89.03 kB / 0.7484 GB, free: 13.62 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006933/1.31, allocations: 3.203 MB / 0.7515 GB, free: 12.42 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0006321/1.311, allocations: 84.73 kB / 0.7516 GB, free: 12.35 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.002581/1.313, allocations: 3.145 MB / 0.7547 GB, free: 9.965 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001455/1.315, allocations: 1.183 MB / 0.7559 GB, free: 9.043 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005263/1.315, allocations: 78.19 kB / 0.7559 GB, free: 8.98 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.0003306/1.316, allocations: 474.7 kB / 0.7564 GB, free: 8.598 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003072/1.319, allocations: 1.713 MB / 0.7581 GB, free: 7.914 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003856/1.323, allocations: 2.802 MB / 0.7608 GB, free: 5.891 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003673/1.326, allocations: 2.226 MB / 0.763 GB, free: 4.879 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.295e-05/1.326, allocations: 13.69 kB / 0.763 GB, free: 4.879 MB / 426.7 MB Notification: Performance of matching and sorting (n=524) (initialization): time 0.01035/1.337, allocations: 5.729 MB / 0.7686 GB, free: 2.633 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 5.803e-05/1.337, allocations: 18.91 kB / 0.7686 GB, free: 2.633 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.403e-05/1.337, allocations: 36.5 kB / 0.7686 GB, free: 2.633 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002081/1.339, allocations: 0.7661 MB / 0.7694 GB, free: 2.383 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004482/1.344, allocations: 0.9129 MB / 0.7703 GB, free: 2.348 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01193/1.355, allocations: 10.87 MB / 0.7809 GB, free: 8.176 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004011/1.36, allocations: 189.4 kB / 0.7811 GB, free: 8.016 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0007603/1.36, allocations: 175.4 kB / 0.7812 GB, free: 7.852 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.005314/1.366, allocations: 2.175 MB / 0.7834 GB, free: 5.98 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001333/1.367, allocations: 422.8 kB / 0.7838 GB, free: 5.562 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.01078/1.378, allocations: 5.275 MB / 0.7889 GB, free: 0.9883 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.072e-05/1.378, allocations: 43.95 kB / 0.7889 GB, free: 0.9453 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.521e-05/1.378, allocations: 12 kB / 0.789 GB, free: 0.9336 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.871e-05/1.378, allocations: 18.75 kB / 0.789 GB, free: 0.9336 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.02587/1.404, allocations: 12.4 MB / 0.8011 GB, free: 6.738 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.801e-05/1.404, allocations: 4 kB / 0.8011 GB, free: 6.734 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002616/1.406, allocations: 0.5471 MB / 0.8016 GB, free: 6.301 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002576/1.409, allocations: 1.008 MB / 0.8026 GB, free: 5.469 MB / 458.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0004453/1.41, allocations: 86.94 kB / 0.8027 GB, free: 5.391 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.2468/1.656, allocations: 17.89 MB / 0.8202 GB, free: 68.37 MB / 458.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.829e-06/1.656, allocations: 7.031 kB / 0.8202 GB, free: 68.37 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.01038/1.667, allocations: 8.049 MB / 0.828 GB, free: 67.05 MB / 458.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.00221/1.669, allocations: 0.8886 MB / 0.8289 GB, free: 66.96 MB / 458.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006548/1.67, allocations: 81.48 kB / 0.829 GB, free: 66.96 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001993/1.672, allocations: 169.2 kB / 0.8291 GB, free: 66.96 MB / 458.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004777/1.672, allocations: 253.7 kB / 0.8294 GB, free: 66.95 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001877/1.672, allocations: 101 kB / 0.8295 GB, free: 66.95 MB / 458.7 MB Notification: Performance of sorting global known variables: time 0.003407/1.676, allocations: 2.434 MB / 0.8319 GB, free: 66.81 MB / 458.7 MB Notification: Performance of sort global known variables: time 1.31e-07/1.676, allocations: 0 / 0.8319 GB, free: 66.81 MB / 458.7 MB Notification: Performance of remove unused functions: time 0.004732/1.681, allocations: 1.358 MB / 0.8332 GB, free: 66.81 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.0125/1.693, allocations: 10.11 MB / 0.8431 GB, free: 63.91 MB / 458.7 MB Notification: Performance of simCode: created initialization part: time 0.007575/1.701, allocations: 5.214 MB / 0.8481 GB, free: 63.14 MB / 458.7 MB Notification: Performance of simCode: created event and clocks part: time 7.754e-06/1.701, allocations: 0 / 0.8481 GB, free: 63.14 MB / 458.7 MB Notification: Performance of simCode: created simulation system equations: time 0.004233/1.705, allocations: 3.322 MB / 0.8514 GB, free: 62.38 MB / 458.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004436/1.709, allocations: 1.043 MB / 0.8524 GB, free: 62.37 MB / 458.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.06558/1.775, allocations: 62.49 MB / 0.9134 GB, free: 23.11 MB / 458.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.005371/1.78, allocations: 4.54 MB / 0.9179 GB, free: 21.54 MB / 458.7 MB Notification: Performance of simCode: alias equations: time 0.003711/1.784, allocations: 0.9407 MB / 0.9188 GB, free: 21.41 MB / 458.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003342/1.787, allocations: 2.736 MB / 0.9215 GB, free: 19.12 MB / 458.7 MB Notification: Performance of SimCode: time 1.082e-06/1.788, allocations: 0 / 0.9215 GB, free: 19.12 MB / 458.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3546/2.142, allocations: 113.4 MB / 1.032 GB, free: 80.83 MB / 474.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002124/2.142, allocations: 234.3 kB / 1.032 GB, free: 80.59 MB / 474.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 5.24/7.383, allocations: 0 / 1.032 GB, free: 80.59 MB / 474.7 MB (rm -f Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_Inverter_MultiPhase.pipe ; mkfifo Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_Inverter_MultiPhase.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_Inverter_MultiPhase.pipe >> ../files/Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_Inverter_MultiPhase.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_Inverter_MultiPhase_res.mat --tempDir=temp_Modelica_3_2_3_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_SMPM_Inverter_MultiPhase_fmu --startTime=0 --stopTime=1.5 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_SMPM_Inverter_MultiPhase.fmu > Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_Inverter_MultiPhase.pipe 2>&1)