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.0008876/0.0008876, allocations: 93.88 kB / 16.3 MB, free: 6.457 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.001017/0.001017, allocations: 183.5 kB / 17.2 MB, free: 6.34 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.269/1.269, allocations: 205.4 MB / 223.3 MB, free: 13.18 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.0004474/0.0004474, allocations: 12 kB / 280.1 MB, free: 3.73 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08997/0.09043, allocations: 47.58 MB / 327.7 MB, free: 4.078 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Mains): time 0.03135/0.1218, allocations: 29.89 MB / 357.6 MB, free: 6.09 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.01756/0.1394, allocations: 9.645 MB / 367.3 MB, free: 12.42 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00505/0.1445, allocations: 215.2 kB / 367.5 MB, free: 12.21 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.006393/0.1509, allocations: 2.005 MB / 369.5 MB, free: 10.2 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01303/0.164, allocations: 3.432 MB / 372.9 MB, free: 6.754 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.005381/0.1694, allocations: 1.555 MB / 374.5 MB, free: 5.203 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.162/0.3314, allocations: 11.28 MB / 385.7 MB, free: 12.57 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0334/0.3648, allocations: 20.19 MB / 405.9 MB, free: 9.824 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.007167/0.3721, allocations: 4.862 MB / 410.8 MB, free: 9.82 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.007495/0.3796, allocations: 5.388 MB / 416.2 MB, free: 8.219 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0023/0.3819, allocations: 0.7891 MB / 417 MB, free: 7.43 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003822/0.3857, allocations: 1.098 MB / 418.1 MB, free: 6.488 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001868/0.3876, allocations: 2.473 MB / 420.5 MB, free: 5.551 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.003219/0.3908, allocations: 2.654 MB / 423.2 MB, free: 4.562 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.02156/0.4124, allocations: 22.56 MB / 445.8 MB, free: 1.207 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.757e-06/0.4125, allocations: 0 / 445.8 MB, free: 1.207 MB / 334.1 MB Notification: Performance of FrontEnd: time 2.425e-06/0.4125, allocations: 0 / 445.8 MB, free: 1.207 MB / 334.1 MB Notification: Performance of Transformations before backend: time 0.0006097/0.4131, allocations: 0 / 445.8 MB, free: 1.207 MB / 334.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.03607/0.4492, allocations: 13.42 MB / 459.2 MB, free: 4.828 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.101e-05/0.4492, allocations: 8.031 kB / 459.2 MB, free: 4.82 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.04068/0.4899, allocations: 7.301 MB / 466.5 MB, free: 13.58 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01679/0.5067, allocations: 7.621 MB / 474.1 MB, free: 6.262 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0008038/0.5076, allocations: 0.9109 MB / 475 MB, free: 5.359 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003982/0.5116, allocations: 1.209 MB / 476.2 MB, free: 4.164 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.04252/0.5541, allocations: 19.04 MB / 495.3 MB, free: 1.059 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003238/0.5545, allocations: 27.73 kB / 495.3 MB, free: 1.031 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002306/0.5568, allocations: 0.4966 MB / 495.8 MB, free: 0.5469 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0006567/0.5574, allocations: 0.6854 MB / 496.5 MB, free: 15.86 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03367/0.5911, allocations: 17.61 MB / 0.502 GB, free: 14.23 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.3891/0.9803, allocations: 63.92 MB / 0.5645 GB, free: 94.96 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.02468/1.005, allocations: 38.65 MB / 0.6022 GB, free: 58.25 MB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01834/1.023, allocations: 12.05 MB / 0.614 GB, free: 50.11 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.922e-05/1.023, allocations: 80.66 kB / 0.614 GB, free: 50.04 MB / 430.1 MB Notification: Performance of pre-optimization done (n=416): time 5.951e-06/1.023, allocations: 4 kB / 0.614 GB, free: 50.04 MB / 430.1 MB Notification: Performance of matching and sorting (n=426): time 0.03394/1.057, allocations: 20.52 MB / 0.6341 GB, free: 37.03 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.33e-05/1.057, allocations: 124.7 kB / 0.6342 GB, free: 36.89 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006135/1.064, allocations: 5.158 MB / 0.6392 GB, free: 31.75 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0005422/1.064, allocations: 97.7 kB / 0.6393 GB, free: 31.65 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002104/1.066, allocations: 5.478 MB / 0.6447 GB, free: 26.14 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0009553/1.067, allocations: 1.478 MB / 0.6461 GB, free: 24.67 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002945/1.068, allocations: 136 kB / 0.6463 GB, free: 24.54 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 0.0002465/1.068, allocations: 0.5755 MB / 0.6468 GB, free: 23.96 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00362/1.071, allocations: 2.957 MB / 0.6497 GB, free: 21 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004364/1.076, allocations: 5.669 MB / 0.6552 GB, free: 14.06 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004543/1.08, allocations: 4.188 MB / 0.6593 GB, free: 9.859 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.984e-05/1.08, allocations: 31.94 kB / 0.6594 GB, free: 9.828 MB / 430.1 MB Notification: Performance of matching and sorting (n=880) (initialization): time 0.0132/1.094, allocations: 10.1 MB / 0.6692 GB, free: 15.65 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 7.61e-05/1.094, allocations: 47.98 kB / 0.6693 GB, free: 15.61 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001237/1.094, allocations: 88 kB / 0.6694 GB, free: 15.52 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002957/1.097, allocations: 1.131 MB / 0.6705 GB, free: 14.37 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005657/1.102, allocations: 1.544 MB / 0.672 GB, free: 12.82 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01517/1.118, allocations: 12.74 MB / 0.6844 GB, free: 15.54 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004974/1.123, allocations: 367.5 kB / 0.6848 GB, free: 15.18 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0006024/1.123, allocations: 351.9 kB / 0.6851 GB, free: 14.84 MB / 462.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 411 * 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 (813): * Single equations (assignments): 804 * 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%) 5,(1,100.0%) 1,(1,100.0%) 1,(10,53.0%) 46} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.006928/1.13, allocations: 4.293 MB / 0.6893 GB, free: 10.53 MB / 462.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001119/1.131, allocations: 0.548 MB / 0.6898 GB, free: 9.977 MB / 462.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01193/1.143, allocations: 7.282 MB / 0.6969 GB, free: 2.586 MB / 462.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.1736/1.317, allocations: 4.318 MB / 0.7012 GB, free: 140.2 MB / 462.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.367e-05/1.317, allocations: 13.72 kB / 0.7012 GB, free: 140.2 MB / 462.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.106e-05/1.317, allocations: 25.45 kB / 0.7012 GB, free: 140.2 MB / 462.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02746/1.345, allocations: 17.25 MB / 0.718 GB, free: 136.3 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.775e-05/1.345, allocations: 8.375 kB / 0.718 GB, free: 136.3 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002784/1.347, allocations: 0.7109 MB / 0.7187 GB, free: 136.2 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002788/1.35, allocations: 1.168 MB / 0.7199 GB, free: 135.9 MB / 462.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002597/1.35, allocations: 99.09 kB / 0.72 GB, free: 135.9 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01452/1.365, allocations: 16.25 MB / 0.7358 GB, free: 124 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.708e-06/1.365, allocations: 7.875 kB / 0.7359 GB, free: 124 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01359/1.379, allocations: 11.18 MB / 0.7468 GB, free: 118.7 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002429/1.381, allocations: 1.143 MB / 0.7479 GB, free: 118.2 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006852/1.382, allocations: 83.41 kB / 0.748 GB, free: 118.2 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002248/1.384, allocations: 223.1 kB / 0.7482 GB, free: 118.1 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005446/1.385, allocations: 304.4 kB / 0.7485 GB, free: 118.1 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002455/1.385, allocations: 133.7 kB / 0.7486 GB, free: 118.1 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.004382/1.389, allocations: 3.416 MB / 0.7519 GB, free: 116.7 MB / 462.1 MB Notification: Performance of sort global known variables: time 1.61e-07/1.389, allocations: 1.641 kB / 0.7519 GB, free: 116.7 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.005852/1.395, allocations: 1.998 MB / 0.7539 GB, free: 116.5 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 (364): * Single equations (assignments): 354 * 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,53.0%) 46,(1,100.0%) 5,(1,100.0%) 1,(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.0005614/1.396, allocations: 289.1 kB / 0.7542 GB, free: 116.3 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.01018/1.406, allocations: 7.959 MB / 0.7619 GB, free: 109.6 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 4.94e-06/1.406, allocations: 0 / 0.7619 GB, free: 109.6 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.005181/1.411, allocations: 4.158 MB / 0.766 GB, free: 105.4 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004962/1.416, allocations: 1.321 MB / 0.7673 GB, free: 104.2 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02904/1.445, allocations: 24.97 MB / 0.7917 GB, free: 79.13 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.006028/1.451, allocations: 7.657 MB / 0.7991 GB, free: 71.44 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.005794/1.457, allocations: 2.1 MB / 0.8012 GB, free: 69.33 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0009685/1.458, allocations: 411.4 kB / 0.8016 GB, free: 68.93 MB / 462.1 MB Notification: Performance of SimCode: time 1.263e-06/1.458, allocations: 0 / 0.8016 GB, free: 68.93 MB / 462.1 MB Notification: Performance of Templates: time 0.2773/1.735, allocations: 79.29 MB / 0.879 GB, free: 131.4 MB / 462.1 MB make -j1 -f Modelica_3.2.2_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Mains.makefile Environment - environmentSimulation: (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) Environment - environmentSimulation: