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.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_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_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.000954/0.0009541, allocations: 181.1 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.298/1.298, allocations: 205.4 MB / 223.1 MB, free: 9.121 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.0009803/0.0009803, allocations: 94.66 kB / 271.5 MB, free: 8.363 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002172/0.0002172, allocations: 4 kB / 328.3 MB, free: 15.45 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.22/0.2202, allocations: 47.57 MB / 375.9 MB, free: 45.64 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.322/0.5422, allocations: 130.5 MB / 0.4945 GB, free: 61.69 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000233/0.5425, allocations: 101 kB / 0.4946 GB, free: 61.69 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.2679/0.8103, allocations: 124.1 MB / 0.6158 GB, free: 6.875 MB / 394.7 MB Notification: Performance of FrontEnd: time 2.124e-06/0.8104, allocations: 4 kB / 0.6158 GB, free: 6.871 MB / 394.7 MB Notification: Performance of Transformations before backend: time 0.000605/0.811, allocations: 135.9 kB / 0.6159 GB, free: 6.738 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.01922/0.8302, allocations: 5.663 MB / 0.6215 GB, free: 0.9961 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.965e-05/0.8303, allocations: 8.031 kB / 0.6215 GB, free: 0.9883 MB / 394.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.003273/0.8336, allocations: 0.7366 MB / 0.6222 GB, free: 248 kB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005904/0.8395, allocations: 1.02 MB / 0.6232 GB, free: 15.21 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01341/0.8529, allocations: 4.623 MB / 0.6277 GB, free: 10.52 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004644/0.8534, allocations: 406.8 kB / 0.6281 GB, free: 10.12 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002076/0.8555, allocations: 0.5233 MB / 0.6286 GB, free: 9.594 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01867/0.8742, allocations: 6.963 MB / 0.6354 GB, free: 2.426 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002889/0.8745, allocations: 11.91 kB / 0.6354 GB, free: 2.414 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001503/0.8761, allocations: 228 kB / 0.6356 GB, free: 2.191 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0003103/0.8764, allocations: 258.5 kB / 0.6359 GB, free: 1.938 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01353/0.8899, allocations: 5.633 MB / 0.6414 GB, free: 12.29 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.2542/1.144, allocations: 22.54 MB / 0.6634 GB, free: 49.04 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.006917/1.151, allocations: 8.403 MB / 0.6716 GB, free: 43.54 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.009583/1.161, allocations: 5.347 MB / 0.6768 GB, free: 42.76 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.887e-05/1.161, allocations: 61.19 kB / 0.6769 GB, free: 42.72 MB / 426.7 MB Notification: Performance of pre-optimization done (n=241): time 3.727e-06/1.161, allocations: 0 / 0.6769 GB, free: 42.72 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.03445/1.195, allocations: 15.58 MB / 0.6921 GB, free: 40.39 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.516e-05/1.195, allocations: 83.62 kB / 0.6922 GB, free: 40.32 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004904/1.2, allocations: 2.758 MB / 0.6949 GB, free: 40.09 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0005204/1.201, allocations: 74.58 kB / 0.6949 GB, free: 40.06 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001835/1.203, allocations: 2.465 MB / 0.6973 GB, free: 39.27 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001007/1.204, allocations: 1.011 MB / 0.6983 GB, free: 38.65 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001997/1.204, allocations: 73.22 kB / 0.6984 GB, free: 38.65 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.0002024/1.204, allocations: 444 kB / 0.6988 GB, free: 38.34 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002456/1.207, allocations: 1.581 MB / 0.7004 GB, free: 38.33 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002687/1.209, allocations: 2.542 MB / 0.7028 GB, free: 37.23 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002495/1.212, allocations: 2.016 MB / 0.7048 GB, free: 37.18 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.43e-05/1.212, allocations: 11.69 kB / 0.7048 GB, free: 37.18 MB / 426.7 MB Notification: Performance of matching and sorting (n=454) (initialization): time 0.008116/1.22, allocations: 5.507 MB / 0.7102 GB, free: 36.8 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.54e-05/1.22, allocations: 20.17 kB / 0.7102 GB, free: 36.79 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.429e-05/1.22, allocations: 30.19 kB / 0.7102 GB, free: 36.79 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002361/1.222, allocations: 1.053 MB / 0.7113 GB, free: 36.74 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002795/1.225, allocations: 0.7761 MB / 0.712 GB, free: 36.74 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01191/1.237, allocations: 13.13 MB / 0.7249 GB, free: 31.42 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003431/1.241, allocations: 212.9 kB / 0.7251 GB, free: 31.41 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003334/1.241, allocations: 151 kB / 0.7252 GB, free: 31.41 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.003145/1.244, allocations: 1.603 MB / 0.7268 GB, free: 30.8 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0008638/1.245, allocations: 369.6 kB / 0.7271 GB, free: 30.61 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.007423/1.252, allocations: 4.939 MB / 0.7319 GB, free: 28.49 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.708e-05/1.252, allocations: 29.75 kB / 0.732 GB, free: 28.49 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.577e-05/1.252, allocations: 19.08 kB / 0.732 GB, free: 28.48 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.194e-05/1.253, allocations: 14.11 kB / 0.732 GB, free: 28.48 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.0161/1.269, allocations: 10.59 MB / 0.7424 GB, free: 23.94 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.19e-05/1.269, allocations: 3.969 kB / 0.7424 GB, free: 23.94 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001925/1.271, allocations: 498.6 kB / 0.7428 GB, free: 23.92 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002505/1.273, allocations: 1.095 MB / 0.7439 GB, free: 23.62 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002172/1.273, allocations: 76.92 kB / 0.744 GB, free: 23.57 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01364/1.287, allocations: 17.54 MB / 0.7611 GB, free: 10.39 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.42e-06/1.287, allocations: 14.53 kB / 0.7611 GB, free: 10.39 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.009828/1.297, allocations: 7.45 MB / 0.7684 GB, free: 6.688 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002331/1.299, allocations: 0.7748 MB / 0.7692 GB, free: 6.188 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0007058/1.3, allocations: 66.91 kB / 0.7692 GB, free: 6.145 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002108/1.302, allocations: 169.7 kB / 0.7694 GB, free: 6.109 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005451/1.303, allocations: 221.8 kB / 0.7696 GB, free: 6.07 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001978/1.303, allocations: 87.19 kB / 0.7697 GB, free: 6.055 MB / 426.7 MB Notification: Performance of sorting global known variables: time 0.003441/1.306, allocations: 2.089 MB / 0.7717 GB, free: 5.27 MB / 426.7 MB Notification: Performance of sort global known variables: time 2.4e-07/1.306, allocations: 0 / 0.7717 GB, free: 5.27 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.004331/1.311, allocations: 1.153 MB / 0.7728 GB, free: 5.141 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.01421/1.325, allocations: 9.703 MB / 0.7823 GB, free: 15.6 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.00823/1.333, allocations: 4.997 MB / 0.7872 GB, free: 11.13 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 1.181e-05/1.333, allocations: 4 kB / 0.7872 GB, free: 11.13 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.004928/1.338, allocations: 3.116 MB / 0.7902 GB, free: 8.328 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004583/1.343, allocations: 0.8859 MB / 0.7911 GB, free: 7.637 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.265/1.608, allocations: 53.85 MB / 0.8437 GB, free: 68.02 MB / 458.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002839/1.611, allocations: 3.582 MB / 0.8472 GB, free: 67.21 MB / 458.7 MB Notification: Performance of simCode: alias equations: time 0.002982/1.614, allocations: 0.8407 MB / 0.848 GB, free: 67.17 MB / 458.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002296/1.616, allocations: 2.136 MB / 0.8501 GB, free: 67.17 MB / 458.7 MB Notification: Performance of SimCode: time 1.923e-06/1.616, allocations: 0 / 0.8501 GB, free: 67.17 MB / 458.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1268/1.743, allocations: 97.44 MB / 0.9453 GB, free: 30.07 MB / 458.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001489/1.743, allocations: 227.9 kB / 0.9455 GB, free: 29.83 MB / 458.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 4.583/6.326, allocations: 4 kB / 0.9455 GB, free: 29.82 MB / 458.7 MB (rm -f Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_Inverter.pipe ; mkfifo Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_Inverter.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_Inverter.pipe >> ../files/Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_Inverter.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_Inverter_res.mat --tempDir=temp_Modelica_3_2_3_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_SMPM_Inverter_fmu --startTime=0 --stopTime=1.5 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_SMPM_Inverter.fmu > Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_Inverter.pipe 2>&1)