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: translateModel(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Inverter,tolerance=1e-06,outputFormat="mat",numberOfIntervals=30000,variableFilter="time|loadInertiaE.phi|loadInertiaE.w|loadInertiaM.phi|loadInertiaM.w|smpmE.is.1.|smpmE.is.2.|smpmE.idq_dr.1.|smpmE.idq_rr.2.|smpmE.idq_sr.1.|smpmE.idq_sr.2.|smpmM.is.1.|smpmM.is.2.|smpmM.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter.1..Phi.re|smpmM.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter.2..Phi.im|smpmM.stator.electroMagneticConverter.singlePhaseElectroMagneticConverter.1..Phi.re|smpmM.stator.electroMagneticConverter.singlePhaseElectroMagneticConverter.2..Phi.im|vfController.x",fileNamePrefix="Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Inverter") translateModel(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Inverter,tolerance=1e-06,outputFormat="mat",numberOfIntervals=30000,variableFilter="time|loadInertiaE.phi|loadInertiaE.w|loadInertiaM.phi|loadInertiaM.w|smpmE.is.1.|smpmE.is.2.|smpmE.idq_dr.1.|smpmE.idq_rr.2.|smpmE.idq_sr.1.|smpmE.idq_sr.2.|smpmM.is.1.|smpmM.is.2.|smpmM.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter.1..Phi.re|smpmM.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter.2..Phi.im|smpmM.stator.electroMagneticConverter.singlePhaseElectroMagneticConverter.1..Phi.re|smpmM.stator.electroMagneticConverter.singlePhaseElectroMagneticConverter.2..Phi.im|vfController.x",fileNamePrefix="Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Inverter") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001144/0.001144, allocations: 198.4 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.193/1.193, allocations: 227.2 MB / 245 MB, free: 5.777 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008793/0.0008793, allocations: 96.98 kB / 297.3 MB, free: 5.969 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003149/0.0003149, allocations: 4 kB / 357.9 MB, free: 9.301 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2098/0.2101, allocations: 51.49 MB / 409.4 MB, free: 26.7 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3307/0.5409, allocations: 132.6 MB / 0.5293 GB, free: 46.19 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002274/0.5412, allocations: 100.3 kB / 0.5294 GB, free: 46.19 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.2888/0.83, allocations: 127.7 MB / 0.6541 GB, free: 7.68 MB / 442.7 MB Notification: Performance of FrontEnd: time 2.886e-06/0.8301, allocations: 0 / 0.6541 GB, free: 7.68 MB / 442.7 MB Notification: Performance of Transformations before backend: time 0.0005788/0.8307, allocations: 139.9 kB / 0.6542 GB, free: 7.543 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.01846/0.8492, allocations: 5.697 MB / 0.6598 GB, free: 1.77 MB / 442.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.891e-05/0.8492, allocations: 8.031 kB / 0.6598 GB, free: 1.762 MB / 442.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006564/0.8558, allocations: 1.023 MB / 0.6608 GB, free: 0.7305 MB / 442.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01482/0.8707, allocations: 4.655 MB / 0.6653 GB, free: 11.99 MB / 458.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0005562/0.8713, allocations: 398.8 kB / 0.6657 GB, free: 11.6 MB / 458.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002679/0.874, allocations: 0.5271 MB / 0.6662 GB, free: 11.07 MB / 458.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02171/0.8957, allocations: 6.971 MB / 0.673 GB, free: 3.906 MB / 458.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003803/0.8961, allocations: 11.91 kB / 0.673 GB, free: 3.895 MB / 458.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001905/0.8981, allocations: 228 kB / 0.6733 GB, free: 3.672 MB / 458.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002936/0.8984, allocations: 246.6 kB / 0.6735 GB, free: 3.43 MB / 458.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.2261/1.125, allocations: 5.637 MB / 0.679 GB, free: 64.37 MB / 458.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03857/1.163, allocations: 22.7 MB / 0.7012 GB, free: 59.62 MB / 458.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.006695/1.17, allocations: 8.662 MB / 0.7096 GB, free: 53.84 MB / 458.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.008498/1.178, allocations: 5.572 MB / 0.7151 GB, free: 52.68 MB / 458.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.155e-05/1.178, allocations: 58.78 kB / 0.7151 GB, free: 52.63 MB / 458.7 MB Notification: Performance of pre-optimization done (n=239): time 3.817e-06/1.179, allocations: 4.375 kB / 0.7151 GB, free: 52.63 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.02977/1.208, allocations: 15.7 MB / 0.7305 GB, free: 50.05 MB / 458.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.348e-05/1.208, allocations: 79.27 kB / 0.7305 GB, free: 49.99 MB / 458.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003435/1.212, allocations: 2.763 MB / 0.7332 GB, free: 49.76 MB / 458.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002048/1.212, allocations: 75.55 kB / 0.7333 GB, free: 49.73 MB / 458.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001098/1.213, allocations: 2.473 MB / 0.7357 GB, free: 48.77 MB / 458.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005688/1.214, allocations: 1.006 MB / 0.7367 GB, free: 48.12 MB / 458.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001717/1.214, allocations: 71.06 kB / 0.7368 GB, free: 48.12 MB / 458.7 MB Notification: Performance of setup shared object (initialization): time 0.0001366/1.214, allocations: 444.3 kB / 0.7372 GB, free: 47.82 MB / 458.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002002/1.216, allocations: 1.569 MB / 0.7387 GB, free: 47.81 MB / 458.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002284/1.218, allocations: 2.538 MB / 0.7412 GB, free: 46.19 MB / 458.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002366/1.221, allocations: 2.002 MB / 0.7432 GB, free: 45.34 MB / 458.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.583e-05/1.221, allocations: 11.16 kB / 0.7432 GB, free: 45.34 MB / 458.7 MB Notification: Performance of matching and sorting (n=452) (initialization): time 0.007775/1.228, allocations: 5.656 MB / 0.7487 GB, free: 43.1 MB / 458.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.137e-05/1.229, allocations: 19.09 kB / 0.7487 GB, free: 43.1 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.915e-05/1.229, allocations: 27.97 kB / 0.7487 GB, free: 43.1 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00208/1.231, allocations: 0.9904 MB / 0.7497 GB, free: 42.8 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002558/1.233, allocations: 0.7818 MB / 0.7505 GB, free: 42.78 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0117/1.245, allocations: 14.95 MB / 0.7651 GB, free: 31.57 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00347/1.248, allocations: 215 kB / 0.7653 GB, free: 31.51 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003495/1.249, allocations: 145.6 kB / 0.7654 GB, free: 31.48 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.002949/1.252, allocations: 1.611 MB / 0.767 GB, free: 30.66 MB / 458.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007605/1.253, allocations: 371.2 kB / 0.7673 GB, free: 30.47 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.007137/1.26, allocations: 5.088 MB / 0.7723 GB, free: 28.13 MB / 458.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.543e-05/1.26, allocations: 26.59 kB / 0.7723 GB, free: 28.13 MB / 458.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.509e-05/1.26, allocations: 13.94 kB / 0.7723 GB, free: 28.12 MB / 458.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.301e-05/1.26, allocations: 14.91 kB / 0.7724 GB, free: 28.12 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.01558/1.275, allocations: 10.63 MB / 0.7827 GB, free: 23.41 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.013e-05/1.275, allocations: 3.312 kB / 0.7827 GB, free: 23.41 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001997/1.277, allocations: 496.5 kB / 0.7832 GB, free: 23.39 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002265/1.28, allocations: 1.024 MB / 0.7842 GB, free: 23.07 MB / 458.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001986/1.28, allocations: 72.14 kB / 0.7843 GB, free: 23.03 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01317/1.293, allocations: 19.38 MB / 0.8032 GB, free: 7.504 MB / 458.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.208e-06/1.293, allocations: 5.875 kB / 0.8032 GB, free: 7.504 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.009749/1.303, allocations: 7.59 MB / 0.8106 GB, free: 3.57 MB / 458.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002401/1.305, allocations: 0.7829 MB / 0.8114 GB, free: 19.06 MB / 474.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000966/1.306, allocations: 64.56 kB / 0.8114 GB, free: 19.02 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00187/1.308, allocations: 172.5 kB / 0.8116 GB, free: 18.98 MB / 474.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004781/1.309, allocations: 214.6 kB / 0.8118 GB, free: 18.94 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001768/1.309, allocations: 84.25 kB / 0.8119 GB, free: 18.92 MB / 474.7 MB Notification: Performance of sorting global known variables: time 0.002823/1.312, allocations: 2.096 MB / 0.8139 GB, free: 17.29 MB / 474.7 MB Notification: Performance of sort global known variables: time 2.9e-07/1.312, allocations: 0 / 0.8139 GB, free: 17.29 MB / 474.7 MB Notification: Performance of remove unused functions: time 0.003567/1.315, allocations: 1.153 MB / 0.8151 GB, free: 16.15 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 Notification: Performance of Backend phase and start with SimCode phase: time 0.0008363/1.316, allocations: 0.5555 MB / 0.8156 GB, free: 15.72 MB / 474.7 MB Notification: Performance of simCode: created initialization part: time 0.007584/1.324, allocations: 5.117 MB / 0.8206 GB, free: 11.03 MB / 474.7 MB Notification: Performance of simCode: created event and clocks part: time 4.659e-06/1.324, allocations: 4.062 kB / 0.8206 GB, free: 11.03 MB / 474.7 MB Notification: Performance of simCode: created simulation system equations: time 0.004835/1.329, allocations: 3.256 MB / 0.8238 GB, free: 8.008 MB / 474.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003865/1.332, allocations: 0.8978 MB / 0.8247 GB, free: 7.312 MB / 474.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02426/1.357, allocations: 13 MB / 0.8374 GB, free: 12.86 MB / 490.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003231/1.36, allocations: 3.6 MB / 0.8409 GB, free: 10.16 MB / 490.7 MB Notification: Performance of simCode: alias equations: time 0.003173/1.363, allocations: 0.8452 MB / 0.8417 GB, free: 9.57 MB / 490.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007674/1.364, allocations: 254.5 kB / 0.842 GB, free: 9.336 MB / 490.7 MB Notification: Performance of SimCode: time 1.482e-06/1.364, allocations: 0 / 0.842 GB, free: 9.336 MB / 490.7 MB Notification: Performance of Templates: time 0.2994/1.663, allocations: 57.33 MB / 0.8979 GB, free: 82.54 MB / 490.7 MB make -j1 -f Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Inverter.makefile (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 & ./Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Inverter -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Inverter.pipe 2>&1)