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.0008136/0.0008135, allocations: 90.52 kB / 15.36 MB, free: 0.7383 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.005168/0.005168, allocations: 171.1 kB / 16.26 MB, free: 6.613 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.351/1.351, allocations: 205.4 MB / 222.4 MB, free: 5.566 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.0004842/0.0004842, allocations: 8 kB / 279.5 MB, free: 12.49 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.212/0.2125, allocations: 47.58 MB / 327.1 MB, free: 1.422 MB / 254.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Mains): time 0.03616/0.2488, allocations: 35.24 MB / 362.3 MB, free: 15.98 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.02207/0.2709, allocations: 9.832 MB / 372.1 MB, free: 6.129 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.006598/0.2775, allocations: 223.2 kB / 372.3 MB, free: 5.91 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.008007/0.2855, allocations: 2.399 MB / 374.7 MB, free: 3.5 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01431/0.2999, allocations: 3.581 MB / 378.3 MB, free: 15.9 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.007994/0.3079, allocations: 2.035 MB / 380.4 MB, free: 13.87 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.02001/0.3279, allocations: 14.51 MB / 394.9 MB, free: 15.3 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0408/0.3687, allocations: 24.6 MB / 419.5 MB, free: 6.551 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00933/0.3781, allocations: 5.145 MB / 424.6 MB, free: 1.387 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.01123/0.3894, allocations: 6.239 MB / 430.9 MB, free: 11.12 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.004225/0.3936, allocations: 0.8008 MB / 431.7 MB, free: 10.32 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.006094/0.3998, allocations: 1.183 MB / 432.8 MB, free: 9.137 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.004339/0.4041, allocations: 2.615 MB / 435.5 MB, free: 6.512 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0107/0.4149, allocations: 6.291 MB / 441.7 MB, free: 188 kB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.3679/0.7828, allocations: 25.33 MB / 467.1 MB, free: 41.41 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.394e-06/0.7828, allocations: 1.062 kB / 467.1 MB, free: 41.41 MB / 382.1 MB Notification: Performance of FrontEnd: time 3.517e-06/0.7829, allocations: 0 / 467.1 MB, free: 41.41 MB / 382.1 MB Notification: Performance of Transformations before backend: time 0.0007598/0.7836, allocations: 0 / 467.1 MB, free: 41.41 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.0355/0.8191, allocations: 13.37 MB / 480.4 MB, free: 34.91 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.248e-05/0.8192, allocations: 9.531 kB / 480.5 MB, free: 34.91 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.039/0.8582, allocations: 7.392 MB / 487.8 MB, free: 32.05 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01465/0.8729, allocations: 7.709 MB / 495.6 MB, free: 29.93 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0005647/0.8735, allocations: 0.925 MB / 496.5 MB, free: 29.89 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003492/0.877, allocations: 1.211 MB / 497.7 MB, free: 29.88 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03472/0.9117, allocations: 19.25 MB / 0.5048 GB, free: 16.25 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002876/0.912, allocations: 23.8 kB / 0.5048 GB, free: 16.23 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001593/0.9136, allocations: 0.5034 MB / 0.5053 GB, free: 15.74 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0004488/0.9141, allocations: 0.6815 MB / 0.506 GB, free: 15.06 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02956/0.9436, allocations: 17.71 MB / 0.5233 GB, free: 13.34 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1041/1.048, allocations: 64.08 MB / 0.5859 GB, free: 12.74 MB / 462.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.03306/1.081, allocations: 38.69 MB / 0.6237 GB, free: 1.332 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.1832/1.264, allocations: 4.26 MB / 0.6278 GB, free: 189 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01742/1.282, allocations: 12.36 MB / 0.6399 GB, free: 184.1 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.006e-05/1.282, allocations: 83.72 kB / 0.64 GB, free: 184 MB / 494.1 MB Notification: Performance of pre-optimization done (n=408): time 5.199e-06/1.282, allocations: 0.5938 kB / 0.64 GB, free: 184 MB / 494.1 MB Notification: Performance of matching and sorting (n=418): time 0.03926/1.321, allocations: 20.35 MB / 0.6598 GB, free: 174.5 MB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.684e-05/1.321, allocations: 120.2 kB / 0.66 GB, free: 174.4 MB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006768/1.328, allocations: 5.316 MB / 0.6651 GB, free: 171.7 MB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0006219/1.328, allocations: 93.7 kB / 0.6652 GB, free: 171.6 MB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002271/1.331, allocations: 5.481 MB / 0.6706 GB, free: 166.7 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001124/1.332, allocations: 1.455 MB / 0.672 GB, free: 165.4 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0006034/1.332, allocations: 0.5208 MB / 0.6725 GB, free: 165 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 3.851e-05/1.332, allocations: 316.9 kB / 0.6728 GB, free: 164.6 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003766/1.336, allocations: 2.949 MB / 0.6757 GB, free: 162.1 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004669/1.341, allocations: 5.693 MB / 0.6813 GB, free: 155.7 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.008815/1.35, allocations: 9.207 MB / 0.6903 GB, free: 145.9 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.395e-05/1.35, allocations: 24 kB / 0.6903 GB, free: 145.9 MB / 494.1 MB Notification: Performance of matching and sorting (n=873) (initialization): time 0.01537/1.365, allocations: 10.09 MB / 0.7001 GB, free: 136.1 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.942e-05/1.365, allocations: 47.98 kB / 0.7002 GB, free: 136 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.144e-05/1.365, allocations: 88 kB / 0.7003 GB, free: 135.9 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002586/1.368, allocations: 1.129 MB / 0.7014 GB, free: 134.8 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004643/1.373, allocations: 1.533 MB / 0.7029 GB, free: 133.3 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01192/1.385, allocations: 12.53 MB / 0.7151 GB, free: 120.2 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005111/1.39, allocations: 371.4 kB / 0.7155 GB, free: 119.8 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0006002/1.39, allocations: 344 kB / 0.7158 GB, free: 119.5 MB / 494.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 (not torn): 1 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 1 system {(2,100.0%)} * Non-linear Jacobian (size): 0 systems * Without analytic Jacobian (size): 0 systems Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 4 systems {(1,1,100.0%), (1,5,100.0%), (1,1,100.0%), (10,46,53.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.006237/1.397, allocations: 4.305 MB / 0.72 GB, free: 115.2 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001051/1.398, allocations: 0.5401 MB / 0.7205 GB, free: 114.6 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01038/1.408, allocations: 7.21 MB / 0.7276 GB, free: 107.3 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.00552/1.414, allocations: 4.317 MB / 0.7318 GB, free: 103 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.701e-05/1.414, allocations: 12 kB / 0.7318 GB, free: 102.9 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.753e-05/1.414, allocations: 21.56 kB / 0.7318 GB, free: 102.9 MB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02296/1.437, allocations: 17.19 MB / 0.7486 GB, free: 85.61 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.383e-05/1.437, allocations: 8.094 kB / 0.7486 GB, free: 85.6 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002617/1.439, allocations: 0.6827 MB / 0.7493 GB, free: 84.92 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002798/1.442, allocations: 1.182 MB / 0.7504 GB, free: 83.72 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002945/1.442, allocations: 99.97 kB / 0.7505 GB, free: 83.62 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01365/1.456, allocations: 16.03 MB / 0.7662 GB, free: 66.8 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.117e-06/1.456, allocations: 8 kB / 0.7662 GB, free: 66.8 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01323/1.469, allocations: 10.45 MB / 0.7764 GB, free: 56.18 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002332/1.472, allocations: 1.148 MB / 0.7775 GB, free: 55 MB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0008001/1.472, allocations: 80 kB / 0.7776 GB, free: 54.93 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002454/1.475, allocations: 223.8 kB / 0.7778 GB, free: 54.71 MB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0006017/1.476, allocations: 303.4 kB / 0.7781 GB, free: 54.41 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002355/1.476, allocations: 124 kB / 0.7782 GB, free: 54.29 MB / 494.1 MB Notification: Performance of sorting global known variables: time 0.004339/1.48, allocations: 3.546 MB / 0.7817 GB, free: 50.76 MB / 494.1 MB Notification: Performance of sort global known variables: time 2.91e-07/1.48, allocations: 0 / 0.7817 GB, free: 50.76 MB / 494.1 MB Notification: Performance of remove unused functions: time 0.005826/1.486, allocations: 1.998 MB / 0.7836 GB, free: 48.77 MB / 494.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 (not torn): 0 * Torn equation systems: 6 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 6 systems {(1,1,100.0%), (10,46,52.0%), (1,1,100.0%), (1,5,100.0%), (1,8,100.0%), (2,13,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0005693/1.487, allocations: 275.1 kB / 0.7839 GB, free: 48.5 MB / 494.1 MB Notification: Performance of simCode: created initialization part: time 0.01003/1.497, allocations: 7.932 MB / 0.7916 GB, free: 40.49 MB / 494.1 MB Notification: Performance of simCode: created event and clocks part: time 5.811e-06/1.497, allocations: 0 / 0.7916 GB, free: 40.49 MB / 494.1 MB Notification: Performance of simCode: created simulation system equations: time 0.005233/1.502, allocations: 4.152 MB / 0.7957 GB, free: 36.27 MB / 494.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.009312/1.511, allocations: 1.367 MB / 0.797 GB, free: 34.9 MB / 494.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.2493/1.76, allocations: 26.26 MB / 0.8227 GB, free: 167.9 MB / 494.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.007594/1.768, allocations: 7.452 MB / 0.8299 GB, free: 166.9 MB / 494.1 MB Notification: Performance of simCode: alias equations: time 0.006448/1.775, allocations: 2.089 MB / 0.832 GB, free: 166.7 MB / 494.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001105/1.776, allocations: 407.5 kB / 0.8324 GB, free: 166.7 MB / 494.1 MB Notification: Performance of SimCode: time 1.142e-06/1.776, allocations: 0 / 0.8324 GB, free: 166.7 MB / 494.1 MB Notification: Performance of Templates: time 0.1192/1.895, allocations: 82.05 MB / 0.9125 GB, free: 96.14 MB / 494.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)