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.SMR_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.SMR_Inverter_Polyphase,fileNamePrefix="Modelica_4_0_0_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_ComparisonPolyphase_SMR_Inverter_Polyphase",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.ComparisonPolyphase.SMR_Inverter_Polyphase,fileNamePrefix="Modelica_4_0_0_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_ComparisonPolyphase_SMR_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.001091/0.001091, allocations: 179.5 kB / 16.39 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.417/1.417, allocations: 223.2 MB / 240.3 MB, free: 11.89 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.0008433/0.0008433, allocations: 99.19 kB / 291.5 MB, free: 10.89 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002332/0.0002333, allocations: 4 kB / 351.2 MB, free: 15.17 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2225/0.2227, allocations: 50.4 MB / 401.6 MB, free: 32.55 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3084/0.5312, allocations: 115.7 MB / 0.5052 GB, free: 100.6 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003395/0.5316, allocations: 108.2 kB / 0.5053 GB, free: 100.6 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.5701/1.102, allocations: 159.9 MB / 0.6614 GB, free: 34 MB / 426.7 MB Notification: Performance of FrontEnd: time 3.046e-06/1.102, allocations: 3.844 kB / 0.6614 GB, free: 34 MB / 426.7 MB Notification: Performance of Transformations before backend: time 0.0007164/1.103, allocations: 165.4 kB / 0.6616 GB, free: 33.98 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: 1854 * Number of variables: 1854 Notification: Performance of Generate backend data structure: time 0.0224/1.125, allocations: 7.029 MB / 0.6684 GB, free: 31.98 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.415e-05/1.125, allocations: 10.06 kB / 0.6684 GB, free: 31.98 MB / 426.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.003898/1.129, allocations: 0.962 MB / 0.6694 GB, free: 31.89 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.009014/1.138, allocations: 1.53 MB / 0.6709 GB, free: 31.5 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01522/1.153, allocations: 5.766 MB / 0.6765 GB, free: 30.68 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0006037/1.154, allocations: 0.5171 MB / 0.677 GB, free: 30.66 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003583/1.157, allocations: 0.6813 MB / 0.6777 GB, free: 30.66 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02639/1.184, allocations: 9.202 MB / 0.6867 GB, free: 29.93 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.00031/1.184, allocations: 6.625 kB / 0.6867 GB, free: 29.93 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001771/1.186, allocations: 293.8 kB / 0.6869 GB, free: 29.93 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0003029/1.186, allocations: 323.5 kB / 0.6873 GB, free: 29.91 MB / 426.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01575/1.202, allocations: 7.57 MB / 0.6946 GB, free: 29.85 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.05665/1.259, allocations: 28.85 MB / 0.7228 GB, free: 24.45 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01408/1.273, allocations: 16.6 MB / 0.739 GB, free: 9.602 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01411/1.287, allocations: 6.631 MB / 0.7455 GB, free: 6.035 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.203e-05/1.287, allocations: 62.41 kB / 0.7456 GB, free: 5.973 MB / 426.7 MB Notification: Performance of pre-optimization done (n=281): time 5.58e-06/1.287, allocations: 7.125 kB / 0.7456 GB, free: 5.969 MB / 426.7 MB Warning: The linear system: 1 : 3.0 * smr3.stator.zeroInductor.i0 = smr3.is[1] + smr3.is[2] + smr3.is[3] 2 : (-smr3.is[3]) - smr3.is[2] - smr3.is[1] = 0.0 [ -1.0 , -1.0 ; -1.0 , -1.0 ] * [ smr3.is[1] ; smr3.is[2] ] = [ smr3.is[3] + (-3.0) * smr3.stator.zeroInductor.i0 ; smr3.is[3] ] might be structurally or numerically singular for variable smr3.is[2] since U(2,2) = 0.0. It might be hard to solve. Compilation continues anyway. Notification: Performance of matching and sorting (n=315): time 0.02849/1.316, allocations: 13.58 MB / 0.7588 GB, free: 15.53 MB / 442.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.313e-05/1.316, allocations: 92.17 kB / 0.7589 GB, free: 15.46 MB / 442.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006282/1.322, allocations: 2.926 MB / 0.7618 GB, free: 14.36 MB / 442.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0004774/1.323, allocations: 75.23 kB / 0.7619 GB, free: 14.29 MB / 442.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.002613/1.325, allocations: 2.993 MB / 0.7648 GB, free: 12.02 MB / 442.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.00132/1.326, allocations: 1.078 MB / 0.7658 GB, free: 11.18 MB / 442.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000377/1.327, allocations: 74.88 kB / 0.7659 GB, free: 11.12 MB / 442.7 MB Notification: Performance of setup shared object (initialization): time 0.0003269/1.327, allocations: 452.8 kB / 0.7663 GB, free: 10.75 MB / 442.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002844/1.33, allocations: 1.595 MB / 0.7679 GB, free: 10.12 MB / 442.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003524/1.334, allocations: 2.59 MB / 0.7704 GB, free: 8.273 MB / 442.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003362/1.337, allocations: 2.071 MB / 0.7724 GB, free: 7.309 MB / 442.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.495e-05/1.337, allocations: 7.688 kB / 0.7725 GB, free: 7.309 MB / 442.7 MB Notification: Performance of matching and sorting (n=476) (initialization): time 0.009203/1.346, allocations: 5.347 MB / 0.7777 GB, free: 5.203 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.73e-05/1.346, allocations: 17.91 kB / 0.7777 GB, free: 5.203 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.251e-05/1.346, allocations: 30.12 kB / 0.7777 GB, free: 5.203 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001831/1.348, allocations: 0.7491 MB / 0.7785 GB, free: 4.953 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002968/1.351, allocations: 0.8197 MB / 0.7793 GB, free: 4.922 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01158/1.363, allocations: 10.77 MB / 0.7898 GB, free: 12.82 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003392/1.366, allocations: 170.5 kB / 0.7899 GB, free: 12.72 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0006328/1.367, allocations: 163.3 kB / 0.7901 GB, free: 12.57 MB / 458.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 136 * 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 (420): * Single equations (assignments): 414 * 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%) 30,(1,100.0%) 1,(1,100.0%) 1,(3,88.9%) 17} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.005176/1.372, allocations: 2.099 MB / 0.7921 GB, free: 10.76 MB / 458.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001182/1.373, allocations: 383.3 kB / 0.7925 GB, free: 10.38 MB / 458.7 MB Warning: The linear system: 1 : 3.0 * smr3.stator.zeroInductor.i0 = smr3.is[1] + smr3.is[2] + smr3.is[3] 2 : (-smr3.is[3]) - smr3.is[2] - smr3.is[1] = 0.0 [ -1.0 , -1.0 ; -1.0 , -1.0 ] * [ smr3.is[2] ; smr3.is[1] ] = [ smr3.is[3] + (-3.0) * smr3.stator.zeroInductor.i0 ; smr3.is[3] ] might be structurally or numerically singular for variable smr3.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.009442/1.383, allocations: 4.955 MB / 0.7973 GB, free: 6.09 MB / 458.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.612e-05/1.383, allocations: 36 kB / 0.7974 GB, free: 6.055 MB / 458.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.304e-05/1.383, allocations: 12 kB / 0.7974 GB, free: 6.043 MB / 458.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.741e-05/1.383, allocations: 17.3 kB / 0.7974 GB, free: 6.043 MB / 458.7 MB Warning: The linear system: 1 : 3.0 * smr3.stator.zeroInductor.i0 = smr3.is[1] + smr3.is[2] + smr3.is[3] 2 : (-smr3.is[3]) - smr3.is[2] - smr3.is[1] = 0.0 [ -1.0 , -1.0 ; -1.0 , -1.0 ] * [ smr3.is[1] ; smr3.is[2] ] = [ smr3.is[3] + (-3.0) * smr3.stator.zeroInductor.i0 ; smr3.is[3] ] might be structurally or numerically singular for variable smr3.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.02827/1.411, allocations: 11.73 MB / 0.8089 GB, free: 13.5 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.481e-05/1.411, allocations: 4 kB / 0.8089 GB, free: 13.5 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002309/1.413, allocations: 0.4947 MB / 0.8093 GB, free: 13.11 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002521/1.416, allocations: 1.002 MB / 0.8103 GB, free: 12.28 MB / 474.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003067/1.416, allocations: 82.56 kB / 0.8104 GB, free: 12.21 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.018/1.434, allocations: 17.78 MB / 0.8278 GB, free: 10.91 MB / 490.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.08e-06/1.434, allocations: 8 kB / 0.8278 GB, free: 10.91 MB / 490.7 MB Warning: The linear system: 1 : 3.0 * smr3.stator.zeroInductor.i0 = smr3.is[1] + smr3.is[2] + smr3.is[3] 2 : (-smr3.is[3]) - smr3.is[2] - smr3.is[1] = 0.0 [ -1.0 , -1.0 ; -1.0 , -1.0 ] * [ smr3.is[2] ; smr3.is[1] ] = [ smr3.is[3] + (-3.0) * smr3.stator.zeroInductor.i0 ; smr3.is[3] ] might be structurally or numerically singular for variable smr3.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.01211/1.446, allocations: 7.394 MB / 0.835 GB, free: 4.059 MB / 490.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002493/1.449, allocations: 0.8107 MB / 0.8358 GB, free: 3.312 MB / 490.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.00111/1.45, allocations: 75.52 kB / 0.8359 GB, free: 3.242 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002498/1.453, allocations: 160.2 kB / 0.836 GB, free: 3.113 MB / 490.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005923/1.453, allocations: 232.8 kB / 0.8362 GB, free: 2.973 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002464/1.453, allocations: 91.69 kB / 0.8363 GB, free: 2.891 MB / 490.7 MB Notification: Performance of sorting global known variables: time 0.004428/1.458, allocations: 2.226 MB / 0.8385 GB, free: 1.027 MB / 490.7 MB Notification: Performance of sort global known variables: time 1.8e-07/1.458, allocations: 0 / 0.8385 GB, free: 1.027 MB / 490.7 MB Notification: Performance of remove unused functions: time 0.006888/1.465, allocations: 1.376 MB / 0.8398 GB, free: 0 / 490.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 16 * Number of states: 14 (smrM.inertiaRotor.w,smrM.stator.core.Phi.re,smrM.stator.core.Phi.im,smrM.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter[2].Phi.re,smrM.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter[2].Phi.im,smr3.is[3],smr3.inertiaRotor.w,smr3.stator.core.Phi.re,smr3.stator.core.Phi.im,smr3.stator.zeroInductor.i0,loadInertiaM.phi,loadInertia3.phi,vfController3.x,vfControllerM.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 (239): * Single equations (assignments): 233 * 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%) 12} * Non-linear torn systems: 0 Warning: The linear system: 1 : 3.0 * smr3.stator.zeroInductor.i0 = smr3.is[1] + smr3.is[2] + smr3.is[3] 2 : (-smr3.is[3]) - smr3.is[2] - smr3.is[1] = 0.0 [ -1.0 , -1.0 ; -1.0 , -1.0 ] * [ smr3.is[2] ; smr3.is[1] ] = [ smr3.is[3] + (-3.0) * smr3.stator.zeroInductor.i0 ; smr3.is[3] ] might be structurally or numerically singular for variable smr3.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.2636/1.728, allocations: 9.221 MB / 0.8488 GB, free: 86.07 MB / 490.7 MB Notification: Performance of simCode: created initialization part: time 0.007621/1.736, allocations: 4.858 MB / 0.8536 GB, free: 85.31 MB / 490.7 MB Notification: Performance of simCode: created event and clocks part: time 1.033e-05/1.736, allocations: 3.719 kB / 0.8536 GB, free: 85.31 MB / 490.7 MB Notification: Performance of simCode: created simulation system equations: time 0.004734/1.741, allocations: 3.135 MB / 0.8567 GB, free: 84.55 MB / 490.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005206/1.746, allocations: 0.9394 MB / 0.8576 GB, free: 84.54 MB / 490.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0789/1.825, allocations: 57.26 MB / 0.9135 GB, free: 49.38 MB / 490.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.007296/1.832, allocations: 4.408 MB / 0.9178 GB, free: 48.48 MB / 490.7 MB Notification: Performance of simCode: alias equations: time 0.004197/1.837, allocations: 0.8809 MB / 0.9187 GB, free: 48.37 MB / 490.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00454/1.841, allocations: 2.578 MB / 0.9212 GB, free: 48.36 MB / 490.7 MB Notification: Performance of SimCode: time 1.332e-06/1.841, allocations: 0 / 0.9212 GB, free: 48.36 MB / 490.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.4241/2.265, allocations: 104.5 MB / 1.023 GB, free: 65.41 MB / 490.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001827/2.266, allocations: 277.1 kB / 1.024 GB, free: 65.06 MB / 490.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 5.012/7.278, allocations: 2.938 kB / 1.024 GB, free: 65.06 MB / 490.7 MB (rm -f Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.ComparisonPolyphase.SMR_Inverter_Polyphase.pipe ; mkfifo Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.ComparisonPolyphase.SMR_Inverter_Polyphase.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.ComparisonPolyphase.SMR_Inverter_Polyphase.pipe >> ../files/Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.ComparisonPolyphase.SMR_Inverter_Polyphase.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.ComparisonPolyphase.SMR_Inverter_Polyphase_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_ComparisonPolyphase_SMR_Inverter_Polyphase_fmu --startTime=0 --stopTime=1.5 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_ComparisonPolyphase_SMR_Inverter_Polyphase.fmu > Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.ComparisonPolyphase.SMR_Inverter_Polyphase.pipe 2>&1)