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/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.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/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001444/0.001444, allocations: 107.7 kB / 16.92 MB, free: 6.145 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.00127/0.00127, allocations: 187.4 kB / 17.85 MB, free: 5.285 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.506/1.506, allocations: 205.1 MB / 223.7 MB, free: 12.3 MB / 190.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.001388/0.001388, allocations: 51.92 kB / 280 MB, free: 3.129 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09096/0.09236, allocations: 46.64 MB / 326.7 MB, free: 4.422 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Mains): time 0.03883/0.1312, allocations: 37.33 MB / 364 MB, free: 14.91 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.02089/0.1522, allocations: 10.01 MB / 374 MB, free: 4.867 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.007262/0.1595, allocations: 235.2 kB / 374.2 MB, free: 4.637 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.1938/0.3534, allocations: 9.093 MB / 383.3 MB, free: 11.43 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01263/0.366, allocations: 3.959 MB / 387.3 MB, free: 11.36 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.007479/0.3735, allocations: 2.421 MB / 389.7 MB, free: 11.29 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.01684/0.3904, allocations: 14.14 MB / 403.9 MB, free: 9.48 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.04074/0.4311, allocations: 26.03 MB / 429.9 MB, free: 6.695 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.01267/0.4439, allocations: 7.236 MB / 437.1 MB, free: 15.62 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.01394/0.4579, allocations: 8.023 MB / 445.1 MB, free: 7.828 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.005675/0.4636, allocations: 2.035 MB / 447.2 MB, free: 5.793 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.009509/0.4731, allocations: 2.44 MB / 449.6 MB, free: 3.363 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.006698/0.4798, allocations: 4.101 MB / 453.7 MB, free: 15.33 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.01525/0.4951, allocations: 7.888 MB / 461.6 MB, free: 7.465 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.03193/0.5271, allocations: 26.83 MB / 488.4 MB, free: 13.11 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.731e-06/0.5271, allocations: 3.938 kB / 488.4 MB, free: 13.1 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.573e-06/0.5271, allocations: 4 kB / 488.4 MB, free: 13.1 MB / 398.1 MB Notification: Performance of Transformations before backend: time 0.0007441/0.5279, allocations: 0 / 488.4 MB, free: 13.1 MB / 398.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.0515/0.5794, allocations: 16.07 MB / 0.4927 GB, free: 13.03 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.85e-05/0.5795, allocations: 12.03 kB / 0.4927 GB, free: 13.02 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.04184/0.6213, allocations: 7.355 MB / 0.4999 GB, free: 5.723 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01713/0.6385, allocations: 7.727 MB / 0.5074 GB, free: 13.99 MB / 430.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0009274/0.6395, allocations: 0.9137 MB / 0.5083 GB, free: 13.09 MB / 430.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.004692/0.6442, allocations: 1.214 MB / 0.5095 GB, free: 11.89 MB / 430.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.05064/0.6948, allocations: 19.22 MB / 0.5283 GB, free: 8.602 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0004898/0.6953, allocations: 23.73 kB / 0.5283 GB, free: 8.578 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.003451/0.6988, allocations: 0.4983 MB / 0.5288 GB, free: 8.094 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.000788/0.6996, allocations: 0.6853 MB / 0.5294 GB, free: 7.406 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.2222/0.9219, allocations: 17.66 MB / 0.5467 GB, free: 139.4 MB / 446.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.09736/1.019, allocations: 63.87 MB / 0.6091 GB, free: 94.13 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.02559/1.045, allocations: 38.68 MB / 0.6468 GB, free: 50.7 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.005704/1.051, allocations: 4.201 MB / 0.6509 GB, free: 46.5 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02097/1.072, allocations: 12.24 MB / 0.6629 GB, free: 34.26 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.304e-05/1.072, allocations: 77.8 kB / 0.663 GB, free: 34.18 MB / 446.1 MB Notification: Performance of pre-optimization done (n=402): time 8.376e-06/1.072, allocations: 0 / 0.663 GB, free: 34.18 MB / 446.1 MB Notification: Performance of matching and sorting (n=412): time 0.03964/1.111, allocations: 20.06 MB / 0.6826 GB, free: 13.79 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.763e-05/1.112, allocations: 124.4 kB / 0.6827 GB, free: 13.65 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.008552/1.12, allocations: 5.304 MB / 0.6879 GB, free: 8.359 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0005951/1.121, allocations: 93.7 kB / 0.6879 GB, free: 8.262 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002529/1.123, allocations: 5.493 MB / 0.6933 GB, free: 2.734 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001276/1.125, allocations: 1.43 MB / 0.6947 GB, free: 1.316 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.00252/1.127, allocations: 1.306 MB / 0.696 GB, free: 0 / 446.1 MB Notification: Performance of setup shared object (initialization): time 0.0001194/1.127, allocations: 301.1 kB / 0.6963 GB, free: 15.7 MB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.005152/1.132, allocations: 2.91 MB / 0.6991 GB, free: 12.79 MB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.007278/1.14, allocations: 5.64 MB / 0.7046 GB, free: 5.879 MB / 462.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.191/1.331, allocations: 9.107 MB / 0.7135 GB, free: 142.2 MB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.000108/1.331, allocations: 30.03 kB / 0.7135 GB, free: 142.2 MB / 462.1 MB Notification: Performance of matching and sorting (n=867) (initialization): time 0.02003/1.351, allocations: 9.996 MB / 0.7233 GB, free: 139 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 8.37e-05/1.351, allocations: 42.31 kB / 0.7233 GB, free: 139 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.000173/1.351, allocations: 95.86 kB / 0.7234 GB, free: 139 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003103/1.354, allocations: 1.142 MB / 0.7245 GB, free: 138.8 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005452/1.36, allocations: 1.528 MB / 0.726 GB, free: 138.6 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01356/1.373, allocations: 13.48 MB / 0.7392 GB, free: 129.2 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005491/1.379, allocations: 370 kB / 0.7396 GB, free: 129.1 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001169/1.38, allocations: 341.7 kB / 0.7399 GB, free: 129.1 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 (803): * Single equations (assignments): 797 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 1 * 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,52.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.00743/1.387, allocations: 4.291 MB / 0.7441 GB, free: 127 MB / 462.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001574/1.389, allocations: 0.5463 MB / 0.7446 GB, free: 126.9 MB / 462.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01182/1.401, allocations: 7.108 MB / 0.7515 GB, free: 123.9 MB / 462.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.006124/1.407, allocations: 4.231 MB / 0.7557 GB, free: 122.2 MB / 462.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.167e-05/1.407, allocations: 14.47 kB / 0.7557 GB, free: 122.2 MB / 462.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.625e-05/1.407, allocations: 18.28 kB / 0.7557 GB, free: 122.2 MB / 462.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.028/1.435, allocations: 17.05 MB / 0.7724 GB, free: 111.7 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.814e-05/1.435, allocations: 4 kB / 0.7724 GB, free: 111.7 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002993/1.438, allocations: 0.6864 MB / 0.773 GB, free: 111.2 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.00314/1.441, allocations: 1.208 MB / 0.7742 GB, free: 110.2 MB / 462.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0006436/1.442, allocations: 99.2 kB / 0.7743 GB, free: 110.1 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01545/1.458, allocations: 17.39 MB / 0.7913 GB, free: 92.39 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.592e-06/1.458, allocations: 15.94 kB / 0.7913 GB, free: 92.38 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01372/1.471, allocations: 10.28 MB / 0.8013 GB, free: 82.22 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002881/1.474, allocations: 1.123 MB / 0.8024 GB, free: 81.07 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0008777/1.475, allocations: 87.94 kB / 0.8025 GB, free: 80.99 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002408/1.478, allocations: 215.8 kB / 0.8027 GB, free: 80.78 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0006746/1.478, allocations: 303.3 kB / 0.803 GB, free: 80.48 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002266/1.479, allocations: 128 kB / 0.8031 GB, free: 80.36 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.004892/1.483, allocations: 3.542 MB / 0.8066 GB, free: 76.83 MB / 462.1 MB Notification: Performance of sort global known variables: time 1.41e-07/1.483, allocations: 0 / 0.8066 GB, free: 76.83 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.006956/1.49, allocations: 1.989 MB / 0.8085 GB, free: 74.85 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 (353): * Single equations (assignments): 346 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 1 * 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.0006937/1.491, allocations: 286 kB / 0.8088 GB, free: 74.58 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.0198/1.511, allocations: 10.96 MB / 0.8195 GB, free: 63.56 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 1.306e-05/1.511, allocations: 8.125 kB / 0.8195 GB, free: 63.55 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.006017/1.517, allocations: 4.072 MB / 0.8235 GB, free: 59.4 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.007205/1.524, allocations: 1.44 MB / 0.8249 GB, free: 57.96 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03509/1.559, allocations: 20.92 MB / 0.8453 GB, free: 36.96 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.009649/1.569, allocations: 7.448 MB / 0.8526 GB, free: 29.48 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.006534/1.576, allocations: 2.084 MB / 0.8546 GB, free: 27.39 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001208/1.577, allocations: 411.4 kB / 0.855 GB, free: 26.99 MB / 462.1 MB Notification: Performance of SimCode: time 9.21e-07/1.577, allocations: 0 / 0.855 GB, free: 26.99 MB / 462.1 MB Notification: Performance of Templates: time 0.329/1.906, allocations: 85.67 MB / 0.9387 GB, free: 98.18 MB / 462.1 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)