Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.ComparisonPolyphase.SMPM_Inverter_Polyphase.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.ComparisonPolyphase.SMPM_Inverter_Polyphase,fileNamePrefix="Modelica_4_0_0_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_ComparisonPolyphase_SMPM_Inverter_Polyphase",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.ComparisonPolyphase.SMPM_Inverter_Polyphase,fileNamePrefix="Modelica_4_0_0_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_ComparisonPolyphase_SMPM_Inverter_Polyphase",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0009999/0.0009999, allocations: 179.3 kB / 16.38 MB, free: 5.766 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.323/1.323, allocations: 223.2 MB / 240.3 MB, free: 11.91 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001011/0.001011, allocations: 96.16 kB / 291.5 MB, free: 10.92 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002944/0.0002947, allocations: 4 kB / 351.2 MB, free: 15.2 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2667/0.2671, allocations: 50.41 MB / 401.6 MB, free: 32.59 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.35/0.6171, allocations: 119.6 MB / 0.509 GB, free: 102.2 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003137/0.6175, allocations: 108.3 kB / 0.5091 GB, free: 102.2 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.6077/1.225, allocations: 169.7 MB / 0.6748 GB, free: 48.25 MB / 442.7 MB Notification: Performance of FrontEnd: time 4.217e-06/1.225, allocations: 3.062 kB / 0.6748 GB, free: 48.25 MB / 442.7 MB Notification: Performance of Transformations before backend: time 0.0007504/1.226, allocations: 179.2 kB / 0.675 GB, free: 48.23 MB / 442.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.0255/1.252, allocations: 7.327 MB / 0.6822 GB, free: 45.89 MB / 442.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.134e-05/1.252, allocations: 11.34 kB / 0.6822 GB, free: 45.89 MB / 442.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.004597/1.256, allocations: 0.9959 MB / 0.6831 GB, free: 45.8 MB / 442.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01006/1.266, allocations: 1.616 MB / 0.6847 GB, free: 45.39 MB / 442.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01819/1.285, allocations: 5.989 MB / 0.6906 GB, free: 44.52 MB / 442.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000563/1.285, allocations: 0.5333 MB / 0.6911 GB, free: 44.5 MB / 442.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002676/1.288, allocations: 0.7112 MB / 0.6918 GB, free: 44.49 MB / 442.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02288/1.311, allocations: 9.531 MB / 0.7011 GB, free: 43.69 MB / 442.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001965/1.311, allocations: 10.56 kB / 0.7011 GB, free: 43.69 MB / 442.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0008253/1.312, allocations: 303.5 kB / 0.7014 GB, free: 43.69 MB / 442.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002312/1.312, allocations: 347 kB / 0.7017 GB, free: 43.67 MB / 442.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01722/1.329, allocations: 7.805 MB / 0.7093 GB, free: 43.6 MB / 442.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.05071/1.38, allocations: 30.64 MB / 0.7393 GB, free: 33.86 MB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01208/1.392, allocations: 16.18 MB / 0.7551 GB, free: 19.65 MB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0121/1.404, allocations: 7.056 MB / 0.762 GB, free: 15.87 MB / 442.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.416e-05/1.404, allocations: 69.52 kB / 0.762 GB, free: 15.8 MB / 442.7 MB Notification: Performance of pre-optimization done (n=311): time 5.6e-06/1.404, allocations: 0 / 0.762 GB, free: 15.8 MB / 442.7 MB Warning: The linear system: 1 : 3.0 * smpm3.stator.zeroInductor.i0 = smpm3.is[1] + smpm3.is[2] + smpm3.is[3] 2 : (-smpm3.is[3]) - smpm3.is[2] - smpm3.is[1] = 0.0 [ -1.0 , -1.0 ; -1.0 , -1.0 ] * [ smpm3.is[1] ; smpm3.is[2] ] = [ smpm3.is[3] + (-3.0) * smpm3.stator.zeroInductor.i0 ; smpm3.is[3] ] 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 matching and sorting (n=349): time 0.03106/1.436, allocations: 14.5 MB / 0.7762 GB, free: 8.969 MB / 442.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.096e-05/1.436, allocations: 87.31 kB / 0.7763 GB, free: 8.902 MB / 442.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005452/1.441, allocations: 3.208 MB / 0.7794 GB, free: 7.695 MB / 442.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0005919/1.442, allocations: 82.7 kB / 0.7795 GB, free: 7.621 MB / 442.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.00234/1.444, allocations: 3.131 MB / 0.7825 GB, free: 5.25 MB / 442.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.00127/1.445, allocations: 1.188 MB / 0.7837 GB, free: 4.324 MB / 442.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002256/1.446, allocations: 90.66 kB / 0.7838 GB, free: 4.254 MB / 442.7 MB Notification: Performance of setup shared object (initialization): time 0.0002553/1.446, allocations: 465 kB / 0.7842 GB, free: 3.879 MB / 442.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002622/1.448, allocations: 1.711 MB / 0.7859 GB, free: 3.191 MB / 442.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003263/1.452, allocations: 2.798 MB / 0.7886 GB, free: 1.137 MB / 442.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003222/1.455, allocations: 2.228 MB / 0.7908 GB, free: 96 kB / 442.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.45e-05/1.455, allocations: 12.19 kB / 0.7908 GB, free: 96 kB / 442.7 MB Notification: Performance of matching and sorting (n=524) (initialization): time 0.0125/1.467, allocations: 5.821 MB / 0.7965 GB, free: 11.39 MB / 458.7 MB Notification: Performance of prepare postOptimizeDAE: time 5.172e-05/1.468, allocations: 20 kB / 0.7965 GB, free: 11.38 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.113e-05/1.468, allocations: 35.56 kB / 0.7966 GB, free: 11.34 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001902/1.47, allocations: 0.7622 MB / 0.7973 GB, free: 10.69 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003817/1.473, allocations: 0.9008 MB / 0.7982 GB, free: 9.977 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0126/1.486, allocations: 10.91 MB / 0.8088 GB, free: 15.43 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004313/1.49, allocations: 186.8 kB / 0.809 GB, free: 15.28 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0008143/1.491, allocations: 179.6 kB / 0.8092 GB, free: 15.11 MB / 474.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 {(4,81.2%) 32,(1,100.0%) 1,(1,100.0%) 1,(3,88.9%) 17} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.005173/1.496, allocations: 2.162 MB / 0.8113 GB, free: 13.24 MB / 474.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001294/1.498, allocations: 414.9 kB / 0.8117 GB, free: 12.83 MB / 474.7 MB Warning: The linear system: 1 : 3.0 * smpm3.stator.zeroInductor.i0 = smpm3.is[1] + smpm3.is[2] + smpm3.is[3] 2 : (-smpm3.is[3]) - smpm3.is[2] - smpm3.is[1] = 0.0 [ -1.0 , -1.0 ; -1.0 , -1.0 ] * [ smpm3.is[1] ; smpm3.is[2] ] = [ smpm3.is[3] + (-3.0) * smpm3.stator.zeroInductor.i0 ; smpm3.is[3] ] 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.01003/1.508, allocations: 5.303 MB / 0.8169 GB, free: 8.234 MB / 474.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.888e-05/1.508, allocations: 36 kB / 0.8169 GB, free: 8.199 MB / 474.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.728e-05/1.508, allocations: 12 kB / 0.8169 GB, free: 8.188 MB / 474.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.415e-05/1.508, allocations: 20.17 kB / 0.8169 GB, free: 8.184 MB / 474.7 MB Warning: The linear system: 1 : 3.0 * smpm3.stator.zeroInductor.i0 = smpm3.is[1] + smpm3.is[2] + smpm3.is[3] 2 : (-smpm3.is[3]) - smpm3.is[2] - smpm3.is[1] = 0.0 [ -1.0 , -1.0 ; -1.0 , -1.0 ] * [ smpm3.is[2] ; smpm3.is[1] ] = [ smpm3.is[3] + (-3.0) * smpm3.stator.zeroInductor.i0 ; smpm3.is[3] ] 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.2844/1.792, allocations: 12.81 MB / 0.8294 GB, free: 71.27 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.636e-05/1.792, allocations: 4.5 kB / 0.8294 GB, free: 71.27 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002924/1.795, allocations: 0.5431 MB / 0.83 GB, free: 71.27 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.00251/1.798, allocations: 0.999 MB / 0.831 GB, free: 71.22 MB / 474.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0005234/1.798, allocations: 88.42 kB / 0.831 GB, free: 71.22 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01529/1.814, allocations: 17.91 MB / 0.8485 GB, free: 61.89 MB / 474.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.711e-06/1.814, allocations: 10.36 kB / 0.8485 GB, free: 61.89 MB / 474.7 MB Warning: The linear system: 1 : 3.0 * smpm3.stator.zeroInductor.i0 = smpm3.is[1] + smpm3.is[2] + smpm3.is[3] 2 : (-smpm3.is[3]) - smpm3.is[2] - smpm3.is[1] = 0.0 [ -1.0 , -1.0 ; -1.0 , -1.0 ] * [ smpm3.is[1] ; smpm3.is[2] ] = [ smpm3.is[3] + (-3.0) * smpm3.stator.zeroInductor.i0 ; smpm3.is[3] ] 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 symbolicJacobian (simulation): time 0.01265/1.826, allocations: 8.06 MB / 0.8564 GB, free: 60.57 MB / 474.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002842/1.829, allocations: 0.8915 MB / 0.8573 GB, free: 60.47 MB / 474.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0009915/1.83, allocations: 82.11 kB / 0.8574 GB, free: 60.47 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002066/1.832, allocations: 169.4 kB / 0.8575 GB, free: 60.47 MB / 474.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005234/1.833, allocations: 252.6 kB / 0.8578 GB, free: 60.46 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001871/1.833, allocations: 102.8 kB / 0.8579 GB, free: 60.46 MB / 474.7 MB Notification: Performance of sorting global known variables: time 0.003678/1.837, allocations: 2.431 MB / 0.8602 GB, free: 60.31 MB / 474.7 MB Notification: Performance of sort global known variables: time 4.01e-07/1.837, allocations: 3.594 kB / 0.8602 GB, free: 60.31 MB / 474.7 MB Notification: Performance of remove unused functions: time 0.004985/1.842, allocations: 1.358 MB / 0.8616 GB, free: 60.31 MB / 474.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 : 3.0 * smpm3.stator.zeroInductor.i0 = smpm3.is[1] + smpm3.is[2] + smpm3.is[3] 2 : (-smpm3.is[3]) - smpm3.is[2] - smpm3.is[1] = 0.0 [ -1.0 , -1.0 ; -1.0 , -1.0 ] * [ smpm3.is[1] ; smpm3.is[2] ] = [ smpm3.is[3] + (-3.0) * smpm3.stator.zeroInductor.i0 ; smpm3.is[3] ] 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 Backend phase and start with SimCode phase: time 0.01136/1.853, allocations: 10.14 MB / 0.8715 GB, free: 57.42 MB / 474.7 MB Notification: Performance of simCode: created initialization part: time 0.007615/1.861, allocations: 5.199 MB / 0.8765 GB, free: 56.65 MB / 474.7 MB Notification: Performance of simCode: created event and clocks part: time 9.358e-06/1.861, allocations: 3.969 kB / 0.8765 GB, free: 56.65 MB / 474.7 MB Notification: Performance of simCode: created simulation system equations: time 0.004904/1.866, allocations: 3.295 MB / 0.8798 GB, free: 55.89 MB / 474.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005243/1.871, allocations: 1.031 MB / 0.8808 GB, free: 55.88 MB / 474.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.07152/1.943, allocations: 62.46 MB / 0.9418 GB, free: 15.05 MB / 474.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004367/1.947, allocations: 4.537 MB / 0.9462 GB, free: 13.46 MB / 474.7 MB Notification: Performance of simCode: alias equations: time 0.003776/1.951, allocations: 0.9457 MB / 0.9471 GB, free: 13.34 MB / 474.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003504/1.954, allocations: 2.739 MB / 0.9498 GB, free: 11.05 MB / 474.7 MB Notification: Performance of SimCode: time 7.81e-07/1.954, allocations: 0 / 0.9498 GB, free: 11.05 MB / 474.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.4532/2.407, allocations: 113.5 MB / 1.061 GB, free: 77.55 MB / 490.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001911/2.408, allocations: 284.6 kB / 1.061 GB, free: 77.19 MB / 490.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 5.429/7.837, allocations: 0 / 1.061 GB, free: 77.19 MB / 490.7 MB (rm -f Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.ComparisonPolyphase.SMPM_Inverter_Polyphase.pipe ; mkfifo Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.ComparisonPolyphase.SMPM_Inverter_Polyphase.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.ComparisonPolyphase.SMPM_Inverter_Polyphase.pipe >> ../files/Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.ComparisonPolyphase.SMPM_Inverter_Polyphase.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.ComparisonPolyphase.SMPM_Inverter_Polyphase_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_ComparisonPolyphase_SMPM_Inverter_Polyphase_fmu --startTime=0 --stopTime=1.5 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_ComparisonPolyphase_SMPM_Inverter_Polyphase.fmu > Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.ComparisonPolyphase.SMPM_Inverter_Polyphase.pipe 2>&1)