Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.1_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Mains.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) 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 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+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.1_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.1_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Mains") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001061/0.001061, allocations: 91.84 kB / 15.06 MB, free: 1.098 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001394/0.001394, allocations: 172.7 kB / 15.95 MB, free: 208 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.431/1.431, allocations: 205.4 MB / 222.1 MB, free: 5.523 MB / 174.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.0004301/0.0004302, allocations: 12 kB / 278.9 MB, free: 12.67 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2032/0.2037, allocations: 47.58 MB / 326.5 MB, free: 1.438 MB / 254.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Mains): time 0.03306/0.2368, allocations: 32.68 MB / 359.2 MB, free: 2.715 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.01849/0.2553, allocations: 9.288 MB / 368.5 MB, free: 9.402 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00543/0.2608, allocations: 223.2 kB / 368.7 MB, free: 9.184 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.005728/0.2665, allocations: 1.841 MB / 370.5 MB, free: 7.332 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01001/0.2766, allocations: 3.265 MB / 373.8 MB, free: 4.051 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.005104/0.2817, allocations: 1.531 MB / 375.3 MB, free: 2.52 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.02064/0.3023, allocations: 15.65 MB / 391 MB, free: 2.812 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.03698/0.3393, allocations: 20.41 MB / 411.4 MB, free: 14.3 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.008645/0.348, allocations: 5.244 MB / 416.6 MB, free: 9.039 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.009492/0.3575, allocations: 5.965 MB / 422.6 MB, free: 3.051 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.002886/0.3605, allocations: 0.7969 MB / 423.4 MB, free: 2.254 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.005161/0.3656, allocations: 1.156 MB / 424.5 MB, free: 1.098 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.004162/0.3698, allocations: 2.565 MB / 427.1 MB, free: 14.52 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.004714/0.3746, allocations: 2.656 MB / 429.8 MB, free: 11.86 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.02369/0.3983, allocations: 22.65 MB / 452.4 MB, free: 5.141 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.771e-06/0.3983, allocations: 0 / 452.4 MB, free: 5.141 MB / 382.1 MB Notification: Performance of FrontEnd: time 2.384e-06/0.3983, allocations: 0 / 452.4 MB, free: 5.141 MB / 382.1 MB Notification: Performance of Transformations before backend: time 0.0005755/0.3989, allocations: 0 / 452.4 MB, free: 5.141 MB / 382.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 3387 * Number of variables: 3387 Notification: Performance of Generate backend data structure: time 0.3633/0.7622, allocations: 13.5 MB / 465.9 MB, free: 91.46 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.299e-05/0.7622, allocations: 11.88 kB / 465.9 MB, free: 91.46 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.03623/0.7985, allocations: 7.384 MB / 473.3 MB, free: 88.14 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01483/0.8133, allocations: 7.582 MB / 480.9 MB, free: 81.04 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0008727/0.8143, allocations: 0.9131 MB / 481.8 MB, free: 80.13 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.004142/0.8184, allocations: 1.218 MB / 483 MB, free: 78.93 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.04169/0.8601, allocations: 19.16 MB / 0.4904 GB, free: 59.71 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0005932/0.8608, allocations: 23.8 kB / 0.4904 GB, free: 59.69 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.003433/0.8642, allocations: 0.4958 MB / 0.4909 GB, free: 59.2 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0005856/0.8648, allocations: 0.6854 MB / 0.4916 GB, free: 58.52 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03309/0.8979, allocations: 17.61 MB / 0.5088 GB, free: 40.89 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.127/1.025, allocations: 64.04 MB / 0.5713 GB, free: 7.621 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.05709/1.082, allocations: 38.65 MB / 0.6091 GB, free: 12.22 MB / 462.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0124/1.095, allocations: 4.255 MB / 0.6132 GB, free: 7.969 MB / 462.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.2074/1.302, allocations: 12.35 MB / 0.6253 GB, free: 154.5 MB / 462.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.58e-05/1.302, allocations: 77.31 kB / 0.6253 GB, free: 154.4 MB / 462.1 MB Notification: Performance of pre-optimization done (n=408): time 5.901e-06/1.302, allocations: 0 / 0.6253 GB, free: 154.4 MB / 462.1 MB Notification: Performance of matching and sorting (n=418): time 0.03825/1.34, allocations: 21.75 MB / 0.6466 GB, free: 145.6 MB / 462.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.861e-05/1.34, allocations: 126 kB / 0.6467 GB, free: 145.5 MB / 462.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005996/1.346, allocations: 5.258 MB / 0.6518 GB, free: 143.5 MB / 462.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002986/1.347, allocations: 92.39 kB / 0.6519 GB, free: 143.4 MB / 462.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002209/1.349, allocations: 5.486 MB / 0.6573 GB, free: 139.3 MB / 462.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0008449/1.35, allocations: 1.45 MB / 0.6587 GB, free: 138.2 MB / 462.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003157/1.35, allocations: 131.8 kB / 0.6588 GB, free: 138.1 MB / 462.1 MB Notification: Performance of setup shared object (initialization): time 0.0002426/1.35, allocations: 0.5832 MB / 0.6594 GB, free: 137.7 MB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003681/1.354, allocations: 2.926 MB / 0.6623 GB, free: 136.5 MB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004323/1.358, allocations: 5.66 MB / 0.6678 GB, free: 131.3 MB / 462.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004604/1.363, allocations: 4.169 MB / 0.6719 GB, free: 127.6 MB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.052e-05/1.363, allocations: 24 kB / 0.6719 GB, free: 127.5 MB / 462.1 MB Notification: Performance of matching and sorting (n=873) (initialization): time 0.01284/1.376, allocations: 10.04 MB / 0.6817 GB, free: 117.6 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.801e-05/1.376, allocations: 44 kB / 0.6817 GB, free: 117.5 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.482e-05/1.376, allocations: 88 kB / 0.6818 GB, free: 117.4 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002451/1.379, allocations: 1.149 MB / 0.6829 GB, free: 116.3 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004526/1.383, allocations: 1.529 MB / 0.6844 GB, free: 114.7 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01157/1.395, allocations: 12.51 MB / 0.6966 GB, free: 101.7 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004191/1.399, allocations: 371.5 kB / 0.697 GB, free: 101.3 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004506/1.399, allocations: 347.9 kB / 0.6973 GB, free: 101 MB / 462.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 412 * 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 (806): * Single equations (assignments): 797 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 4 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 1 * Torn equation systems: 4 * 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: 4 {(1,100.0%) 1,(1,100.0%) 5,(1,100.0%) 1,(10,53.0%) 46} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.00563/1.405, allocations: 4.291 MB / 0.7015 GB, free: 96.7 MB / 462.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0008948/1.406, allocations: 0.5441 MB / 0.702 GB, free: 96.14 MB / 462.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01018/1.416, allocations: 7.191 MB / 0.7091 GB, free: 88.85 MB / 462.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.005389/1.421, allocations: 4.293 MB / 0.7133 GB, free: 84.51 MB / 462.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.844e-05/1.421, allocations: 16 kB / 0.7133 GB, free: 84.49 MB / 462.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.528e-05/1.422, allocations: 19.92 kB / 0.7133 GB, free: 84.47 MB / 462.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02151/1.443, allocations: 17.16 MB / 0.7301 GB, free: 67.2 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.414e-05/1.443, allocations: 12.09 kB / 0.7301 GB, free: 67.19 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002648/1.446, allocations: 0.6788 MB / 0.7307 GB, free: 66.51 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.00265/1.448, allocations: 1.185 MB / 0.7319 GB, free: 65.3 MB / 462.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002383/1.449, allocations: 99.97 kB / 0.732 GB, free: 65.21 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0135/1.462, allocations: 16 MB / 0.7476 GB, free: 48.42 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.987e-06/1.462, allocations: 4 kB / 0.7476 GB, free: 48.42 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01246/1.475, allocations: 10.41 MB / 0.7578 GB, free: 37.84 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002235/1.477, allocations: 1.147 MB / 0.7589 GB, free: 36.67 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006523/1.478, allocations: 83.98 kB / 0.759 GB, free: 36.59 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002027/1.48, allocations: 215.8 kB / 0.7592 GB, free: 36.38 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005066/1.48, allocations: 311.4 kB / 0.7595 GB, free: 36.07 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002323/1.48, allocations: 120 kB / 0.7596 GB, free: 35.95 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.004347/1.485, allocations: 3.507 MB / 0.763 GB, free: 32.46 MB / 462.1 MB Notification: Performance of sort global known variables: time 2.11e-07/1.485, allocations: 0 / 0.763 GB, free: 32.46 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.005606/1.49, allocations: 1.99 MB / 0.765 GB, free: 30.48 MB / 462.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 21 * Number of states: 10 (smpmQS.inertiaRotor.w,smpmQS.rotorCage.port_p.reference.gamma,loadInertiaMQS.phi,smpm.inertiaRotor.w,smpm.stator.zeroInductor.i0,smpm.stator.core.Phi.re,smpm.stator.core.Phi.im,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 (356): * Single equations (assignments): 346 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 4 * 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 {(1,100.0%) 1,(10,52.0%) 46,(1,100.0%) 1,(1,100.0%) 5,(1,100.0%) 8,(2,100.0%) 13} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0005094/1.491, allocations: 276.5 kB / 0.7652 GB, free: 30.21 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.009941/1.501, allocations: 7.897 MB / 0.7729 GB, free: 22.24 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 5.481e-06/1.501, allocations: 0 / 0.7729 GB, free: 22.24 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.00514/1.506, allocations: 4.13 MB / 0.777 GB, free: 18.03 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005772/1.512, allocations: 1.386 MB / 0.7783 GB, free: 16.65 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.195/1.707, allocations: 25.06 MB / 0.8028 GB, free: 142.2 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.006138/1.713, allocations: 7.448 MB / 0.8101 GB, free: 141.2 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.00554/1.718, allocations: 2.091 MB / 0.8121 GB, free: 141 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001109/1.72, allocations: 407.1 kB / 0.8125 GB, free: 141 MB / 462.1 MB Notification: Performance of SimCode: time 6.52e-07/1.72, allocations: 0 / 0.8125 GB, free: 141 MB / 462.1 MB Notification: Performance of Templates: time 0.1207/1.84, allocations: 80.28 MB / 0.8909 GB, free: 66.82 MB / 462.1 MB make -j1 -f Modelica_3.2.1_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Mains.makefile (rm -f Modelica_3.2.1_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Mains.pipe ; mkfifo Modelica_3.2.1_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Mains.pipe ; head -c 1048576 < Modelica_3.2.1_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Mains.pipe >> ../files/Modelica_3.2.1_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Mains.sim & ./Modelica_3.2.1_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Mains -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.2.1_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Mains.pipe 2>&1)