Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMR_Inverter.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.SMR_Inverter,fileNamePrefix="Modelica_3_2_3_cpp_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_SMR_Inverter",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMR_Inverter,fileNamePrefix="Modelica_3_2_3_cpp_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_SMR_Inverter",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.001434/0.001434, allocations: 186.4 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.848/1.848, allocations: 205.4 MB / 222.5 MB, free: 9.137 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.001128/0.001128, allocations: 95.23 kB / 270.9 MB, free: 8.383 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003776/0.000378, allocations: 16 kB / 327.1 MB, free: 104 kB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.309/0.3094, allocations: 47.56 MB / 374.6 MB, free: 45.3 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1938/0.5033, allocations: 125.1 MB / 499.8 MB, free: 3.43 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000335/0.5036, allocations: 91.94 kB / 499.9 MB, free: 3.34 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.6383/1.142, allocations: 115.9 MB / 0.6013 GB, free: 14.82 MB / 378.7 MB Notification: Performance of FrontEnd: time 3.807e-06/1.142, allocations: 0 / 0.6013 GB, free: 14.82 MB / 378.7 MB Notification: Performance of Transformations before backend: time 0.0004514/1.142, allocations: 143.7 kB / 0.6015 GB, free: 14.68 MB / 378.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.02012/1.163, allocations: 5.373 MB / 0.6067 GB, free: 9.223 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.491e-05/1.163, allocations: 8.031 kB / 0.6067 GB, free: 9.215 MB / 378.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.002366/1.165, allocations: 0.7154 MB / 0.6074 GB, free: 8.488 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006299/1.171, allocations: 0.9572 MB / 0.6083 GB, free: 7.523 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01439/1.186, allocations: 4.438 MB / 0.6127 GB, free: 3.008 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003256/1.186, allocations: 390.3 kB / 0.6131 GB, free: 2.625 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00134/1.187, allocations: 0.496 MB / 0.6135 GB, free: 2.129 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01924/1.207, allocations: 6.701 MB / 0.6201 GB, free: 11.23 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002124/1.207, allocations: 7.906 kB / 0.6201 GB, free: 11.22 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0008894/1.208, allocations: 216 kB / 0.6203 GB, free: 11.01 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0003382/1.208, allocations: 234.2 kB / 0.6205 GB, free: 10.78 MB / 394.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01798/1.226, allocations: 5.44 MB / 0.6258 GB, free: 5.328 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.343/1.569, allocations: 21.15 MB / 0.6465 GB, free: 54.77 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01223/1.582, allocations: 8.598 MB / 0.6549 GB, free: 48.9 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01341/1.595, allocations: 5.068 MB / 0.6598 GB, free: 48.13 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.742e-05/1.595, allocations: 60.91 kB / 0.6599 GB, free: 48.09 MB / 410.7 MB Notification: Performance of pre-optimization done (n=222): time 4.869e-06/1.595, allocations: 0 / 0.6599 GB, free: 48.09 MB / 410.7 MB Warning: The linear system: 1 : smrM.is[1] + smrM.is[2] + smrM.is[3] = 0.0 2 : 3.0 * smrM.stator.zeroInductor.i0 = smrM.is[1] + smrM.is[2] + smrM.is[3] [ 1.0 , 1.0 ; -1.0 , -1.0 ] * [ smrM.is[2] ; smrM.is[1] ] = [ -smrM.is[3] ; smrM.is[3] + (-3.0) * smrM.stator.zeroInductor.i0 ] 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 matching and sorting (n=273): time 0.05205/1.647, allocations: 14.41 MB / 0.674 GB, free: 46.02 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.404e-05/1.647, allocations: 77.44 kB / 0.674 GB, free: 45.96 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005369/1.653, allocations: 2.518 MB / 0.6765 GB, free: 45.73 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0005481/1.653, allocations: 72.39 kB / 0.6766 GB, free: 45.7 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001481/1.655, allocations: 2.169 MB / 0.6787 GB, free: 44.89 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001061/1.656, allocations: 0.9364 MB / 0.6796 GB, free: 44.29 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003403/1.656, allocations: 65.88 kB / 0.6797 GB, free: 44.29 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 0.0001919/1.656, allocations: 441 kB / 0.6801 GB, free: 43.98 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003751/1.66, allocations: 1.492 MB / 0.6815 GB, free: 43.97 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004523/1.665, allocations: 2.359 MB / 0.6838 GB, free: 42.98 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.005059/1.67, allocations: 1.903 MB / 0.6857 GB, free: 42.93 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.265e-05/1.67, allocations: 10.38 kB / 0.6857 GB, free: 42.93 MB / 410.7 MB Notification: Performance of matching and sorting (n=416) (initialization): time 0.01416/1.684, allocations: 5.011 MB / 0.6906 GB, free: 42.66 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.634e-05/1.684, allocations: 16.97 kB / 0.6906 GB, free: 42.66 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.906e-05/1.684, allocations: 24.09 kB / 0.6906 GB, free: 42.66 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.004104/1.688, allocations: 1.034 MB / 0.6917 GB, free: 42.6 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005374/1.694, allocations: 0.7142 MB / 0.6924 GB, free: 42.6 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02005/1.714, allocations: 12.62 MB / 0.7047 GB, free: 37.37 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004357/1.718, allocations: 195 kB / 0.7049 GB, free: 37.36 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003468/1.718, allocations: 136.4 kB / 0.705 GB, free: 37.36 MB / 410.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 (352): * Single equations (assignments): 346 * 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 {(6,72.2%) 22,(1,100.0%) 1,(3,100.0%) 31,(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.003767/1.722, allocations: 1.558 MB / 0.7065 GB, free: 37 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0009552/1.723, allocations: 334.2 kB / 0.7068 GB, free: 36.83 MB / 410.7 MB Warning: The linear system: 1 : smrM.is[1] + smrM.is[2] + smrM.is[3] = 0.0 2 : 3.0 * smrM.stator.zeroInductor.i0 = smrM.is[1] + smrM.is[2] + smrM.is[3] [ 1.0 , 1.0 ; -1.0 , -1.0 ] * [ smrM.is[1] ; smrM.is[2] ] = [ -smrM.is[3] ; smrM.is[3] + (-3.0) * smrM.stator.zeroInductor.i0 ] 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 wrapFunctionCalls (simulation): time 0.01222/1.735, allocations: 4.707 MB / 0.7114 GB, free: 34.79 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.707e-05/1.736, allocations: 27.97 kB / 0.7115 GB, free: 34.79 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.764e-05/1.736, allocations: 9.594 kB / 0.7115 GB, free: 34.79 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.757e-05/1.736, allocations: 17.39 kB / 0.7115 GB, free: 34.79 MB / 410.7 MB Warning: The linear system: 1 : smrM.is[1] + smrM.is[2] + smrM.is[3] = 0.0 2 : 3.0 * smrM.stator.zeroInductor.i0 = smrM.is[1] + smrM.is[2] + smrM.is[3] [ 1.0 , 1.0 ; -1.0 , -1.0 ] * [ smrM.is[1] ; smrM.is[2] ] = [ -smrM.is[3] ; smrM.is[3] + (-3.0) * smrM.stator.zeroInductor.i0 ] 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.02336/1.759, allocations: 9.776 MB / 0.721 GB, free: 30.63 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.522e-05/1.759, allocations: 6.5 kB / 0.721 GB, free: 30.63 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003728/1.763, allocations: 454.9 kB / 0.7215 GB, free: 30.62 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.004448/1.767, allocations: 1.083 MB / 0.7225 GB, free: 30.31 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002631/1.767, allocations: 72.77 kB / 0.7226 GB, free: 30.27 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02309/1.791, allocations: 17.25 MB / 0.7394 GB, free: 17.27 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.871e-06/1.791, allocations: 7.281 kB / 0.7394 GB, free: 17.27 MB / 410.7 MB Warning: The linear system: 1 : smrM.is[1] + smrM.is[2] + smrM.is[3] = 0.0 2 : 3.0 * smrM.stator.zeroInductor.i0 = smrM.is[1] + smrM.is[2] + smrM.is[3] [ 1.0 , 1.0 ; -1.0 , -1.0 ] * [ smrM.is[1] ; smrM.is[2] ] = [ -smrM.is[3] ; smrM.is[3] + (-3.0) * smrM.stator.zeroInductor.i0 ] 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 symbolicJacobian (simulation): time 0.01626/1.807, allocations: 6.961 MB / 0.7462 GB, free: 13.88 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002379/1.809, allocations: 0.7276 MB / 0.747 GB, free: 13.41 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0007378/1.81, allocations: 65.55 kB / 0.747 GB, free: 13.37 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003071/1.813, allocations: 159 kB / 0.7472 GB, free: 13.34 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000618/1.814, allocations: 202 kB / 0.7474 GB, free: 13.3 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002411/1.814, allocations: 80.89 kB / 0.7474 GB, free: 13.29 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.00389/1.818, allocations: 1.913 MB / 0.7493 GB, free: 12.56 MB / 410.7 MB Notification: Performance of sort global known variables: time 7.71e-07/1.818, allocations: 0 / 0.7493 GB, free: 12.56 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.004775/1.823, allocations: 1.08 MB / 0.7504 GB, free: 12.44 MB / 410.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 (211): * Single equations (assignments): 205 * 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 {(6,75.0%) 22,(5,68.0%) 29,(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 : smrM.is[1] + smrM.is[2] + smrM.is[3] = 0.0 2 : 3.0 * smrM.stator.zeroInductor.i0 = smrM.is[1] + smrM.is[2] + smrM.is[3] [ 1.0 , 1.0 ; -1.0 , -1.0 ] * [ smrM.is[1] ; smrM.is[2] ] = [ -smrM.is[3] ; smrM.is[3] + (-3.0) * smrM.stator.zeroInductor.i0 ] 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 Backend phase and start with SimCode phase: time 0.01672/1.839, allocations: 8.597 MB / 0.7588 GB, free: 4.707 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.01111/1.851, allocations: 4.757 MB / 0.7634 GB, free: 456 kB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 7.524e-06/1.851, allocations: 0 / 0.7634 GB, free: 456 kB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.01306/1.864, allocations: 3.304 MB / 0.7666 GB, free: 14.55 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00575/1.87, allocations: 0.7836 MB / 0.7674 GB, free: 13.93 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.3769/2.246, allocations: 48.83 MB / 0.8151 GB, free: 99.55 MB / 458.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004301/2.251, allocations: 3.405 MB / 0.8184 GB, free: 98.75 MB / 458.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.004027/2.255, allocations: 2.005 MB / 0.8204 GB, free: 98.75 MB / 458.7 MB Notification: Performance of SimCode: time 1.693e-06/2.255, allocations: 0 / 0.8204 GB, free: 98.75 MB / 458.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 4.765/7.02, allocations: 231.3 MB / 1.046 GB, free: 87.05 MB / 458.7 MB (rm -f Modelica_3.2.3_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMR_Inverter.pipe ; mkfifo Modelica_3.2.3_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMR_Inverter.pipe ; head -c 1048576 < Modelica_3.2.3_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMR_Inverter.pipe >> ../files/Modelica_3.2.3_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMR_Inverter.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMR_Inverter_res.mat --tempDir=temp_Modelica_3_2_3_cpp_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_SMR_Inverter_fmu --startTime=0 --stopTime=1.5 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_cpp_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_SMR_Inverter.fmu > Modelica_3.2.3_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMR_Inverter.pipe 2>&1)