Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.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.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.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.001225/0.001225, allocations: 84.38 kB / 15.06 MB, free: 1.09 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.001523/0.001523, allocations: 168.7 kB / 15.95 MB, free: 204 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.425/1.425, allocations: 205.4 MB / 222.1 MB, free: 5.652 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.0004951/0.0004952, allocations: 8 kB / 278.9 MB, free: 12.79 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2575/0.258, allocations: 47.59 MB / 326.5 MB, free: 1.238 MB / 254.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Mains): time 0.03379/0.2919, allocations: 32.67 MB / 359.2 MB, free: 2.613 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.02204/0.314, allocations: 9.3 MB / 368.5 MB, free: 9.289 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00896/0.323, allocations: 223.2 kB / 368.7 MB, free: 9.07 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.009035/0.332, allocations: 1.848 MB / 370.5 MB, free: 7.211 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01387/0.346, allocations: 3.269 MB / 373.8 MB, free: 3.926 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00669/0.3527, allocations: 1.521 MB / 375.3 MB, free: 2.402 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.02593/0.3786, allocations: 15.65 MB / 391 MB, free: 2.691 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.04438/0.4231, allocations: 20.4 MB / 411.4 MB, free: 14.19 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.01006/0.4332, allocations: 5.236 MB / 416.6 MB, free: 8.934 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.01085/0.4441, allocations: 5.961 MB / 422.6 MB, free: 2.949 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.00353/0.4476, allocations: 0.7969 MB / 423.4 MB, free: 2.152 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.005849/0.4535, allocations: 1.168 MB / 424.5 MB, free: 0.9844 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.004436/0.458, allocations: 2.561 MB / 427.1 MB, free: 14.41 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.005459/0.4634, allocations: 2.656 MB / 429.8 MB, free: 11.75 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.02897/0.4924, allocations: 22.65 MB / 452.4 MB, free: 5.035 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.534e-06/0.4925, allocations: 3.938 kB / 452.4 MB, free: 5.031 MB / 382.1 MB Notification: Performance of FrontEnd: time 2.965e-06/0.4925, allocations: 0 / 452.4 MB, free: 5.031 MB / 382.1 MB Notification: Performance of Transformations before backend: time 0.000755/0.4933, allocations: 0 / 452.4 MB, free: 5.031 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.3541/0.8474, allocations: 13.49 MB / 465.9 MB, free: 91.54 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.561e-05/0.8474, allocations: 7.938 kB / 465.9 MB, free: 91.54 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.03723/0.8847, allocations: 7.387 MB / 473.3 MB, free: 88.22 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01526/0.9, allocations: 7.581 MB / 480.9 MB, free: 81.05 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0008373/0.9008, allocations: 0.9321 MB / 481.8 MB, free: 80.13 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.004071/0.9049, allocations: 1.206 MB / 483 MB, free: 78.93 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0419/0.9468, allocations: 19.15 MB / 0.4904 GB, free: 59.72 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0004821/0.9474, allocations: 23.73 kB / 0.4904 GB, free: 59.7 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.003009/0.9504, allocations: 0.5036 MB / 0.4909 GB, free: 59.2 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0005599/0.951, allocations: 0.6737 MB / 0.4916 GB, free: 58.53 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02808/0.979, allocations: 17.61 MB / 0.5088 GB, free: 40.9 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.09702/1.076, allocations: 64.05 MB / 0.5713 GB, free: 7.625 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.03428/1.11, allocations: 38.65 MB / 0.6091 GB, free: 12.23 MB / 462.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.007209/1.118, allocations: 4.251 MB / 0.6132 GB, free: 7.977 MB / 462.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.2143/1.332, allocations: 12.35 MB / 0.6253 GB, free: 154.5 MB / 462.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.205e-05/1.332, allocations: 82.75 kB / 0.6254 GB, free: 154.4 MB / 462.1 MB Notification: Performance of pre-optimization done (n=408): time 6.021e-06/1.332, allocations: 0 / 0.6254 GB, free: 154.4 MB / 462.1 MB Notification: Performance of matching and sorting (n=418): time 0.04311/1.375, allocations: 21.75 MB / 0.6466 GB, free: 145.6 MB / 462.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.948e-05/1.375, allocations: 125.6 kB / 0.6467 GB, free: 145.5 MB / 462.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006419/1.382, allocations: 5.257 MB / 0.6518 GB, free: 143.5 MB / 462.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0005632/1.382, allocations: 94.73 kB / 0.6519 GB, free: 143.4 MB / 462.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002449/1.385, allocations: 5.487 MB / 0.6573 GB, free: 139.3 MB / 462.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001188/1.386, allocations: 1.452 MB / 0.6587 GB, free: 138.2 MB / 462.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003424/1.386, allocations: 135.8 kB / 0.6588 GB, free: 138.1 MB / 462.1 MB Notification: Performance of setup shared object (initialization): time 0.0002706/1.387, allocations: 0.5739 MB / 0.6594 GB, free: 137.7 MB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003761/1.39, allocations: 2.928 MB / 0.6623 GB, free: 136.5 MB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004502/1.395, allocations: 5.668 MB / 0.6678 GB, free: 131.3 MB / 462.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004834/1.4, allocations: 4.165 MB / 0.6719 GB, free: 127.6 MB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.526e-05/1.4, allocations: 28 kB / 0.6719 GB, free: 127.5 MB / 462.1 MB Notification: Performance of matching and sorting (n=873) (initialization): time 0.01398/1.414, allocations: 10.04 MB / 0.6817 GB, free: 117.6 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.03e-05/1.414, allocations: 47.98 kB / 0.6817 GB, free: 117.5 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001156/1.414, allocations: 92 kB / 0.6818 GB, free: 117.4 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00256/1.417, allocations: 1.141 MB / 0.6829 GB, free: 116.3 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004802/1.421, allocations: 1.529 MB / 0.6844 GB, free: 114.7 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01214/1.434, allocations: 12.5 MB / 0.6966 GB, free: 101.7 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004945/1.438, allocations: 371.4 kB / 0.697 GB, free: 101.3 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0007033/1.439, allocations: 348.8 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.006455/1.446, allocations: 4.295 MB / 0.7015 GB, free: 96.69 MB / 462.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001121/1.447, allocations: 0.5403 MB / 0.702 GB, free: 96.14 MB / 462.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0105/1.457, allocations: 7.205 MB / 0.7091 GB, free: 88.84 MB / 462.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.005491/1.463, allocations: 4.29 MB / 0.7133 GB, free: 84.5 MB / 462.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.188e-05/1.463, allocations: 12 kB / 0.7133 GB, free: 84.49 MB / 462.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.694e-05/1.463, allocations: 19.92 kB / 0.7133 GB, free: 84.47 MB / 462.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02675/1.49, allocations: 17.16 MB / 0.7301 GB, free: 67.19 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.561e-05/1.49, allocations: 4 kB / 0.7301 GB, free: 67.19 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002708/1.492, allocations: 0.6865 MB / 0.7307 GB, free: 66.5 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002727/1.495, allocations: 1.192 MB / 0.7319 GB, free: 65.29 MB / 462.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003524/1.496, allocations: 95.97 kB / 0.732 GB, free: 65.2 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01422/1.51, allocations: 15.99 MB / 0.7476 GB, free: 48.43 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.982e-06/1.51, allocations: 11.94 kB / 0.7476 GB, free: 48.41 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01512/1.525, allocations: 10.4 MB / 0.7578 GB, free: 37.84 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002686/1.528, allocations: 1.147 MB / 0.7589 GB, free: 36.67 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001188/1.529, allocations: 84 kB / 0.759 GB, free: 36.59 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002455/1.531, allocations: 223.8 kB / 0.7592 GB, free: 36.37 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0006123/1.532, allocations: 303.4 kB / 0.7595 GB, free: 36.07 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002481/1.532, allocations: 124 kB / 0.7596 GB, free: 35.95 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.005117/1.537, allocations: 3.507 MB / 0.763 GB, free: 32.46 MB / 462.1 MB Notification: Performance of sort global known variables: time 3.71e-07/1.537, allocations: 3.938 kB / 0.763 GB, free: 32.46 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.01036/1.548, allocations: 1.994 MB / 0.765 GB, free: 30.47 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.001338/1.549, allocations: 280.5 kB / 0.7652 GB, free: 30.2 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.01286/1.562, allocations: 7.878 MB / 0.7729 GB, free: 22.24 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 1.239e-05/1.562, allocations: 0 / 0.7729 GB, free: 22.24 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.005981/1.568, allocations: 4.142 MB / 0.777 GB, free: 18.02 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.007659/1.576, allocations: 1.379 MB / 0.7783 GB, free: 16.64 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.2177/1.793, allocations: 25.07 MB / 0.8028 GB, free: 137.9 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.008379/1.802, allocations: 7.451 MB / 0.8101 GB, free: 137 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.006446/1.808, allocations: 2.087 MB / 0.8121 GB, free: 136.7 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001353/1.81, allocations: 407.4 kB / 0.8125 GB, free: 136.7 MB / 462.1 MB Notification: Performance of SimCode: time 8.52e-07/1.81, allocations: 0.75 kB / 0.8125 GB, free: 136.7 MB / 462.1 MB Notification: Performance of Templates: time 0.1172/1.927, allocations: 80.28 MB / 0.8909 GB, free: 63.74 MB / 462.1 MB make -j1 -f Modelica_3.1_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Mains.makefile (rm -f Modelica_3.1_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Mains.pipe ; mkfifo Modelica_3.1_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Mains.pipe ; head -c 1048576 < Modelica_3.1_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Mains.pipe >> ../files/Modelica_3.1_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Mains.sim & ./Modelica_3.1_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Mains -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.1_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Mains.pipe 2>&1)