Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.2_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Mains.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.2+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.2+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.2+maint.om/package.mo) Using package Modelica with version 3.2.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+maint.om/package.mo) Using package Complex with version 3.2.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.2+maint.om/package.mo) Running command: translateModel(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Mains,tolerance=1e-06,outputFormat="empty",numberOfIntervals=20000,variableFilter="",fileNamePrefix="Modelica_3.2.2_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Mains") translateModel(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Mains,tolerance=1e-06,outputFormat="empty",numberOfIntervals=20000,variableFilter="",fileNamePrefix="Modelica_3.2.2_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Mains") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.2+maint.om/package.mo): time 0.0009429/0.000943, allocations: 179.2 kB / 16.38 MB, free: 5.766 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+maint.om/package.mo): time 1.084/1.084, allocations: 194.5 MB / 211.6 MB, free: 3.043 MB / 170.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.2+maint.om/package.mo): time 0.001533/0.001533, allocations: 115 kB / 256.9 MB, free: 4.352 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002861/0.0002862, allocations: 8 kB / 310.6 MB, free: 14.91 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07314/0.07344, allocations: 44.5 MB / 355.1 MB, free: 2.316 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2784/0.3519, allocations: 151.9 MB / 0.4951 GB, free: 2.812 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003072/0.3522, allocations: 113.4 kB / 0.4952 GB, free: 2.75 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.159/1.511, allocations: 389.8 MB / 0.8759 GB, free: 30.8 MB / 426.7 MB Notification: Performance of FrontEnd: time 1.804e-06/1.511, allocations: 0 / 0.8759 GB, free: 30.8 MB / 426.7 MB Notification: Performance of Transformations before backend: time 0.0007655/1.512, allocations: 280.2 kB / 0.8762 GB, free: 30.77 MB / 426.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 3386 * Number of variables: 3386 Notification: Performance of Generate backend data structure: time 0.0391/1.551, allocations: 11.95 MB / 0.8878 GB, free: 26.86 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.67e-05/1.551, allocations: 11.28 kB / 0.8878 GB, free: 26.86 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02864/1.579, allocations: 5.235 MB / 0.893 GB, free: 26.17 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02448/1.604, allocations: 9.674 MB / 0.9024 GB, free: 24.96 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.001074/1.605, allocations: 0.8958 MB / 0.9033 GB, free: 24.93 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.004441/1.61, allocations: 1.173 MB / 0.9044 GB, free: 24.93 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.04913/1.659, allocations: 19.57 MB / 0.9235 GB, free: 23.43 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0005864/1.659, allocations: 20.09 kB / 0.9235 GB, free: 23.43 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.003895/1.663, allocations: 0.507 MB / 0.924 GB, free: 23.43 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0007985/1.664, allocations: 0.7719 MB / 0.9248 GB, free: 23.4 MB / 426.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03319/1.697, allocations: 17.4 MB / 0.9418 GB, free: 16.87 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.339/2.036, allocations: 63.47 MB / 1.004 GB, free: 27.72 MB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.02182/2.058, allocations: 22.41 MB / 1.026 GB, free: 32.23 MB / 458.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0428/2.101, allocations: 22.92 MB / 1.048 GB, free: 31.14 MB / 458.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.51e-05/2.101, allocations: 101.8 kB / 1.048 GB, free: 31.09 MB / 458.7 MB Notification: Performance of pre-optimization done (n=754): time 1.094e-05/2.101, allocations: 0 / 1.048 GB, free: 31.09 MB / 458.7 MB Notification: Performance of matching and sorting (n=764): time 0.07753/2.179, allocations: 41.6 MB / 1.089 GB, free: 19.57 MB / 458.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.103e-05/2.179, allocations: 143.1 kB / 1.089 GB, free: 19.46 MB / 458.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006694/2.185, allocations: 3.911 MB / 1.093 GB, free: 18 MB / 458.7 MB Notification: Performance of collectPreVariables (initialization): time 0.00127/2.187, allocations: 131.5 kB / 1.093 GB, free: 17.89 MB / 458.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.002295/2.189, allocations: 4.749 MB / 1.097 GB, free: 14.32 MB / 458.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.002613/2.192, allocations: 2.541 MB / 1.1 GB, free: 12.34 MB / 458.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005205/2.192, allocations: 148.8 kB / 1.1 GB, free: 12.23 MB / 458.7 MB Notification: Performance of setup shared object (initialization): time 0.0004229/2.193, allocations: 0.6343 MB / 1.101 GB, free: 11.78 MB / 458.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.006235/2.199, allocations: 4.839 MB / 1.105 GB, free: 9.793 MB / 458.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.007745/2.207, allocations: 6.693 MB / 1.112 GB, free: 5.641 MB / 458.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00895/2.216, allocations: 5.977 MB / 1.118 GB, free: 2.977 MB / 458.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.088e-05/2.216, allocations: 16.97 kB / 1.118 GB, free: 2.977 MB / 458.7 MB Notification: Performance of matching and sorting (n=1048) (initialization): time 0.02962/2.245, allocations: 14.56 MB / 1.132 GB, free: 13.22 MB / 474.7 MB Notification: Performance of prepare postOptimizeDAE: time 8.448e-05/2.246, allocations: 26.47 kB / 1.132 GB, free: 13.22 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001224/2.246, allocations: 55.62 kB / 1.132 GB, free: 13.22 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.006715/2.252, allocations: 3.375 MB / 1.135 GB, free: 12.17 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006512/2.259, allocations: 1.488 MB / 1.137 GB, free: 11.23 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01402/2.273, allocations: 13.89 MB / 1.15 GB, free: 13.86 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006203/2.279, allocations: 395.3 kB / 1.151 GB, free: 13.55 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001869/2.281, allocations: 341 kB / 1.151 GB, free: 13.24 MB / 490.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 241 * 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 (791): * Single equations (assignments): 726 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 55 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 1 * Torn equation systems: 9 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 1 {(2,100.0%)} * Non-linear Jacobian: 0 * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 3 {(1,100.0%) 5,(1,100.0%) 1,(1,100.0%) 1} * Non-linear torn systems: 6 {6 9,6 9,6 9,6 9,4 4,10 69} Notification: Performance of prepare postOptimizeDAE: time 0.01079/2.292, allocations: 4.259 MB / 1.155 GB, free: 9.66 MB / 490.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.002315/2.294, allocations: 0.5903 MB / 1.156 GB, free: 9.066 MB / 490.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.2498/2.544, allocations: 14.08 MB / 1.17 GB, free: 83.66 MB / 490.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.01364/2.558, allocations: 10.43 MB / 1.18 GB, free: 83.39 MB / 490.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.557e-05/2.558, allocations: 7.875 kB / 1.18 GB, free: 83.39 MB / 490.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.386e-05/2.558, allocations: 31.62 kB / 1.18 GB, free: 83.39 MB / 490.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.04549/2.603, allocations: 28.21 MB / 1.207 GB, free: 82.12 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.775e-05/2.603, allocations: 4.406 kB / 1.207 GB, free: 82.12 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.004235/2.608, allocations: 0.9626 MB / 1.208 GB, free: 82.12 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.007115/2.615, allocations: 3.475 MB / 1.212 GB, free: 82.01 MB / 490.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001126/2.616, allocations: 170.4 kB / 1.212 GB, free: 82.01 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01552/2.631, allocations: 18.37 MB / 1.23 GB, free: 72.43 MB / 490.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.999e-06/2.632, allocations: 8.094 kB / 1.23 GB, free: 72.43 MB / 490.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.03191/2.663, allocations: 21.04 MB / 1.25 GB, free: 64.58 MB / 490.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.005774/2.669, allocations: 1.737 MB / 1.252 GB, free: 63.87 MB / 490.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002185/2.671, allocations: 122.5 kB / 1.252 GB, free: 63.79 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.004334/2.676, allocations: 316.9 kB / 1.253 GB, free: 63.7 MB / 490.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.00158/2.677, allocations: 0.5544 MB / 1.253 GB, free: 63.59 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0009641/2.678, allocations: 206.2 kB / 1.253 GB, free: 63.54 MB / 490.7 MB Notification: Performance of sorting global known variables: time 0.005717/2.684, allocations: 2.943 MB / 1.256 GB, free: 62.44 MB / 490.7 MB Notification: Performance of sort global known variables: time 3.8e-07/2.684, allocations: 1.656 kB / 1.256 GB, free: 62.44 MB / 490.7 MB Notification: Performance of remove unused functions: time 0.01005/2.694, allocations: 2.154 MB / 1.258 GB, free: 62.21 MB / 490.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 19 * Number of states: 10 (smpmQS.inertiaRotor.w,smpmQS.permanentMagnet.port_p.reference.gamma,loadInertiaMQS.phi,smpm.inertiaRotor.w,smpm.stator.core.Phi.re,smpm.stator.core.Phi.im,smpm.stator.zeroInductor.i0,smpm.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter[2].Phi.re,smpm.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter[2].Phi.im,loadInertiaM.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 (512): * Single equations (assignments): 446 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 55 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 11 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 5 {(1,100.0%) 1,(1,100.0%) 5,(1,100.0%) 1,(1,100.0%) 8,(2,100.0%) 14} * Non-linear torn systems: 6 {4 4,6 9,6 9,6 9,6 9,10 69} Notification: Performance of Backend phase and start with SimCode phase: time 0.00216/2.696, allocations: 0.7455 MB / 1.259 GB, free: 61.98 MB / 490.7 MB Notification: Performance of simCode: created initialization part: time 0.01952/2.716, allocations: 12.22 MB / 1.271 GB, free: 57.08 MB / 490.7 MB Notification: Performance of simCode: created event and clocks part: time 8.406e-06/2.716, allocations: 0 / 1.271 GB, free: 57.08 MB / 490.7 MB Notification: Performance of simCode: created simulation system equations: time 0.01144/2.727, allocations: 6.709 MB / 1.277 GB, free: 54.14 MB / 490.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.008362/2.736, allocations: 1.31 MB / 1.279 GB, free: 53.81 MB / 490.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.05453/2.79, allocations: 29.29 MB / 1.307 GB, free: 36.22 MB / 490.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01413/2.805, allocations: 7.767 MB / 1.315 GB, free: 30.39 MB / 490.7 MB Notification: Performance of simCode: alias equations: time 0.007966/2.813, allocations: 1.816 MB / 1.317 GB, free: 29.14 MB / 490.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002123/2.815, allocations: 421.6 kB / 1.317 GB, free: 28.75 MB / 490.7 MB Notification: Performance of SimCode: time 6.11e-07/2.815, allocations: 4 kB / 1.317 GB, free: 28.74 MB / 490.7 MB Notification: Performance of Templates: time 0.4089/3.224, allocations: 127.3 MB / 1.441 GB, free: 61.9 MB / 490.7 MB make -j1 -f Modelica_3.2.2_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Mains.makefile (rm -f Modelica_3.2.2_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Mains.pipe ; mkfifo Modelica_3.2.2_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Mains.pipe ; head -c 1048576 < Modelica_3.2.2_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Mains.pipe >> ../files/Modelica_3.2.2_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Mains.sim & ./Modelica_3.2.2_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Mains -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.2.2_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Mains.pipe 2>&1)