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.001506/0.001507, allocations: 182.7 kB / 13.64 MB, free: 1.676 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.609/1.609, allocations: 194.3 MB / 208.4 MB, free: 6.699 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.001651/0.001651, allocations: 110.3 kB / 253.5 MB, free: 9.582 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 2.74e-05/2.743e-05, allocations: 0 / 305 MB, free: 29.75 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08399/0.08403, allocations: 44.51 MB / 349.5 MB, free: 1.219 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3731/0.4572, allocations: 151.8 MB / 0.4895 GB, free: 8.656 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003318/0.4576, allocations: 94.44 kB / 0.4896 GB, free: 8.605 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.364/1.821, allocations: 389.7 MB / 0.8702 GB, free: 27.24 MB / 426.7 MB Notification: Performance of FrontEnd: time 2.073e-06/1.821, allocations: 0 / 0.8702 GB, free: 27.24 MB / 426.7 MB Notification: Performance of Transformations before backend: time 0.0007169/1.822, allocations: 275.8 kB / 0.8704 GB, free: 27.21 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.03558/1.858, allocations: 11.23 MB / 0.8814 GB, free: 23.67 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.49e-05/1.858, allocations: 10.22 kB / 0.8814 GB, free: 23.67 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02818/1.886, allocations: 5.204 MB / 0.8865 GB, free: 22.98 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02106/1.907, allocations: 9.634 MB / 0.8959 GB, free: 21.78 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.001031/1.908, allocations: 0.9032 MB / 0.8968 GB, free: 21.75 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.004388/1.912, allocations: 1.17 MB / 0.8979 GB, free: 21.75 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.04432/1.957, allocations: 19.33 MB / 0.9168 GB, free: 20.25 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0004074/1.957, allocations: 15.2 kB / 0.9168 GB, free: 20.24 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.003114/1.96, allocations: 0.5051 MB / 0.9173 GB, free: 20.24 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0007457/1.961, allocations: 0.7715 MB / 0.9181 GB, free: 20.21 MB / 426.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03474/1.996, allocations: 17.07 MB / 0.9347 GB, free: 18.99 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1199/2.116, allocations: 63.35 MB / 0.9966 GB, free: 8.836 MB / 458.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.304/2.42, allocations: 22.24 MB / 1.018 GB, free: 43.14 MB / 458.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.01237/2.432, allocations: 7.297 MB / 1.025 GB, free: 43.05 MB / 458.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.03984/2.472, allocations: 22.82 MB / 1.048 GB, free: 42 MB / 458.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.032e-05/2.472, allocations: 103.2 kB / 1.048 GB, free: 41.96 MB / 458.7 MB Notification: Performance of pre-optimization done (n=746): time 8.657e-06/2.472, allocations: 0 / 1.048 GB, free: 41.96 MB / 458.7 MB Notification: Performance of matching and sorting (n=756): time 0.04205/2.514, allocations: 25.88 MB / 1.073 GB, free: 38.34 MB / 458.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.477e-05/2.515, allocations: 149.4 kB / 1.073 GB, free: 38.24 MB / 458.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006191/2.521, allocations: 3.867 MB / 1.077 GB, free: 37.89 MB / 458.7 MB Notification: Performance of collectPreVariables (initialization): time 0.001595/2.522, allocations: 129.9 kB / 1.077 GB, free: 37.86 MB / 458.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.003/2.525, allocations: 4.762 MB / 1.082 GB, free: 35.46 MB / 458.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.004043/2.529, allocations: 2.513 MB / 1.084 GB, free: 33.57 MB / 458.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001141/2.531, allocations: 144.5 kB / 1.084 GB, free: 33.45 MB / 458.7 MB Notification: Performance of setup shared object (initialization): time 0.0006778/2.531, allocations: 0.6298 MB / 1.085 GB, free: 33 MB / 458.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.007842/2.539, allocations: 4.719 MB / 1.09 GB, free: 31.03 MB / 458.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01043/2.55, allocations: 6.574 MB / 1.096 GB, free: 26.88 MB / 458.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01051/2.56, allocations: 5.877 MB / 1.102 GB, free: 24.47 MB / 458.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.818e-05/2.56, allocations: 15.59 kB / 1.102 GB, free: 24.47 MB / 458.7 MB Notification: Performance of matching and sorting (n=1042) (initialization): time 0.02662/2.587, allocations: 14.22 MB / 1.116 GB, free: 18.79 MB / 458.7 MB Notification: Performance of prepare postOptimizeDAE: time 7.881e-05/2.587, allocations: 28.22 kB / 1.116 GB, free: 18.79 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001272/2.587, allocations: 55.77 kB / 1.116 GB, free: 18.79 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.006365/2.594, allocations: 3.352 MB / 1.119 GB, free: 17.77 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006237/2.6, allocations: 1.482 MB / 1.12 GB, free: 17.72 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01111/2.611, allocations: 13.84 MB / 1.134 GB, free: 7.684 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006149/2.617, allocations: 394.5 kB / 1.134 GB, free: 7.559 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.00139/2.619, allocations: 332 kB / 1.135 GB, free: 7.496 MB / 458.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 243 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (785): * Single equations (assignments): 720 * 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.001402/2.62, allocations: 0.5264 MB / 1.135 GB, free: 7.141 MB / 458.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001394/2.621, allocations: 0.583 MB / 1.136 GB, free: 6.832 MB / 458.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02128/2.643, allocations: 13.45 MB / 1.149 GB, free: 332 kB / 458.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.03323/2.676, allocations: 11.45 MB / 1.16 GB, free: 10.17 MB / 474.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.103e-05/2.676, allocations: 4 kB / 1.16 GB, free: 10.17 MB / 474.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001334/2.676, allocations: 29.86 kB / 1.16 GB, free: 10.17 MB / 474.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.3287/3.005, allocations: 27.93 MB / 1.187 GB, free: 66.2 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.482e-05/3.005, allocations: 4.016 kB / 1.187 GB, free: 66.2 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.004309/3.009, allocations: 0.9428 MB / 1.188 GB, free: 66.2 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.006269/3.016, allocations: 3.454 MB / 1.192 GB, free: 66.1 MB / 474.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0009091/3.017, allocations: 167.6 kB / 1.192 GB, free: 66.1 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01422/3.031, allocations: 18.2 MB / 1.21 GB, free: 56.55 MB / 474.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.251e-06/3.031, allocations: 10.06 kB / 1.21 GB, free: 56.55 MB / 474.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02817/3.059, allocations: 20.6 MB / 1.23 GB, free: 54.82 MB / 474.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.005621/3.065, allocations: 1.731 MB / 1.231 GB, free: 54.73 MB / 474.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002073/3.067, allocations: 121 kB / 1.232 GB, free: 54.72 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.004365/3.071, allocations: 314.3 kB / 1.232 GB, free: 54.72 MB / 474.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001398/3.073, allocations: 0.552 MB / 1.232 GB, free: 54.71 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0005254/3.073, allocations: 206.4 kB / 1.233 GB, free: 54.71 MB / 474.7 MB Notification: Performance of sorting global known variables: time 0.004535/3.078, allocations: 2.899 MB / 1.235 GB, free: 54.51 MB / 474.7 MB Notification: Performance of sort global known variables: time 1.51e-07/3.078, allocations: 1.594 kB / 1.235 GB, free: 54.51 MB / 474.7 MB Notification: Performance of remove unused functions: time 0.008465/3.086, allocations: 2.154 MB / 1.238 GB, free: 54.51 MB / 474.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 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (504): * Single equations (assignments): 438 * 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 {6 9,4 4,6 9,6 9,6 9,10 69} Notification: Performance of Backend phase and start with SimCode phase: time 0.001603/3.088, allocations: 0.9072 MB / 1.238 GB, free: 54.32 MB / 474.7 MB Notification: Performance of simCode: created initialization part: time 0.01691/3.105, allocations: 11.97 MB / 1.25 GB, free: 53.58 MB / 474.7 MB Notification: Performance of simCode: created event and clocks part: time 8.726e-06/3.105, allocations: 2.219 kB / 1.25 GB, free: 53.58 MB / 474.7 MB Notification: Performance of simCode: created simulation system equations: time 0.009819/3.115, allocations: 6.558 MB / 1.256 GB, free: 51.22 MB / 474.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.007183/3.122, allocations: 1.306 MB / 1.258 GB, free: 50.87 MB / 474.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04084/3.163, allocations: 21.33 MB / 1.279 GB, free: 42.33 MB / 474.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.009151/3.172, allocations: 7.768 MB / 1.286 GB, free: 39.67 MB / 474.7 MB Notification: Performance of simCode: alias equations: time 0.006272/3.178, allocations: 1.808 MB / 1.288 GB, free: 38.42 MB / 474.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001302/3.179, allocations: 417.3 kB / 1.288 GB, free: 38.03 MB / 474.7 MB Notification: Performance of SimCode: time 1.483e-06/3.179, allocations: 0 / 1.288 GB, free: 38.03 MB / 474.7 MB Notification: Performance of Templates: time 0.4683/3.648, allocations: 122 MB / 1.407 GB, free: 55.55 MB / 474.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)