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.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,fileNamePrefix="Modelica_3_2_3_cpp_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_SMPM_Inverter",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_Inverter,fileNamePrefix="Modelica_3_2_3_cpp_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_SMPM_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.001549/0.001549, allocations: 186.3 kB / 16.4 MB, free: 5.75 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.892/1.892, 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.001109/0.001109, allocations: 98.95 kB / 270.9 MB, free: 8.371 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004966/0.0004967, allocations: 8 kB / 327.1 MB, free: 100 kB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3186/0.3191, allocations: 47.57 MB / 374.6 MB, free: 45.45 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4905/0.8097, allocations: 130.5 MB / 0.4933 GB, free: 61.7 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002852/0.81, allocations: 99.52 kB / 0.4934 GB, free: 61.69 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.4256/1.236, allocations: 124.1 MB / 0.6146 GB, free: 6.941 MB / 394.7 MB Notification: Performance of FrontEnd: time 3.717e-06/1.236, allocations: 0 / 0.6146 GB, free: 6.941 MB / 394.7 MB Notification: Performance of Transformations before backend: time 0.0005717/1.236, allocations: 139.9 kB / 0.6147 GB, free: 6.805 MB / 394.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1413 * Number of variables: 1413 Notification: Performance of Generate backend data structure: time 0.02397/1.26, allocations: 5.659 MB / 0.6202 GB, free: 1.066 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.022e-05/1.26, allocations: 8.031 kB / 0.6202 GB, free: 1.059 MB / 394.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.003/1.263, allocations: 0.7405 MB / 0.6209 GB, free: 316 kB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.007489/1.271, allocations: 1.02 MB / 0.6219 GB, free: 15.28 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01749/1.288, allocations: 4.627 MB / 0.6265 GB, free: 10.58 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000521/1.289, allocations: 402.8 kB / 0.6268 GB, free: 10.18 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001937/1.291, allocations: 0.5194 MB / 0.6274 GB, free: 9.664 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02188/1.313, allocations: 6.975 MB / 0.6342 GB, free: 2.484 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002482/1.313, allocations: 15.84 kB / 0.6342 GB, free: 2.469 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0009769/1.314, allocations: 232 kB / 0.6344 GB, free: 2.242 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0003764/1.314, allocations: 246.6 kB / 0.6346 GB, free: 2 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01925/1.334, allocations: 5.632 MB / 0.6401 GB, free: 12.36 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.352/1.686, allocations: 22.53 MB / 0.6621 GB, free: 48.5 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01145/1.697, allocations: 8.405 MB / 0.6703 GB, free: 43 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01363/1.711, allocations: 5.344 MB / 0.6756 GB, free: 42.22 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.588e-05/1.711, allocations: 57.16 kB / 0.6756 GB, free: 42.18 MB / 426.7 MB Notification: Performance of pre-optimization done (n=241): time 5.19e-06/1.711, allocations: 0 / 0.6756 GB, free: 42.18 MB / 426.7 MB Warning: The linear system: 1 : smpmM.is[1] + smpmM.is[2] + smpmM.is[3] = 0.0 2 : 3.0 * smpmM.stator.zeroInductor.i0 = smpmM.is[1] + smpmM.is[2] + smpmM.is[3] [ 1.0 , 1.0 ; -1.0 , -1.0 ] * [ smpmM.is[2] ; smpmM.is[1] ] = [ -smpmM.is[3] ; smpmM.is[3] + (-3.0) * smpmM.stator.zeroInductor.i0 ] might be structurally or numerically singular for variable smpmM.is[1] since U(2,2) = 0.0. It might be hard to solve. Compilation continues anyway. Notification: Performance of matching and sorting (n=297): time 0.05884/1.77, allocations: 15.59 MB / 0.6908 GB, free: 39.85 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.078e-05/1.77, allocations: 82.47 kB / 0.6909 GB, free: 39.79 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006558/1.777, allocations: 2.755 MB / 0.6936 GB, free: 39.55 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0006314/1.777, allocations: 75.08 kB / 0.6937 GB, free: 39.52 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001709/1.779, allocations: 2.289 MB / 0.6959 GB, free: 38.68 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001252/1.78, allocations: 1.019 MB / 0.6969 GB, free: 38.05 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003757/1.781, allocations: 66.12 kB / 0.697 GB, free: 38.05 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.0002032/1.781, allocations: 453 kB / 0.6974 GB, free: 37.74 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003876/1.785, allocations: 1.572 MB / 0.6989 GB, free: 37.73 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004351/1.789, allocations: 2.55 MB / 0.7014 GB, free: 36.63 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004883/1.794, allocations: 2.016 MB / 0.7034 GB, free: 36.58 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.427e-05/1.794, allocations: 7 kB / 0.7034 GB, free: 36.58 MB / 426.7 MB Notification: Performance of matching and sorting (n=454) (initialization): time 0.01356/1.808, allocations: 5.296 MB / 0.7086 GB, free: 36.31 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.613e-05/1.808, allocations: 21.83 kB / 0.7086 GB, free: 36.3 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.396e-05/1.808, allocations: 33.7 kB / 0.7086 GB, free: 36.3 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.004096/1.812, allocations: 1.054 MB / 0.7097 GB, free: 36.25 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0055/1.817, allocations: 0.7768 MB / 0.7104 GB, free: 36.25 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02117/1.839, allocations: 13.12 MB / 0.7232 GB, free: 30.93 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004823/1.843, allocations: 210.6 kB / 0.7234 GB, free: 30.93 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004083/1.844, allocations: 154.3 kB / 0.7236 GB, free: 30.93 MB / 426.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 135 * 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 (387): * Single equations (assignments): 381 * 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%) 23,(1,100.0%) 1,(3,100.0%) 33,(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.004229/1.848, allocations: 1.605 MB / 0.7252 GB, free: 30.38 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001141/1.849, allocations: 368.2 kB / 0.7255 GB, free: 30.19 MB / 426.7 MB Warning: The linear system: 1 : smpmM.is[1] + smpmM.is[2] + smpmM.is[3] = 0.0 2 : 3.0 * smpmM.stator.zeroInductor.i0 = smpmM.is[1] + smpmM.is[2] + smpmM.is[3] [ 1.0 , 1.0 ; -1.0 , -1.0 ] * [ smpmM.is[2] ; smpmM.is[1] ] = [ -smpmM.is[3] ; smpmM.is[3] + (-3.0) * smpmM.stator.zeroInductor.i0 ] might be structurally or numerically singular for variable smpmM.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.01287/1.862, allocations: 4.937 MB / 0.7303 GB, free: 28.06 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.977e-05/1.862, allocations: 30.94 kB / 0.7304 GB, free: 28.06 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.861e-05/1.862, allocations: 14.39 kB / 0.7304 GB, free: 28.06 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.2e-05/1.862, allocations: 20.94 kB / 0.7304 GB, free: 28.06 MB / 426.7 MB Warning: The linear system: 1 : smpmM.is[1] + smpmM.is[2] + smpmM.is[3] = 0.0 2 : 3.0 * smpmM.stator.zeroInductor.i0 = smpmM.is[1] + smpmM.is[2] + smpmM.is[3] [ 1.0 , 1.0 ; -1.0 , -1.0 ] * [ smpmM.is[1] ; smpmM.is[2] ] = [ -smpmM.is[3] ; smpmM.is[3] + (-3.0) * smpmM.stator.zeroInductor.i0 ] might be structurally or numerically singular for variable smpmM.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.02616/1.888, allocations: 10.59 MB / 0.7407 GB, free: 23.51 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.693e-05/1.889, allocations: 10.31 kB / 0.7407 GB, free: 23.51 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00399/1.893, allocations: 490 kB / 0.7412 GB, free: 23.5 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.004481/1.897, allocations: 1.101 MB / 0.7423 GB, free: 23.19 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003163/1.897, allocations: 70.64 kB / 0.7424 GB, free: 23.15 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02372/1.921, allocations: 17.55 MB / 0.7595 GB, free: 9.973 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.194e-06/1.921, allocations: 6 kB / 0.7595 GB, free: 9.973 MB / 426.7 MB Warning: The linear system: 1 : smpmM.is[1] + smpmM.is[2] + smpmM.is[3] = 0.0 2 : 3.0 * smpmM.stator.zeroInductor.i0 = smpmM.is[1] + smpmM.is[2] + smpmM.is[3] [ 1.0 , 1.0 ; -1.0 , -1.0 ] * [ smpmM.is[2] ; smpmM.is[1] ] = [ -smpmM.is[3] ; smpmM.is[3] + (-3.0) * smpmM.stator.zeroInductor.i0 ] might be structurally or numerically singular for variable smpmM.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.01709/1.938, allocations: 7.46 MB / 0.7668 GB, free: 6.266 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0027/1.941, allocations: 0.7789 MB / 0.7675 GB, free: 5.762 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0008559/1.942, allocations: 64.25 kB / 0.7676 GB, free: 5.719 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003367/1.945, allocations: 174 kB / 0.7678 GB, free: 5.68 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0006919/1.946, allocations: 221.2 kB / 0.768 GB, free: 5.645 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002624/1.946, allocations: 85.45 kB / 0.7681 GB, free: 5.625 MB / 426.7 MB Notification: Performance of sorting global known variables: time 0.004385/1.951, allocations: 2.084 MB / 0.7701 GB, free: 4.844 MB / 426.7 MB Notification: Performance of sort global known variables: time 8.12e-07/1.951, allocations: 0 / 0.7701 GB, free: 4.844 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.005752/1.956, allocations: 1.16 MB / 0.7712 GB, free: 4.711 MB / 426.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 17 * Number of states: 13 (vfController.x,smpmM.is[3],smpmM.inertiaRotor.w,smpmM.stator.core.Phi.re,smpmM.stator.core.Phi.im,smpmM.stator.zeroInductor.i0,smpmE.inertiaRotor.w,smpmE.idq_sr[1],smpmE.idq_sr[2],smpmE.idq_rr[2],smpmE.idq_dr[1],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 (234): * Single equations (assignments): 228 * 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%) 23,(6,69.4%) 28,(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 : smpmM.is[1] + smpmM.is[2] + smpmM.is[3] = 0.0 2 : 3.0 * smpmM.stator.zeroInductor.i0 = smpmM.is[1] + smpmM.is[2] + smpmM.is[3] [ 1.0 , 1.0 ; -1.0 , -1.0 ] * [ smpmM.is[2] ; smpmM.is[1] ] = [ -smpmM.is[3] ; smpmM.is[3] + (-3.0) * smpmM.stator.zeroInductor.i0 ] might be structurally or numerically singular for variable smpmM.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.02731/1.984, allocations: 9.881 MB / 0.7809 GB, free: 15.6 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.0136/1.997, allocations: 4.993 MB / 0.7858 GB, free: 11.13 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 1.165e-05/1.997, allocations: 4 kB / 0.7858 GB, free: 11.13 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.008754/2.006, allocations: 3.129 MB / 0.7888 GB, free: 8.324 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006795/2.013, allocations: 0.8849 MB / 0.7897 GB, free: 7.637 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.392/2.405, allocations: 53.73 MB / 0.8421 GB, free: 68.23 MB / 458.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.005694/2.411, allocations: 3.537 MB / 0.8456 GB, free: 67.42 MB / 458.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.005259/2.416, allocations: 2.167 MB / 0.8477 GB, free: 67.42 MB / 458.7 MB Notification: Performance of SimCode: time 2.094e-06/2.416, allocations: 0 / 0.8477 GB, free: 67.42 MB / 458.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 5.149/7.565, allocations: 245.1 MB / 1.087 GB, free: 57 MB / 474.7 MB (rm -f Modelica_3.2.3_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_Inverter.pipe ; mkfifo Modelica_3.2.3_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_Inverter.pipe ; head -c 1048576 < Modelica_3.2.3_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_Inverter.pipe >> ../files/Modelica_3.2.3_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_Inverter.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_Inverter_res.mat --tempDir=temp_Modelica_3_2_3_cpp_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_SMPM_Inverter_fmu --startTime=0 --stopTime=1.5 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_cpp_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_SMPM_Inverter.fmu > Modelica_3.2.3_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_Inverter.pipe 2>&1)