Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Inverter.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Running command: "" <> buildModelFMU(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Inverter,fileNamePrefix="Modelica_trunk_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_SMPM_Inverter",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Inverter,fileNamePrefix="Modelica_trunk_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_SMPM_Inverter",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001158/0.001158, allocations: 197.5 kB / 17.08 MB, free: 5.082 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.236/1.236, allocations: 227.2 MB / 245 MB, free: 5.863 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008799/0.0008794, allocations: 100.5 kB / 297.3 MB, free: 5.945 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002348/0.0002348, allocations: 8 kB / 358 MB, free: 9.188 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2306/0.2308, allocations: 51.47 MB / 409.5 MB, free: 26.66 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3485/0.5794, allocations: 132.6 MB / 0.5294 GB, free: 45.9 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002995/0.5798, allocations: 102 kB / 0.5295 GB, free: 45.9 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.2853/0.8651, allocations: 127.7 MB / 0.6542 GB, free: 7.598 MB / 442.7 MB Notification: Performance of FrontEnd: time 1.904e-06/0.8651, allocations: 0 / 0.6542 GB, free: 7.598 MB / 442.7 MB Notification: Performance of Transformations before backend: time 0.0005419/0.8656, allocations: 139.8 kB / 0.6543 GB, free: 7.461 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: 1413 * Number of variables: 1413 Notification: Performance of Generate backend data structure: time 0.01709/0.8828, allocations: 5.7 MB / 0.6599 GB, free: 1.684 MB / 442.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.584e-05/0.8828, allocations: 8.031 kB / 0.6599 GB, free: 1.676 MB / 442.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.00282/0.8856, allocations: 0.7444 MB / 0.6606 GB, free: 0.9219 MB / 442.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005536/0.8912, allocations: 1.016 MB / 0.6616 GB, free: 15.89 MB / 458.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01346/0.9047, allocations: 4.655 MB / 0.6661 GB, free: 11.16 MB / 458.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004678/0.9052, allocations: 406.8 kB / 0.6665 GB, free: 10.76 MB / 458.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001979/0.9072, allocations: 0.5232 MB / 0.667 GB, free: 10.24 MB / 458.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02037/0.9276, allocations: 6.971 MB / 0.6738 GB, free: 3.07 MB / 458.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.000306/0.9279, allocations: 11.91 kB / 0.6738 GB, free: 3.059 MB / 458.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001627/0.9296, allocations: 228 kB / 0.6741 GB, free: 2.836 MB / 458.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002915/0.9299, allocations: 246.6 kB / 0.6743 GB, free: 2.594 MB / 458.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.2364/1.166, allocations: 5.633 MB / 0.6798 GB, free: 63.12 MB / 458.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03516/1.202, allocations: 22.7 MB / 0.702 GB, free: 58.38 MB / 458.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.006044/1.208, allocations: 8.66 MB / 0.7104 GB, free: 52.59 MB / 458.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.008279/1.216, allocations: 5.578 MB / 0.7159 GB, free: 51.43 MB / 458.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.065e-05/1.216, allocations: 64.75 kB / 0.7159 GB, free: 51.38 MB / 458.7 MB Notification: Performance of pre-optimization done (n=239): time 3.546e-06/1.216, allocations: 0 / 0.7159 GB, free: 51.38 MB / 458.7 MB Warning: The linear system: 1 : 3.0 * smpmM.stator.zeroInductor.i0 = smpmM.is[1] + smpmM.is[2] + smpmM.is[3] 2 : (-smpmM.is[3]) - smpmM.is[2] - smpmM.is[1] = 0.0 [ -1.0 , -1.0 ; -1.0 , -1.0 ] * [ smpmM.is[1] ; smpmM.is[2] ] = [ smpmM.is[3] + (-3.0) * smpmM.stator.zeroInductor.i0 ; smpmM.is[3] ] 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 matching and sorting (n=295): time 0.03114/1.247, allocations: 15.7 MB / 0.7313 GB, free: 48.8 MB / 458.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.924e-05/1.247, allocations: 82.86 kB / 0.7313 GB, free: 48.74 MB / 458.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003799/1.251, allocations: 2.753 MB / 0.734 GB, free: 48.51 MB / 458.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002337/1.251, allocations: 79.14 kB / 0.7341 GB, free: 48.48 MB / 458.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001236/1.252, allocations: 2.475 MB / 0.7365 GB, free: 47.51 MB / 458.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0006563/1.253, allocations: 1 MB / 0.7375 GB, free: 46.87 MB / 458.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000172/1.253, allocations: 74.78 kB / 0.7376 GB, free: 46.87 MB / 458.7 MB Notification: Performance of setup shared object (initialization): time 0.0001546/1.253, allocations: 444.9 kB / 0.738 GB, free: 46.56 MB / 458.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002208/1.256, allocations: 1.567 MB / 0.7395 GB, free: 46.55 MB / 458.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002496/1.258, allocations: 2.538 MB / 0.742 GB, free: 44.83 MB / 458.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002796/1.261, allocations: 2.002 MB / 0.744 GB, free: 43.97 MB / 458.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.683e-05/1.261, allocations: 6.5 kB / 0.744 GB, free: 43.97 MB / 458.7 MB Notification: Performance of matching and sorting (n=452) (initialization): time 0.008023/1.269, allocations: 5.665 MB / 0.7495 GB, free: 41.74 MB / 458.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.667e-05/1.269, allocations: 14.34 kB / 0.7495 GB, free: 41.74 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.409e-05/1.269, allocations: 38.23 kB / 0.7496 GB, free: 41.74 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002141/1.271, allocations: 0.9818 MB / 0.7505 GB, free: 41.44 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002805/1.274, allocations: 0.7827 MB / 0.7513 GB, free: 41.42 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01205/1.286, allocations: 14.94 MB / 0.7659 GB, free: 30.21 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003273/1.29, allocations: 214.4 kB / 0.7661 GB, free: 30.15 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002585/1.29, allocations: 147.2 kB / 0.7662 GB, free: 30.12 MB / 458.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 (392): * Single equations (assignments): 384 * 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: 6 * 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: 6 {(6,75.0%) 23,(1,100.0%) 1,(1,100.0%) 8,(2,100.0%) 14,(1,100.0%) 5,(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.002846/1.293, allocations: 1.613 MB / 0.7678 GB, free: 29.3 MB / 458.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005858/1.293, allocations: 367.7 kB / 0.7681 GB, free: 29.11 MB / 458.7 MB Warning: The linear system: 1 : 3.0 * smpmM.stator.zeroInductor.i0 = smpmM.is[1] + smpmM.is[2] + smpmM.is[3] 2 : (-smpmM.is[3]) - smpmM.is[2] - smpmM.is[1] = 0.0 [ -1.0 , -1.0 ; -1.0 , -1.0 ] * [ smpmM.is[1] ; smpmM.is[2] ] = [ smpmM.is[3] + (-3.0) * smpmM.stator.zeroInductor.i0 ; smpmM.is[3] ] 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 wrapFunctionCalls (simulation): time 0.006992/1.3, allocations: 5.09 MB / 0.7731 GB, free: 26.77 MB / 458.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.619e-05/1.3, allocations: 27 kB / 0.7731 GB, free: 26.77 MB / 458.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.269e-05/1.3, allocations: 12.16 kB / 0.7731 GB, free: 26.77 MB / 458.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.094e-05/1.3, allocations: 17.17 kB / 0.7732 GB, free: 26.77 MB / 458.7 MB Warning: The linear system: 1 : 3.0 * smpmM.stator.zeroInductor.i0 = smpmM.is[1] + smpmM.is[2] + smpmM.is[3] 2 : (-smpmM.is[3]) - smpmM.is[2] - smpmM.is[1] = 0.0 [ -1.0 , -1.0 ; -1.0 , -1.0 ] * [ smpmM.is[2] ; smpmM.is[1] ] = [ smpmM.is[3] + (-3.0) * smpmM.stator.zeroInductor.i0 ; smpmM.is[3] ] 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 removeSimpleEquations (simulation): time 0.01475/1.315, allocations: 10.63 MB / 0.7835 GB, free: 22.05 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.128e-05/1.315, allocations: 6.5 kB / 0.7836 GB, free: 22.05 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001951/1.317, allocations: 495.8 kB / 0.784 GB, free: 22.03 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002265/1.319, allocations: 1.022 MB / 0.785 GB, free: 21.71 MB / 458.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002122/1.32, allocations: 81.62 kB / 0.7851 GB, free: 21.66 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01362/1.333, allocations: 19.37 MB / 0.804 GB, free: 6.145 MB / 458.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.472e-06/1.333, allocations: 6.375 kB / 0.804 GB, free: 6.145 MB / 458.7 MB Warning: The linear system: 1 : 3.0 * smpmM.stator.zeroInductor.i0 = smpmM.is[1] + smpmM.is[2] + smpmM.is[3] 2 : (-smpmM.is[3]) - smpmM.is[2] - smpmM.is[1] = 0.0 [ -1.0 , -1.0 ; -1.0 , -1.0 ] * [ smpmM.is[2] ; smpmM.is[1] ] = [ smpmM.is[3] + (-3.0) * smpmM.stator.zeroInductor.i0 ; smpmM.is[3] ] 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.009563/1.343, allocations: 7.587 MB / 0.8114 GB, free: 2.082 MB / 458.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001796/1.345, allocations: 0.7862 MB / 0.8122 GB, free: 1.363 MB / 458.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004667/1.345, allocations: 63.8 kB / 0.8123 GB, free: 1.305 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001701/1.347, allocations: 169.2 kB / 0.8124 GB, free: 1.18 MB / 458.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003925/1.347, allocations: 209.2 kB / 0.8126 GB, free: 1.051 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001604/1.347, allocations: 82.61 kB / 0.8127 GB, free: 0.9766 MB / 458.7 MB Notification: Performance of sorting global known variables: time 0.004574/1.352, allocations: 2.236 MB / 0.8149 GB, free: 15.55 MB / 474.7 MB Notification: Performance of sort global known variables: time 1.182e-06/1.352, allocations: 0 / 0.8149 GB, free: 15.55 MB / 474.7 MB Notification: Performance of remove unused functions: time 0.004042/1.356, allocations: 1.153 MB / 0.816 GB, free: 14.41 MB / 474.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 (239): * Single equations (assignments): 231 * 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: 8 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 8 {(6,75.0%) 23,(1,100.0%) 8,(2,100.0%) 12,(1,100.0%) 5,(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 : 3.0 * smpmM.stator.zeroInductor.i0 = smpmM.is[1] + smpmM.is[2] + smpmM.is[3] 2 : (-smpmM.is[3]) - smpmM.is[2] - smpmM.is[1] = 0.0 [ -1.0 , -1.0 ; -1.0 , -1.0 ] * [ smpmM.is[2] ; smpmM.is[1] ] = [ smpmM.is[3] + (-3.0) * smpmM.stator.zeroInductor.i0 ; smpmM.is[3] ] 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.0117/1.368, allocations: 9.517 MB / 0.8253 GB, free: 5.574 MB / 474.7 MB Notification: Performance of simCode: created initialization part: time 0.00745/1.375, allocations: 5.116 MB / 0.8303 GB, free: 0.8477 MB / 474.7 MB Notification: Performance of simCode: created event and clocks part: time 5.3e-06/1.375, allocations: 1.938 kB / 0.8303 GB, free: 0.8477 MB / 474.7 MB Notification: Performance of simCode: created simulation system equations: time 0.006663/1.382, allocations: 3.438 MB / 0.8337 GB, free: 14.3 MB / 490.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003758/1.386, allocations: 0.8943 MB / 0.8345 GB, free: 13.6 MB / 490.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.2837/1.669, allocations: 53.71 MB / 0.887 GB, free: 58.91 MB / 490.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002961/1.672, allocations: 3.596 MB / 0.8905 GB, free: 58.11 MB / 490.7 MB Notification: Performance of simCode: alias equations: time 0.003122/1.675, allocations: 0.8423 MB / 0.8913 GB, free: 58.07 MB / 490.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00225/1.678, allocations: 2.142 MB / 0.8934 GB, free: 58.06 MB / 490.7 MB Notification: Performance of SimCode: time 8.82e-07/1.678, allocations: 0 / 0.8934 GB, free: 58.06 MB / 490.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1332/1.811, allocations: 97.42 MB / 0.9885 GB, free: 27.39 MB / 490.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001706/1.811, allocations: 251.5 kB / 0.9888 GB, free: 27.07 MB / 490.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 4.772/6.583, allocations: 6.359 kB / 0.9888 GB, free: 27.07 MB / 490.7 MB (rm -f Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Inverter.pipe ; mkfifo Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Inverter.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Inverter.pipe >> ../files/Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Inverter.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Inverter_res.mat --tempDir=temp_Modelica_trunk_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_SMPM_Inverter_fmu --startTime=0 --stopTime=1.5 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_SMPM_Inverter.fmu > Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Inverter.pipe 2>&1)